fix for compile-time problems
[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 PDF2SWF
705 LIBPDF
706 JPEG2SWF
707 GIF2SWF
708 PNG2SWF
709 LIBOBJS
710 LTLIBOBJS'
711 ac_subst_files=''
712       ac_precious_vars='build_alias
713 host_alias
714 target_alias
715 CC
716 CFLAGS
717 LDFLAGS
718 LIBS
719 CPPFLAGS
720 CXX
721 CXXFLAGS
722 CCC
723 CPP'
724
725
726 # Initialize some variables set by options.
727 ac_init_help=
728 ac_init_version=false
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
731 cache_file=/dev/null
732 exec_prefix=NONE
733 no_create=
734 no_recursion=
735 prefix=NONE
736 program_prefix=NONE
737 program_suffix=NONE
738 program_transform_name=s,x,x,
739 silent=
740 site=
741 srcdir=
742 verbose=
743 x_includes=NONE
744 x_libraries=NONE
745
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir='${exec_prefix}/bin'
753 sbindir='${exec_prefix}/sbin'
754 libexecdir='${exec_prefix}/libexec'
755 datarootdir='${prefix}/share'
756 datadir='${datarootdir}'
757 sysconfdir='${prefix}/etc'
758 sharedstatedir='${prefix}/com'
759 localstatedir='${prefix}/var'
760 includedir='${prefix}/include'
761 oldincludedir='/usr/include'
762 docdir='${datarootdir}/doc/${PACKAGE}'
763 infodir='${datarootdir}/info'
764 htmldir='${docdir}'
765 dvidir='${docdir}'
766 pdfdir='${docdir}'
767 psdir='${docdir}'
768 libdir='${exec_prefix}/lib'
769 localedir='${datarootdir}/locale'
770 mandir='${datarootdir}/man'
771
772 ac_prev=
773 ac_dashdash=
774 for ac_option
775 do
776   # If the previous option needs an argument, assign it.
777   if test -n "$ac_prev"; then
778     eval $ac_prev=\$ac_option
779     ac_prev=
780     continue
781   fi
782
783   case $ac_option in
784   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
785   *)    ac_optarg=yes ;;
786   esac
787
788   # Accept the important Cygnus configure options, so we can diagnose typos.
789
790   case $ac_dashdash$ac_option in
791   --)
792     ac_dashdash=yes ;;
793
794   -bindir | --bindir | --bindi | --bind | --bin | --bi)
795     ac_prev=bindir ;;
796   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797     bindir=$ac_optarg ;;
798
799   -build | --build | --buil | --bui | --bu)
800     ac_prev=build_alias ;;
801   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802     build_alias=$ac_optarg ;;
803
804   -cache-file | --cache-file | --cache-fil | --cache-fi \
805   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806     ac_prev=cache_file ;;
807   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809     cache_file=$ac_optarg ;;
810
811   --config-cache | -C)
812     cache_file=config.cache ;;
813
814   -datadir | --datadir | --datadi | --datad)
815     ac_prev=datadir ;;
816   -datadir=* | --datadir=* | --datadi=* | --datad=*)
817     datadir=$ac_optarg ;;
818
819   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820   | --dataroo | --dataro | --datar)
821     ac_prev=datarootdir ;;
822   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824     datarootdir=$ac_optarg ;;
825
826   -disable-* | --disable-*)
827     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828     # Reject names that are not valid shell variable names.
829     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
830       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
831    { (exit 1); exit 1; }; }
832     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
833     eval enable_$ac_feature=no ;;
834
835   -docdir | --docdir | --docdi | --doc | --do)
836     ac_prev=docdir ;;
837   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
838     docdir=$ac_optarg ;;
839
840   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
841     ac_prev=dvidir ;;
842   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
843     dvidir=$ac_optarg ;;
844
845   -enable-* | --enable-*)
846     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847     # Reject names that are not valid shell variable names.
848     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850    { (exit 1); exit 1; }; }
851     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852     eval enable_$ac_feature=\$ac_optarg ;;
853
854   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
855   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
856   | --exec | --exe | --ex)
857     ac_prev=exec_prefix ;;
858   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
859   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
860   | --exec=* | --exe=* | --ex=*)
861     exec_prefix=$ac_optarg ;;
862
863   -gas | --gas | --ga | --g)
864     # Obsolete; use --with-gas.
865     with_gas=yes ;;
866
867   -help | --help | --hel | --he | -h)
868     ac_init_help=long ;;
869   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
870     ac_init_help=recursive ;;
871   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
872     ac_init_help=short ;;
873
874   -host | --host | --hos | --ho)
875     ac_prev=host_alias ;;
876   -host=* | --host=* | --hos=* | --ho=*)
877     host_alias=$ac_optarg ;;
878
879   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
880     ac_prev=htmldir ;;
881   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
882   | --ht=*)
883     htmldir=$ac_optarg ;;
884
885   -includedir | --includedir | --includedi | --included | --include \
886   | --includ | --inclu | --incl | --inc)
887     ac_prev=includedir ;;
888   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
889   | --includ=* | --inclu=* | --incl=* | --inc=*)
890     includedir=$ac_optarg ;;
891
892   -infodir | --infodir | --infodi | --infod | --info | --inf)
893     ac_prev=infodir ;;
894   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
895     infodir=$ac_optarg ;;
896
897   -libdir | --libdir | --libdi | --libd)
898     ac_prev=libdir ;;
899   -libdir=* | --libdir=* | --libdi=* | --libd=*)
900     libdir=$ac_optarg ;;
901
902   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
903   | --libexe | --libex | --libe)
904     ac_prev=libexecdir ;;
905   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
906   | --libexe=* | --libex=* | --libe=*)
907     libexecdir=$ac_optarg ;;
908
909   -localedir | --localedir | --localedi | --localed | --locale)
910     ac_prev=localedir ;;
911   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
912     localedir=$ac_optarg ;;
913
914   -localstatedir | --localstatedir | --localstatedi | --localstated \
915   | --localstate | --localstat | --localsta | --localst | --locals)
916     ac_prev=localstatedir ;;
917   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
918   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
919     localstatedir=$ac_optarg ;;
920
921   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
922     ac_prev=mandir ;;
923   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
924     mandir=$ac_optarg ;;
925
926   -nfp | --nfp | --nf)
927     # Obsolete; use --without-fp.
928     with_fp=no ;;
929
930   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
931   | --no-cr | --no-c | -n)
932     no_create=yes ;;
933
934   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936     no_recursion=yes ;;
937
938   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
939   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
940   | --oldin | --oldi | --old | --ol | --o)
941     ac_prev=oldincludedir ;;
942   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
943   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
944   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
945     oldincludedir=$ac_optarg ;;
946
947   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
948     ac_prev=prefix ;;
949   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950     prefix=$ac_optarg ;;
951
952   -program-prefix | --program-prefix | --program-prefi | --program-pref \
953   | --program-pre | --program-pr | --program-p)
954     ac_prev=program_prefix ;;
955   -program-prefix=* | --program-prefix=* | --program-prefi=* \
956   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
957     program_prefix=$ac_optarg ;;
958
959   -program-suffix | --program-suffix | --program-suffi | --program-suff \
960   | --program-suf | --program-su | --program-s)
961     ac_prev=program_suffix ;;
962   -program-suffix=* | --program-suffix=* | --program-suffi=* \
963   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
964     program_suffix=$ac_optarg ;;
965
966   -program-transform-name | --program-transform-name \
967   | --program-transform-nam | --program-transform-na \
968   | --program-transform-n | --program-transform- \
969   | --program-transform | --program-transfor \
970   | --program-transfo | --program-transf \
971   | --program-trans | --program-tran \
972   | --progr-tra | --program-tr | --program-t)
973     ac_prev=program_transform_name ;;
974   -program-transform-name=* | --program-transform-name=* \
975   | --program-transform-nam=* | --program-transform-na=* \
976   | --program-transform-n=* | --program-transform-=* \
977   | --program-transform=* | --program-transfor=* \
978   | --program-transfo=* | --program-transf=* \
979   | --program-trans=* | --program-tran=* \
980   | --progr-tra=* | --program-tr=* | --program-t=*)
981     program_transform_name=$ac_optarg ;;
982
983   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
984     ac_prev=pdfdir ;;
985   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986     pdfdir=$ac_optarg ;;
987
988   -psdir | --psdir | --psdi | --psd | --ps)
989     ac_prev=psdir ;;
990   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991     psdir=$ac_optarg ;;
992
993   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994   | -silent | --silent | --silen | --sile | --sil)
995     silent=yes ;;
996
997   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
998     ac_prev=sbindir ;;
999   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1000   | --sbi=* | --sb=*)
1001     sbindir=$ac_optarg ;;
1002
1003   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1004   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1005   | --sharedst | --shareds | --shared | --share | --shar \
1006   | --sha | --sh)
1007     ac_prev=sharedstatedir ;;
1008   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1009   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1010   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1011   | --sha=* | --sh=*)
1012     sharedstatedir=$ac_optarg ;;
1013
1014   -site | --site | --sit)
1015     ac_prev=site ;;
1016   -site=* | --site=* | --sit=*)
1017     site=$ac_optarg ;;
1018
1019   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1020     ac_prev=srcdir ;;
1021   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1022     srcdir=$ac_optarg ;;
1023
1024   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1025   | --syscon | --sysco | --sysc | --sys | --sy)
1026     ac_prev=sysconfdir ;;
1027   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1028   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1029     sysconfdir=$ac_optarg ;;
1030
1031   -target | --target | --targe | --targ | --tar | --ta | --t)
1032     ac_prev=target_alias ;;
1033   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1034     target_alias=$ac_optarg ;;
1035
1036   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037     verbose=yes ;;
1038
1039   -version | --version | --versio | --versi | --vers | -V)
1040     ac_init_version=: ;;
1041
1042   -with-* | --with-*)
1043     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1044     # Reject names that are not valid shell variable names.
1045     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046       { echo "$as_me: error: invalid package name: $ac_package" >&2
1047    { (exit 1); exit 1; }; }
1048     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1049     eval with_$ac_package=\$ac_optarg ;;
1050
1051   -without-* | --without-*)
1052     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055       { echo "$as_me: error: invalid package name: $ac_package" >&2
1056    { (exit 1); exit 1; }; }
1057     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058     eval with_$ac_package=no ;;
1059
1060   --x)
1061     # Obsolete; use --with-x.
1062     with_x=yes ;;
1063
1064   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065   | --x-incl | --x-inc | --x-in | --x-i)
1066     ac_prev=x_includes ;;
1067   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069     x_includes=$ac_optarg ;;
1070
1071   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073     ac_prev=x_libraries ;;
1074   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076     x_libraries=$ac_optarg ;;
1077
1078   -*) { echo "$as_me: error: unrecognized option: $ac_option
1079 Try \`$0 --help' for more information." >&2
1080    { (exit 1); exit 1; }; }
1081     ;;
1082
1083   *=*)
1084     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1085     # Reject names that are not valid shell variable names.
1086     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1087       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1088    { (exit 1); exit 1; }; }
1089     eval $ac_envvar=\$ac_optarg
1090     export $ac_envvar ;;
1091
1092   *)
1093     # FIXME: should be removed in autoconf 3.0.
1094     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1098     ;;
1099
1100   esac
1101 done
1102
1103 if test -n "$ac_prev"; then
1104   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105   { echo "$as_me: error: missing argument to $ac_option" >&2
1106    { (exit 1); exit 1; }; }
1107 fi
1108
1109 # Be sure to have absolute directory names.
1110 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1111                 datadir sysconfdir sharedstatedir localstatedir includedir \
1112                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1113                 libdir localedir mandir
1114 do
1115   eval ac_val=\$$ac_var
1116   case $ac_val in
1117     [\\/$]* | ?:[\\/]* )  continue;;
1118     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1119   esac
1120   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1121    { (exit 1); exit 1; }; }
1122 done
1123
1124 # There might be people who depend on the old broken behavior: `$host'
1125 # used to hold the argument of --host etc.
1126 # FIXME: To remove some day.
1127 build=$build_alias
1128 host=$host_alias
1129 target=$target_alias
1130
1131 # FIXME: To remove some day.
1132 if test "x$host_alias" != x; then
1133   if test "x$build_alias" = x; then
1134     cross_compiling=maybe
1135     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1136     If a cross compiler is detected then cross compile mode will be used." >&2
1137   elif test "x$build_alias" != "x$host_alias"; then
1138     cross_compiling=yes
1139   fi
1140 fi
1141
1142 ac_tool_prefix=
1143 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1144
1145 test "$silent" = yes && exec 6>/dev/null
1146
1147
1148 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1149 ac_ls_di=`ls -di .` &&
1150 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1151   { echo "$as_me: error: Working directory cannot be determined" >&2
1152    { (exit 1); exit 1; }; }
1153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1154   { echo "$as_me: error: pwd does not report name of working directory" >&2
1155    { (exit 1); exit 1; }; }
1156
1157
1158 # Find the source files, if location was not specified.
1159 if test -z "$srcdir"; then
1160   ac_srcdir_defaulted=yes
1161   # Try the directory containing this script, then the parent directory.
1162   ac_confdir=`$as_dirname -- "$0" ||
1163 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164          X"$0" : 'X\(//\)[^/]' \| \
1165          X"$0" : 'X\(//\)$' \| \
1166          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1167 echo X"$0" |
1168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1169             s//\1/
1170             q
1171           }
1172           /^X\(\/\/\)[^/].*/{
1173             s//\1/
1174             q
1175           }
1176           /^X\(\/\/\)$/{
1177             s//\1/
1178             q
1179           }
1180           /^X\(\/\).*/{
1181             s//\1/
1182             q
1183           }
1184           s/.*/./; q'`
1185   srcdir=$ac_confdir
1186   if test ! -r "$srcdir/$ac_unique_file"; then
1187     srcdir=..
1188   fi
1189 else
1190   ac_srcdir_defaulted=no
1191 fi
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1194   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1195    { (exit 1); exit 1; }; }
1196 fi
1197 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1198 ac_abs_confdir=`(
1199         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1200    { (exit 1); exit 1; }; }
1201         pwd)`
1202 # When building in place, set srcdir=.
1203 if test "$ac_abs_confdir" = "$ac_pwd"; then
1204   srcdir=.
1205 fi
1206 # Remove unnecessary trailing slashes from srcdir.
1207 # Double slashes in file names in object file debugging info
1208 # mess up M-x gdb in Emacs.
1209 case $srcdir in
1210 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1211 esac
1212 for ac_var in $ac_precious_vars; do
1213   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1214   eval ac_env_${ac_var}_value=\$${ac_var}
1215   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1216   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1217 done
1218
1219 #
1220 # Report the --help message.
1221 #
1222 if test "$ac_init_help" = "long"; then
1223   # Omit some internal or obsolete options to make the list less imposing.
1224   # This message is too long to be a string in the A/UX 3.1 sh.
1225   cat <<_ACEOF
1226 \`configure' configures this package to adapt to many kinds of systems.
1227
1228 Usage: $0 [OPTION]... [VAR=VALUE]...
1229
1230 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1231 VAR=VALUE.  See below for descriptions of some of the useful variables.
1232
1233 Defaults for the options are specified in brackets.
1234
1235 Configuration:
1236   -h, --help              display this help and exit
1237       --help=short        display options specific to this package
1238       --help=recursive    display the short help of all the included packages
1239   -V, --version           display version information and exit
1240   -q, --quiet, --silent   do not print \`checking...' messages
1241       --cache-file=FILE   cache test results in FILE [disabled]
1242   -C, --config-cache      alias for \`--cache-file=config.cache'
1243   -n, --no-create         do not create output files
1244       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1245
1246 Installation directories:
1247   --prefix=PREFIX         install architecture-independent files in PREFIX
1248                           [$ac_default_prefix]
1249   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1250                           [PREFIX]
1251
1252 By default, \`make install' will install all the files in
1253 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1254 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1255 for instance \`--prefix=\$HOME'.
1256
1257 For better control, use the options below.
1258
1259 Fine tuning of the installation directories:
1260   --bindir=DIR           user executables [EPREFIX/bin]
1261   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1262   --libexecdir=DIR       program executables [EPREFIX/libexec]
1263   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1264   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1265   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1266   --libdir=DIR           object code libraries [EPREFIX/lib]
1267   --includedir=DIR       C header files [PREFIX/include]
1268   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1269   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1270   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1271   --infodir=DIR          info documentation [DATAROOTDIR/info]
1272   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1273   --mandir=DIR           man documentation [DATAROOTDIR/man]
1274   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1275   --htmldir=DIR          html documentation [DOCDIR]
1276   --dvidir=DIR           dvi documentation [DOCDIR]
1277   --pdfdir=DIR           pdf documentation [DOCDIR]
1278   --psdir=DIR            ps documentation [DOCDIR]
1279 _ACEOF
1280
1281   cat <<\_ACEOF
1282
1283 Program names:
1284   --program-prefix=PREFIX            prepend PREFIX to installed program names
1285   --program-suffix=SUFFIX            append SUFFIX to installed program names
1286   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1287
1288 System types:
1289   --build=BUILD     configure for building on BUILD [guessed]
1290   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1291   --target=TARGET   configure for building compilers for TARGET [HOST]
1292 _ACEOF
1293 fi
1294
1295 if test -n "$ac_init_help"; then
1296
1297   cat <<\_ACEOF
1298
1299 Optional Features:
1300   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1301   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1302   --enable-checkmem       turn on ccmalloc debugging
1303   --enable-debug          turn on debugging
1304   --enable-profiling      turn on profiling
1305   --enable-warnings        turn on compiler warnings
1306   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1307   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1308
1309 Some influential environment variables:
1310   CC          C compiler command
1311   CFLAGS      C compiler flags
1312   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1313               nonstandard directory <lib dir>
1314   LIBS        libraries to pass to the linker, e.g. -l<library>
1315   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1316               you have headers in a nonstandard directory <include dir>
1317   CXX         C++ compiler command
1318   CXXFLAGS    C++ compiler flags
1319   CPP         C preprocessor
1320
1321 Use these variables to override the choices made by `configure' or to help
1322 it to find libraries and programs with nonstandard names/locations.
1323
1324 _ACEOF
1325 ac_status=$?
1326 fi
1327
1328 if test "$ac_init_help" = "recursive"; then
1329   # If there are subdirs, report their specific --help.
1330   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1331     test -d "$ac_dir" || continue
1332     ac_builddir=.
1333
1334 case "$ac_dir" in
1335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1336 *)
1337   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1338   # A ".." for each directory in $ac_dir_suffix.
1339   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1340   case $ac_top_builddir_sub in
1341   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1342   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1343   esac ;;
1344 esac
1345 ac_abs_top_builddir=$ac_pwd
1346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1347 # for backward compatibility:
1348 ac_top_builddir=$ac_top_build_prefix
1349
1350 case $srcdir in
1351   .)  # We are building in place.
1352     ac_srcdir=.
1353     ac_top_srcdir=$ac_top_builddir_sub
1354     ac_abs_top_srcdir=$ac_pwd ;;
1355   [\\/]* | ?:[\\/]* )  # Absolute name.
1356     ac_srcdir=$srcdir$ac_dir_suffix;
1357     ac_top_srcdir=$srcdir
1358     ac_abs_top_srcdir=$srcdir ;;
1359   *) # Relative name.
1360     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1361     ac_top_srcdir=$ac_top_build_prefix$srcdir
1362     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1363 esac
1364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1365
1366     cd "$ac_dir" || { ac_status=$?; continue; }
1367     # Check for guested configure.
1368     if test -f "$ac_srcdir/configure.gnu"; then
1369       echo &&
1370       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1371     elif test -f "$ac_srcdir/configure"; then
1372       echo &&
1373       $SHELL "$ac_srcdir/configure" --help=recursive
1374     else
1375       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1376     fi || ac_status=$?
1377     cd "$ac_pwd" || { ac_status=$?; break; }
1378   done
1379 fi
1380
1381 test -n "$ac_init_help" && exit $ac_status
1382 if $ac_init_version; then
1383   cat <<\_ACEOF
1384 configure
1385 generated by GNU Autoconf 2.61
1386
1387 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1388 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1389 This configure script is free software; the Free Software Foundation
1390 gives unlimited permission to copy, distribute and modify it.
1391 _ACEOF
1392   exit
1393 fi
1394 cat >config.log <<_ACEOF
1395 This file contains any messages produced by compilers while
1396 running configure, to aid debugging if configure makes a mistake.
1397
1398 It was created by $as_me, which was
1399 generated by GNU Autoconf 2.61.  Invocation command line was
1400
1401   $ $0 $@
1402
1403 _ACEOF
1404 exec 5>>config.log
1405 {
1406 cat <<_ASUNAME
1407 ## --------- ##
1408 ## Platform. ##
1409 ## --------- ##
1410
1411 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1412 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1413 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1414 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1415 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1416
1417 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1418 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1419
1420 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1421 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1422 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1423 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1424 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1425 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1426 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1427
1428 _ASUNAME
1429
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 for as_dir in $PATH
1432 do
1433   IFS=$as_save_IFS
1434   test -z "$as_dir" && as_dir=.
1435   echo "PATH: $as_dir"
1436 done
1437 IFS=$as_save_IFS
1438
1439 } >&5
1440
1441 cat >&5 <<_ACEOF
1442
1443
1444 ## ----------- ##
1445 ## Core tests. ##
1446 ## ----------- ##
1447
1448 _ACEOF
1449
1450
1451 # Keep a trace of the command line.
1452 # Strip out --no-create and --no-recursion so they do not pile up.
1453 # Strip out --silent because we don't want to record it for future runs.
1454 # Also quote any args containing shell meta-characters.
1455 # Make two passes to allow for proper duplicate-argument suppression.
1456 ac_configure_args=
1457 ac_configure_args0=
1458 ac_configure_args1=
1459 ac_must_keep_next=false
1460 for ac_pass in 1 2
1461 do
1462   for ac_arg
1463   do
1464     case $ac_arg in
1465     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1466     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1467     | -silent | --silent | --silen | --sile | --sil)
1468       continue ;;
1469     *\'*)
1470       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1471     esac
1472     case $ac_pass in
1473     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1474     2)
1475       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1476       if test $ac_must_keep_next = true; then
1477         ac_must_keep_next=false # Got value, back to normal.
1478       else
1479         case $ac_arg in
1480           *=* | --config-cache | -C | -disable-* | --disable-* \
1481           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1482           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1483           | -with-* | --with-* | -without-* | --without-* | --x)
1484             case "$ac_configure_args0 " in
1485               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1486             esac
1487             ;;
1488           -* ) ac_must_keep_next=true ;;
1489         esac
1490       fi
1491       ac_configure_args="$ac_configure_args '$ac_arg'"
1492       ;;
1493     esac
1494   done
1495 done
1496 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1497 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1498
1499 # When interrupted or exit'd, cleanup temporary files, and complete
1500 # config.log.  We remove comments because anyway the quotes in there
1501 # would cause problems or look ugly.
1502 # WARNING: Use '\'' to represent an apostrophe within the trap.
1503 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1504 trap 'exit_status=$?
1505   # Save into config.log some information that might help in debugging.
1506   {
1507     echo
1508
1509     cat <<\_ASBOX
1510 ## ---------------- ##
1511 ## Cache variables. ##
1512 ## ---------------- ##
1513 _ASBOX
1514     echo
1515     # The following way of writing the cache mishandles newlines in values,
1516 (
1517   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1518     eval ac_val=\$$ac_var
1519     case $ac_val in #(
1520     *${as_nl}*)
1521       case $ac_var in #(
1522       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1523 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1524       esac
1525       case $ac_var in #(
1526       _ | IFS | as_nl) ;; #(
1527       *) $as_unset $ac_var ;;
1528       esac ;;
1529     esac
1530   done
1531   (set) 2>&1 |
1532     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1533     *${as_nl}ac_space=\ *)
1534       sed -n \
1535         "s/'\''/'\''\\\\'\'''\''/g;
1536           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1537       ;; #(
1538     *)
1539       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1540       ;;
1541     esac |
1542     sort
1543 )
1544     echo
1545
1546     cat <<\_ASBOX
1547 ## ----------------- ##
1548 ## Output variables. ##
1549 ## ----------------- ##
1550 _ASBOX
1551     echo
1552     for ac_var in $ac_subst_vars
1553     do
1554       eval ac_val=\$$ac_var
1555       case $ac_val in
1556       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1557       esac
1558       echo "$ac_var='\''$ac_val'\''"
1559     done | sort
1560     echo
1561
1562     if test -n "$ac_subst_files"; then
1563       cat <<\_ASBOX
1564 ## ------------------- ##
1565 ## File substitutions. ##
1566 ## ------------------- ##
1567 _ASBOX
1568       echo
1569       for ac_var in $ac_subst_files
1570       do
1571         eval ac_val=\$$ac_var
1572         case $ac_val in
1573         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1574         esac
1575         echo "$ac_var='\''$ac_val'\''"
1576       done | sort
1577       echo
1578     fi
1579
1580     if test -s confdefs.h; then
1581       cat <<\_ASBOX
1582 ## ----------- ##
1583 ## confdefs.h. ##
1584 ## ----------- ##
1585 _ASBOX
1586       echo
1587       cat confdefs.h
1588       echo
1589     fi
1590     test "$ac_signal" != 0 &&
1591       echo "$as_me: caught signal $ac_signal"
1592     echo "$as_me: exit $exit_status"
1593   } >&5
1594   rm -f core *.core core.conftest.* &&
1595     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1596     exit $exit_status
1597 ' 0
1598 for ac_signal in 1 2 13 15; do
1599   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1600 done
1601 ac_signal=0
1602
1603 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1604 rm -f -r conftest* confdefs.h
1605
1606 # Predefined preprocessor variables.
1607
1608 cat >>confdefs.h <<_ACEOF
1609 #define PACKAGE_NAME "$PACKAGE_NAME"
1610 _ACEOF
1611
1612
1613 cat >>confdefs.h <<_ACEOF
1614 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1615 _ACEOF
1616
1617
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1620 _ACEOF
1621
1622
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_STRING "$PACKAGE_STRING"
1625 _ACEOF
1626
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1630 _ACEOF
1631
1632
1633 # Let the site file select an alternate cache file if it wants to.
1634 # Prefer explicitly selected file to automatically selected ones.
1635 if test -n "$CONFIG_SITE"; then
1636   set x "$CONFIG_SITE"
1637 elif test "x$prefix" != xNONE; then
1638   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1639 else
1640   set x "$ac_default_prefix/share/config.site" \
1641         "$ac_default_prefix/etc/config.site"
1642 fi
1643 shift
1644 for ac_site_file
1645 do
1646   if test -r "$ac_site_file"; then
1647     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1648 echo "$as_me: loading site script $ac_site_file" >&6;}
1649     sed 's/^/| /' "$ac_site_file" >&5
1650     . "$ac_site_file"
1651   fi
1652 done
1653
1654 if test -r "$cache_file"; then
1655   # Some versions of bash will fail to source /dev/null (special
1656   # files actually), so we avoid doing that.
1657   if test -f "$cache_file"; then
1658     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1659 echo "$as_me: loading cache $cache_file" >&6;}
1660     case $cache_file in
1661       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1662       *)                      . "./$cache_file";;
1663     esac
1664   fi
1665 else
1666   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1667 echo "$as_me: creating cache $cache_file" >&6;}
1668   >$cache_file
1669 fi
1670
1671 # Check that the precious variables saved in the cache have kept the same
1672 # value.
1673 ac_cache_corrupted=false
1674 for ac_var in $ac_precious_vars; do
1675   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1676   eval ac_new_set=\$ac_env_${ac_var}_set
1677   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1678   eval ac_new_val=\$ac_env_${ac_var}_value
1679   case $ac_old_set,$ac_new_set in
1680     set,)
1681       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1682 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1683       ac_cache_corrupted=: ;;
1684     ,set)
1685       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1686 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1687       ac_cache_corrupted=: ;;
1688     ,);;
1689     *)
1690       if test "x$ac_old_val" != "x$ac_new_val"; then
1691         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1692 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1693         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1694 echo "$as_me:   former value:  $ac_old_val" >&2;}
1695         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1696 echo "$as_me:   current value: $ac_new_val" >&2;}
1697         ac_cache_corrupted=:
1698       fi;;
1699   esac
1700   # Pass precious variables to config.status.
1701   if test "$ac_new_set" = set; then
1702     case $ac_new_val in
1703     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1704     *) ac_arg=$ac_var=$ac_new_val ;;
1705     esac
1706     case " $ac_configure_args " in
1707       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1708       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1709     esac
1710   fi
1711 done
1712 if $ac_cache_corrupted; then
1713   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1714 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1715   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1716 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1717    { (exit 1); exit 1; }; }
1718 fi
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736 ac_ext=c
1737 ac_cpp='$CPP $CPPFLAGS'
1738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1741
1742
1743
1744
1745 # Check whether --enable-checkmem was given.
1746 if test "${enable_checkmem+set}" = set; then
1747   enableval=$enable_checkmem; CHECKMEM=true
1748 fi
1749
1750 # Check whether --enable-debug was given.
1751 if test "${enable_debug+set}" = set; then
1752   enableval=$enable_debug; DEBUG=true
1753 fi
1754
1755 # Check whether --enable-profiling was given.
1756 if test "${enable_profiling+set}" = set; then
1757   enableval=$enable_profiling; PROFILING=true
1758 fi
1759
1760 # Check whether --enable-warnings was given.
1761 if test "${enable_warnings+set}" = set; then
1762   enableval=$enable_warnings; ENABLE_WARNINGS=true
1763 fi
1764
1765 # Check whether --enable-optimizations was given.
1766 if test "${enable_optimizations+set}" = set; then
1767   enableval=$enable_optimizations; OPTIMIZE=true
1768 fi
1769
1770 # Check whether --enable-lame was given.
1771 if test "${enable_lame+set}" = set; then
1772   enableval=$enable_lame; DISABLE_LAME=true
1773 fi
1774
1775
1776 PACKAGE=swftools
1777 VERSION=2007-04-28-2027
1778
1779
1780 # ------------------------------------------------------------------
1781
1782 if test "x${srcdir}" != "x."; then
1783     echo "--srcdir is not supported"
1784     exit 1
1785 fi
1786
1787 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1788 if test "x$ENABLE_WARNINGS" '!=' "x";then
1789     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1790 fi
1791
1792 if test "x$CHECKMEM" '!=' "x";then
1793     DEBUG=yes
1794 fi
1795 if test "x$PROFILING" '!=' "x";then
1796     DEBUG=yes
1797 fi
1798 if test "x$DEBUG" '!=' "x";then
1799     if test "x$PROFILING" = "x";then
1800         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1801         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1802         LDFLAGS="-g $LIBS"
1803     else
1804         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1805         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1806         LDFLAGS="-g -pg $LIBS"
1807     fi
1808 else if test "x$OPTIMIZE" '!=' "x"; then
1809     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1810     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1811 else
1812     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1813     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1814 fi
1815 fi
1816
1817 CFLAGS="-fPIC $CFLAGS"
1818 CXXFLAGS="-fPIC $CFLAGS"
1819
1820 #OLDGCC=1
1821 #if test "x$OLDGCC" '!=' "x";then
1822 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1823 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1824 #     CFLAGS="$CFLAGS -ansi -pendantic"
1825 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1826 #fi
1827
1828 export PACKAGE VERSION CFLAGS CXXFLAGS
1829
1830
1831 ac_aux_dir=
1832 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1833   if test -f "$ac_dir/install-sh"; then
1834     ac_aux_dir=$ac_dir
1835     ac_install_sh="$ac_aux_dir/install-sh -c"
1836     break
1837   elif test -f "$ac_dir/install.sh"; then
1838     ac_aux_dir=$ac_dir
1839     ac_install_sh="$ac_aux_dir/install.sh -c"
1840     break
1841   elif test -f "$ac_dir/shtool"; then
1842     ac_aux_dir=$ac_dir
1843     ac_install_sh="$ac_aux_dir/shtool install -c"
1844     break
1845   fi
1846 done
1847 if test -z "$ac_aux_dir"; then
1848   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1849 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1850    { (exit 1); exit 1; }; }
1851 fi
1852
1853 # These three variables are undocumented and unsupported,
1854 # and are intended to be withdrawn in a future Autoconf release.
1855 # They can cause serious problems if a builder's source tree is in a directory
1856 # whose full name contains unusual characters.
1857 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1858 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1859 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1860
1861
1862 # Make sure we can run config.sub.
1863 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1864   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1865 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1866    { (exit 1); exit 1; }; }
1867
1868 { echo "$as_me:$LINENO: checking build system type" >&5
1869 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1870 if test "${ac_cv_build+set}" = set; then
1871   echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873   ac_build_alias=$build_alias
1874 test "x$ac_build_alias" = x &&
1875   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1876 test "x$ac_build_alias" = x &&
1877   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1878 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1879    { (exit 1); exit 1; }; }
1880 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1881   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1882 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1883    { (exit 1); exit 1; }; }
1884
1885 fi
1886 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1887 echo "${ECHO_T}$ac_cv_build" >&6; }
1888 case $ac_cv_build in
1889 *-*-*) ;;
1890 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1891 echo "$as_me: error: invalid value of canonical build" >&2;}
1892    { (exit 1); exit 1; }; };;
1893 esac
1894 build=$ac_cv_build
1895 ac_save_IFS=$IFS; IFS='-'
1896 set x $ac_cv_build
1897 shift
1898 build_cpu=$1
1899 build_vendor=$2
1900 shift; shift
1901 # Remember, the first character of IFS is used to create $*,
1902 # except with old shells:
1903 build_os=$*
1904 IFS=$ac_save_IFS
1905 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1906
1907
1908 { echo "$as_me:$LINENO: checking host system type" >&5
1909 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1910 if test "${ac_cv_host+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   if test "x$host_alias" = x; then
1914   ac_cv_host=$ac_cv_build
1915 else
1916   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1917     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1918 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1919    { (exit 1); exit 1; }; }
1920 fi
1921
1922 fi
1923 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1924 echo "${ECHO_T}$ac_cv_host" >&6; }
1925 case $ac_cv_host in
1926 *-*-*) ;;
1927 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1928 echo "$as_me: error: invalid value of canonical host" >&2;}
1929    { (exit 1); exit 1; }; };;
1930 esac
1931 host=$ac_cv_host
1932 ac_save_IFS=$IFS; IFS='-'
1933 set x $ac_cv_host
1934 shift
1935 host_cpu=$1
1936 host_vendor=$2
1937 shift; shift
1938 # Remember, the first character of IFS is used to create $*,
1939 # except with old shells:
1940 host_os=$*
1941 IFS=$ac_save_IFS
1942 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1943
1944
1945
1946 SHARED="-shared"
1947 MACOSX=
1948 case $host_os in
1949     *darwin* )
1950         MACOSX=yes
1951         CFLAGS="$CFLAGS"
1952         CXXFLAGS="$CXXFLAGS -fno-rtti"
1953         SHARED="-bundle"
1954         # Use fink packages if available.
1955         #if test -d /sw/include && test -d /sw/lib; then
1956         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
1957         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
1958         #fi
1959         ;;
1960 esac
1961
1962
1963
1964  ac_ext=c
1965 ac_cpp='$CPP $CPPFLAGS'
1966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1969 if test -n "$ac_tool_prefix"; then
1970   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1971 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975   echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977   if test -n "$CC"; then
1978   ac_cv_prog_CC="$CC" # Let the user override the test.
1979 else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983   IFS=$as_save_IFS
1984   test -z "$as_dir" && as_dir=.
1985   for ac_exec_ext in '' $ac_executable_extensions; do
1986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1987     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989     break 2
1990   fi
1991 done
1992 done
1993 IFS=$as_save_IFS
1994
1995 fi
1996 fi
1997 CC=$ac_cv_prog_CC
1998 if test -n "$CC"; then
1999   { echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6; }
2001 else
2002   { echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6; }
2004 fi
2005
2006
2007 fi
2008 if test -z "$ac_cv_prog_CC"; then
2009   ac_ct_CC=$CC
2010   # Extract the first word of "gcc", so it can be a program name with args.
2011 set dummy gcc; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2015   echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017   if test -n "$ac_ct_CC"; then
2018   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023   IFS=$as_save_IFS
2024   test -z "$as_dir" && as_dir=.
2025   for ac_exec_ext in '' $ac_executable_extensions; do
2026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027     ac_cv_prog_ac_ct_CC="gcc"
2028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029     break 2
2030   fi
2031 done
2032 done
2033 IFS=$as_save_IFS
2034
2035 fi
2036 fi
2037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2038 if test -n "$ac_ct_CC"; then
2039   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2040 echo "${ECHO_T}$ac_ct_CC" >&6; }
2041 else
2042   { echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6; }
2044 fi
2045
2046   if test "x$ac_ct_CC" = x; then
2047     CC=""
2048   else
2049     case $cross_compiling:$ac_tool_warned in
2050 yes:)
2051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet.  If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&5
2054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055 whose name does not start with the host triplet.  If you think this
2056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2057 ac_tool_warned=yes ;;
2058 esac
2059     CC=$ac_ct_CC
2060   fi
2061 else
2062   CC="$ac_cv_prog_CC"
2063 fi
2064
2065 if test -z "$CC"; then
2066           if test -n "$ac_tool_prefix"; then
2067     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2068 set dummy ${ac_tool_prefix}cc; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test -n "$CC"; then
2075   ac_cv_prog_CC="$CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   for ac_exec_ext in '' $ac_executable_extensions; do
2083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2084     ac_cv_prog_CC="${ac_tool_prefix}cc"
2085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086     break 2
2087   fi
2088 done
2089 done
2090 IFS=$as_save_IFS
2091
2092 fi
2093 fi
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096   { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2098 else
2099   { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2101 fi
2102
2103
2104   fi
2105 fi
2106 if test -z "$CC"; then
2107   # Extract the first word of "cc", so it can be a program name with args.
2108 set dummy cc; ac_word=$2
2109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112   echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114   if test -n "$CC"; then
2115   ac_cv_prog_CC="$CC" # Let the user override the test.
2116 else
2117   ac_prog_rejected=no
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2120 do
2121   IFS=$as_save_IFS
2122   test -z "$as_dir" && as_dir=.
2123   for ac_exec_ext in '' $ac_executable_extensions; do
2124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2126        ac_prog_rejected=yes
2127        continue
2128      fi
2129     ac_cv_prog_CC="cc"
2130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131     break 2
2132   fi
2133 done
2134 done
2135 IFS=$as_save_IFS
2136
2137 if test $ac_prog_rejected = yes; then
2138   # We found a bogon in the path, so make sure we never use it.
2139   set dummy $ac_cv_prog_CC
2140   shift
2141   if test $# != 0; then
2142     # We chose a different compiler from the bogus one.
2143     # However, it has the same basename, so the bogon will be chosen
2144     # first if we set CC to just the basename; use the full file name.
2145     shift
2146     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2147   fi
2148 fi
2149 fi
2150 fi
2151 CC=$ac_cv_prog_CC
2152 if test -n "$CC"; then
2153   { echo "$as_me:$LINENO: result: $CC" >&5
2154 echo "${ECHO_T}$CC" >&6; }
2155 else
2156   { echo "$as_me:$LINENO: result: no" >&5
2157 echo "${ECHO_T}no" >&6; }
2158 fi
2159
2160
2161 fi
2162 if test -z "$CC"; then
2163   if test -n "$ac_tool_prefix"; then
2164   for ac_prog in cl.exe
2165   do
2166     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   if test -n "$CC"; then
2174   ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2178 do
2179   IFS=$as_save_IFS
2180   test -z "$as_dir" && as_dir=.
2181   for ac_exec_ext in '' $ac_executable_extensions; do
2182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2183     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185     break 2
2186   fi
2187 done
2188 done
2189 IFS=$as_save_IFS
2190
2191 fi
2192 fi
2193 CC=$ac_cv_prog_CC
2194 if test -n "$CC"; then
2195   { echo "$as_me:$LINENO: result: $CC" >&5
2196 echo "${ECHO_T}$CC" >&6; }
2197 else
2198   { echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6; }
2200 fi
2201
2202
2203     test -n "$CC" && break
2204   done
2205 fi
2206 if test -z "$CC"; then
2207   ac_ct_CC=$CC
2208   for ac_prog in cl.exe
2209 do
2210   # Extract the first word of "$ac_prog", so it can be a program name with args.
2211 set dummy $ac_prog; ac_word=$2
2212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   if test -n "$ac_ct_CC"; then
2218   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2219 else
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH
2222 do
2223   IFS=$as_save_IFS
2224   test -z "$as_dir" && as_dir=.
2225   for ac_exec_ext in '' $ac_executable_extensions; do
2226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2227     ac_cv_prog_ac_ct_CC="$ac_prog"
2228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229     break 2
2230   fi
2231 done
2232 done
2233 IFS=$as_save_IFS
2234
2235 fi
2236 fi
2237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2238 if test -n "$ac_ct_CC"; then
2239   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2240 echo "${ECHO_T}$ac_ct_CC" >&6; }
2241 else
2242   { echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6; }
2244 fi
2245
2246
2247   test -n "$ac_ct_CC" && break
2248 done
2249
2250   if test "x$ac_ct_CC" = x; then
2251     CC=""
2252   else
2253     case $cross_compiling:$ac_tool_warned in
2254 yes:)
2255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2256 whose name does not start with the host triplet.  If you think this
2257 configuration is useful to you, please write to autoconf@gnu.org." >&5
2258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2259 whose name does not start with the host triplet.  If you think this
2260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2261 ac_tool_warned=yes ;;
2262 esac
2263     CC=$ac_ct_CC
2264   fi
2265 fi
2266
2267 fi
2268
2269
2270 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: no acceptable C compiler found in \$PATH
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275
2276 # Provide some information about the compiler.
2277 echo "$as_me:$LINENO: checking for C compiler version" >&5
2278 ac_compiler=`set X $ac_compile; echo $2`
2279 { (ac_try="$ac_compiler --version >&5"
2280 case "(($ac_try" in
2281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282   *) ac_try_echo=$ac_try;;
2283 esac
2284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2285   (eval "$ac_compiler --version >&5") 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }
2289 { (ac_try="$ac_compiler -v >&5"
2290 case "(($ac_try" in
2291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292   *) ac_try_echo=$ac_try;;
2293 esac
2294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2295   (eval "$ac_compiler -v >&5") 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }
2299 { (ac_try="$ac_compiler -V >&5"
2300 case "(($ac_try" in
2301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302   *) ac_try_echo=$ac_try;;
2303 esac
2304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2305   (eval "$ac_compiler -V >&5") 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }
2309
2310 cat >conftest.$ac_ext <<_ACEOF
2311 /* confdefs.h.  */
2312 _ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h.  */
2316
2317 int
2318 main ()
2319 {
2320
2321   ;
2322   return 0;
2323 }
2324 _ACEOF
2325 ac_clean_files_save=$ac_clean_files
2326 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2327 # Try to create an executable without -o first, disregard a.out.
2328 # It will help us diagnose broken compilers, and finding out an intuition
2329 # of exeext.
2330 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2331 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2332 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2333 #
2334 # List of possible output files, starting from the most likely.
2335 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2336 # only as a last resort.  b.out is created by i960 compilers.
2337 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2338 #
2339 # The IRIX 6 linker writes into existing files which may not be
2340 # executable, retaining their permissions.  Remove them first so a
2341 # subsequent execution test works.
2342 ac_rmfiles=
2343 for ac_file in $ac_files
2344 do
2345   case $ac_file in
2346     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2347     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2348   esac
2349 done
2350 rm -f $ac_rmfiles
2351
2352 if { (ac_try="$ac_link_default"
2353 case "(($ac_try" in
2354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355   *) ac_try_echo=$ac_try;;
2356 esac
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358   (eval "$ac_link_default") 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }; then
2362   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2363 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2364 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2365 # so that the user can short-circuit this test for compilers unknown to
2366 # Autoconf.
2367 for ac_file in $ac_files ''
2368 do
2369   test -f "$ac_file" || continue
2370   case $ac_file in
2371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2372         ;;
2373     [ab].out )
2374         # We found the default executable, but exeext='' is most
2375         # certainly right.
2376         break;;
2377     *.* )
2378         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2379         then :; else
2380            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2381         fi
2382         # We set ac_cv_exeext here because the later test for it is not
2383         # safe: cross compilers may not add the suffix if given an `-o'
2384         # argument, so we may need to know it at that point already.
2385         # Even if this section looks crufty: it has the advantage of
2386         # actually working.
2387         break;;
2388     * )
2389         break;;
2390   esac
2391 done
2392 test "$ac_cv_exeext" = no && ac_cv_exeext=
2393
2394 else
2395   ac_file=''
2396 fi
2397
2398 { echo "$as_me:$LINENO: result: $ac_file" >&5
2399 echo "${ECHO_T}$ac_file" >&6; }
2400 if test -z "$ac_file"; then
2401   echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&5
2406 echo "$as_me: error: C compiler cannot create executables
2407 See \`config.log' for more details." >&2;}
2408    { (exit 77); exit 77; }; }
2409 fi
2410
2411 ac_exeext=$ac_cv_exeext
2412
2413 # Check that the compiler produces executables we can run.  If not, either
2414 # the compiler is broken, or we cross compile.
2415 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2418 # If not cross compiling, check that we can run a simple program.
2419 if test "$cross_compiling" != yes; then
2420   if { ac_try='./$ac_file'
2421   { (case "(($ac_try" in
2422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423   *) ac_try_echo=$ac_try;;
2424 esac
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426   (eval "$ac_try") 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; }; then
2430     cross_compiling=no
2431   else
2432     if test "$cross_compiling" = maybe; then
2433         cross_compiling=yes
2434     else
2435         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2436 If you meant to cross compile, use \`--host'.
2437 See \`config.log' for more details." >&5
2438 echo "$as_me: error: cannot run C compiled programs.
2439 If you meant to cross compile, use \`--host'.
2440 See \`config.log' for more details." >&2;}
2441    { (exit 1); exit 1; }; }
2442     fi
2443   fi
2444 fi
2445 { echo "$as_me:$LINENO: result: yes" >&5
2446 echo "${ECHO_T}yes" >&6; }
2447
2448 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2449 ac_clean_files=$ac_clean_files_save
2450 # Check that the compiler produces executables we can run.  If not, either
2451 # the compiler is broken, or we cross compile.
2452 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2453 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2454 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2455 echo "${ECHO_T}$cross_compiling" >&6; }
2456
2457 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2458 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2459 if { (ac_try="$ac_link"
2460 case "(($ac_try" in
2461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462   *) ac_try_echo=$ac_try;;
2463 esac
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465   (eval "$ac_link") 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; then
2469   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2470 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2471 # work properly (i.e., refer to `conftest.exe'), while it won't with
2472 # `rm'.
2473 for ac_file in conftest.exe conftest conftest.*; do
2474   test -f "$ac_file" || continue
2475   case $ac_file in
2476     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2477     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2478           break;;
2479     * ) break;;
2480   esac
2481 done
2482 else
2483   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2486 See \`config.log' for more details." >&2;}
2487    { (exit 1); exit 1; }; }
2488 fi
2489
2490 rm -f conftest$ac_cv_exeext
2491 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2492 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2493
2494 rm -f conftest.$ac_ext
2495 EXEEXT=$ac_cv_exeext
2496 ac_exeext=$EXEEXT
2497 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2498 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2499 if test "${ac_cv_objext+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h.  */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h.  */
2508
2509 int
2510 main ()
2511 {
2512
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 rm -f conftest.o conftest.obj
2518 if { (ac_try="$ac_compile"
2519 case "(($ac_try" in
2520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521   *) ac_try_echo=$ac_try;;
2522 esac
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524   (eval "$ac_compile") 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; then
2528   for ac_file in conftest.o conftest.obj conftest.*; do
2529   test -f "$ac_file" || continue;
2530   case $ac_file in
2531     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2532     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2533        break;;
2534   esac
2535 done
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2541 See \`config.log' for more details." >&5
2542 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2543 See \`config.log' for more details." >&2;}
2544    { (exit 1); exit 1; }; }
2545 fi
2546
2547 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2548 fi
2549 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2550 echo "${ECHO_T}$ac_cv_objext" >&6; }
2551 OBJEXT=$ac_cv_objext
2552 ac_objext=$OBJEXT
2553 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2554 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2555 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2556   echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558   cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h.  */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h.  */
2564
2565 int
2566 main ()
2567 {
2568 #ifndef __GNUC__
2569        choke me
2570 #endif
2571
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 rm -f conftest.$ac_objext
2577 if { (ac_try="$ac_compile"
2578 case "(($ac_try" in
2579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580   *) ac_try_echo=$ac_try;;
2581 esac
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583   (eval "$ac_compile") 2>conftest.er1
2584   ac_status=$?
2585   grep -v '^ *+' conftest.er1 >conftest.err
2586   rm -f conftest.er1
2587   cat conftest.err >&5
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); } && {
2590          test -z "$ac_c_werror_flag" ||
2591          test ! -s conftest.err
2592        } && test -s conftest.$ac_objext; then
2593   ac_compiler_gnu=yes
2594 else
2595   echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2597
2598         ac_compiler_gnu=no
2599 fi
2600
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2603
2604 fi
2605 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2606 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2607 GCC=`test $ac_compiler_gnu = yes && echo yes`
2608 ac_test_CFLAGS=${CFLAGS+set}
2609 ac_save_CFLAGS=$CFLAGS
2610 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2611 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2612 if test "${ac_cv_prog_cc_g+set}" = set; then
2613   echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615   ac_save_c_werror_flag=$ac_c_werror_flag
2616    ac_c_werror_flag=yes
2617    ac_cv_prog_cc_g=no
2618    CFLAGS="-g"
2619    cat >conftest.$ac_ext <<_ACEOF
2620 /* confdefs.h.  */
2621 _ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h.  */
2625
2626 int
2627 main ()
2628 {
2629
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 rm -f conftest.$ac_objext
2635 if { (ac_try="$ac_compile"
2636 case "(($ac_try" in
2637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638   *) ac_try_echo=$ac_try;;
2639 esac
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641   (eval "$ac_compile") 2>conftest.er1
2642   ac_status=$?
2643   grep -v '^ *+' conftest.er1 >conftest.err
2644   rm -f conftest.er1
2645   cat conftest.err >&5
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); } && {
2648          test -z "$ac_c_werror_flag" ||
2649          test ! -s conftest.err
2650        } && test -s conftest.$ac_objext; then
2651   ac_cv_prog_cc_g=yes
2652 else
2653   echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656         CFLAGS=""
2657       cat >conftest.$ac_ext <<_ACEOF
2658 /* confdefs.h.  */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h.  */
2663
2664 int
2665 main ()
2666 {
2667
2668   ;
2669   return 0;
2670 }
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (ac_try="$ac_compile"
2674 case "(($ac_try" in
2675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676   *) ac_try_echo=$ac_try;;
2677 esac
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679   (eval "$ac_compile") 2>conftest.er1
2680   ac_status=$?
2681   grep -v '^ *+' conftest.er1 >conftest.err
2682   rm -f conftest.er1
2683   cat conftest.err >&5
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); } && {
2686          test -z "$ac_c_werror_flag" ||
2687          test ! -s conftest.err
2688        } && test -s conftest.$ac_objext; then
2689   :
2690 else
2691   echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2693
2694         ac_c_werror_flag=$ac_save_c_werror_flag
2695          CFLAGS="-g"
2696          cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702
2703 int
2704 main ()
2705 {
2706
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (ac_try="$ac_compile"
2713 case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_compile") 2>conftest.er1
2719   ac_status=$?
2720   grep -v '^ *+' conftest.er1 >conftest.err
2721   rm -f conftest.er1
2722   cat conftest.err >&5
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); } && {
2725          test -z "$ac_c_werror_flag" ||
2726          test ! -s conftest.err
2727        } && test -s conftest.$ac_objext; then
2728   ac_cv_prog_cc_g=yes
2729 else
2730   echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733
2734 fi
2735
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 fi
2738
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 fi
2741
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743    ac_c_werror_flag=$ac_save_c_werror_flag
2744 fi
2745 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2746 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2747 if test "$ac_test_CFLAGS" = set; then
2748   CFLAGS=$ac_save_CFLAGS
2749 elif test $ac_cv_prog_cc_g = yes; then
2750   if test "$GCC" = yes; then
2751     CFLAGS="-g -O2"
2752   else
2753     CFLAGS="-g"
2754   fi
2755 else
2756   if test "$GCC" = yes; then
2757     CFLAGS="-O2"
2758   else
2759     CFLAGS=
2760   fi
2761 fi
2762 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2763 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_cc_c89+set}" = set; then
2765   echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767   ac_cv_prog_cc_c89=no
2768 ac_save_CC=$CC
2769 cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775 #include <stdarg.h>
2776 #include <stdio.h>
2777 #include <sys/types.h>
2778 #include <sys/stat.h>
2779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2780 struct buf { int x; };
2781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2782 static char *e (p, i)
2783      char **p;
2784      int i;
2785 {
2786   return p[i];
2787 }
2788 static char *f (char * (*g) (char **, int), char **p, ...)
2789 {
2790   char *s;
2791   va_list v;
2792   va_start (v,p);
2793   s = g (p, va_arg (v,int));
2794   va_end (v);
2795   return s;
2796 }
2797
2798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2799    function prototypes and stuff, but not '\xHH' hex character constants.
2800    These don't provoke an error unfortunately, instead are silently treated
2801    as 'x'.  The following induces an error, until -std is added to get
2802    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2803    array size at least.  It's necessary to write '\x00'==0 to get something
2804    that's true only with -std.  */
2805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2806
2807 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2808    inside strings and character constants.  */
2809 #define FOO(x) 'x'
2810 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2811
2812 int test (int i, double x);
2813 struct s1 {int (*f) (int a);};
2814 struct s2 {int (*f) (double a);};
2815 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2816 int argc;
2817 char **argv;
2818 int
2819 main ()
2820 {
2821 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2822   ;
2823   return 0;
2824 }
2825 _ACEOF
2826 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2827         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2828 do
2829   CC="$ac_save_CC $ac_arg"
2830   rm -f conftest.$ac_objext
2831 if { (ac_try="$ac_compile"
2832 case "(($ac_try" in
2833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834   *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837   (eval "$ac_compile") 2>conftest.er1
2838   ac_status=$?
2839   grep -v '^ *+' conftest.er1 >conftest.err
2840   rm -f conftest.er1
2841   cat conftest.err >&5
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } && {
2844          test -z "$ac_c_werror_flag" ||
2845          test ! -s conftest.err
2846        } && test -s conftest.$ac_objext; then
2847   ac_cv_prog_cc_c89=$ac_arg
2848 else
2849   echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2851
2852
2853 fi
2854
2855 rm -f core conftest.err conftest.$ac_objext
2856   test "x$ac_cv_prog_cc_c89" != "xno" && break
2857 done
2858 rm -f conftest.$ac_ext
2859 CC=$ac_save_CC
2860
2861 fi
2862 # AC_CACHE_VAL
2863 case "x$ac_cv_prog_cc_c89" in
2864   x)
2865     { echo "$as_me:$LINENO: result: none needed" >&5
2866 echo "${ECHO_T}none needed" >&6; } ;;
2867   xno)
2868     { echo "$as_me:$LINENO: result: unsupported" >&5
2869 echo "${ECHO_T}unsupported" >&6; } ;;
2870   *)
2871     CC="$CC $ac_cv_prog_cc_c89"
2872     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2874 esac
2875
2876
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882
2883  ac_ext=cpp
2884 ac_cpp='$CXXCPP $CPPFLAGS'
2885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2888 if test -z "$CXX"; then
2889   if test -n "$CCC"; then
2890     CXX=$CCC
2891   else
2892     if test -n "$ac_tool_prefix"; then
2893   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2894   do
2895     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2899 if test "${ac_cv_prog_CXX+set}" = set; then
2900   echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902   if test -n "$CXX"; then
2903   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908   IFS=$as_save_IFS
2909   test -z "$as_dir" && as_dir=.
2910   for ac_exec_ext in '' $ac_executable_extensions; do
2911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914     break 2
2915   fi
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 CXX=$ac_cv_prog_CXX
2923 if test -n "$CXX"; then
2924   { echo "$as_me:$LINENO: result: $CXX" >&5
2925 echo "${ECHO_T}$CXX" >&6; }
2926 else
2927   { echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6; }
2929 fi
2930
2931
2932     test -n "$CXX" && break
2933   done
2934 fi
2935 if test -z "$CXX"; then
2936   ac_ct_CXX=$CXX
2937   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2938 do
2939   # Extract the first word of "$ac_prog", so it can be a program name with args.
2940 set dummy $ac_prog; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   if test -n "$ac_ct_CXX"; then
2947   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952   IFS=$as_save_IFS
2953   test -z "$as_dir" && as_dir=.
2954   for ac_exec_ext in '' $ac_executable_extensions; do
2955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956     ac_cv_prog_ac_ct_CXX="$ac_prog"
2957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958     break 2
2959   fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2967 if test -n "$ac_ct_CXX"; then
2968   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2969 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2970 else
2971   { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2973 fi
2974
2975
2976   test -n "$ac_ct_CXX" && break
2977 done
2978
2979   if test "x$ac_ct_CXX" = x; then
2980     CXX="g++"
2981   else
2982     case $cross_compiling:$ac_tool_warned in
2983 yes:)
2984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2985 whose name does not start with the host triplet.  If you think this
2986 configuration is useful to you, please write to autoconf@gnu.org." >&5
2987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2988 whose name does not start with the host triplet.  If you think this
2989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2990 ac_tool_warned=yes ;;
2991 esac
2992     CXX=$ac_ct_CXX
2993   fi
2994 fi
2995
2996   fi
2997 fi
2998 # Provide some information about the compiler.
2999 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3000 ac_compiler=`set X $ac_compile; echo $2`
3001 { (ac_try="$ac_compiler --version >&5"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_compiler --version >&5") 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }
3011 { (ac_try="$ac_compiler -v >&5"
3012 case "(($ac_try" in
3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014   *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017   (eval "$ac_compiler -v >&5") 2>&5
3018   ac_status=$?
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); }
3021 { (ac_try="$ac_compiler -V >&5"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compiler -V >&5") 2>&5
3028   ac_status=$?
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); }
3031
3032 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   cat >conftest.$ac_ext <<_ACEOF
3038 /* confdefs.h.  */
3039 _ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h.  */
3043
3044 int
3045 main ()
3046 {
3047 #ifndef __GNUC__
3048        choke me
3049 #endif
3050
3051   ;
3052   return 0;
3053 }
3054 _ACEOF
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3057 case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062   (eval "$ac_compile") 2>conftest.er1
3063   ac_status=$?
3064   grep -v '^ *+' conftest.er1 >conftest.err
3065   rm -f conftest.er1
3066   cat conftest.err >&5
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } && {
3069          test -z "$ac_cxx_werror_flag" ||
3070          test ! -s conftest.err
3071        } && test -s conftest.$ac_objext; then
3072   ac_compiler_gnu=yes
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077         ac_compiler_gnu=no
3078 fi
3079
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3082
3083 fi
3084 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3085 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3086 GXX=`test $ac_compiler_gnu = yes && echo yes`
3087 ac_test_CXXFLAGS=${CXXFLAGS+set}
3088 ac_save_CXXFLAGS=$CXXFLAGS
3089 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3090 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_cxx_g+set}" = set; then
3092   echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3095    ac_cxx_werror_flag=yes
3096    ac_cv_prog_cxx_g=no
3097    CXXFLAGS="-g"
3098    cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h.  */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h.  */
3104
3105 int
3106 main ()
3107 {
3108
3109   ;
3110   return 0;
3111 }
3112 _ACEOF
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_compile") 2>conftest.er1
3121   ac_status=$?
3122   grep -v '^ *+' conftest.er1 >conftest.err
3123   rm -f conftest.er1
3124   cat conftest.err >&5
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); } && {
3127          test -z "$ac_cxx_werror_flag" ||
3128          test ! -s conftest.err
3129        } && test -s conftest.$ac_objext; then
3130   ac_cv_prog_cxx_g=yes
3131 else
3132   echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135         CXXFLAGS=""
3136       cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h.  */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h.  */
3142
3143 int
3144 main ()
3145 {
3146
3147   ;
3148   return 0;
3149 }
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3153 case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158   (eval "$ac_compile") 2>conftest.er1
3159   ac_status=$?
3160   grep -v '^ *+' conftest.er1 >conftest.err
3161   rm -f conftest.er1
3162   cat conftest.err >&5
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); } && {
3165          test -z "$ac_cxx_werror_flag" ||
3166          test ! -s conftest.err
3167        } && test -s conftest.$ac_objext; then
3168   :
3169 else
3170   echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3174          CXXFLAGS="-g"
3175          cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h.  */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3181
3182 int
3183 main ()
3184 {
3185
3186   ;
3187   return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_compile") 2>conftest.er1
3198   ac_status=$?
3199   grep -v '^ *+' conftest.er1 >conftest.err
3200   rm -f conftest.er1
3201   cat conftest.err >&5
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); } && {
3204          test -z "$ac_cxx_werror_flag" ||
3205          test ! -s conftest.err
3206        } && test -s conftest.$ac_objext; then
3207   ac_cv_prog_cxx_g=yes
3208 else
3209   echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212
3213 fi
3214
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 fi
3217
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 fi
3220
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3223 fi
3224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3226 if test "$ac_test_CXXFLAGS" = set; then
3227   CXXFLAGS=$ac_save_CXXFLAGS
3228 elif test $ac_cv_prog_cxx_g = yes; then
3229   if test "$GXX" = yes; then
3230     CXXFLAGS="-g -O2"
3231   else
3232     CXXFLAGS="-g"
3233   fi
3234 else
3235   if test "$GXX" = yes; then
3236     CXXFLAGS="-O2"
3237   else
3238     CXXFLAGS=
3239   fi
3240 fi
3241 ac_ext=c
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246
3247
3248
3249
3250 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3251 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3252
3253 cat > conftest.c << EOF
3254 #include <stdlib.h>
3255 #include <stdio.h>
3256
3257 int main (int argc, char*argv)
3258 {
3259     int a,b;
3260     b=3;
3261     int c;
3262     c=4;
3263     return 0;
3264 }
3265 EOF
3266
3267 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3268 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3269   { echo "$as_me:$LINENO: result: yes" >&5
3270 echo "${ECHO_T}yes" >&6; }
3271   GCC_IS_OK=true
3272   export GCC_IS_OK
3273 else
3274   echo "configure: failed program was:" >&5
3275   cat conftest.c >&5
3276   { echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6; }
3278 fi
3279 rm -f conftest*
3280
3281
3282 if test "x$GCC_IS_OK" '=' "x";then
3283     echo "***************************************************"
3284     echo "* Your gcc is too old to compile this!"
3285     echo "* "
3286     echo "* The last version compilable by this compiler is "
3287     echo "* swftools 0.7.0, which you can download from "
3288     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3289     echo "* ."
3290     echo "* Newer versions require at least gcc 3.0.0 "
3291     echo "***************************************************"
3292     exit 1
3293 fi
3294
3295 if test "x$CHECKMEM" '!=' "x";then
3296     CC="ccmalloc $CC"
3297     CXX="ccmalloc $CXX"
3298     #echo running again
3299     #unset ac_cv_prog_CC
3300     #unset ac_cv_prog_CXX
3301     #AC_PROG_CC
3302     #AC_PROG_CXX
3303 fi
3304  ac_ext=c
3305 ac_cpp='$CPP $CPPFLAGS'
3306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3309 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3310 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3311 # On Suns, sometimes $CPP names a directory.
3312 if test -n "$CPP" && test -d "$CPP"; then
3313   CPP=
3314 fi
3315 if test -z "$CPP"; then
3316   if test "${ac_cv_prog_CPP+set}" = set; then
3317   echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319       # Double quotes because CPP needs to be expanded
3320     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3321     do
3322       ac_preproc_ok=false
3323 for ac_c_preproc_warn_flag in '' yes
3324 do
3325   # Use a header file that comes with gcc, so configuring glibc
3326   # with a fresh cross-compiler works.
3327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3328   # <limits.h> exists even on freestanding compilers.
3329   # On the NeXT, cc -E runs the code through the compiler's parser,
3330   # not just through cpp. "Syntax error" is here to catch this case.
3331   cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h.  */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h.  */
3337 #ifdef __STDC__
3338 # include <limits.h>
3339 #else
3340 # include <assert.h>
3341 #endif
3342                      Syntax error
3343 _ACEOF
3344 if { (ac_try="$ac_cpp conftest.$ac_ext"
3345 case "(($ac_try" in
3346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347   *) ac_try_echo=$ac_try;;
3348 esac
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3351   ac_status=$?
3352   grep -v '^ *+' conftest.er1 >conftest.err
3353   rm -f conftest.er1
3354   cat conftest.err >&5
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); } >/dev/null && {
3357          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3358          test ! -s conftest.err
3359        }; then
3360   :
3361 else
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365   # Broken: fails on valid input.
3366 continue
3367 fi
3368
3369 rm -f conftest.err conftest.$ac_ext
3370
3371   # OK, works on sane cases.  Now check whether nonexistent headers
3372   # can be detected and how.
3373   cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h.  */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h.  */
3379 #include <ac_nonexistent.h>
3380 _ACEOF
3381 if { (ac_try="$ac_cpp conftest.$ac_ext"
3382 case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3388   ac_status=$?
3389   grep -v '^ *+' conftest.er1 >conftest.err
3390   rm -f conftest.er1
3391   cat conftest.err >&5
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); } >/dev/null && {
3394          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3395          test ! -s conftest.err
3396        }; then
3397   # Broken: success on invalid input.
3398 continue
3399 else
3400   echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403   # Passes both tests.
3404 ac_preproc_ok=:
3405 break
3406 fi
3407
3408 rm -f conftest.err conftest.$ac_ext
3409
3410 done
3411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3412 rm -f conftest.err conftest.$ac_ext
3413 if $ac_preproc_ok; then
3414   break
3415 fi
3416
3417     done
3418     ac_cv_prog_CPP=$CPP
3419
3420 fi
3421   CPP=$ac_cv_prog_CPP
3422 else
3423   ac_cv_prog_CPP=$CPP
3424 fi
3425 { echo "$as_me:$LINENO: result: $CPP" >&5
3426 echo "${ECHO_T}$CPP" >&6; }
3427 ac_preproc_ok=false
3428 for ac_c_preproc_warn_flag in '' yes
3429 do
3430   # Use a header file that comes with gcc, so configuring glibc
3431   # with a fresh cross-compiler works.
3432   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3433   # <limits.h> exists even on freestanding compilers.
3434   # On the NeXT, cc -E runs the code through the compiler's parser,
3435   # not just through cpp. "Syntax error" is here to catch this case.
3436   cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h.  */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h.  */
3442 #ifdef __STDC__
3443 # include <limits.h>
3444 #else
3445 # include <assert.h>
3446 #endif
3447                      Syntax error
3448 _ACEOF
3449 if { (ac_try="$ac_cpp conftest.$ac_ext"
3450 case "(($ac_try" in
3451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452   *) ac_try_echo=$ac_try;;
3453 esac
3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3456   ac_status=$?
3457   grep -v '^ *+' conftest.er1 >conftest.err
3458   rm -f conftest.er1
3459   cat conftest.err >&5
3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); } >/dev/null && {
3462          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3463          test ! -s conftest.err
3464        }; then
3465   :
3466 else
3467   echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470   # Broken: fails on valid input.
3471 continue
3472 fi
3473
3474 rm -f conftest.err conftest.$ac_ext
3475
3476   # OK, works on sane cases.  Now check whether nonexistent headers
3477   # can be detected and how.
3478   cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h.  */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h.  */
3484 #include <ac_nonexistent.h>
3485 _ACEOF
3486 if { (ac_try="$ac_cpp conftest.$ac_ext"
3487 case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3493   ac_status=$?
3494   grep -v '^ *+' conftest.er1 >conftest.err
3495   rm -f conftest.er1
3496   cat conftest.err >&5
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); } >/dev/null && {
3499          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3500          test ! -s conftest.err
3501        }; then
3502   # Broken: success on invalid input.
3503 continue
3504 else
3505   echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508   # Passes both tests.
3509 ac_preproc_ok=:
3510 break
3511 fi
3512
3513 rm -f conftest.err conftest.$ac_ext
3514
3515 done
3516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3517 rm -f conftest.err conftest.$ac_ext
3518 if $ac_preproc_ok; then
3519   :
3520 else
3521   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3522 See \`config.log' for more details." >&5
3523 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3524 See \`config.log' for more details." >&2;}
3525    { (exit 1); exit 1; }; }
3526 fi
3527
3528 ac_ext=c
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533
3534
3535  if test -n "$ac_tool_prefix"; then
3536   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3540 if test "${ac_cv_prog_RANLIB+set}" = set; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   if test -n "$RANLIB"; then
3544   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551   for ac_exec_ext in '' $ac_executable_extensions; do
3552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558 done
3559 IFS=$as_save_IFS
3560
3561 fi
3562 fi
3563 RANLIB=$ac_cv_prog_RANLIB
3564 if test -n "$RANLIB"; then
3565   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3566 echo "${ECHO_T}$RANLIB" >&6; }
3567 else
3568   { echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6; }
3570 fi
3571
3572
3573 fi
3574 if test -z "$ac_cv_prog_RANLIB"; then
3575   ac_ct_RANLIB=$RANLIB
3576   # Extract the first word of "ranlib", so it can be a program name with args.
3577 set dummy ranlib; ac_word=$2
3578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3580 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   if test -n "$ac_ct_RANLIB"; then
3584   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593     ac_cv_prog_ac_ct_RANLIB="ranlib"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599 IFS=$as_save_IFS
3600
3601 fi
3602 fi
3603 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3604 if test -n "$ac_ct_RANLIB"; then
3605   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3606 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3607 else
3608   { echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6; }
3610 fi
3611
3612   if test "x$ac_ct_RANLIB" = x; then
3613     RANLIB=":"
3614   else
3615     case $cross_compiling:$ac_tool_warned in
3616 yes:)
3617 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3618 whose name does not start with the host triplet.  If you think this
3619 configuration is useful to you, please write to autoconf@gnu.org." >&5
3620 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3621 whose name does not start with the host triplet.  If you think this
3622 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3623 ac_tool_warned=yes ;;
3624 esac
3625     RANLIB=$ac_ct_RANLIB
3626   fi
3627 else
3628   RANLIB="$ac_cv_prog_RANLIB"
3629 fi
3630
3631  { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3632 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3633 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3634 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3635   echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637   cat >conftest.make <<\_ACEOF
3638 SHELL = /bin/sh
3639 all:
3640         @echo '@@@%%%=$(MAKE)=@@@%%%'
3641 _ACEOF
3642 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3643 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3644   *@@@%%%=?*=@@@%%%*)
3645     eval ac_cv_prog_make_${ac_make}_set=yes;;
3646   *)
3647     eval ac_cv_prog_make_${ac_make}_set=no;;
3648 esac
3649 rm -f conftest.make
3650 fi
3651 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3652   { echo "$as_me:$LINENO: result: yes" >&5
3653 echo "${ECHO_T}yes" >&6; }
3654   SET_MAKE=
3655 else
3656   { echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6; }
3658   SET_MAKE="MAKE=${MAKE-make}"
3659 fi
3660
3661  # Find a good install program.  We prefer a C program (faster),
3662 # so one script is as good as another.  But avoid the broken or
3663 # incompatible versions:
3664 # SysV /etc/install, /usr/sbin/install
3665 # SunOS /usr/etc/install
3666 # IRIX /sbin/install
3667 # AIX /bin/install
3668 # AmigaOS /C/install, which installs bootblocks on floppy discs
3669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3672 # OS/2's system install, which has a completely different semantic
3673 # ./install, which can be erroneously created by make from ./install.sh.
3674 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3676 if test -z "$INSTALL"; then
3677 if test "${ac_cv_path_install+set}" = set; then
3678   echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685   # Account for people who put trailing slashes in PATH elements.
3686 case $as_dir/ in
3687   ./ | .// | /cC/* | \
3688   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3689   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3690   /usr/ucb/* ) ;;
3691   *)
3692     # OSF1 and SCO ODT 3.0 have their own names for install.
3693     # Don't use installbsd from OSF since it installs stuff as root
3694     # by default.
3695     for ac_prog in ginstall scoinst install; do
3696       for ac_exec_ext in '' $ac_executable_extensions; do
3697         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3698           if test $ac_prog = install &&
3699             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700             # AIX install.  It has an incompatible calling convention.
3701             :
3702           elif test $ac_prog = install &&
3703             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3704             # program-specific install script used by HP pwplus--don't use.
3705             :
3706           else
3707             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3708             break 3
3709           fi
3710         fi
3711       done
3712     done
3713     ;;
3714 esac
3715 done
3716 IFS=$as_save_IFS
3717
3718
3719 fi
3720   if test "${ac_cv_path_install+set}" = set; then
3721     INSTALL=$ac_cv_path_install
3722   else
3723     # As a last resort, use the slow shell script.  Don't cache a
3724     # value for INSTALL within a source directory, because that will
3725     # break other packages using the cache if that directory is
3726     # removed, or if the value is a relative name.
3727     INSTALL=$ac_install_sh
3728   fi
3729 fi
3730 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3731 echo "${ECHO_T}$INSTALL" >&6; }
3732
3733 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3734 # It thinks the first close brace ends the variable substitution.
3735 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3736
3737 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3738
3739 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3740
3741  { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3742 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3743 LN_S=$as_ln_s
3744 if test "$LN_S" = "ln -s"; then
3745   { echo "$as_me:$LINENO: result: yes" >&5
3746 echo "${ECHO_T}yes" >&6; }
3747 else
3748   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3749 echo "${ECHO_T}no, using $LN_S" >&6; }
3750 fi
3751
3752  for ac_prog in gzip uncompress compress
3753 do
3754   # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy $ac_prog; ac_word=$2
3756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3758 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   if test -n "$UNCOMPRESS"; then
3762   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767   IFS=$as_save_IFS
3768   test -z "$as_dir" && as_dir=.
3769   for ac_exec_ext in '' $ac_executable_extensions; do
3770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771     ac_cv_prog_UNCOMPRESS="$ac_prog"
3772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3773     break 2
3774   fi
3775 done
3776 done
3777 IFS=$as_save_IFS
3778
3779 fi
3780 fi
3781 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3782 if test -n "$UNCOMPRESS"; then
3783   { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3784 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3785 else
3786   { echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6; }
3788 fi
3789
3790
3791   test -n "$UNCOMPRESS" && break
3792 done
3793
3794
3795 OBJEXT="o"
3796 AREXT=".a"
3797 CXXLIBS="-lstdc++"
3798
3799
3800
3801 if test "x$EXEEXT" = "x.exe";then
3802     OBJEXT="obj"
3803     AREXT=".lib"
3804     CXXLIBS=""
3805 fi
3806
3807
3808
3809
3810 { echo "$as_me:$LINENO: checking host system type" >&5
3811 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3812 if test "${ac_cv_host+set}" = set; then
3813   echo $ECHO_N "(cached) $ECHO_C" >&6
3814 else
3815   if test "x$host_alias" = x; then
3816   ac_cv_host=$ac_cv_build
3817 else
3818   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3819     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3820 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3821    { (exit 1); exit 1; }; }
3822 fi
3823
3824 fi
3825 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3826 echo "${ECHO_T}$ac_cv_host" >&6; }
3827 case $ac_cv_host in
3828 *-*-*) ;;
3829 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3830 echo "$as_me: error: invalid value of canonical host" >&2;}
3831    { (exit 1); exit 1; }; };;
3832 esac
3833 host=$ac_cv_host
3834 ac_save_IFS=$IFS; IFS='-'
3835 set x $ac_cv_host
3836 shift
3837 host_cpu=$1
3838 host_vendor=$2
3839 shift; shift
3840 # Remember, the first character of IFS is used to create $*,
3841 # except with old shells:
3842 host_os=$*
3843 IFS=$ac_save_IFS
3844 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3845
3846
3847
3848
3849 { echo "$as_me:$LINENO: checking for target system" >&5
3850 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
3851 CYGWIN=
3852 MINGW=
3853 case $host_os in
3854     *cygwin* ) CYGWIN=yes;;
3855     *mingw* ) MINGW=yes;;
3856 esac
3857
3858 AR=ar
3859 if test "x$MINGW" = "xyes"; then
3860     #fix for the debian distribution of mingw
3861     if test -x "/usr/i586-mingw32msvc/bin/ar";then
3862         AR="/usr/i586-mingw32msvc/bin/ar"
3863     fi
3864     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
3865         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
3866     fi
3867     #fix for the gentoo distribution of mingw
3868     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
3869         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
3870     fi
3871     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
3872         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
3873     fi
3874     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
3875         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
3876     fi
3877 fi
3878
3879
3880
3881 if test "x${CYGWIN}" = "xyes"; then
3882     cat >>confdefs.h <<_ACEOF
3883 #define CYGWIN 1
3884 _ACEOF
3885
3886     { echo "$as_me:$LINENO: result: cygwin" >&5
3887 echo "${ECHO_T}cygwin" >&6; }
3888 else
3889     if test "x${MINGW}" = "xyes"; then
3890         cat >>confdefs.h <<_ACEOF
3891 #define MINGW 1
3892 _ACEOF
3893
3894         WIN32=1
3895         cat >>confdefs.h <<_ACEOF
3896 #define WIN32 1
3897 _ACEOF
3898
3899         LIBS="$LIBS -lws2_32 -lgdi32"
3900         { echo "$as_me:$LINENO: result: mingw" >&5
3901 echo "${ECHO_T}mingw" >&6; }
3902     else
3903         LINUX=1
3904         export LINUX
3905         cat >>confdefs.h <<_ACEOF
3906 #define LINUX 1
3907 _ACEOF
3908
3909         { echo "$as_me:$LINENO: result: " >&5
3910 echo "${ECHO_T}" >&6; }
3911     fi
3912 fi
3913
3914
3915 SLEXT="so"
3916 if test "x${MINGW}" != "xyes"; then
3917     # no mingW
3918     cat >>confdefs.h <<_ACEOF
3919 #define O_BINARY 0
3920 _ACEOF
3921
3922 else
3923     # mingW
3924     SLEXT="dll"
3925     CXXLIBS=""
3926 fi
3927 export SLEXT
3928
3929
3930
3931 # The following tries to make use of includes and libraries in
3932 # /usr/local, too. Notice: A -I/usr/local/include might break
3933 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
3934 # especially on systems which link /usr/local to /usr, so it has yet
3935 # to be seen how useful this is.
3936 if test -d /usr/local/lib; then
3937     LDFLAGS="$LDFLAGS -L/usr/local/lib"
3938 fi
3939 if test -d /usr/local/include; then
3940 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
3941 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3942     echo > /dev/null
3943 fi
3944 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
3945     # if the user has a special prefix (like /opt), there might also be $prefix/lib
3946     # and $prefix/include, which should be included in our search paths for libraries
3947     # and includes.
3948     LDFLAGS="$LDFLAGS -L${libdir}"
3949     CPPFLAGS="$CPPFLAGS -I${includedir}"
3950     # TODO- test whether gcc still works after this
3951 fi
3952
3953 #Mac OS:
3954 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
3955
3956
3957 # this must be done after (I believe) AC_PROG_MAKE_SET
3958 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
3959     STRIP="@echo debug enabled, not stripping "
3960     export STRIP
3961
3962 fi
3963
3964
3965
3966 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
3967 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
3968 if test "${ac_cv_lib_m_sin+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   ac_check_lib_save_LIBS=$LIBS
3972 LIBS="-lm  $LIBS"
3973 cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h.  */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h.  */
3979
3980 /* Override any GCC internal prototype to avoid an error.
3981    Use char because int might match the return type of a GCC
3982    builtin and then its argument prototype would still apply.  */
3983 #ifdef __cplusplus
3984 extern "C"
3985 #endif
3986 char sin ();
3987 int
3988 main ()
3989 {
3990 return sin ();
3991   ;
3992   return 0;
3993 }
3994 _ACEOF
3995 rm -f conftest.$ac_objext conftest$ac_exeext
3996 if { (ac_try="$ac_link"
3997 case "(($ac_try" in
3998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999   *) ac_try_echo=$ac_try;;
4000 esac
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002   (eval "$ac_link") 2>conftest.er1
4003   ac_status=$?
4004   grep -v '^ *+' conftest.er1 >conftest.err
4005   rm -f conftest.er1
4006   cat conftest.err >&5
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); } && {
4009          test -z "$ac_c_werror_flag" ||
4010          test ! -s conftest.err
4011        } && test -s conftest$ac_exeext &&
4012        $as_test_x conftest$ac_exeext; then
4013   ac_cv_lib_m_sin=yes
4014 else
4015   echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4017
4018         ac_cv_lib_m_sin=no
4019 fi
4020
4021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4022       conftest$ac_exeext conftest.$ac_ext
4023 LIBS=$ac_check_lib_save_LIBS
4024 fi
4025 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4026 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4027 if test $ac_cv_lib_m_sin = yes; then
4028   cat >>confdefs.h <<_ACEOF
4029 #define HAVE_LIBM 1
4030 _ACEOF
4031
4032   LIBS="-lm $LIBS"
4033
4034 else
4035   echo "Error: Math library not found.";
4036  exit;
4037
4038 fi
4039
4040
4041 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4042 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4043 if test "${ac_cv_lib_z_deflate+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   ac_check_lib_save_LIBS=$LIBS
4047 LIBS="-lz  $LIBS"
4048 cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h.  */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h.  */
4054
4055 /* Override any GCC internal prototype to avoid an error.
4056    Use char because int might match the return type of a GCC
4057    builtin and then its argument prototype would still apply.  */
4058 #ifdef __cplusplus
4059 extern "C"
4060 #endif
4061 char deflate ();
4062 int
4063 main ()
4064 {
4065 return deflate ();
4066   ;
4067   return 0;
4068 }
4069 _ACEOF
4070 rm -f conftest.$ac_objext conftest$ac_exeext
4071 if { (ac_try="$ac_link"
4072 case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077   (eval "$ac_link") 2>conftest.er1
4078   ac_status=$?
4079   grep -v '^ *+' conftest.er1 >conftest.err
4080   rm -f conftest.er1
4081   cat conftest.err >&5
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); } && {
4084          test -z "$ac_c_werror_flag" ||
4085          test ! -s conftest.err
4086        } && test -s conftest$ac_exeext &&
4087        $as_test_x conftest$ac_exeext; then
4088   ac_cv_lib_z_deflate=yes
4089 else
4090   echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093         ac_cv_lib_z_deflate=no
4094 fi
4095
4096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4097       conftest$ac_exeext conftest.$ac_ext
4098 LIBS=$ac_check_lib_save_LIBS
4099 fi
4100 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4101 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4102 if test $ac_cv_lib_z_deflate = yes; then
4103   cat >>confdefs.h <<_ACEOF
4104 #define HAVE_LIBZ 1
4105 _ACEOF
4106
4107   LIBS="-lz $LIBS"
4108
4109 else
4110   ZLIBMISSING=true
4111 fi
4112
4113
4114 if test "x$ZLIBMISSING" = "xtrue";then
4115     echo
4116     echo "ERROR:"
4117     echo "You need zlib to compile swftools"
4118     echo
4119     exit
4120 fi
4121
4122
4123 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4124 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4125 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   ac_check_lib_save_LIBS=$LIBS
4129 LIBS="-ljpeg  $LIBS"
4130 cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136
4137 /* Override any GCC internal prototype to avoid an error.
4138    Use char because int might match the return type of a GCC
4139    builtin and then its argument prototype would still apply.  */
4140 #ifdef __cplusplus
4141 extern "C"
4142 #endif
4143 char jpeg_write_raw_data ();
4144 int
4145 main ()
4146 {
4147 return jpeg_write_raw_data ();
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 rm -f conftest.$ac_objext conftest$ac_exeext
4153 if { (ac_try="$ac_link"
4154 case "(($ac_try" in
4155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156   *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159   (eval "$ac_link") 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } && {
4166          test -z "$ac_c_werror_flag" ||
4167          test ! -s conftest.err
4168        } && test -s conftest$ac_exeext &&
4169        $as_test_x conftest$ac_exeext; then
4170   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4171 else
4172   echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4174
4175         ac_cv_lib_jpeg_jpeg_write_raw_data=no
4176 fi
4177
4178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4179       conftest$ac_exeext conftest.$ac_ext
4180 LIBS=$ac_check_lib_save_LIBS
4181 fi
4182 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4183 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4184 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4185   cat >>confdefs.h <<_ACEOF
4186 #define HAVE_LIBJPEG 1
4187 _ACEOF
4188
4189   LIBS="-ljpeg $LIBS"
4190
4191 else
4192   JPEGLIBMISSING=true
4193 fi
4194
4195
4196 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4197 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4198 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   ac_check_lib_save_LIBS=$LIBS
4202 LIBS="-lungif  $LIBS"
4203 cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h.  */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h.  */
4209
4210 /* Override any GCC internal prototype to avoid an error.
4211    Use char because int might match the return type of a GCC
4212    builtin and then its argument prototype would still apply.  */
4213 #ifdef __cplusplus
4214 extern "C"
4215 #endif
4216 char DGifOpen ();
4217 int
4218 main ()
4219 {
4220 return DGifOpen ();
4221   ;
4222   return 0;
4223 }
4224 _ACEOF
4225 rm -f conftest.$ac_objext conftest$ac_exeext
4226 if { (ac_try="$ac_link"
4227 case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232   (eval "$ac_link") 2>conftest.er1
4233   ac_status=$?
4234   grep -v '^ *+' conftest.er1 >conftest.err
4235   rm -f conftest.er1
4236   cat conftest.err >&5
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } && {
4239          test -z "$ac_c_werror_flag" ||
4240          test ! -s conftest.err
4241        } && test -s conftest$ac_exeext &&
4242        $as_test_x conftest$ac_exeext; then
4243   ac_cv_lib_ungif_DGifOpen=yes
4244 else
4245   echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248         ac_cv_lib_ungif_DGifOpen=no
4249 fi
4250
4251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4252       conftest$ac_exeext conftest.$ac_ext
4253 LIBS=$ac_check_lib_save_LIBS
4254 fi
4255 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4256 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4257 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4258   cat >>confdefs.h <<_ACEOF
4259 #define HAVE_LIBUNGIF 1
4260 _ACEOF
4261
4262   LIBS="-lungif $LIBS"
4263
4264 else
4265   UNGIFMISSING=true
4266 fi
4267
4268 if test "$UNGIFMISSING";then
4269     UNGIFMISSING=
4270
4271 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4272 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4273 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   ac_check_lib_save_LIBS=$LIBS
4277 LIBS="-lgif  $LIBS"
4278 cat >conftest.$ac_ext <<_ACEOF
4279 /* confdefs.h.  */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h.  */
4284
4285 /* Override any GCC internal prototype to avoid an error.
4286    Use char because int might match the return type of a GCC
4287    builtin and then its argument prototype would still apply.  */
4288 #ifdef __cplusplus
4289 extern "C"
4290 #endif
4291 char DGifOpen ();
4292 int
4293 main ()
4294 {
4295 return DGifOpen ();
4296   ;
4297   return 0;
4298 }
4299 _ACEOF
4300 rm -f conftest.$ac_objext conftest$ac_exeext
4301 if { (ac_try="$ac_link"
4302 case "(($ac_try" in
4303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304   *) ac_try_echo=$ac_try;;
4305 esac
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307   (eval "$ac_link") 2>conftest.er1
4308   ac_status=$?
4309   grep -v '^ *+' conftest.er1 >conftest.err
4310   rm -f conftest.er1
4311   cat conftest.err >&5
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); } && {
4314          test -z "$ac_c_werror_flag" ||
4315          test ! -s conftest.err
4316        } && test -s conftest$ac_exeext &&
4317        $as_test_x conftest$ac_exeext; then
4318   ac_cv_lib_gif_DGifOpen=yes
4319 else
4320   echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323         ac_cv_lib_gif_DGifOpen=no
4324 fi
4325
4326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4327       conftest$ac_exeext conftest.$ac_ext
4328 LIBS=$ac_check_lib_save_LIBS
4329 fi
4330 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4331 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4332 if test $ac_cv_lib_gif_DGifOpen = yes; then
4333   cat >>confdefs.h <<_ACEOF
4334 #define HAVE_LIBGIF 1
4335 _ACEOF
4336
4337   LIBS="-lgif $LIBS"
4338
4339 else
4340   UNGIFMISSING=true
4341 fi
4342
4343 fi
4344
4345
4346 { echo "$as_me:$LINENO: checking for byte order" >&5
4347 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4348 if test "$cross_compiling" = yes; then
4349   CROSSCOMPILE=1
4350 else
4351   cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h.  */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h.  */
4357
4358 int main (int argc, char *argv[])
4359 {
4360     int i = 1;
4361     return *(char*)&i;
4362 }
4363
4364 _ACEOF
4365 rm -f conftest$ac_exeext
4366 if { (ac_try="$ac_link"
4367 case "(($ac_try" in
4368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369   *) ac_try_echo=$ac_try;;
4370 esac
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372   (eval "$ac_link") 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4376   { (case "(($ac_try" in
4377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378   *) ac_try_echo=$ac_try;;
4379 esac
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381   (eval "$ac_try") 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); }; }; then
4385   BIGENDIAN=1
4386 else
4387   echo "$as_me: program exited with status $ac_status" >&5
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4390
4391 ( exit $ac_status )
4392 LITTLEENDIAN=1
4393 fi
4394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4395 fi
4396
4397
4398 export CROSSCOMPILE
4399
4400 if test "x${CROSSCOMPILE}" = "x1"; then
4401  { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4402 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4403  { echo "$as_me:$LINENO: checking target system type" >&5
4404 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4405 if test "${ac_cv_target+set}" = set; then
4406   echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408   if test "x$target_alias" = x; then
4409   ac_cv_target=$ac_cv_host
4410 else
4411   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4412     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4413 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4414    { (exit 1); exit 1; }; }
4415 fi
4416
4417 fi
4418 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4419 echo "${ECHO_T}$ac_cv_target" >&6; }
4420 case $ac_cv_target in
4421 *-*-*) ;;
4422 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4423 echo "$as_me: error: invalid value of canonical target" >&2;}
4424    { (exit 1); exit 1; }; };;
4425 esac
4426 target=$ac_cv_target
4427 ac_save_IFS=$IFS; IFS='-'
4428 set x $ac_cv_target
4429 shift
4430 target_cpu=$1
4431 target_vendor=$2
4432 shift; shift
4433 # Remember, the first character of IFS is used to create $*,
4434 # except with old shells:
4435 target_os=$*
4436 IFS=$ac_save_IFS
4437 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4438
4439
4440 # The aliases save the names the user supplied, while $host etc.
4441 # will get canonicalized.
4442 test -n "$target_alias" &&
4443   test "$program_prefix$program_suffix$program_transform_name" = \
4444     NONENONEs,x,x, &&
4445   program_prefix=${target_alias}-
4446  { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4447 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4448  case "${target}" in
4449   *86* | *-pc-* )
4450      LITTLEENDIAN=1
4451      ;;
4452   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4453      BIGENDIAN=1
4454      ;;
4455  esac
4456 fi
4457
4458 export LITTLEENDIAN
4459 if test "x${LITTLEENDIAN}" = "x1"; then
4460 { echo "$as_me:$LINENO: result: little endian" >&5
4461 echo "${ECHO_T}little endian" >&6; }
4462 BYTEORDERCHECKOK=1
4463 fi
4464 export BIGENDIAN
4465 if test "x${BIGENDIAN}" = "x1"; then
4466 { echo "$as_me:$LINENO: result: big endian" >&5
4467 echo "${ECHO_T}big endian" >&6; }
4468 BYTEORDERCHECKOK=1
4469 WORDS_BIGENDIAN=1
4470 export WORDS_BIGENDIAN
4471 cat >>confdefs.h <<_ACEOF
4472 #define WORDS_BIGENDIAN 1
4473 _ACEOF
4474
4475 fi
4476 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4477 { echo "$as_me:$LINENO: result: unknown" >&5
4478 echo "${ECHO_T}unknown" >&6; }
4479 echo Byte order could not determined.
4480 exit 1
4481 fi
4482
4483
4484
4485 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4486 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4487 if test "$cross_compiling" = yes; then
4488   CROSSCOMPILE=1
4489 else
4490   cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h.  */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h.  */
4496
4497 #include "stdlib.h"
4498 int main (int argc, char*argv[])
4499 {
4500     return system("test `touch config.tmp2`");
4501 }
4502
4503 _ACEOF
4504 rm -f conftest$ac_exeext
4505 if { (ac_try="$ac_link"
4506 case "(($ac_try" in
4507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508   *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511   (eval "$ac_link") 2>&5
4512   ac_status=$?
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4515   { (case "(($ac_try" in
4516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517   *) ac_try_echo=$ac_try;;
4518 esac
4519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520   (eval "$ac_try") 2>&5
4521   ac_status=$?
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); }; }; then
4524   OK=OK
4525 else
4526   echo "$as_me: program exited with status $ac_status" >&5
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530 fi
4531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4532 fi
4533
4534
4535
4536 if test "x${OK}" = "xOK";then
4537     test -f config.tmp2 || OK=
4538 fi
4539
4540 if test "x${CROSSCOMPILE}" = "x1";then
4541     OK=no;
4542 fi
4543 if test "x${OK}" = "xOK";then
4544 rm -f config.tmp2
4545 { echo "$as_me:$LINENO: result: yes" >&5
4546 echo "${ECHO_T}yes" >&6; }
4547 SYSTEM_BACKTICKS=1
4548 export SYSTEM_BACKTICKS
4549 cat >>confdefs.h <<_ACEOF
4550 #define SYSTEM_BACKTICKS 1
4551 _ACEOF
4552
4553 else
4554 { echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6; }
4556 fi
4557
4558
4559
4560 test "$program_prefix" != NONE &&
4561   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4562 # Use a double $ so make ignores it.
4563 test "$program_suffix" != NONE &&
4564   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4565 # Double any \ or $.  echo might interpret backslashes.
4566 # By default was `s,x,x', remove it if useless.
4567 cat <<\_ACEOF >conftest.sed
4568 s/[\\$]/&&/g;s/;s,x,x,$//
4569 _ACEOF
4570 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4571 rm -f conftest.sed
4572
4573
4574  ac_config_headers="$ac_config_headers config.h"
4575
4576
4577
4578
4579
4580
4581 ac_header_dirent=no
4582 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4583   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4584 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4585 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589   cat >conftest.$ac_ext <<_ACEOF
4590 /* confdefs.h.  */
4591 _ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h.  */
4595 #include <sys/types.h>
4596 #include <$ac_hdr>
4597
4598 int
4599 main ()
4600 {
4601 if ((DIR *) 0)
4602 return 0;
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.$ac_objext
4608 if { (ac_try="$ac_compile"
4609 case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614   (eval "$ac_compile") 2>conftest.er1
4615   ac_status=$?
4616   grep -v '^ *+' conftest.er1 >conftest.err
4617   rm -f conftest.er1
4618   cat conftest.err >&5
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); } && {
4621          test -z "$ac_c_werror_flag" ||
4622          test ! -s conftest.err
4623        } && test -s conftest.$ac_objext; then
4624   eval "$as_ac_Header=yes"
4625 else
4626   echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629         eval "$as_ac_Header=no"
4630 fi
4631
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 fi
4634 ac_res=`eval echo '${'$as_ac_Header'}'`
4635                { echo "$as_me:$LINENO: result: $ac_res" >&5
4636 echo "${ECHO_T}$ac_res" >&6; }
4637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4638   cat >>confdefs.h <<_ACEOF
4639 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4640 _ACEOF
4641
4642 ac_header_dirent=$ac_hdr; break
4643 fi
4644
4645 done
4646 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4647 if test $ac_header_dirent = dirent.h; then
4648   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4649 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4650 if test "${ac_cv_search_opendir+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   ac_func_search_save_LIBS=$LIBS
4654 cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h.  */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h.  */
4660
4661 /* Override any GCC internal prototype to avoid an error.
4662    Use char because int might match the return type of a GCC
4663    builtin and then its argument prototype would still apply.  */
4664 #ifdef __cplusplus
4665 extern "C"
4666 #endif
4667 char opendir ();
4668 int
4669 main ()
4670 {
4671 return opendir ();
4672   ;
4673   return 0;
4674 }
4675 _ACEOF
4676 for ac_lib in '' dir; do
4677   if test -z "$ac_lib"; then
4678     ac_res="none required"
4679   else
4680     ac_res=-l$ac_lib
4681     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4682   fi
4683   rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (ac_try="$ac_link"
4685 case "(($ac_try" in
4686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687   *) ac_try_echo=$ac_try;;
4688 esac
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690   (eval "$ac_link") 2>conftest.er1
4691   ac_status=$?
4692   grep -v '^ *+' conftest.er1 >conftest.err
4693   rm -f conftest.er1
4694   cat conftest.err >&5
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); } && {
4697          test -z "$ac_c_werror_flag" ||
4698          test ! -s conftest.err
4699        } && test -s conftest$ac_exeext &&
4700        $as_test_x conftest$ac_exeext; then
4701   ac_cv_search_opendir=$ac_res
4702 else
4703   echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706
4707 fi
4708
4709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4710       conftest$ac_exeext
4711   if test "${ac_cv_search_opendir+set}" = set; then
4712   break
4713 fi
4714 done
4715 if test "${ac_cv_search_opendir+set}" = set; then
4716   :
4717 else
4718   ac_cv_search_opendir=no
4719 fi
4720 rm conftest.$ac_ext
4721 LIBS=$ac_func_search_save_LIBS
4722 fi
4723 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4724 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4725 ac_res=$ac_cv_search_opendir
4726 if test "$ac_res" != no; then
4727   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4728
4729 fi
4730
4731 else
4732   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4733 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4734 if test "${ac_cv_search_opendir+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   ac_func_search_save_LIBS=$LIBS
4738 cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h.  */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h.  */
4744
4745 /* Override any GCC internal prototype to avoid an error.
4746    Use char because int might match the return type of a GCC
4747    builtin and then its argument prototype would still apply.  */
4748 #ifdef __cplusplus
4749 extern "C"
4750 #endif
4751 char opendir ();
4752 int
4753 main ()
4754 {
4755 return opendir ();
4756   ;
4757   return 0;
4758 }
4759 _ACEOF
4760 for ac_lib in '' x; do
4761   if test -z "$ac_lib"; then
4762     ac_res="none required"
4763   else
4764     ac_res=-l$ac_lib
4765     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4766   fi
4767   rm -f conftest.$ac_objext conftest$ac_exeext
4768 if { (ac_try="$ac_link"
4769 case "(($ac_try" in
4770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771   *) ac_try_echo=$ac_try;;
4772 esac
4773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4774   (eval "$ac_link") 2>conftest.er1
4775   ac_status=$?
4776   grep -v '^ *+' conftest.er1 >conftest.err
4777   rm -f conftest.er1
4778   cat conftest.err >&5
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } && {
4781          test -z "$ac_c_werror_flag" ||
4782          test ! -s conftest.err
4783        } && test -s conftest$ac_exeext &&
4784        $as_test_x conftest$ac_exeext; then
4785   ac_cv_search_opendir=$ac_res
4786 else
4787   echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790
4791 fi
4792
4793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4794       conftest$ac_exeext
4795   if test "${ac_cv_search_opendir+set}" = set; then
4796   break
4797 fi
4798 done
4799 if test "${ac_cv_search_opendir+set}" = set; then
4800   :
4801 else
4802   ac_cv_search_opendir=no
4803 fi
4804 rm conftest.$ac_ext
4805 LIBS=$ac_func_search_save_LIBS
4806 fi
4807 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4808 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4809 ac_res=$ac_cv_search_opendir
4810 if test "$ac_res" != no; then
4811   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4812
4813 fi
4814
4815 fi
4816
4817
4818 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4819 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4820 if test "${ac_cv_path_GREP+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   # Extract the first word of "grep ggrep" to use in msg output
4824 if test -z "$GREP"; then
4825 set dummy grep ggrep; ac_prog_name=$2
4826 if test "${ac_cv_path_GREP+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   ac_path_GREP_found=false
4830 # Loop through the user's path and test for each of PROGNAME-LIST
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4833 do
4834   IFS=$as_save_IFS
4835   test -z "$as_dir" && as_dir=.
4836   for ac_prog in grep ggrep; do
4837   for ac_exec_ext in '' $ac_executable_extensions; do
4838     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4839     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4840     # Check for GNU ac_path_GREP and select it if it is found.
4841   # Check for GNU $ac_path_GREP
4842 case `"$ac_path_GREP" --version 2>&1` in
4843 *GNU*)
4844   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4845 *)
4846   ac_count=0
4847   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4848   while :
4849   do
4850     cat "conftest.in" "conftest.in" >"conftest.tmp"
4851     mv "conftest.tmp" "conftest.in"
4852     cp "conftest.in" "conftest.nl"
4853     echo 'GREP' >> "conftest.nl"
4854     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4855     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4856     ac_count=`expr $ac_count + 1`
4857     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4858       # Best one so far, save it but keep looking for a better one
4859       ac_cv_path_GREP="$ac_path_GREP"
4860       ac_path_GREP_max=$ac_count
4861     fi
4862     # 10*(2^10) chars as input seems more than enough
4863     test $ac_count -gt 10 && break
4864   done
4865   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4866 esac
4867
4868
4869     $ac_path_GREP_found && break 3
4870   done
4871 done
4872
4873 done
4874 IFS=$as_save_IFS
4875
4876
4877 fi
4878
4879 GREP="$ac_cv_path_GREP"
4880 if test -z "$GREP"; then
4881   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4882 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4883    { (exit 1); exit 1; }; }
4884 fi
4885
4886 else
4887   ac_cv_path_GREP=$GREP
4888 fi
4889
4890
4891 fi
4892 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4893 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4894  GREP="$ac_cv_path_GREP"
4895
4896
4897 { echo "$as_me:$LINENO: checking for egrep" >&5
4898 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4899 if test "${ac_cv_path_EGREP+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4903    then ac_cv_path_EGREP="$GREP -E"
4904    else
4905      # Extract the first word of "egrep" to use in msg output
4906 if test -z "$EGREP"; then
4907 set dummy egrep; ac_prog_name=$2
4908 if test "${ac_cv_path_EGREP+set}" = set; then
4909   echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911   ac_path_EGREP_found=false
4912 # Loop through the user's path and test for each of PROGNAME-LIST
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4915 do
4916   IFS=$as_save_IFS
4917   test -z "$as_dir" && as_dir=.
4918   for ac_prog in egrep; do
4919   for ac_exec_ext in '' $ac_executable_extensions; do
4920     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4921     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4922     # Check for GNU ac_path_EGREP and select it if it is found.
4923   # Check for GNU $ac_path_EGREP
4924 case `"$ac_path_EGREP" --version 2>&1` in
4925 *GNU*)
4926   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4927 *)
4928   ac_count=0
4929   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4930   while :
4931   do
4932     cat "conftest.in" "conftest.in" >"conftest.tmp"
4933     mv "conftest.tmp" "conftest.in"
4934     cp "conftest.in" "conftest.nl"
4935     echo 'EGREP' >> "conftest.nl"
4936     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4937     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4938     ac_count=`expr $ac_count + 1`
4939     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4940       # Best one so far, save it but keep looking for a better one
4941       ac_cv_path_EGREP="$ac_path_EGREP"
4942       ac_path_EGREP_max=$ac_count
4943     fi
4944     # 10*(2^10) chars as input seems more than enough
4945     test $ac_count -gt 10 && break
4946   done
4947   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4948 esac
4949
4950
4951     $ac_path_EGREP_found && break 3
4952   done
4953 done
4954
4955 done
4956 IFS=$as_save_IFS
4957
4958
4959 fi
4960
4961 EGREP="$ac_cv_path_EGREP"
4962 if test -z "$EGREP"; then
4963   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4964 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4965    { (exit 1); exit 1; }; }
4966 fi
4967
4968 else
4969   ac_cv_path_EGREP=$EGREP
4970 fi
4971
4972
4973    fi
4974 fi
4975 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4976 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4977  EGREP="$ac_cv_path_EGREP"
4978
4979
4980 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4982 if test "${ac_cv_header_stdc+set}" = set; then
4983   echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985   cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h.  */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h.  */
4991 #include <stdlib.h>
4992 #include <stdarg.h>
4993 #include <string.h>
4994 #include <float.h>
4995
4996 int
4997 main ()
4998 {
4999
5000   ;
5001   return 0;
5002 }
5003 _ACEOF
5004 rm -f conftest.$ac_objext
5005 if { (ac_try="$ac_compile"
5006 case "(($ac_try" in
5007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008   *) ac_try_echo=$ac_try;;
5009 esac
5010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011   (eval "$ac_compile") 2>conftest.er1
5012   ac_status=$?
5013   grep -v '^ *+' conftest.er1 >conftest.err
5014   rm -f conftest.er1
5015   cat conftest.err >&5
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } && {
5018          test -z "$ac_c_werror_flag" ||
5019          test ! -s conftest.err
5020        } && test -s conftest.$ac_objext; then
5021   ac_cv_header_stdc=yes
5022 else
5023   echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026         ac_cv_header_stdc=no
5027 fi
5028
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030
5031 if test $ac_cv_header_stdc = yes; then
5032   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5033   cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 #include <string.h>
5040
5041 _ACEOF
5042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043   $EGREP "memchr" >/dev/null 2>&1; then
5044   :
5045 else
5046   ac_cv_header_stdc=no
5047 fi
5048 rm -f conftest*
5049
5050 fi
5051
5052 if test $ac_cv_header_stdc = yes; then
5053   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5054   cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 #include <stdlib.h>
5061
5062 _ACEOF
5063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5064   $EGREP "free" >/dev/null 2>&1; then
5065   :
5066 else
5067   ac_cv_header_stdc=no
5068 fi
5069 rm -f conftest*
5070
5071 fi
5072
5073 if test $ac_cv_header_stdc = yes; then
5074   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5075   if test "$cross_compiling" = yes; then
5076   :
5077 else
5078   cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h.  */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h.  */
5084 #include <ctype.h>
5085 #include <stdlib.h>
5086 #if ((' ' & 0x0FF) == 0x020)
5087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5089 #else
5090 # define ISLOWER(c) \
5091                    (('a' <= (c) && (c) <= 'i') \
5092                      || ('j' <= (c) && (c) <= 'r') \
5093                      || ('s' <= (c) && (c) <= 'z'))
5094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5095 #endif
5096
5097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5098 int
5099 main ()
5100 {
5101   int i;
5102   for (i = 0; i < 256; i++)
5103     if (XOR (islower (i), ISLOWER (i))
5104         || toupper (i) != TOUPPER (i))
5105       return 2;
5106   return 0;
5107 }
5108 _ACEOF
5109 rm -f conftest$ac_exeext
5110 if { (ac_try="$ac_link"
5111 case "(($ac_try" in
5112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113   *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116   (eval "$ac_link") 2>&5
5117   ac_status=$?
5118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5120   { (case "(($ac_try" in
5121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122   *) ac_try_echo=$ac_try;;
5123 esac
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125   (eval "$ac_try") 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); }; }; then
5129   :
5130 else
5131   echo "$as_me: program exited with status $ac_status" >&5
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 ( exit $ac_status )
5136 ac_cv_header_stdc=no
5137 fi
5138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5139 fi
5140
5141
5142 fi
5143 fi
5144 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5145 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5146 if test $ac_cv_header_stdc = yes; then
5147
5148 cat >>confdefs.h <<\_ACEOF
5149 #define STDC_HEADERS 1
5150 _ACEOF
5151
5152 fi
5153
5154  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5165                   inttypes.h stdint.h unistd.h
5166 do
5167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5171   echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173   cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h.  */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h.  */
5179 $ac_includes_default
5180
5181 #include <$ac_header>
5182 _ACEOF
5183 rm -f conftest.$ac_objext
5184 if { (ac_try="$ac_compile"
5185 case "(($ac_try" in
5186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187   *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190   (eval "$ac_compile") 2>conftest.er1
5191   ac_status=$?
5192   grep -v '^ *+' conftest.er1 >conftest.err
5193   rm -f conftest.er1
5194   cat conftest.err >&5
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); } && {
5197          test -z "$ac_c_werror_flag" ||
5198          test ! -s conftest.err
5199        } && test -s conftest.$ac_objext; then
5200   eval "$as_ac_Header=yes"
5201 else
5202   echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205         eval "$as_ac_Header=no"
5206 fi
5207
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 fi
5210 ac_res=`eval echo '${'$as_ac_Header'}'`
5211                { echo "$as_me:$LINENO: result: $ac_res" >&5
5212 echo "${ECHO_T}$ac_res" >&6; }
5213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5214   cat >>confdefs.h <<_ACEOF
5215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5216 _ACEOF
5217
5218 fi
5219
5220 done
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238 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
5239 do
5240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5242   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 fi
5247 ac_res=`eval echo '${'$as_ac_Header'}'`
5248                { echo "$as_me:$LINENO: result: $ac_res" >&5
5249 echo "${ECHO_T}$ac_res" >&6; }
5250 else
5251   # Is the header compilable?
5252 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5254 cat >conftest.$ac_ext <<_ACEOF
5255 /* confdefs.h.  */
5256 _ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h.  */
5260 $ac_includes_default
5261 #include <$ac_header>
5262 _ACEOF
5263 rm -f conftest.$ac_objext
5264 if { (ac_try="$ac_compile"
5265 case "(($ac_try" in
5266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267   *) ac_try_echo=$ac_try;;
5268 esac
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270   (eval "$ac_compile") 2>conftest.er1
5271   ac_status=$?
5272   grep -v '^ *+' conftest.er1 >conftest.err
5273   rm -f conftest.er1
5274   cat conftest.err >&5
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); } && {
5277          test -z "$ac_c_werror_flag" ||
5278          test ! -s conftest.err
5279        } && test -s conftest.$ac_objext; then
5280   ac_header_compiler=yes
5281 else
5282   echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5284
5285         ac_header_compiler=no
5286 fi
5287
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5290 echo "${ECHO_T}$ac_header_compiler" >&6; }
5291
5292 # Is the header present?
5293 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5295 cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h.  */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h.  */
5301 #include <$ac_header>
5302 _ACEOF
5303 if { (ac_try="$ac_cpp conftest.$ac_ext"
5304 case "(($ac_try" in
5305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306   *) ac_try_echo=$ac_try;;
5307 esac
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5310   ac_status=$?
5311   grep -v '^ *+' conftest.er1 >conftest.err
5312   rm -f conftest.er1
5313   cat conftest.err >&5
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); } >/dev/null && {
5316          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5317          test ! -s conftest.err
5318        }; then
5319   ac_header_preproc=yes
5320 else
5321   echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5323
5324   ac_header_preproc=no
5325 fi
5326
5327 rm -f conftest.err conftest.$ac_ext
5328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5329 echo "${ECHO_T}$ac_header_preproc" >&6; }
5330
5331 # So?  What about this header?
5332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5333   yes:no: )
5334     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5338     ac_header_preproc=yes
5339     ;;
5340   no:yes:* )
5341     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5343     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5344 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5345     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5347     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5348 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5351     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5353
5354     ;;
5355 esac
5356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5359   echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361   eval "$as_ac_Header=\$ac_header_preproc"
5362 fi
5363 ac_res=`eval echo '${'$as_ac_Header'}'`
5364                { echo "$as_me:$LINENO: result: $ac_res" >&5
5365 echo "${ECHO_T}$ac_res" >&6; }
5366
5367 fi
5368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5369   cat >>confdefs.h <<_ACEOF
5370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5371 _ACEOF
5372
5373 fi
5374
5375 done
5376
5377
5378 cat >>confdefs.h <<_ACEOF
5379 #define PACKAGE "$PACKAGE"
5380 _ACEOF
5381
5382 cat >>confdefs.h <<_ACEOF
5383 #define VERSION "$VERSION"
5384 _ACEOF
5385
5386
5387
5388
5389
5390
5391
5392  { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5393 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5394 if test "${ac_cv_c_const+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h.  */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h.  */
5403
5404 int
5405 main ()
5406 {
5407 /* FIXME: Include the comments suggested by Paul. */
5408 #ifndef __cplusplus
5409   /* Ultrix mips cc rejects this.  */
5410   typedef int charset[2];
5411   const charset cs;
5412   /* SunOS 4.1.1 cc rejects this.  */
5413   char const *const *pcpcc;
5414   char **ppc;
5415   /* NEC SVR4.0.2 mips cc rejects this.  */
5416   struct point {int x, y;};
5417   static struct point const zero = {0,0};
5418   /* AIX XL C 1.02.0.0 rejects this.
5419      It does not let you subtract one const X* pointer from another in
5420      an arm of an if-expression whose if-part is not a constant
5421      expression */
5422   const char *g = "string";
5423   pcpcc = &g + (g ? g-g : 0);
5424   /* HPUX 7.0 cc rejects these. */
5425   ++pcpcc;
5426   ppc = (char**) pcpcc;
5427   pcpcc = (char const *const *) ppc;
5428   { /* SCO 3.2v4 cc rejects this.  */
5429     char *t;
5430     char const *s = 0 ? (char *) 0 : (char const *) 0;
5431
5432     *t++ = 0;
5433     if (s) return 0;
5434   }
5435   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5436     int x[] = {25, 17};
5437     const int *foo = &x[0];
5438     ++foo;
5439   }
5440   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5441     typedef const int *iptr;
5442     iptr p = 0;
5443     ++p;
5444   }
5445   { /* AIX XL C 1.02.0.0 rejects this saying
5446        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5447     struct s { int j; const int *ap[3]; };
5448     struct s *b; b->j = 5;
5449   }
5450   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5451     const int foo = 10;
5452     if (!foo) return 0;
5453   }
5454   return !cs[0] && !zero.x;
5455 #endif
5456
5457   ;
5458   return 0;
5459 }
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5463 case "(($ac_try" in
5464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465   *) ac_try_echo=$ac_try;;
5466 esac
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468   (eval "$ac_compile") 2>conftest.er1
5469   ac_status=$?
5470   grep -v '^ *+' conftest.er1 >conftest.err
5471   rm -f conftest.er1
5472   cat conftest.err >&5
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); } && {
5475          test -z "$ac_c_werror_flag" ||
5476          test ! -s conftest.err
5477        } && test -s conftest.$ac_objext; then
5478   ac_cv_c_const=yes
5479 else
5480   echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483         ac_cv_c_const=no
5484 fi
5485
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 fi
5488 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5489 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5490 if test $ac_cv_c_const = no; then
5491
5492 cat >>confdefs.h <<\_ACEOF
5493 #define const
5494 _ACEOF
5495
5496 fi
5497
5498  { echo "$as_me:$LINENO: checking for inline" >&5
5499 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5500 if test "${ac_cv_c_inline+set}" = set; then
5501   echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503   ac_cv_c_inline=no
5504 for ac_kw in inline __inline__ __inline; do
5505   cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h.  */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h.  */
5511 #ifndef __cplusplus
5512 typedef int foo_t;
5513 static $ac_kw foo_t static_foo () {return 0; }
5514 $ac_kw foo_t foo () {return 0; }
5515 #endif
5516
5517 _ACEOF
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5520 case "(($ac_try" in
5521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522   *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525   (eval "$ac_compile") 2>conftest.er1
5526   ac_status=$?
5527   grep -v '^ *+' conftest.er1 >conftest.err
5528   rm -f conftest.er1
5529   cat conftest.err >&5
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } && {
5532          test -z "$ac_c_werror_flag" ||
5533          test ! -s conftest.err
5534        } && test -s conftest.$ac_objext; then
5535   ac_cv_c_inline=$ac_kw
5536 else
5537   echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540
5541 fi
5542
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544   test "$ac_cv_c_inline" != no && break
5545 done
5546
5547 fi
5548 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5549 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5550
5551
5552 case $ac_cv_c_inline in
5553   inline | yes) ;;
5554   *)
5555     case $ac_cv_c_inline in
5556       no) ac_val=;;
5557       *) ac_val=$ac_cv_c_inline;;
5558     esac
5559     cat >>confdefs.h <<_ACEOF
5560 #ifndef __cplusplus
5561 #define inline $ac_val
5562 #endif
5563 _ACEOF
5564     ;;
5565 esac
5566
5567  { echo "$as_me:$LINENO: checking for off_t" >&5
5568 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5569 if test "${ac_cv_type_off_t+set}" = set; then
5570   echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572   cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h.  */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h.  */
5578 $ac_includes_default
5579 typedef off_t ac__type_new_;
5580 int
5581 main ()
5582 {
5583 if ((ac__type_new_ *) 0)
5584   return 0;
5585 if (sizeof (ac__type_new_))
5586   return 0;
5587   ;
5588   return 0;
5589 }
5590 _ACEOF
5591 rm -f conftest.$ac_objext
5592 if { (ac_try="$ac_compile"
5593 case "(($ac_try" in
5594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595   *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598   (eval "$ac_compile") 2>conftest.er1
5599   ac_status=$?
5600   grep -v '^ *+' conftest.er1 >conftest.err
5601   rm -f conftest.er1
5602   cat conftest.err >&5
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } && {
5605          test -z "$ac_c_werror_flag" ||
5606          test ! -s conftest.err
5607        } && test -s conftest.$ac_objext; then
5608   ac_cv_type_off_t=yes
5609 else
5610   echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613         ac_cv_type_off_t=no
5614 fi
5615
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617 fi
5618 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5619 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5620 if test $ac_cv_type_off_t = yes; then
5621   :
5622 else
5623
5624 cat >>confdefs.h <<_ACEOF
5625 #define off_t long int
5626 _ACEOF
5627
5628 fi
5629
5630  { echo "$as_me:$LINENO: checking for size_t" >&5
5631 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5632 if test "${ac_cv_type_size_t+set}" = set; then
5633   echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635   cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h.  */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h.  */
5641 $ac_includes_default
5642 typedef size_t ac__type_new_;
5643 int
5644 main ()
5645 {
5646 if ((ac__type_new_ *) 0)
5647   return 0;
5648 if (sizeof (ac__type_new_))
5649   return 0;
5650   ;
5651   return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5656 case "(($ac_try" in
5657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658   *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661   (eval "$ac_compile") 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } && {
5668          test -z "$ac_c_werror_flag" ||
5669          test ! -s conftest.err
5670        } && test -s conftest.$ac_objext; then
5671   ac_cv_type_size_t=yes
5672 else
5673   echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676         ac_cv_type_size_t=no
5677 fi
5678
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 fi
5681 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5682 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5683 if test $ac_cv_type_size_t = yes; then
5684   :
5685 else
5686
5687 cat >>confdefs.h <<_ACEOF
5688 #define size_t unsigned int
5689 _ACEOF
5690
5691 fi
5692
5693  { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5694 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5695 if test "${ac_cv_struct_tm+set}" = set; then
5696   echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698   cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h.  */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h.  */
5704 #include <sys/types.h>
5705 #include <time.h>
5706
5707 int
5708 main ()
5709 {
5710 struct tm tm;
5711                                      int *p = &tm.tm_sec;
5712                                      return !p;
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5719 case "(($ac_try" in
5720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721   *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724   (eval "$ac_compile") 2>conftest.er1
5725   ac_status=$?
5726   grep -v '^ *+' conftest.er1 >conftest.err
5727   rm -f conftest.er1
5728   cat conftest.err >&5
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); } && {
5731          test -z "$ac_c_werror_flag" ||
5732          test ! -s conftest.err
5733        } && test -s conftest.$ac_objext; then
5734   ac_cv_struct_tm=time.h
5735 else
5736   echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5738
5739         ac_cv_struct_tm=sys/time.h
5740 fi
5741
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 fi
5744 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5745 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5746 if test $ac_cv_struct_tm = sys/time.h; then
5747
5748 cat >>confdefs.h <<\_ACEOF
5749 #define TM_IN_SYS_TIME 1
5750 _ACEOF
5751
5752 fi
5753
5754  { echo "$as_me:$LINENO: checking for boolean" >&5
5755 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5756 if test "${ac_cv_type_boolean+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   cat >conftest.$ac_ext <<_ACEOF
5760 /* confdefs.h.  */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h.  */
5765 $ac_includes_default
5766 typedef boolean ac__type_new_;
5767 int
5768 main ()
5769 {
5770 if ((ac__type_new_ *) 0)
5771   return 0;
5772 if (sizeof (ac__type_new_))
5773   return 0;
5774   ;
5775   return 0;
5776 }
5777 _ACEOF
5778 rm -f conftest.$ac_objext
5779 if { (ac_try="$ac_compile"
5780 case "(($ac_try" in
5781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782   *) ac_try_echo=$ac_try;;
5783 esac
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785   (eval "$ac_compile") 2>conftest.er1
5786   ac_status=$?
5787   grep -v '^ *+' conftest.er1 >conftest.err
5788   rm -f conftest.er1
5789   cat conftest.err >&5
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); } && {
5792          test -z "$ac_c_werror_flag" ||
5793          test ! -s conftest.err
5794        } && test -s conftest.$ac_objext; then
5795   ac_cv_type_boolean=yes
5796 else
5797   echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5799
5800         ac_cv_type_boolean=no
5801 fi
5802
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 fi
5805 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5806 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5807 if test $ac_cv_type_boolean = yes; then
5808   :
5809 else
5810
5811 cat >>confdefs.h <<_ACEOF
5812 #define boolean int
5813 _ACEOF
5814
5815 fi
5816  #needed for jpeglib
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
5828 do
5829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h.  */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h.  */
5841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5843 #define $ac_func innocuous_$ac_func
5844
5845 /* System header to define __stub macros and hopefully few prototypes,
5846     which can conflict with char $ac_func (); below.
5847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5848     <limits.h> exists even on freestanding compilers.  */
5849
5850 #ifdef __STDC__
5851 # include <limits.h>
5852 #else
5853 # include <assert.h>
5854 #endif
5855
5856 #undef $ac_func
5857
5858 /* Override any GCC internal prototype to avoid an error.
5859    Use char because int might match the return type of a GCC
5860    builtin and then its argument prototype would still apply.  */
5861 #ifdef __cplusplus
5862 extern "C"
5863 #endif
5864 char $ac_func ();
5865 /* The GNU C library defines this for functions which it implements
5866     to always fail with ENOSYS.  Some functions are actually named
5867     something starting with __ and the normal name is an alias.  */
5868 #if defined __stub_$ac_func || defined __stub___$ac_func
5869 choke me
5870 #endif
5871
5872 int
5873 main ()
5874 {
5875 return $ac_func ();
5876   ;
5877   return 0;
5878 }
5879 _ACEOF
5880 rm -f conftest.$ac_objext conftest$ac_exeext
5881 if { (ac_try="$ac_link"
5882 case "(($ac_try" in
5883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884   *) ac_try_echo=$ac_try;;
5885 esac
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887   (eval "$ac_link") 2>conftest.er1
5888   ac_status=$?
5889   grep -v '^ *+' conftest.er1 >conftest.err
5890   rm -f conftest.er1
5891   cat conftest.err >&5
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); } && {
5894          test -z "$ac_c_werror_flag" ||
5895          test ! -s conftest.err
5896        } && test -s conftest$ac_exeext &&
5897        $as_test_x conftest$ac_exeext; then
5898   eval "$as_ac_var=yes"
5899 else
5900   echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903         eval "$as_ac_var=no"
5904 fi
5905
5906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5907       conftest$ac_exeext conftest.$ac_ext
5908 fi
5909 ac_res=`eval echo '${'$as_ac_var'}'`
5910                { echo "$as_me:$LINENO: result: $ac_res" >&5
5911 echo "${ECHO_T}$ac_res" >&6; }
5912 if test `eval echo '${'$as_ac_var'}'` = yes; then
5913   cat >>confdefs.h <<_ACEOF
5914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5915 _ACEOF
5916
5917 fi
5918 done
5919
5920
5921 { echo "$as_me:$LINENO: checking for signed" >&5
5922 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5923 if test "${ac_cv_type_signed+set}" = set; then
5924   echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926   cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h.  */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h.  */
5932 $ac_includes_default
5933 typedef signed ac__type_new_;
5934 int
5935 main ()
5936 {
5937 if ((ac__type_new_ *) 0)
5938   return 0;
5939 if (sizeof (ac__type_new_))
5940   return 0;
5941   ;
5942   return 0;
5943 }
5944 _ACEOF
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5947 case "(($ac_try" in
5948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949   *) ac_try_echo=$ac_try;;
5950 esac
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952   (eval "$ac_compile") 2>conftest.er1
5953   ac_status=$?
5954   grep -v '^ *+' conftest.er1 >conftest.err
5955   rm -f conftest.er1
5956   cat conftest.err >&5
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); } && {
5959          test -z "$ac_c_werror_flag" ||
5960          test ! -s conftest.err
5961        } && test -s conftest.$ac_objext; then
5962   ac_cv_type_signed=yes
5963 else
5964   echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5966
5967         ac_cv_type_signed=no
5968 fi
5969
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 fi
5972 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
5973 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
5974
5975 # The cast to long int works around a bug in the HP C Compiler
5976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5978 # This bug is HP SR number 8606223364.
5979 { echo "$as_me:$LINENO: checking size of signed" >&5
5980 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
5981 if test "${ac_cv_sizeof_signed+set}" = set; then
5982   echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984   if test "$cross_compiling" = yes; then
5985   # Depending upon the size, compute the lo and hi bounds.
5986 cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992 $ac_includes_default
5993    typedef signed ac__type_sizeof_;
5994 int
5995 main ()
5996 {
5997 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5998 test_array [0] = 0
5999
6000   ;
6001   return 0;
6002 }
6003 _ACEOF
6004 rm -f conftest.$ac_objext
6005 if { (ac_try="$ac_compile"
6006 case "(($ac_try" in
6007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008   *) ac_try_echo=$ac_try;;
6009 esac
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011   (eval "$ac_compile") 2>conftest.er1
6012   ac_status=$?
6013   grep -v '^ *+' conftest.er1 >conftest.err
6014   rm -f conftest.er1
6015   cat conftest.err >&5
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } && {
6018          test -z "$ac_c_werror_flag" ||
6019          test ! -s conftest.err
6020        } && test -s conftest.$ac_objext; then
6021   ac_lo=0 ac_mid=0
6022   while :; do
6023     cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h.  */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h.  */
6029 $ac_includes_default
6030    typedef signed ac__type_sizeof_;
6031 int
6032 main ()
6033 {
6034 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6035 test_array [0] = 0
6036
6037   ;
6038   return 0;
6039 }
6040 _ACEOF
6041 rm -f conftest.$ac_objext
6042 if { (ac_try="$ac_compile"
6043 case "(($ac_try" in
6044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045   *) ac_try_echo=$ac_try;;
6046 esac
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048   (eval "$ac_compile") 2>conftest.er1
6049   ac_status=$?
6050   grep -v '^ *+' conftest.er1 >conftest.err
6051   rm -f conftest.er1
6052   cat conftest.err >&5
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); } && {
6055          test -z "$ac_c_werror_flag" ||
6056          test ! -s conftest.err
6057        } && test -s conftest.$ac_objext; then
6058   ac_hi=$ac_mid; break
6059 else
6060   echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063         ac_lo=`expr $ac_mid + 1`
6064                         if test $ac_lo -le $ac_mid; then
6065                           ac_lo= ac_hi=
6066                           break
6067                         fi
6068                         ac_mid=`expr 2 '*' $ac_mid + 1`
6069 fi
6070
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072   done
6073 else
6074   echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077         cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h.  */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h.  */
6083 $ac_includes_default
6084    typedef signed ac__type_sizeof_;
6085 int
6086 main ()
6087 {
6088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6089 test_array [0] = 0
6090
6091   ;
6092   return 0;
6093 }
6094 _ACEOF
6095 rm -f conftest.$ac_objext
6096 if { (ac_try="$ac_compile"
6097 case "(($ac_try" in
6098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099   *) ac_try_echo=$ac_try;;
6100 esac
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102   (eval "$ac_compile") 2>conftest.er1
6103   ac_status=$?
6104   grep -v '^ *+' conftest.er1 >conftest.err
6105   rm -f conftest.er1
6106   cat conftest.err >&5
6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); } && {
6109          test -z "$ac_c_werror_flag" ||
6110          test ! -s conftest.err
6111        } && test -s conftest.$ac_objext; then
6112   ac_hi=-1 ac_mid=-1
6113   while :; do
6114     cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h.  */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h.  */
6120 $ac_includes_default
6121    typedef signed ac__type_sizeof_;
6122 int
6123 main ()
6124 {
6125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6126 test_array [0] = 0
6127
6128   ;
6129   return 0;
6130 }
6131 _ACEOF
6132 rm -f conftest.$ac_objext
6133 if { (ac_try="$ac_compile"
6134 case "(($ac_try" in
6135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136   *) ac_try_echo=$ac_try;;
6137 esac
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139   (eval "$ac_compile") 2>conftest.er1
6140   ac_status=$?
6141   grep -v '^ *+' conftest.er1 >conftest.err
6142   rm -f conftest.er1
6143   cat conftest.err >&5
6144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); } && {
6146          test -z "$ac_c_werror_flag" ||
6147          test ! -s conftest.err
6148        } && test -s conftest.$ac_objext; then
6149   ac_lo=$ac_mid; break
6150 else
6151   echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154         ac_hi=`expr '(' $ac_mid ')' - 1`
6155                         if test $ac_mid -le $ac_hi; then
6156                           ac_lo= ac_hi=
6157                           break
6158                         fi
6159                         ac_mid=`expr 2 '*' $ac_mid`
6160 fi
6161
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163   done
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168         ac_lo= ac_hi=
6169 fi
6170
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 fi
6173
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 # Binary search between lo and hi bounds.
6176 while test "x$ac_lo" != "x$ac_hi"; do
6177   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6178   cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h.  */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h.  */
6184 $ac_includes_default
6185    typedef signed ac__type_sizeof_;
6186 int
6187 main ()
6188 {
6189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6190 test_array [0] = 0
6191
6192   ;
6193   return 0;
6194 }
6195 _ACEOF
6196 rm -f conftest.$ac_objext
6197 if { (ac_try="$ac_compile"
6198 case "(($ac_try" in
6199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200   *) ac_try_echo=$ac_try;;
6201 esac
6202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203   (eval "$ac_compile") 2>conftest.er1
6204   ac_status=$?
6205   grep -v '^ *+' conftest.er1 >conftest.err
6206   rm -f conftest.er1
6207   cat conftest.err >&5
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); } && {
6210          test -z "$ac_c_werror_flag" ||
6211          test ! -s conftest.err
6212        } && test -s conftest.$ac_objext; then
6213   ac_hi=$ac_mid
6214 else
6215   echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6217
6218         ac_lo=`expr '(' $ac_mid ')' + 1`
6219 fi
6220
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 done
6223 case $ac_lo in
6224 ?*) ac_cv_sizeof_signed=$ac_lo;;
6225 '') if test "$ac_cv_type_signed" = yes; then
6226      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6227 See \`config.log' for more details." >&5
6228 echo "$as_me: error: cannot compute sizeof (signed)
6229 See \`config.log' for more details." >&2;}
6230    { (exit 77); exit 77; }; }
6231    else
6232      ac_cv_sizeof_signed=0
6233    fi ;;
6234 esac
6235 else
6236   cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h.  */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h.  */
6242 $ac_includes_default
6243    typedef signed ac__type_sizeof_;
6244 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6245 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6246 #include <stdio.h>
6247 #include <stdlib.h>
6248 int
6249 main ()
6250 {
6251
6252   FILE *f = fopen ("conftest.val", "w");
6253   if (! f)
6254     return 1;
6255   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6256     {
6257       long int i = longval ();
6258       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6259         return 1;
6260       fprintf (f, "%ld\n", i);
6261     }
6262   else
6263     {
6264       unsigned long int i = ulongval ();
6265       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6266         return 1;
6267       fprintf (f, "%lu\n", i);
6268     }
6269   return ferror (f) || fclose (f) != 0;
6270
6271   ;
6272   return 0;
6273 }
6274 _ACEOF
6275 rm -f conftest$ac_exeext
6276 if { (ac_try="$ac_link"
6277 case "(($ac_try" in
6278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279   *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282   (eval "$ac_link") 2>&5
6283   ac_status=$?
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6286   { (case "(($ac_try" in
6287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288   *) ac_try_echo=$ac_try;;
6289 esac
6290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6291   (eval "$ac_try") 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); }; }; then
6295   ac_cv_sizeof_signed=`cat conftest.val`
6296 else
6297   echo "$as_me: program exited with status $ac_status" >&5
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6300
6301 ( exit $ac_status )
6302 if test "$ac_cv_type_signed" = yes; then
6303      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6304 See \`config.log' for more details." >&5
6305 echo "$as_me: error: cannot compute sizeof (signed)
6306 See \`config.log' for more details." >&2;}
6307    { (exit 77); exit 77; }; }
6308    else
6309      ac_cv_sizeof_signed=0
6310    fi
6311 fi
6312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6313 fi
6314 rm -f conftest.val
6315 fi
6316 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
6317 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
6318
6319
6320
6321 cat >>confdefs.h <<_ACEOF
6322 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
6323 _ACEOF
6324
6325
6326 { echo "$as_me:$LINENO: checking for unsigned" >&5
6327 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
6328 if test "${ac_cv_type_unsigned+set}" = set; then
6329   echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331   cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h.  */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h.  */
6337 $ac_includes_default
6338 typedef unsigned ac__type_new_;
6339 int
6340 main ()
6341 {
6342 if ((ac__type_new_ *) 0)
6343   return 0;
6344 if (sizeof (ac__type_new_))
6345   return 0;
6346   ;
6347   return 0;
6348 }
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (ac_try="$ac_compile"
6352 case "(($ac_try" in
6353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354   *) ac_try_echo=$ac_try;;
6355 esac
6356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357   (eval "$ac_compile") 2>conftest.er1
6358   ac_status=$?
6359   grep -v '^ *+' conftest.er1 >conftest.err
6360   rm -f conftest.er1
6361   cat conftest.err >&5
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } && {
6364          test -z "$ac_c_werror_flag" ||
6365          test ! -s conftest.err
6366        } && test -s conftest.$ac_objext; then
6367   ac_cv_type_unsigned=yes
6368 else
6369   echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6371
6372         ac_cv_type_unsigned=no
6373 fi
6374
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 fi
6377 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
6378 echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
6379
6380 # The cast to long int works around a bug in the HP C Compiler
6381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6383 # This bug is HP SR number 8606223364.
6384 { echo "$as_me:$LINENO: checking size of unsigned" >&5
6385 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
6386 if test "${ac_cv_sizeof_unsigned+set}" = set; then
6387   echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389   if test "$cross_compiling" = yes; then
6390   # Depending upon the size, compute the lo and hi bounds.
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h.  */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h.  */
6397 $ac_includes_default
6398    typedef unsigned ac__type_sizeof_;
6399 int
6400 main ()
6401 {
6402 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6403 test_array [0] = 0
6404
6405   ;
6406   return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (ac_try="$ac_compile"
6411 case "(($ac_try" in
6412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413   *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416   (eval "$ac_compile") 2>conftest.er1
6417   ac_status=$?
6418   grep -v '^ *+' conftest.er1 >conftest.err
6419   rm -f conftest.er1
6420   cat conftest.err >&5
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); } && {
6423          test -z "$ac_c_werror_flag" ||
6424          test ! -s conftest.err
6425        } && test -s conftest.$ac_objext; then
6426   ac_lo=0 ac_mid=0
6427   while :; do
6428     cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h.  */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h.  */
6434 $ac_includes_default
6435    typedef unsigned ac__type_sizeof_;
6436 int
6437 main ()
6438 {
6439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6440 test_array [0] = 0
6441
6442   ;
6443   return 0;
6444 }
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (ac_try="$ac_compile"
6448 case "(($ac_try" in
6449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450   *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453   (eval "$ac_compile") 2>conftest.er1
6454   ac_status=$?
6455   grep -v '^ *+' conftest.er1 >conftest.err
6456   rm -f conftest.er1
6457   cat conftest.err >&5
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); } && {
6460          test -z "$ac_c_werror_flag" ||
6461          test ! -s conftest.err
6462        } && test -s conftest.$ac_objext; then
6463   ac_hi=$ac_mid; break
6464 else
6465   echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6467
6468         ac_lo=`expr $ac_mid + 1`
6469                         if test $ac_lo -le $ac_mid; then
6470                           ac_lo= ac_hi=
6471                           break
6472                         fi
6473                         ac_mid=`expr 2 '*' $ac_mid + 1`
6474 fi
6475
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477   done
6478 else
6479   echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482         cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h.  */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h.  */
6488 $ac_includes_default
6489    typedef unsigned ac__type_sizeof_;
6490 int
6491 main ()
6492 {
6493 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6494 test_array [0] = 0
6495
6496   ;
6497   return 0;
6498 }
6499 _ACEOF
6500 rm -f conftest.$ac_objext
6501 if { (ac_try="$ac_compile"
6502 case "(($ac_try" in
6503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504   *) ac_try_echo=$ac_try;;
6505 esac
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507   (eval "$ac_compile") 2>conftest.er1
6508   ac_status=$?
6509   grep -v '^ *+' conftest.er1 >conftest.err
6510   rm -f conftest.er1
6511   cat conftest.err >&5
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); } && {
6514          test -z "$ac_c_werror_flag" ||
6515          test ! -s conftest.err
6516        } && test -s conftest.$ac_objext; then
6517   ac_hi=-1 ac_mid=-1
6518   while :; do
6519     cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h.  */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h.  */
6525 $ac_includes_default
6526    typedef unsigned ac__type_sizeof_;
6527 int
6528 main ()
6529 {
6530 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6531 test_array [0] = 0
6532
6533   ;
6534   return 0;
6535 }
6536 _ACEOF
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6539 case "(($ac_try" in
6540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541   *) ac_try_echo=$ac_try;;
6542 esac
6543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544   (eval "$ac_compile") 2>conftest.er1
6545   ac_status=$?
6546   grep -v '^ *+' conftest.er1 >conftest.err
6547   rm -f conftest.er1
6548   cat conftest.err >&5
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } && {
6551          test -z "$ac_c_werror_flag" ||
6552          test ! -s conftest.err
6553        } && test -s conftest.$ac_objext; then
6554   ac_lo=$ac_mid; break
6555 else
6556   echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6558
6559         ac_hi=`expr '(' $ac_mid ')' - 1`
6560                         if test $ac_mid -le $ac_hi; then
6561                           ac_lo= ac_hi=
6562                           break
6563                         fi
6564                         ac_mid=`expr 2 '*' $ac_mid`
6565 fi
6566
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568   done
6569 else
6570   echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6572
6573         ac_lo= ac_hi=
6574 fi
6575
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 fi
6578
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 # Binary search between lo and hi bounds.
6581 while test "x$ac_lo" != "x$ac_hi"; do
6582   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6583   cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589 $ac_includes_default
6590    typedef unsigned ac__type_sizeof_;
6591 int
6592 main ()
6593 {
6594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6595 test_array [0] = 0
6596
6597   ;
6598   return 0;
6599 }
6600 _ACEOF
6601 rm -f conftest.$ac_objext
6602 if { (ac_try="$ac_compile"
6603 case "(($ac_try" in
6604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6605   *) ac_try_echo=$ac_try;;
6606 esac
6607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6608   (eval "$ac_compile") 2>conftest.er1
6609   ac_status=$?
6610   grep -v '^ *+' conftest.er1 >conftest.err
6611   rm -f conftest.er1
6612   cat conftest.err >&5
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); } && {
6615          test -z "$ac_c_werror_flag" ||
6616          test ! -s conftest.err
6617        } && test -s conftest.$ac_objext; then
6618   ac_hi=$ac_mid
6619 else
6620   echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623         ac_lo=`expr '(' $ac_mid ')' + 1`
6624 fi
6625
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 done
6628 case $ac_lo in
6629 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
6630 '') if test "$ac_cv_type_unsigned" = yes; then
6631      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6632 See \`config.log' for more details." >&5
6633 echo "$as_me: error: cannot compute sizeof (unsigned)
6634 See \`config.log' for more details." >&2;}
6635    { (exit 77); exit 77; }; }
6636    else
6637      ac_cv_sizeof_unsigned=0
6638    fi ;;
6639 esac
6640 else
6641   cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h.  */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h.  */
6647 $ac_includes_default
6648    typedef unsigned ac__type_sizeof_;
6649 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6650 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6651 #include <stdio.h>
6652 #include <stdlib.h>
6653 int
6654 main ()
6655 {
6656
6657   FILE *f = fopen ("conftest.val", "w");
6658   if (! f)
6659     return 1;
6660   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6661     {
6662       long int i = longval ();
6663       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6664         return 1;
6665       fprintf (f, "%ld\n", i);
6666     }
6667   else
6668     {
6669       unsigned long int i = ulongval ();
6670       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6671         return 1;
6672       fprintf (f, "%lu\n", i);
6673     }
6674   return ferror (f) || fclose (f) != 0;
6675
6676   ;
6677   return 0;
6678 }
6679 _ACEOF
6680 rm -f conftest$ac_exeext
6681 if { (ac_try="$ac_link"
6682 case "(($ac_try" in
6683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684   *) ac_try_echo=$ac_try;;
6685 esac
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687   (eval "$ac_link") 2>&5
6688   ac_status=$?
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6691   { (case "(($ac_try" in
6692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6693   *) ac_try_echo=$ac_try;;
6694 esac
6695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6696   (eval "$ac_try") 2>&5
6697   ac_status=$?
6698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699   (exit $ac_status); }; }; then
6700   ac_cv_sizeof_unsigned=`cat conftest.val`
6701 else
6702   echo "$as_me: program exited with status $ac_status" >&5
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 ( exit $ac_status )
6707 if test "$ac_cv_type_unsigned" = yes; then
6708      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6709 See \`config.log' for more details." >&5
6710 echo "$as_me: error: cannot compute sizeof (unsigned)
6711 See \`config.log' for more details." >&2;}
6712    { (exit 77); exit 77; }; }
6713    else
6714      ac_cv_sizeof_unsigned=0
6715    fi
6716 fi
6717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6718 fi
6719 rm -f conftest.val
6720 fi
6721 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
6722 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
6723
6724
6725
6726 cat >>confdefs.h <<_ACEOF
6727 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
6728 _ACEOF
6729
6730
6731 { echo "$as_me:$LINENO: checking for signed long" >&5
6732 echo $ECHO_N "checking for signed long... $ECHO_C" >&6; }
6733 if test "${ac_cv_type_signed_long+set}" = set; then
6734   echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736   cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h.  */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h.  */
6742 $ac_includes_default
6743 typedef signed long ac__type_new_;
6744 int
6745 main ()
6746 {
6747 if ((ac__type_new_ *) 0)
6748   return 0;
6749 if (sizeof (ac__type_new_))
6750   return 0;
6751   ;
6752   return 0;
6753 }
6754 _ACEOF
6755 rm -f conftest.$ac_objext
6756 if { (ac_try="$ac_compile"
6757 case "(($ac_try" in
6758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6759   *) ac_try_echo=$ac_try;;
6760 esac
6761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6762   (eval "$ac_compile") 2>conftest.er1
6763   ac_status=$?
6764   grep -v '^ *+' conftest.er1 >conftest.err
6765   rm -f conftest.er1
6766   cat conftest.err >&5
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); } && {
6769          test -z "$ac_c_werror_flag" ||
6770          test ! -s conftest.err
6771        } && test -s conftest.$ac_objext; then
6772   ac_cv_type_signed_long=yes
6773 else
6774   echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6776
6777         ac_cv_type_signed_long=no
6778 fi
6779
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 fi
6782 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long" >&5
6783 echo "${ECHO_T}$ac_cv_type_signed_long" >&6; }
6784
6785 # The cast to long int works around a bug in the HP C Compiler
6786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6788 # This bug is HP SR number 8606223364.
6789 { echo "$as_me:$LINENO: checking size of signed long" >&5
6790 echo $ECHO_N "checking size of signed long... $ECHO_C" >&6; }
6791 if test "${ac_cv_sizeof_signed_long+set}" = set; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794   if test "$cross_compiling" = yes; then
6795   # Depending upon the size, compute the lo and hi bounds.
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h.  */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h.  */
6802 $ac_includes_default
6803    typedef signed long ac__type_sizeof_;
6804 int
6805 main ()
6806 {
6807 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6808 test_array [0] = 0
6809
6810   ;
6811   return 0;
6812 }
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6816 case "(($ac_try" in
6817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818   *) ac_try_echo=$ac_try;;
6819 esac
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821   (eval "$ac_compile") 2>conftest.er1
6822   ac_status=$?
6823   grep -v '^ *+' conftest.er1 >conftest.err
6824   rm -f conftest.er1
6825   cat conftest.err >&5
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); } && {
6828          test -z "$ac_c_werror_flag" ||
6829          test ! -s conftest.err
6830        } && test -s conftest.$ac_objext; then
6831   ac_lo=0 ac_mid=0
6832   while :; do
6833     cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h.  */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h.  */
6839 $ac_includes_default
6840    typedef signed long ac__type_sizeof_;
6841 int
6842 main ()
6843 {
6844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6845 test_array [0] = 0
6846
6847   ;
6848   return 0;
6849 }
6850 _ACEOF
6851 rm -f conftest.$ac_objext
6852 if { (ac_try="$ac_compile"
6853 case "(($ac_try" in
6854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855   *) ac_try_echo=$ac_try;;
6856 esac
6857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858   (eval "$ac_compile") 2>conftest.er1
6859   ac_status=$?
6860   grep -v '^ *+' conftest.er1 >conftest.err
6861   rm -f conftest.er1
6862   cat conftest.err >&5
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); } && {
6865          test -z "$ac_c_werror_flag" ||
6866          test ! -s conftest.err
6867        } && test -s conftest.$ac_objext; then
6868   ac_hi=$ac_mid; break
6869 else
6870   echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6872
6873         ac_lo=`expr $ac_mid + 1`
6874                         if test $ac_lo -le $ac_mid; then
6875                           ac_lo= ac_hi=
6876                           break
6877                         fi
6878                         ac_mid=`expr 2 '*' $ac_mid + 1`
6879 fi
6880
6881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882   done
6883 else
6884   echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6886
6887         cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h.  */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h.  */
6893 $ac_includes_default
6894    typedef signed long ac__type_sizeof_;
6895 int
6896 main ()
6897 {
6898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6899 test_array [0] = 0
6900
6901   ;
6902   return 0;
6903 }
6904 _ACEOF
6905 rm -f conftest.$ac_objext
6906 if { (ac_try="$ac_compile"
6907 case "(($ac_try" in
6908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909   *) ac_try_echo=$ac_try;;
6910 esac
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912   (eval "$ac_compile") 2>conftest.er1
6913   ac_status=$?
6914   grep -v '^ *+' conftest.er1 >conftest.err
6915   rm -f conftest.er1
6916   cat conftest.err >&5
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); } && {
6919          test -z "$ac_c_werror_flag" ||
6920          test ! -s conftest.err
6921        } && test -s conftest.$ac_objext; then
6922   ac_hi=-1 ac_mid=-1
6923   while :; do
6924     cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h.  */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h.  */
6930 $ac_includes_default
6931    typedef signed long ac__type_sizeof_;
6932 int
6933 main ()
6934 {
6935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6936 test_array [0] = 0
6937
6938   ;
6939   return 0;
6940 }
6941 _ACEOF
6942 rm -f conftest.$ac_objext
6943 if { (ac_try="$ac_compile"
6944 case "(($ac_try" in
6945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946   *) ac_try_echo=$ac_try;;
6947 esac
6948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949   (eval "$ac_compile") 2>conftest.er1
6950   ac_status=$?
6951   grep -v '^ *+' conftest.er1 >conftest.err
6952   rm -f conftest.er1
6953   cat conftest.err >&5
6954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955   (exit $ac_status); } && {
6956          test -z "$ac_c_werror_flag" ||
6957          test ! -s conftest.err
6958        } && test -s conftest.$ac_objext; then
6959   ac_lo=$ac_mid; break
6960 else
6961   echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6963
6964         ac_hi=`expr '(' $ac_mid ')' - 1`
6965                         if test $ac_mid -le $ac_hi; then
6966                           ac_lo= ac_hi=
6967                           break
6968                         fi
6969                         ac_mid=`expr 2 '*' $ac_mid`
6970 fi
6971
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973   done
6974 else
6975   echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6977
6978         ac_lo= ac_hi=
6979 fi
6980
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 fi
6983
6984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985 # Binary search between lo and hi bounds.
6986 while test "x$ac_lo" != "x$ac_hi"; do
6987   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6988   cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h.  */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h.  */
6994 $ac_includes_default
6995    typedef signed long ac__type_sizeof_;
6996 int
6997 main ()
6998 {
6999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7000 test_array [0] = 0
7001
7002   ;
7003   return 0;
7004 }
7005 _ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7008 case "(($ac_try" in
7009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010   *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013   (eval "$ac_compile") 2>conftest.er1
7014   ac_status=$?
7015   grep -v '^ *+' conftest.er1 >conftest.err
7016   rm -f conftest.er1
7017   cat conftest.err >&5
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); } && {
7020          test -z "$ac_c_werror_flag" ||
7021          test ! -s conftest.err
7022        } && test -s conftest.$ac_objext; then
7023   ac_hi=$ac_mid
7024 else
7025   echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028         ac_lo=`expr '(' $ac_mid ')' + 1`
7029 fi
7030
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 done
7033 case $ac_lo in
7034 ?*) ac_cv_sizeof_signed_long=$ac_lo;;
7035 '') if test "$ac_cv_type_signed_long" = yes; then
7036      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7037 See \`config.log' for more details." >&5
7038 echo "$as_me: error: cannot compute sizeof (signed long)
7039 See \`config.log' for more details." >&2;}
7040    { (exit 77); exit 77; }; }
7041    else
7042      ac_cv_sizeof_signed_long=0
7043    fi ;;
7044 esac
7045 else
7046   cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h.  */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h.  */
7052 $ac_includes_default
7053    typedef signed long ac__type_sizeof_;
7054 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7055 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7056 #include <stdio.h>
7057 #include <stdlib.h>
7058 int
7059 main ()
7060 {
7061
7062   FILE *f = fopen ("conftest.val", "w");
7063   if (! f)
7064     return 1;
7065   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7066     {
7067       long int i = longval ();
7068       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7069         return 1;
7070       fprintf (f, "%ld\n", i);
7071     }
7072   else
7073     {
7074       unsigned long int i = ulongval ();
7075       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7076         return 1;
7077       fprintf (f, "%lu\n", i);
7078     }
7079   return ferror (f) || fclose (f) != 0;
7080
7081   ;
7082   return 0;
7083 }
7084 _ACEOF
7085 rm -f conftest$ac_exeext
7086 if { (ac_try="$ac_link"
7087 case "(($ac_try" in
7088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089   *) ac_try_echo=$ac_try;;
7090 esac
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092   (eval "$ac_link") 2>&5
7093   ac_status=$?
7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7096   { (case "(($ac_try" in
7097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7098   *) ac_try_echo=$ac_try;;
7099 esac
7100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7101   (eval "$ac_try") 2>&5
7102   ac_status=$?
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); }; }; then
7105   ac_cv_sizeof_signed_long=`cat conftest.val`
7106 else
7107   echo "$as_me: program exited with status $ac_status" >&5
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7110
7111 ( exit $ac_status )
7112 if test "$ac_cv_type_signed_long" = yes; then
7113      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7114 See \`config.log' for more details." >&5
7115 echo "$as_me: error: cannot compute sizeof (signed long)
7116 See \`config.log' for more details." >&2;}
7117    { (exit 77); exit 77; }; }
7118    else
7119      ac_cv_sizeof_signed_long=0
7120    fi
7121 fi
7122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7123 fi
7124 rm -f conftest.val
7125 fi
7126 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
7127 echo "${ECHO_T}$ac_cv_sizeof_signed_long" >&6; }
7128
7129
7130
7131 cat >>confdefs.h <<_ACEOF
7132 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
7133 _ACEOF
7134
7135
7136 { echo "$as_me:$LINENO: checking for unsigned long" >&5
7137 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7138 if test "${ac_cv_type_unsigned_long+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h.  */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h.  */
7147 $ac_includes_default
7148 typedef unsigned long ac__type_new_;
7149 int
7150 main ()
7151 {
7152 if ((ac__type_new_ *) 0)
7153   return 0;
7154 if (sizeof (ac__type_new_))
7155   return 0;
7156   ;
7157   return 0;
7158 }
7159 _ACEOF
7160 rm -f conftest.$ac_objext
7161 if { (ac_try="$ac_compile"
7162 case "(($ac_try" in
7163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7164   *) ac_try_echo=$ac_try;;
7165 esac
7166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7167   (eval "$ac_compile") 2>conftest.er1
7168   ac_status=$?
7169   grep -v '^ *+' conftest.er1 >conftest.err
7170   rm -f conftest.er1
7171   cat conftest.err >&5
7172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173   (exit $ac_status); } && {
7174          test -z "$ac_c_werror_flag" ||
7175          test ! -s conftest.err
7176        } && test -s conftest.$ac_objext; then
7177   ac_cv_type_unsigned_long=yes
7178 else
7179   echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7181
7182         ac_cv_type_unsigned_long=no
7183 fi
7184
7185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7186 fi
7187 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7188 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7189
7190 # The cast to long int works around a bug in the HP C Compiler
7191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7193 # This bug is HP SR number 8606223364.
7194 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
7195 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7196 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   if test "$cross_compiling" = yes; then
7200   # Depending upon the size, compute the lo and hi bounds.
7201 cat >conftest.$ac_ext <<_ACEOF
7202 /* confdefs.h.  */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h.  */
7207 $ac_includes_default
7208    typedef unsigned long ac__type_sizeof_;
7209 int
7210 main ()
7211 {
7212 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7213 test_array [0] = 0
7214
7215   ;
7216   return 0;
7217 }
7218 _ACEOF
7219 rm -f conftest.$ac_objext
7220 if { (ac_try="$ac_compile"
7221 case "(($ac_try" in
7222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223   *) ac_try_echo=$ac_try;;
7224 esac
7225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226   (eval "$ac_compile") 2>conftest.er1
7227   ac_status=$?
7228   grep -v '^ *+' conftest.er1 >conftest.err
7229   rm -f conftest.er1
7230   cat conftest.err >&5
7231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232   (exit $ac_status); } && {
7233          test -z "$ac_c_werror_flag" ||
7234          test ! -s conftest.err
7235        } && test -s conftest.$ac_objext; then
7236   ac_lo=0 ac_mid=0
7237   while :; do
7238     cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h.  */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h.  */
7244 $ac_includes_default
7245    typedef unsigned long ac__type_sizeof_;
7246 int
7247 main ()
7248 {
7249 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7250 test_array [0] = 0
7251
7252   ;
7253   return 0;
7254 }
7255 _ACEOF
7256 rm -f conftest.$ac_objext
7257 if { (ac_try="$ac_compile"
7258 case "(($ac_try" in
7259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260   *) ac_try_echo=$ac_try;;
7261 esac
7262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7263   (eval "$ac_compile") 2>conftest.er1
7264   ac_status=$?
7265   grep -v '^ *+' conftest.er1 >conftest.err
7266   rm -f conftest.er1
7267   cat conftest.err >&5
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); } && {
7270          test -z "$ac_c_werror_flag" ||
7271          test ! -s conftest.err
7272        } && test -s conftest.$ac_objext; then
7273   ac_hi=$ac_mid; break
7274 else
7275   echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7277
7278         ac_lo=`expr $ac_mid + 1`
7279                         if test $ac_lo -le $ac_mid; then
7280                           ac_lo= ac_hi=
7281                           break
7282                         fi
7283                         ac_mid=`expr 2 '*' $ac_mid + 1`
7284 fi
7285
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287   done
7288 else
7289   echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7291
7292         cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h.  */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h.  */
7298 $ac_includes_default
7299    typedef unsigned long ac__type_sizeof_;
7300 int
7301 main ()
7302 {
7303 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7304 test_array [0] = 0
7305
7306   ;
7307   return 0;
7308 }
7309 _ACEOF
7310 rm -f conftest.$ac_objext
7311 if { (ac_try="$ac_compile"
7312 case "(($ac_try" in
7313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314   *) ac_try_echo=$ac_try;;
7315 esac
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317   (eval "$ac_compile") 2>conftest.er1
7318   ac_status=$?
7319   grep -v '^ *+' conftest.er1 >conftest.err
7320   rm -f conftest.er1
7321   cat conftest.err >&5
7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); } && {
7324          test -z "$ac_c_werror_flag" ||
7325          test ! -s conftest.err
7326        } && test -s conftest.$ac_objext; then
7327   ac_hi=-1 ac_mid=-1
7328   while :; do
7329     cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h.  */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h.  */
7335 $ac_includes_default
7336    typedef unsigned long ac__type_sizeof_;
7337 int
7338 main ()
7339 {
7340 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7341 test_array [0] = 0
7342
7343   ;
7344   return 0;
7345 }
7346 _ACEOF
7347 rm -f conftest.$ac_objext
7348 if { (ac_try="$ac_compile"
7349 case "(($ac_try" in
7350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351   *) ac_try_echo=$ac_try;;
7352 esac
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354   (eval "$ac_compile") 2>conftest.er1
7355   ac_status=$?
7356   grep -v '^ *+' conftest.er1 >conftest.err
7357   rm -f conftest.er1
7358   cat conftest.err >&5
7359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360   (exit $ac_status); } && {
7361          test -z "$ac_c_werror_flag" ||
7362          test ! -s conftest.err
7363        } && test -s conftest.$ac_objext; then
7364   ac_lo=$ac_mid; break
7365 else
7366   echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7368
7369         ac_hi=`expr '(' $ac_mid ')' - 1`
7370                         if test $ac_mid -le $ac_hi; then
7371                           ac_lo= ac_hi=
7372                           break
7373                         fi
7374                         ac_mid=`expr 2 '*' $ac_mid`
7375 fi
7376
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378   done
7379 else
7380   echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7382
7383         ac_lo= ac_hi=
7384 fi
7385
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387 fi
7388
7389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7390 # Binary search between lo and hi bounds.
7391 while test "x$ac_lo" != "x$ac_hi"; do
7392   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7393   cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h.  */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h.  */
7399 $ac_includes_default
7400    typedef unsigned long ac__type_sizeof_;
7401 int
7402 main ()
7403 {
7404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7405 test_array [0] = 0
7406
7407   ;
7408   return 0;
7409 }
7410 _ACEOF
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7413 case "(($ac_try" in
7414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415   *) ac_try_echo=$ac_try;;
7416 esac
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418   (eval "$ac_compile") 2>conftest.er1
7419   ac_status=$?
7420   grep -v '^ *+' conftest.er1 >conftest.err
7421   rm -f conftest.er1
7422   cat conftest.err >&5
7423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); } && {
7425          test -z "$ac_c_werror_flag" ||
7426          test ! -s conftest.err
7427        } && test -s conftest.$ac_objext; then
7428   ac_hi=$ac_mid
7429 else
7430   echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7432
7433         ac_lo=`expr '(' $ac_mid ')' + 1`
7434 fi
7435
7436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 done
7438 case $ac_lo in
7439 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7440 '') if test "$ac_cv_type_unsigned_long" = yes; then
7441      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7442 See \`config.log' for more details." >&5
7443 echo "$as_me: error: cannot compute sizeof (unsigned long)
7444 See \`config.log' for more details." >&2;}
7445    { (exit 77); exit 77; }; }
7446    else
7447      ac_cv_sizeof_unsigned_long=0
7448    fi ;;
7449 esac
7450 else
7451   cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h.  */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h.  */
7457 $ac_includes_default
7458    typedef unsigned long ac__type_sizeof_;
7459 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7460 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7461 #include <stdio.h>
7462 #include <stdlib.h>
7463 int
7464 main ()
7465 {
7466
7467   FILE *f = fopen ("conftest.val", "w");
7468   if (! f)
7469     return 1;
7470   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7471     {
7472       long int i = longval ();
7473       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7474         return 1;
7475       fprintf (f, "%ld\n", i);
7476     }
7477   else
7478     {
7479       unsigned long int i = ulongval ();
7480       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7481         return 1;
7482       fprintf (f, "%lu\n", i);
7483     }
7484   return ferror (f) || fclose (f) != 0;
7485
7486   ;
7487   return 0;
7488 }
7489 _ACEOF
7490 rm -f conftest$ac_exeext
7491 if { (ac_try="$ac_link"
7492 case "(($ac_try" in
7493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494   *) ac_try_echo=$ac_try;;
7495 esac
7496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497   (eval "$ac_link") 2>&5
7498   ac_status=$?
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7501   { (case "(($ac_try" in
7502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503   *) ac_try_echo=$ac_try;;
7504 esac
7505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506   (eval "$ac_try") 2>&5
7507   ac_status=$?
7508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509   (exit $ac_status); }; }; then
7510   ac_cv_sizeof_unsigned_long=`cat conftest.val`
7511 else
7512   echo "$as_me: program exited with status $ac_status" >&5
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7515
7516 ( exit $ac_status )
7517 if test "$ac_cv_type_unsigned_long" = yes; then
7518      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7519 See \`config.log' for more details." >&5
7520 echo "$as_me: error: cannot compute sizeof (unsigned long)
7521 See \`config.log' for more details." >&2;}
7522    { (exit 77); exit 77; }; }
7523    else
7524      ac_cv_sizeof_unsigned_long=0
7525    fi
7526 fi
7527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7528 fi
7529 rm -f conftest.val
7530 fi
7531 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
7532 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
7533
7534
7535
7536 cat >>confdefs.h <<_ACEOF
7537 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7538 _ACEOF
7539
7540
7541 { echo "$as_me:$LINENO: checking for signed long long" >&5
7542 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7543 if test "${ac_cv_type_signed_long_long+set}" = set; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546   cat >conftest.$ac_ext <<_ACEOF
7547 /* confdefs.h.  */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h.  */
7552 $ac_includes_default
7553 typedef signed long long ac__type_new_;
7554 int
7555 main ()
7556 {
7557 if ((ac__type_new_ *) 0)
7558   return 0;
7559 if (sizeof (ac__type_new_))
7560   return 0;
7561   ;
7562   return 0;
7563 }
7564 _ACEOF
7565 rm -f conftest.$ac_objext
7566 if { (ac_try="$ac_compile"
7567 case "(($ac_try" in
7568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569   *) ac_try_echo=$ac_try;;
7570 esac
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572   (eval "$ac_compile") 2>conftest.er1
7573   ac_status=$?
7574   grep -v '^ *+' conftest.er1 >conftest.err
7575   rm -f conftest.er1
7576   cat conftest.err >&5
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); } && {
7579          test -z "$ac_c_werror_flag" ||
7580          test ! -s conftest.err
7581        } && test -s conftest.$ac_objext; then
7582   ac_cv_type_signed_long_long=yes
7583 else
7584   echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7586
7587         ac_cv_type_signed_long_long=no
7588 fi
7589
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591 fi
7592 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7593 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7594
7595 # The cast to long int works around a bug in the HP C Compiler
7596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7598 # This bug is HP SR number 8606223364.
7599 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7600 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7601 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7602   echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604   if test "$cross_compiling" = yes; then
7605   # Depending upon the size, compute the lo and hi bounds.
7606 cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612 $ac_includes_default
7613    typedef signed long long ac__type_sizeof_;
7614 int
7615 main ()
7616 {
7617 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7618 test_array [0] = 0
7619
7620   ;
7621   return 0;
7622 }
7623 _ACEOF
7624 rm -f conftest.$ac_objext
7625 if { (ac_try="$ac_compile"
7626 case "(($ac_try" in
7627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7628   *) ac_try_echo=$ac_try;;
7629 esac
7630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7631   (eval "$ac_compile") 2>conftest.er1
7632   ac_status=$?
7633   grep -v '^ *+' conftest.er1 >conftest.err
7634   rm -f conftest.er1
7635   cat conftest.err >&5
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); } && {
7638          test -z "$ac_c_werror_flag" ||
7639          test ! -s conftest.err
7640        } && test -s conftest.$ac_objext; then
7641   ac_lo=0 ac_mid=0
7642   while :; do
7643     cat >conftest.$ac_ext <<_ACEOF
7644 /* confdefs.h.  */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h.  */
7649 $ac_includes_default
7650    typedef signed long long ac__type_sizeof_;
7651 int
7652 main ()
7653 {
7654 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7655 test_array [0] = 0
7656
7657   ;
7658   return 0;
7659 }
7660 _ACEOF
7661 rm -f conftest.$ac_objext
7662 if { (ac_try="$ac_compile"
7663 case "(($ac_try" in
7664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665   *) ac_try_echo=$ac_try;;
7666 esac
7667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7668   (eval "$ac_compile") 2>conftest.er1
7669   ac_status=$?
7670   grep -v '^ *+' conftest.er1 >conftest.err
7671   rm -f conftest.er1
7672   cat conftest.err >&5
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); } && {
7675          test -z "$ac_c_werror_flag" ||
7676          test ! -s conftest.err
7677        } && test -s conftest.$ac_objext; then
7678   ac_hi=$ac_mid; break
7679 else
7680   echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7682
7683         ac_lo=`expr $ac_mid + 1`
7684                         if test $ac_lo -le $ac_mid; then
7685                           ac_lo= ac_hi=
7686                           break
7687                         fi
7688                         ac_mid=`expr 2 '*' $ac_mid + 1`
7689 fi
7690
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692   done
7693 else
7694   echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7696
7697         cat >conftest.$ac_ext <<_ACEOF
7698 /* confdefs.h.  */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h.  */
7703 $ac_includes_default
7704    typedef signed long long ac__type_sizeof_;
7705 int
7706 main ()
7707 {
7708 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7709 test_array [0] = 0
7710
7711   ;
7712   return 0;
7713 }
7714 _ACEOF
7715 rm -f conftest.$ac_objext
7716 if { (ac_try="$ac_compile"
7717 case "(($ac_try" in
7718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719   *) ac_try_echo=$ac_try;;
7720 esac
7721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7722   (eval "$ac_compile") 2>conftest.er1
7723   ac_status=$?
7724   grep -v '^ *+' conftest.er1 >conftest.err
7725   rm -f conftest.er1
7726   cat conftest.err >&5
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); } && {
7729          test -z "$ac_c_werror_flag" ||
7730          test ! -s conftest.err
7731        } && test -s conftest.$ac_objext; then
7732   ac_hi=-1 ac_mid=-1
7733   while :; do
7734     cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h.  */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h.  */
7740 $ac_includes_default
7741    typedef signed long long ac__type_sizeof_;
7742 int
7743 main ()
7744 {
7745 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7746 test_array [0] = 0
7747
7748   ;
7749   return 0;
7750 }
7751 _ACEOF
7752 rm -f conftest.$ac_objext
7753 if { (ac_try="$ac_compile"
7754 case "(($ac_try" in
7755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756   *) ac_try_echo=$ac_try;;
7757 esac
7758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759   (eval "$ac_compile") 2>conftest.er1
7760   ac_status=$?
7761   grep -v '^ *+' conftest.er1 >conftest.err
7762   rm -f conftest.er1
7763   cat conftest.err >&5
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); } && {
7766          test -z "$ac_c_werror_flag" ||
7767          test ! -s conftest.err
7768        } && test -s conftest.$ac_objext; then
7769   ac_lo=$ac_mid; break
7770 else
7771   echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7773
7774         ac_hi=`expr '(' $ac_mid ')' - 1`
7775                         if test $ac_mid -le $ac_hi; then
7776                           ac_lo= ac_hi=
7777                           break
7778                         fi
7779                         ac_mid=`expr 2 '*' $ac_mid`
7780 fi
7781
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783   done
7784 else
7785   echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7787
7788         ac_lo= ac_hi=
7789 fi
7790
7791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 fi
7793
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795 # Binary search between lo and hi bounds.
7796 while test "x$ac_lo" != "x$ac_hi"; do
7797   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7798   cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h.  */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h.  */
7804 $ac_includes_default
7805    typedef signed long long ac__type_sizeof_;
7806 int
7807 main ()
7808 {
7809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7810 test_array [0] = 0
7811
7812   ;
7813   return 0;
7814 }
7815 _ACEOF
7816 rm -f conftest.$ac_objext
7817 if { (ac_try="$ac_compile"
7818 case "(($ac_try" in
7819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820   *) ac_try_echo=$ac_try;;
7821 esac
7822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7823   (eval "$ac_compile") 2>conftest.er1
7824   ac_status=$?
7825   grep -v '^ *+' conftest.er1 >conftest.err
7826   rm -f conftest.er1
7827   cat conftest.err >&5
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); } && {
7830          test -z "$ac_c_werror_flag" ||
7831          test ! -s conftest.err
7832        } && test -s conftest.$ac_objext; then
7833   ac_hi=$ac_mid
7834 else
7835   echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838         ac_lo=`expr '(' $ac_mid ')' + 1`
7839 fi
7840
7841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842 done
7843 case $ac_lo in
7844 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7845 '') if test "$ac_cv_type_signed_long_long" = yes; then
7846      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7847 See \`config.log' for more details." >&5
7848 echo "$as_me: error: cannot compute sizeof (signed long long)
7849 See \`config.log' for more details." >&2;}
7850    { (exit 77); exit 77; }; }
7851    else
7852      ac_cv_sizeof_signed_long_long=0
7853    fi ;;
7854 esac
7855 else
7856   cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h.  */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h.  */
7862 $ac_includes_default
7863    typedef signed long long ac__type_sizeof_;
7864 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7865 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7866 #include <stdio.h>
7867 #include <stdlib.h>
7868 int
7869 main ()
7870 {
7871
7872   FILE *f = fopen ("conftest.val", "w");
7873   if (! f)
7874     return 1;
7875   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7876     {
7877       long int i = longval ();
7878       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7879         return 1;
7880       fprintf (f, "%ld\n", i);
7881     }
7882   else
7883     {
7884       unsigned long int i = ulongval ();
7885       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7886         return 1;
7887       fprintf (f, "%lu\n", i);
7888     }
7889   return ferror (f) || fclose (f) != 0;
7890
7891   ;
7892   return 0;
7893 }
7894 _ACEOF
7895 rm -f conftest$ac_exeext
7896 if { (ac_try="$ac_link"
7897 case "(($ac_try" in
7898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899   *) ac_try_echo=$ac_try;;
7900 esac
7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902   (eval "$ac_link") 2>&5
7903   ac_status=$?
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7906   { (case "(($ac_try" in
7907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908   *) ac_try_echo=$ac_try;;
7909 esac
7910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911   (eval "$ac_try") 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; }; then
7915   ac_cv_sizeof_signed_long_long=`cat conftest.val`
7916 else
7917   echo "$as_me: program exited with status $ac_status" >&5
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7920
7921 ( exit $ac_status )
7922 if test "$ac_cv_type_signed_long_long" = yes; then
7923      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7924 See \`config.log' for more details." >&5
7925 echo "$as_me: error: cannot compute sizeof (signed long long)
7926 See \`config.log' for more details." >&2;}
7927    { (exit 77); exit 77; }; }
7928    else
7929      ac_cv_sizeof_signed_long_long=0
7930    fi
7931 fi
7932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7933 fi
7934 rm -f conftest.val
7935 fi
7936 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7937 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
7938
7939
7940
7941 cat >>confdefs.h <<_ACEOF
7942 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7943 _ACEOF
7944
7945
7946 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
7947 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
7948 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7949   echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951   cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h.  */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h.  */
7957 $ac_includes_default
7958 typedef unsigned long long ac__type_new_;
7959 int
7960 main ()
7961 {
7962 if ((ac__type_new_ *) 0)
7963   return 0;
7964 if (sizeof (ac__type_new_))
7965   return 0;
7966   ;
7967   return 0;
7968 }
7969 _ACEOF
7970 rm -f conftest.$ac_objext
7971 if { (ac_try="$ac_compile"
7972 case "(($ac_try" in
7973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974   *) ac_try_echo=$ac_try;;
7975 esac
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977   (eval "$ac_compile") 2>conftest.er1
7978   ac_status=$?
7979   grep -v '^ *+' conftest.er1 >conftest.err
7980   rm -f conftest.er1
7981   cat conftest.err >&5
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); } && {
7984          test -z "$ac_c_werror_flag" ||
7985          test ! -s conftest.err
7986        } && test -s conftest.$ac_objext; then
7987   ac_cv_type_unsigned_long_long=yes
7988 else
7989   echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7991
7992         ac_cv_type_unsigned_long_long=no
7993 fi
7994
7995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996 fi
7997 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7998 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
7999
8000 # The cast to long int works around a bug in the HP C Compiler
8001 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8002 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8003 # This bug is HP SR number 8606223364.
8004 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
8005 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
8006 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
8007   echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009   if test "$cross_compiling" = yes; then
8010   # Depending upon the size, compute the lo and hi bounds.
8011 cat >conftest.$ac_ext <<_ACEOF
8012 /* confdefs.h.  */
8013 _ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h.  */
8017 $ac_includes_default
8018    typedef unsigned long long ac__type_sizeof_;
8019 int
8020 main ()
8021 {
8022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8023 test_array [0] = 0
8024
8025   ;
8026   return 0;
8027 }
8028 _ACEOF
8029 rm -f conftest.$ac_objext
8030 if { (ac_try="$ac_compile"
8031 case "(($ac_try" in
8032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033   *) ac_try_echo=$ac_try;;
8034 esac
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036   (eval "$ac_compile") 2>conftest.er1
8037   ac_status=$?
8038   grep -v '^ *+' conftest.er1 >conftest.err
8039   rm -f conftest.er1
8040   cat conftest.err >&5
8041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042   (exit $ac_status); } && {
8043          test -z "$ac_c_werror_flag" ||
8044          test ! -s conftest.err
8045        } && test -s conftest.$ac_objext; then
8046   ac_lo=0 ac_mid=0
8047   while :; do
8048     cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h.  */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h.  */
8054 $ac_includes_default
8055    typedef unsigned long long ac__type_sizeof_;
8056 int
8057 main ()
8058 {
8059 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8060 test_array [0] = 0
8061
8062   ;
8063   return 0;
8064 }
8065 _ACEOF
8066 rm -f conftest.$ac_objext
8067 if { (ac_try="$ac_compile"
8068 case "(($ac_try" in
8069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070   *) ac_try_echo=$ac_try;;
8071 esac
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073   (eval "$ac_compile") 2>conftest.er1
8074   ac_status=$?
8075   grep -v '^ *+' conftest.er1 >conftest.err
8076   rm -f conftest.er1
8077   cat conftest.err >&5
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } && {
8080          test -z "$ac_c_werror_flag" ||
8081          test ! -s conftest.err
8082        } && test -s conftest.$ac_objext; then
8083   ac_hi=$ac_mid; break
8084 else
8085   echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088         ac_lo=`expr $ac_mid + 1`
8089                         if test $ac_lo -le $ac_mid; then
8090                           ac_lo= ac_hi=
8091                           break
8092                         fi
8093                         ac_mid=`expr 2 '*' $ac_mid + 1`
8094 fi
8095
8096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097   done
8098 else
8099   echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102         cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h.  */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h.  */
8108 $ac_includes_default
8109    typedef unsigned long long ac__type_sizeof_;
8110 int
8111 main ()
8112 {
8113 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8114 test_array [0] = 0
8115
8116   ;
8117   return 0;
8118 }
8119 _ACEOF
8120 rm -f conftest.$ac_objext
8121 if { (ac_try="$ac_compile"
8122 case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127   (eval "$ac_compile") 2>conftest.er1
8128   ac_status=$?
8129   grep -v '^ *+' conftest.er1 >conftest.err
8130   rm -f conftest.er1
8131   cat conftest.err >&5
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } && {
8134          test -z "$ac_c_werror_flag" ||
8135          test ! -s conftest.err
8136        } && test -s conftest.$ac_objext; then
8137   ac_hi=-1 ac_mid=-1
8138   while :; do
8139     cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h.  */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h.  */
8145 $ac_includes_default
8146    typedef unsigned long long ac__type_sizeof_;
8147 int
8148 main ()
8149 {
8150 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8151 test_array [0] = 0
8152
8153   ;
8154   return 0;
8155 }
8156 _ACEOF
8157 rm -f conftest.$ac_objext
8158 if { (ac_try="$ac_compile"
8159 case "(($ac_try" in
8160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161   *) ac_try_echo=$ac_try;;
8162 esac
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164   (eval "$ac_compile") 2>conftest.er1
8165   ac_status=$?
8166   grep -v '^ *+' conftest.er1 >conftest.err
8167   rm -f conftest.er1
8168   cat conftest.err >&5
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); } && {
8171          test -z "$ac_c_werror_flag" ||
8172          test ! -s conftest.err
8173        } && test -s conftest.$ac_objext; then
8174   ac_lo=$ac_mid; break
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179         ac_hi=`expr '(' $ac_mid ')' - 1`
8180                         if test $ac_mid -le $ac_hi; then
8181                           ac_lo= ac_hi=
8182                           break
8183                         fi
8184                         ac_mid=`expr 2 '*' $ac_mid`
8185 fi
8186
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188   done
8189 else
8190   echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8192
8193         ac_lo= ac_hi=
8194 fi
8195
8196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8197 fi
8198
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 # Binary search between lo and hi bounds.
8201 while test "x$ac_lo" != "x$ac_hi"; do
8202   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8203   cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h.  */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h.  */
8209 $ac_includes_default
8210    typedef unsigned long long ac__type_sizeof_;
8211 int
8212 main ()
8213 {
8214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8215 test_array [0] = 0
8216
8217   ;
8218   return 0;
8219 }
8220 _ACEOF
8221 rm -f conftest.$ac_objext
8222 if { (ac_try="$ac_compile"
8223 case "(($ac_try" in
8224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225   *) ac_try_echo=$ac_try;;
8226 esac
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228   (eval "$ac_compile") 2>conftest.er1
8229   ac_status=$?
8230   grep -v '^ *+' conftest.er1 >conftest.err
8231   rm -f conftest.er1
8232   cat conftest.err >&5
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); } && {
8235          test -z "$ac_c_werror_flag" ||
8236          test ! -s conftest.err
8237        } && test -s conftest.$ac_objext; then
8238   ac_hi=$ac_mid
8239 else
8240   echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8242
8243         ac_lo=`expr '(' $ac_mid ')' + 1`
8244 fi
8245
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 done
8248 case $ac_lo in
8249 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
8250 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
8251      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8252 See \`config.log' for more details." >&5
8253 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8254 See \`config.log' for more details." >&2;}
8255    { (exit 77); exit 77; }; }
8256    else
8257      ac_cv_sizeof_unsigned_long_long=0
8258    fi ;;
8259 esac
8260 else
8261   cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h.  */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h.  */
8267 $ac_includes_default
8268    typedef unsigned long long ac__type_sizeof_;
8269 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8270 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8271 #include <stdio.h>
8272 #include <stdlib.h>
8273 int
8274 main ()
8275 {
8276
8277   FILE *f = fopen ("conftest.val", "w");
8278   if (! f)
8279     return 1;
8280   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8281     {
8282       long int i = longval ();
8283       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8284         return 1;
8285       fprintf (f, "%ld\n", i);
8286     }
8287   else
8288     {
8289       unsigned long int i = ulongval ();
8290       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8291         return 1;
8292       fprintf (f, "%lu\n", i);
8293     }
8294   return ferror (f) || fclose (f) != 0;
8295
8296   ;
8297   return 0;
8298 }
8299 _ACEOF
8300 rm -f conftest$ac_exeext
8301 if { (ac_try="$ac_link"
8302 case "(($ac_try" in
8303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304   *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307   (eval "$ac_link") 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8311   { (case "(($ac_try" in
8312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313   *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316   (eval "$ac_try") 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); }; }; then
8320   ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
8321 else
8322   echo "$as_me: program exited with status $ac_status" >&5
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326 ( exit $ac_status )
8327 if test "$ac_cv_type_unsigned_long_long" = yes; then
8328      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8329 See \`config.log' for more details." >&5
8330 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8331 See \`config.log' for more details." >&2;}
8332    { (exit 77); exit 77; }; }
8333    else
8334      ac_cv_sizeof_unsigned_long_long=0
8335    fi
8336 fi
8337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8338 fi
8339 rm -f conftest.val
8340 fi
8341 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
8342 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
8343
8344
8345
8346 cat >>confdefs.h <<_ACEOF
8347 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8348 _ACEOF
8349
8350
8351
8352
8353
8354 # Extract the first word of "freetype-config", so it can be a program name with args.
8355 set dummy freetype-config; ac_word=$2
8356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8359   echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361   case $FREETYPE_CONFIG in
8362   [\\/]* | ?:[\\/]*)
8363   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8364   ;;
8365   *)
8366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8368 for as_dir in $as_dummy
8369 do
8370   IFS=$as_save_IFS
8371   test -z "$as_dir" && as_dir=.
8372   for ac_exec_ext in '' $ac_executable_extensions; do
8373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376     break 2
8377   fi
8378 done
8379 done
8380 IFS=$as_save_IFS
8381
8382   ;;
8383 esac
8384 fi
8385 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8386 if test -n "$FREETYPE_CONFIG"; then
8387   { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8388 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8389 else
8390   { echo "$as_me:$LINENO: result: no" >&5
8391 echo "${ECHO_T}no" >&6; }
8392 fi
8393
8394
8395
8396 OLDCPPFLAGS="${CPPFLAGS}"
8397 OLDLIBS="${LIBS}"
8398 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8399     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8400 else if test -d /usr/include/freetype2; then
8401     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8402 else if test -d /usr/local/include/freetype2; then
8403     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8404 fi
8405 fi
8406 fi
8407
8408 if test "x${FREETYPE_CONFIG}" '=' "x";then
8409     # if we didn't find the freetype-config program, we won't
8410     # know where the libs are expected to be. So just blindly
8411     # try to link against them.
8412     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8413 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8414 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8415   echo $ECHO_N "(cached) $ECHO_C" >&6
8416 else
8417   ac_check_lib_save_LIBS=$LIBS
8418 LIBS="-lfreetype  $LIBS"
8419 cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h.  */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h.  */
8425
8426 /* Override any GCC internal prototype to avoid an error.
8427    Use char because int might match the return type of a GCC
8428    builtin and then its argument prototype would still apply.  */
8429 #ifdef __cplusplus
8430 extern "C"
8431 #endif
8432 char FT_Init_FreeType ();
8433 int
8434 main ()
8435 {
8436 return FT_Init_FreeType ();
8437   ;
8438   return 0;
8439 }
8440 _ACEOF
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (ac_try="$ac_link"
8443 case "(($ac_try" in
8444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445   *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448   (eval "$ac_link") 2>conftest.er1
8449   ac_status=$?
8450   grep -v '^ *+' conftest.er1 >conftest.err
8451   rm -f conftest.er1
8452   cat conftest.err >&5
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); } && {
8455          test -z "$ac_c_werror_flag" ||
8456          test ! -s conftest.err
8457        } && test -s conftest$ac_exeext &&
8458        $as_test_x conftest$ac_exeext; then
8459   ac_cv_lib_freetype_FT_Init_FreeType=yes
8460 else
8461   echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464         ac_cv_lib_freetype_FT_Init_FreeType=no
8465 fi
8466
8467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8468       conftest$ac_exeext conftest.$ac_ext
8469 LIBS=$ac_check_lib_save_LIBS
8470 fi
8471 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8472 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8473 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8474   HAVE_LIB_FREETYPE=1
8475 fi
8476
8477 fi
8478
8479
8480 for ac_header in ft2build.h
8481 do
8482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8484   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8487   echo $ECHO_N "(cached) $ECHO_C" >&6
8488 fi
8489 ac_res=`eval echo '${'$as_ac_Header'}'`
8490                { echo "$as_me:$LINENO: result: $ac_res" >&5
8491 echo "${ECHO_T}$ac_res" >&6; }
8492 else
8493   # Is the header compilable?
8494 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8496 cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502 $ac_includes_default
8503 #include <$ac_header>
8504 _ACEOF
8505 rm -f conftest.$ac_objext
8506 if { (ac_try="$ac_compile"
8507 case "(($ac_try" in
8508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509   *) ac_try_echo=$ac_try;;
8510 esac
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512   (eval "$ac_compile") 2>conftest.er1
8513   ac_status=$?
8514   grep -v '^ *+' conftest.er1 >conftest.err
8515   rm -f conftest.er1
8516   cat conftest.err >&5
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); } && {
8519          test -z "$ac_c_werror_flag" ||
8520          test ! -s conftest.err
8521        } && test -s conftest.$ac_objext; then
8522   ac_header_compiler=yes
8523 else
8524   echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527         ac_header_compiler=no
8528 fi
8529
8530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8532 echo "${ECHO_T}$ac_header_compiler" >&6; }
8533
8534 # Is the header present?
8535 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h.  */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h.  */
8543 #include <$ac_header>
8544 _ACEOF
8545 if { (ac_try="$ac_cpp conftest.$ac_ext"
8546 case "(($ac_try" in
8547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548   *) ac_try_echo=$ac_try;;
8549 esac
8550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8552   ac_status=$?
8553   grep -v '^ *+' conftest.er1 >conftest.err
8554   rm -f conftest.er1
8555   cat conftest.err >&5
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); } >/dev/null && {
8558          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8559          test ! -s conftest.err
8560        }; then
8561   ac_header_preproc=yes
8562 else
8563   echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566   ac_header_preproc=no
8567 fi
8568
8569 rm -f conftest.err conftest.$ac_ext
8570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8571 echo "${ECHO_T}$ac_header_preproc" >&6; }
8572
8573 # So?  What about this header?
8574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8575   yes:no: )
8576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8580     ac_header_preproc=yes
8581     ;;
8582   no:yes:* )
8583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8595
8596     ;;
8597 esac
8598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8601   echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603   eval "$as_ac_Header=\$ac_header_preproc"
8604 fi
8605 ac_res=`eval echo '${'$as_ac_Header'}'`
8606                { echo "$as_me:$LINENO: result: $ac_res" >&5
8607 echo "${ECHO_T}$ac_res" >&6; }
8608
8609 fi
8610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8611   cat >>confdefs.h <<_ACEOF
8612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8613 _ACEOF
8614  HAVE_FT2BUILD_H=1
8615 fi
8616
8617 done
8618
8619 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8620
8621 for ac_header in freetype/freetype.h
8622 do
8623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8625   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8628   echo $ECHO_N "(cached) $ECHO_C" >&6
8629 fi
8630 ac_res=`eval echo '${'$as_ac_Header'}'`
8631                { echo "$as_me:$LINENO: result: $ac_res" >&5
8632 echo "${ECHO_T}$ac_res" >&6; }
8633 else
8634   # Is the header compilable?
8635 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8637 cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h.  */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h.  */
8643 $ac_includes_default
8644 #include <$ac_header>
8645 _ACEOF
8646 rm -f conftest.$ac_objext
8647 if { (ac_try="$ac_compile"
8648 case "(($ac_try" in
8649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650   *) ac_try_echo=$ac_try;;
8651 esac
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653   (eval "$ac_compile") 2>conftest.er1
8654   ac_status=$?
8655   grep -v '^ *+' conftest.er1 >conftest.err
8656   rm -f conftest.er1
8657   cat conftest.err >&5
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); } && {
8660          test -z "$ac_c_werror_flag" ||
8661          test ! -s conftest.err
8662        } && test -s conftest.$ac_objext; then
8663   ac_header_compiler=yes
8664 else
8665   echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8667
8668         ac_header_compiler=no
8669 fi
8670
8671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8673 echo "${ECHO_T}$ac_header_compiler" >&6; }
8674
8675 # Is the header present?
8676 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8678 cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h.  */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h.  */
8684 #include <$ac_header>
8685 _ACEOF
8686 if { (ac_try="$ac_cpp conftest.$ac_ext"
8687 case "(($ac_try" in
8688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8689   *) ac_try_echo=$ac_try;;
8690 esac
8691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8693   ac_status=$?
8694   grep -v '^ *+' conftest.er1 >conftest.err
8695   rm -f conftest.er1
8696   cat conftest.err >&5
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); } >/dev/null && {
8699          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8700          test ! -s conftest.err
8701        }; then
8702   ac_header_preproc=yes
8703 else
8704   echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8706
8707   ac_header_preproc=no
8708 fi
8709
8710 rm -f conftest.err conftest.$ac_ext
8711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8712 echo "${ECHO_T}$ac_header_preproc" >&6; }
8713
8714 # So?  What about this header?
8715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8716   yes:no: )
8717     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8721     ac_header_preproc=yes
8722     ;;
8723   no:yes:* )
8724     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8726     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8727 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8728     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8730     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8731 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8734     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8736
8737     ;;
8738 esac
8739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8742   echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744   eval "$as_ac_Header=\$ac_header_preproc"
8745 fi
8746 ac_res=`eval echo '${'$as_ac_Header'}'`
8747                { echo "$as_me:$LINENO: result: $ac_res" >&5
8748 echo "${ECHO_T}$ac_res" >&6; }
8749
8750 fi
8751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8752   cat >>confdefs.h <<_ACEOF
8753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8754 _ACEOF
8755  HAVE_FREETYPE_FREETYPE_H=1
8756 fi
8757
8758 done
8759
8760 fi
8761
8762 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8763         "x${FREETYPE_CONFIG}" '!=' "x";then
8764     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8765         HAVE_FREETYPE=1
8766     fi
8767     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8768         HAVE_FREETYPE=1
8769     fi
8770 fi
8771
8772 if test "x${HAVE_FREETYPE}" = "x1"; then
8773     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8774         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8775     else
8776         LIBS="$LIBS -lfreetype"
8777     fi
8778
8779     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8780         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8781     fi
8782
8783     { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8784 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8785
8786     cat > conftest.c << EOF
8787 $HAVE_FT2BUILD_H_DEFINE
8788
8789 #ifdef HAVE_FT2BUILD_H
8790 #include <ft2build.h>
8791 #include FT_FREETYPE_H
8792 #include FT_GLYPH_H
8793 #include FT_SIZES_H
8794 #include FT_SFNT_NAMES_H
8795 #include FT_TRUETYPE_IDS_H
8796 #include FT_OUTLINE_H
8797 #else
8798 #include <freetype/freetype.h>
8799 #include <freetype/ftglyph.h>
8800 #include <freetype/ftsizes.h>
8801 #include <freetype/ftsnames.h>
8802 #include <freetype/ttnameid.h>
8803 #include <freetype/ftoutln.h>
8804 #endif
8805
8806 int main()
8807 {
8808     FT_Library ftlibrary;
8809     FT_Face face;
8810     FT_Error error;
8811     FT_ULong charcode;
8812     FT_UInt gindex;
8813     FT_Glyph glyph;
8814     FT_BBox bbox;
8815     FT_Matrix matrix;
8816     FT_UInt i;
8817     char* name = 0;
8818     char italic, bold;
8819
8820     FT_Init_FreeType(&ftlibrary);
8821     FT_New_Face(ftlibrary, "filename", 0, &face);
8822     i = face->num_glyphs - 1;
8823     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8824     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8825     FT_Get_Postscript_Name(face);
8826     FT_Get_Char_Index(face, 33);
8827     FT_Get_First_Char(face, &i);
8828     FT_Get_Next_Char(face, 33, &i);
8829     if(FT_HAS_GLYPH_NAMES(face)) {
8830         FT_Get_Glyph_Name(face, 33, name, 127);
8831     }
8832     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8833     FT_Get_Glyph(face->glyph, &glyph);
8834     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8835     FT_Done_Glyph(glyph);
8836     FT_Done_Face(face);
8837     FT_Done_FreeType(ftlibrary);
8838     return 0;
8839 }
8840 EOF
8841
8842     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8843     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8844         { echo "$as_me:$LINENO: result: yes" >&5
8845 echo "${ECHO_T}yes" >&6; }
8846         cat >>confdefs.h <<_ACEOF
8847 #define HAVE_FREETYPE 1
8848 _ACEOF
8849
8850         cat >>confdefs.h <<_ACEOF
8851 #define HAVE_FREETYPE_FREETYPE_H 1
8852 _ACEOF
8853
8854         cat >>confdefs.h <<_ACEOF
8855 #define USE_FREETYPE 1
8856 _ACEOF
8857   # for ttf2tp1
8858     else
8859         echo "configure: failed program was:" >&5
8860         cat conftest.c >&5
8861         HAVE_FREETYPE=0
8862         { echo "$as_me:$LINENO: result: no" >&5
8863 echo "${ECHO_T}no" >&6; }
8864     fi
8865     rm -f conftest*
8866 fi
8867
8868 # if the above didn't work out, reset all changes to the compiler variables.
8869 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8870     CPPFLAGS=$OLDCPPFLAGS
8871     LIBS=$OLDLIBS
8872 fi
8873
8874
8875 #RFX_CHECK_FONTCONFIG
8876
8877 lame_objects=
8878 lame_makefile=
8879 if test "x${DISABLE_LAME}" = "xtrue"; then
8880     echo "*" Disabling lame support...
8881 else
8882     # old lame code at lib/lame
8883     if test -f lib/lame/Makefile.in; then
8884         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)"
8885         lame_makefile="lib/lame/Makefile"
8886         CPPFLAGS="$CPPFLAGS -Ilame"
8887         cat >>confdefs.h <<_ACEOF
8888 #define HAVE_LAME 1
8889 _ACEOF
8890
8891     else
8892         if test -d /usr/include/lame; then
8893             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
8894         else
8895             if test -d /usr/local/include/lame; then
8896                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
8897             fi
8898         fi
8899
8900 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
8901 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
8902 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
8903   echo $ECHO_N "(cached) $ECHO_C" >&6
8904 else
8905   ac_check_lib_save_LIBS=$LIBS
8906 LIBS="-lmp3lame  $LIBS"
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h.  */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h.  */
8913
8914 /* Override any GCC internal prototype to avoid an error.
8915    Use char because int might match the return type of a GCC
8916    builtin and then its argument prototype would still apply.  */
8917 #ifdef __cplusplus
8918 extern "C"
8919 #endif
8920 char lame_init ();
8921 int
8922 main ()
8923 {
8924 return lame_init ();
8925   ;
8926   return 0;
8927 }
8928 _ACEOF
8929 rm -f conftest.$ac_objext conftest$ac_exeext
8930 if { (ac_try="$ac_link"
8931 case "(($ac_try" in
8932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933   *) ac_try_echo=$ac_try;;
8934 esac
8935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936   (eval "$ac_link") 2>conftest.er1
8937   ac_status=$?
8938   grep -v '^ *+' conftest.er1 >conftest.err
8939   rm -f conftest.er1
8940   cat conftest.err >&5
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); } && {
8943          test -z "$ac_c_werror_flag" ||
8944          test ! -s conftest.err
8945        } && test -s conftest$ac_exeext &&
8946        $as_test_x conftest$ac_exeext; then
8947   ac_cv_lib_mp3lame_lame_init=yes
8948 else
8949   echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8951
8952         ac_cv_lib_mp3lame_lame_init=no
8953 fi
8954
8955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8956       conftest$ac_exeext conftest.$ac_ext
8957 LIBS=$ac_check_lib_save_LIBS
8958 fi
8959 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
8960 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
8961 if test $ac_cv_lib_mp3lame_lame_init = yes; then
8962   cat >>confdefs.h <<_ACEOF
8963 #define HAVE_LIBMP3LAME 1
8964 _ACEOF
8965
8966   LIBS="-lmp3lame $LIBS"
8967
8968 else
8969   NO_LIBMP3LAME=1
8970 fi
8971
8972
8973 for ac_header in lame.h
8974 do
8975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8977   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8980   echo $ECHO_N "(cached) $ECHO_C" >&6
8981 fi
8982 ac_res=`eval echo '${'$as_ac_Header'}'`
8983                { echo "$as_me:$LINENO: result: $ac_res" >&5
8984 echo "${ECHO_T}$ac_res" >&6; }
8985 else
8986   # Is the header compilable?
8987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8989 cat >conftest.$ac_ext <<_ACEOF
8990 /* confdefs.h.  */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h.  */
8995 $ac_includes_default
8996 #include <$ac_header>
8997 _ACEOF
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9000 case "(($ac_try" in
9001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002   *) ac_try_echo=$ac_try;;
9003 esac
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005   (eval "$ac_compile") 2>conftest.er1
9006   ac_status=$?
9007   grep -v '^ *+' conftest.er1 >conftest.err
9008   rm -f conftest.er1
9009   cat conftest.err >&5
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); } && {
9012          test -z "$ac_c_werror_flag" ||
9013          test ! -s conftest.err
9014        } && test -s conftest.$ac_objext; then
9015   ac_header_compiler=yes
9016 else
9017   echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9019
9020         ac_header_compiler=no
9021 fi
9022
9023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9025 echo "${ECHO_T}$ac_header_compiler" >&6; }
9026
9027 # Is the header present?
9028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9030 cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h.  */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h.  */
9036 #include <$ac_header>
9037 _ACEOF
9038 if { (ac_try="$ac_cpp conftest.$ac_ext"
9039 case "(($ac_try" in
9040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9041   *) ac_try_echo=$ac_try;;
9042 esac
9043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9045   ac_status=$?
9046   grep -v '^ *+' conftest.er1 >conftest.err
9047   rm -f conftest.er1
9048   cat conftest.err >&5
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); } >/dev/null && {
9051          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9052          test ! -s conftest.err
9053        }; then
9054   ac_header_preproc=yes
9055 else
9056   echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9058
9059   ac_header_preproc=no
9060 fi
9061
9062 rm -f conftest.err conftest.$ac_ext
9063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9064 echo "${ECHO_T}$ac_header_preproc" >&6; }
9065
9066 # So?  What about this header?
9067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9068   yes:no: )
9069     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9073     ac_header_preproc=yes
9074     ;;
9075   no:yes:* )
9076     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9078     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9079 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9080     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9082     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9083 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9086     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9088
9089     ;;
9090 esac
9091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9094   echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096   eval "$as_ac_Header=\$ac_header_preproc"
9097 fi
9098 ac_res=`eval echo '${'$as_ac_Header'}'`
9099                { echo "$as_me:$LINENO: result: $ac_res" >&5
9100 echo "${ECHO_T}$ac_res" >&6; }
9101
9102 fi
9103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9104   cat >>confdefs.h <<_ACEOF
9105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9106 _ACEOF
9107
9108 fi
9109
9110 done
9111
9112         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
9113             cat >>confdefs.h <<_ACEOF
9114 #define HAVE_LAME 1
9115 _ACEOF
9116
9117         fi
9118     fi
9119 fi
9120
9121
9122 # ------------------------------------------------------------------
9123
9124
9125
9126 for ac_prog in avifile-config
9127 do
9128   # Extract the first word of "$ac_prog", so it can be a program name with args.
9129 set dummy $ac_prog; ac_word=$2
9130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9132 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9133   echo $ECHO_N "(cached) $ECHO_C" >&6
9134 else
9135   if test -n "$AVIFILE_CONFIG"; then
9136   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9137 else
9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9139 for as_dir in $PATH
9140 do
9141   IFS=$as_save_IFS
9142   test -z "$as_dir" && as_dir=.
9143   for ac_exec_ext in '' $ac_executable_extensions; do
9144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9145     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9147     break 2
9148   fi
9149 done
9150 done
9151 IFS=$as_save_IFS
9152
9153 fi
9154 fi
9155 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9156 if test -n "$AVIFILE_CONFIG"; then
9157   { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9158 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
9159 else
9160   { echo "$as_me:$LINENO: result: no" >&5
9161 echo "${ECHO_T}no" >&6; }
9162 fi
9163
9164
9165   test -n "$AVIFILE_CONFIG" && break
9166 done
9167
9168
9169 if test "x$AVIFILE_CONFIG" '!=' "x";then
9170     OLDCPPFLAGS="$CPPFLAGS"
9171     # temporarily add avifile paths to CPPFLAGS...
9172     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9173
9174
9175 for ac_header in avifile/version.h version.h
9176 do
9177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9179   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 fi
9184 ac_res=`eval echo '${'$as_ac_Header'}'`
9185                { echo "$as_me:$LINENO: result: $ac_res" >&5
9186 echo "${ECHO_T}$ac_res" >&6; }
9187 else
9188   # Is the header compilable?
9189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9191 cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h.  */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h.  */
9197 $ac_includes_default
9198 #include <$ac_header>
9199 _ACEOF
9200 rm -f conftest.$ac_objext
9201 if { (ac_try="$ac_compile"
9202 case "(($ac_try" in
9203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204   *) ac_try_echo=$ac_try;;
9205 esac
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207   (eval "$ac_compile") 2>conftest.er1
9208   ac_status=$?
9209   grep -v '^ *+' conftest.er1 >conftest.err
9210   rm -f conftest.er1
9211   cat conftest.err >&5
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); } && {
9214          test -z "$ac_c_werror_flag" ||
9215          test ! -s conftest.err
9216        } && test -s conftest.$ac_objext; then
9217   ac_header_compiler=yes
9218 else
9219   echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9221
9222         ac_header_compiler=no
9223 fi
9224
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9227 echo "${ECHO_T}$ac_header_compiler" >&6; }
9228
9229 # Is the header present?
9230 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9232 cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h.  */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h.  */
9238 #include <$ac_header>
9239 _ACEOF
9240 if { (ac_try="$ac_cpp conftest.$ac_ext"
9241 case "(($ac_try" in
9242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243   *) ac_try_echo=$ac_try;;
9244 esac
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9247   ac_status=$?
9248   grep -v '^ *+' conftest.er1 >conftest.err
9249   rm -f conftest.er1
9250   cat conftest.err >&5
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); } >/dev/null && {
9253          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9254          test ! -s conftest.err
9255        }; then
9256   ac_header_preproc=yes
9257 else
9258   echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261   ac_header_preproc=no
9262 fi
9263
9264 rm -f conftest.err conftest.$ac_ext
9265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9266 echo "${ECHO_T}$ac_header_preproc" >&6; }
9267
9268 # So?  What about this header?
9269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9270   yes:no: )
9271     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9275     ac_header_preproc=yes
9276     ;;
9277   no:yes:* )
9278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9280     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9281 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9282     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9284     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9285 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9288     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9290
9291     ;;
9292 esac
9293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9296   echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298   eval "$as_ac_Header=\$ac_header_preproc"
9299 fi
9300 ac_res=`eval echo '${'$as_ac_Header'}'`
9301                { echo "$as_me:$LINENO: result: $ac_res" >&5
9302 echo "${ECHO_T}$ac_res" >&6; }
9303
9304 fi
9305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9306   cat >>confdefs.h <<_ACEOF
9307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9308 _ACEOF
9309
9310 fi
9311
9312 done
9313
9314     # ... and reset
9315     CPPFLAGS="$OLDCPPFLAGS"
9316 fi
9317
9318 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9319 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
9320
9321 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9322     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9323 fi
9324 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9325     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9326 fi
9327
9328 cat > conftest.cpp << EOF
9329
9330 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9331 // so we have to introduce them this way
9332 $HAVE_VERSION_H_DEFINE
9333 $HAVE_AVIFILE_VERSION_H_DEFINE
9334
9335 #ifdef HAVE_VERSION_H
9336   #include <version.h>
9337 #endif
9338 #ifdef HAVE_AVIFILE_VERSION_H
9339   #include <avifile/version.h>
9340 #endif
9341
9342 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9343    #include <avifile.h>
9344    #include <aviplay.h>
9345    #include <avm_fourcc.h>
9346    #include <avm_creators.h>
9347    #include <StreamInfo.h>
9348    #define VERSION6
9349 #else
9350    #include <avifile.h>
9351    #include <aviplay.h>
9352    #include <aviutil.h>
9353    #define Width width
9354    #define Height height
9355    #define Data data
9356    #define Bpp bpp
9357 #endif
9358
9359 void test()
9360 {
9361   IAviReadFile* player;
9362   IAviReadStream* astream;
9363   IAviReadStream* vstream;
9364   player = CreateIAviReadFile(0);
9365   astream = player->GetStream(0, AviStream::Audio);
9366   vstream = player->GetStream(0, AviStream::Video);
9367   vstream -> StartStreaming();
9368   astream -> StartStreaming();
9369 #ifndef VERSION6
9370   MainAVIHeader head;
9371   player->GetFileHeader(&head);
9372   head.dwMicroSecPerFrame;
9373   head.dwTotalFrames;
9374   head.dwStreams;
9375   head.dwWidth;
9376   head.dwHeight;
9377   head.dwMicroSecPerFrame;
9378   astream->GetEndPos(),
9379   astream->GetEndTime());
9380   player->StreamCount();
9381 #else
9382   StreamInfo*audioinfo;
9383   StreamInfo*videoinfo;
9384   audioinfo = astream->GetStreamInfo();
9385   videoinfo = vstream->GetStreamInfo();
9386   videoinfo->GetVideoWidth();
9387   videoinfo->GetVideoHeight();
9388   audioinfo->GetAudioSamplesPerSec();
9389   videoinfo->GetFps();
9390 #endif
9391   CImage*img = vstream->GetFrame();
9392   img->ToRGB();
9393   img->Data();
9394   img->Bpp();
9395   img->Width();
9396   img->Height();
9397   WAVEFORMATEX wave;
9398   astream->GetAudioFormatInfo(&wave,0);
9399   uint_t a,b;
9400   astream->ReadFrames(0,0,0,a,b);
9401 }
9402 int main (int argc, char*argv)
9403 {
9404     return 0;
9405 }
9406 EOF
9407
9408 if test "x$AVIFILE_CONFIG" '!=' "x";then
9409     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9410     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9411     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9412     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9413       { echo "$as_me:$LINENO: result: yes" >&5
9414 echo "${ECHO_T}yes" >&6; }
9415       AVIFILE=true
9416       export AVIFILE
9417       cat >>confdefs.h <<_ACEOF
9418 #define AVIFILE true
9419 _ACEOF
9420
9421     else
9422       echo "configure: failed program was:" >&5
9423       cat conftest.cpp >&5
9424       { echo "$as_me:$LINENO: result: no" >&5
9425 echo "${ECHO_T}no" >&6; }
9426     fi
9427 else
9428     { echo "$as_me:$LINENO: result: no" >&5
9429 echo "${ECHO_T}no" >&6; }
9430 fi
9431 rm -f conftest*
9432
9433 if test "x${AVIFILE}" = "xtrue"; then
9434     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9435     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9436     cat >>confdefs.h <<_ACEOF
9437 #define HAVE_AVIFILE 1
9438 _ACEOF
9439
9440 fi
9441
9442 if test "x${WIN32}" != "x"; then
9443     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9444     #if test "x${AVIFIL32}" != "x"; then
9445     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9446     #fi
9447     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9448     AVIFIL32=true
9449 fi
9450
9451
9452
9453 # ------------------------------------------------------------------
9454
9455 if test "x${UNCOMPRESS}" = "xgzip"; then
9456     cat >>confdefs.h <<_ACEOF
9457 #define USE_GZIP 1
9458 _ACEOF
9459
9460 fi
9461
9462
9463 # ------------------------------------------------------------------
9464
9465
9466 { echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
9467 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6; }
9468
9469 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9470     PY_VERSION=unknown
9471 else
9472     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9473         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9474     fi
9475     # iterate through version 2.2 to 2.5
9476     for v in 2 3 4 5; do
9477         # Linux
9478         if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
9479             PY_VERSION=2.$v
9480             PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
9481             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9482         # Mac OS X
9483         elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9484             #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
9485             PY_VERSION=2.$v
9486             PYTHON_LIB="-framework Python"
9487             if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
9488                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9489             else
9490                 PYTHON_LIB2="$PYTHON_LIB"
9491             fi
9492             PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9493         # Mac OS X [Fink]:
9494         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9495                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9496                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9497                   ")" \
9498                -a -f "/sw/include/python2.$v/Python.h" \
9499                -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9500             PY_VERSION=2.$v
9501             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9502             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9503         fi
9504     done
9505 fi
9506
9507 if test "x$PY_VERSION" "!=" "x"; then
9508     { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9509 echo "${ECHO_T}$PY_VERSION" >&6; }
9510     export PYTHON_INCLUDES PYTHON_LIB
9511
9512
9513     { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9514 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
9515
9516     cat > conftest.c << EOF
9517 #include <Python.h>
9518 #include <Imaging.h>
9519
9520 int main()
9521 {
9522     int ret;
9523     ret = Py_Main(0, 0);
9524     int x; // check also for gcc 2.95.x incompatibilities
9525     return ret;
9526 }
9527 EOF
9528     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9529     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9530         { echo "$as_me:$LINENO: result: yes" >&5
9531 echo "${ECHO_T}yes" >&6; }
9532         PYTHON_OK=yes
9533     else
9534         ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9535         if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9536             { echo "$as_me:$LINENO: result: yes" >&5
9537 echo "${ECHO_T}yes" >&6; }
9538             PYTHON_LIB="${PYTHON_LIB2}"
9539             PYTHON_OK=yes
9540         else
9541             echo "configure: failed program was:" >&5
9542             cat conftest.c >&5
9543             { echo "$as_me:$LINENO: result: no" >&5
9544 echo "${ECHO_T}no" >&6; }
9545         fi
9546     fi
9547     rm -f conftest*
9548 else
9549     { echo "$as_me:$LINENO: result: nope" >&5
9550 echo "${ECHO_T}nope" >&6; }
9551 fi
9552
9553
9554 if test "x$PYTHON_OK" '!=' "xyes";then
9555     echo all install uninstall clean: > lib/python/Makefile
9556     # fail silently- the most users won't have any need for the
9557     # python interface anyway
9558 else
9559     pythonrfxswf="lib/python/Makefile"
9560 fi
9561
9562 # ------------------------------------------------------------------
9563
9564 { echo "$as_me:$LINENO: checking for missing libraries" >&5
9565 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
9566
9567 if test "x$ZLIBMISSING" = "xtrue";then
9568     MISSINGLIBS="${MISSINGLIBS} zlib"
9569     DISABLEPNG2SWF=true
9570     PARTIAL=true
9571 fi
9572 if test "x$JPEGLIBMISSING" = "xtrue";then
9573     MISSINGLIBS="${MISSINGLIBS} jpeglib"
9574     DISABLEPDF2SWF=true
9575     DISABLEJPEG2SWF=true
9576     PARTIAL=true
9577 fi
9578 #if test "x$T1LIBMISSING" = "xtrue";then
9579 #    MISSINGLIBS="${MISSINGLIBS} t1lib"
9580 #fi
9581 if test "x$UNGIFMISSING" = "xtrue";then
9582     DISABLEGIF2SWF=true
9583     MISSINGLIBS="${MISSINGLIBS} ungif"
9584     PARTIAL=true
9585 fi
9586
9587 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
9588     DISABLEPDF2SWF=true;
9589     DISABLEJPEG2SWF=true;
9590     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9591     PARTIAL=true
9592 fi
9593 if test "x$HAVE_FREETYPE" '!=' "x1"; then
9594     DISABLEPDF2SWF=true;
9595     MISSINGLIBS="${MISSINGLIBS} freetype"
9596     PARTIAL=true
9597 fi
9598 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
9599 #    MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9600 #fi
9601 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
9602     DISABLEGIF2SWF=true
9603     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
9604     PARTIAL=true
9605 fi
9606 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
9607     DISABLEPNG2SWF=true;
9608     MISSINGLIBS="${MISSINGLIBS} zlib.h"
9609     PARTIAL=true
9610 fi
9611 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9612 #    MISSINGLIBS="${MISSINGLIBS} avifile"
9613 #fi
9614
9615 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
9616 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
9617
9618 # ------------------------------------------------------------------
9619
9620 if test "x${MISSINGLIBS}" '!=' "x"; then
9621   echo "***************************************************"
9622   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
9623 fi
9624
9625 avi2swf="avi2swf/Makefile"
9626 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9627  #don't whine, avi2swf is outdated anyway
9628  #echo "* Disabling avi2swf tool..."
9629  echo all install uninstall clean: > avi2swf/Makefile
9630  avi2swf=
9631 fi
9632
9633 pdf2swf_makefile="lib/pdf/Makefile"
9634 PDF2SWF='pdf2swf$(E)'
9635 LIBPDF='libpdf$(A)'
9636
9637 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
9638   echo "* Disabling pdf2swf tool..."
9639   rm -f lib/pdf/Makefile
9640   echo all install uninstall clean: > lib/pdf/Makefile
9641   pdf2swf_makefile=""
9642   PDF2SWF=
9643   LIBPDF=
9644 fi
9645
9646
9647
9648 if test "x${ZLIBMISSING}" = "xtrue"; then
9649   echo
9650   echo "* Warning! Without zlib, you will not be able to read"
9651   echo "* or write compressed Flash MX files!"
9652 fi
9653
9654 JPEG2SWF='jpeg2swf$(E)'
9655 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
9656   echo "* Disabling jpeg2swf tool..."
9657   JPEG2SWF=
9658 fi
9659 export JPEG2SWF
9660
9661
9662 GIF2SWF='gif2swf$(E)'
9663 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
9664   echo "* Disabling gif2swf tool..."
9665   GIF2SWF=
9666 fi
9667 export GIF2SWF
9668
9669
9670 PNG2SWF='png2swf$(E)'
9671 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
9672   echo "* Disabling png2swf tool..."
9673   PNG2SWF=
9674 fi
9675 export PNG2SWF
9676
9677
9678 if test "x${MISSINGLIBS}" '!=' "x"; then
9679   if test "x${PARTIAL}" '=' "x"; then
9680     echo "* (never mind)"
9681   fi
9682   echo "***************************************************"
9683 fi
9684
9685 # ------------------------------------------------------------------
9686
9687 if test -f "release.in"; then release_in="./release"; fi
9688 if test -f "wx/Makefile.in"; then wx_in="wx/Makefile"; fi
9689 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"
9690 ac_config_files="$ac_config_files ${FILES}"
9691
9692 cat >confcache <<\_ACEOF
9693 # This file is a shell script that caches the results of configure
9694 # tests run on this system so they can be shared between configure
9695 # scripts and configure runs, see configure's option --config-cache.
9696 # It is not useful on other systems.  If it contains results you don't
9697 # want to keep, you may remove or edit it.
9698 #
9699 # config.status only pays attention to the cache file if you give it
9700 # the --recheck option to rerun configure.
9701 #
9702 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9703 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9704 # following values.
9705
9706 _ACEOF
9707
9708 # The following way of writing the cache mishandles newlines in values,
9709 # but we know of no workaround that is simple, portable, and efficient.
9710 # So, we kill variables containing newlines.
9711 # Ultrix sh set writes to stderr and can't be redirected directly,
9712 # and sets the high bit in the cache file unless we assign to the vars.
9713 (
9714   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9715     eval ac_val=\$$ac_var
9716     case $ac_val in #(
9717     *${as_nl}*)
9718       case $ac_var in #(
9719       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9720 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9721       esac
9722       case $ac_var in #(
9723       _ | IFS | as_nl) ;; #(
9724       *) $as_unset $ac_var ;;
9725       esac ;;
9726     esac
9727   done
9728
9729   (set) 2>&1 |
9730     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9731     *${as_nl}ac_space=\ *)
9732       # `set' does not quote correctly, so add quotes (double-quote
9733       # substitution turns \\\\ into \\, and sed turns \\ into \).
9734       sed -n \
9735         "s/'/'\\\\''/g;
9736           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9737       ;; #(
9738     *)
9739       # `set' quotes correctly as required by POSIX, so do not add quotes.
9740       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9741       ;;
9742     esac |
9743     sort
9744 ) |
9745   sed '
9746      /^ac_cv_env_/b end
9747      t clear
9748      :clear
9749      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9750      t end
9751      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9752      :end' >>confcache
9753 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9754   if test -w "$cache_file"; then
9755     test "x$cache_file" != "x/dev/null" &&
9756       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9757 echo "$as_me: updating cache $cache_file" >&6;}
9758     cat confcache >$cache_file
9759   else
9760     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9761 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9762   fi
9763 fi
9764 rm -f confcache
9765
9766 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9767 # Let make expand exec_prefix.
9768 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9769
9770 DEFS=-DHAVE_CONFIG_H
9771
9772 ac_libobjs=
9773 ac_ltlibobjs=
9774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9775   # 1. Remove the extension, and $U if already installed.
9776   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9777   ac_i=`echo "$ac_i" | sed "$ac_script"`
9778   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9779   #    will be set to the directory where LIBOBJS objects are built.
9780   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9781   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9782 done
9783 LIBOBJS=$ac_libobjs
9784
9785 LTLIBOBJS=$ac_ltlibobjs
9786
9787
9788
9789 : ${CONFIG_STATUS=./config.status}
9790 ac_clean_files_save=$ac_clean_files
9791 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9792 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9793 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9794 cat >$CONFIG_STATUS <<_ACEOF
9795 #! $SHELL
9796 # Generated by $as_me.
9797 # Run this file to recreate the current configuration.
9798 # Compiler output produced by configure, useful for debugging
9799 # configure, is in config.log if it exists.
9800
9801 debug=false
9802 ac_cs_recheck=false
9803 ac_cs_silent=false
9804 SHELL=\${CONFIG_SHELL-$SHELL}
9805 _ACEOF
9806
9807 cat >>$CONFIG_STATUS <<\_ACEOF
9808 ## --------------------- ##
9809 ## M4sh Initialization.  ##
9810 ## --------------------- ##
9811
9812 # Be more Bourne compatible
9813 DUALCASE=1; export DUALCASE # for MKS sh
9814 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9815   emulate sh
9816   NULLCMD=:
9817   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9818   # is contrary to our usage.  Disable this feature.
9819   alias -g '${1+"$@"}'='"$@"'
9820   setopt NO_GLOB_SUBST
9821 else
9822   case `(set -o) 2>/dev/null` in
9823   *posix*) set -o posix ;;
9824 esac
9825
9826 fi
9827
9828
9829
9830
9831 # PATH needs CR
9832 # Avoid depending upon Character Ranges.
9833 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9834 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9835 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9836 as_cr_digits='0123456789'
9837 as_cr_alnum=$as_cr_Letters$as_cr_digits
9838
9839 # The user is always right.
9840 if test "${PATH_SEPARATOR+set}" != set; then
9841   echo "#! /bin/sh" >conf$$.sh
9842   echo  "exit 0"   >>conf$$.sh
9843   chmod +x conf$$.sh
9844   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9845     PATH_SEPARATOR=';'
9846   else
9847     PATH_SEPARATOR=:
9848   fi
9849   rm -f conf$$.sh
9850 fi
9851
9852 # Support unset when possible.
9853 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9854   as_unset=unset
9855 else
9856   as_unset=false
9857 fi
9858
9859
9860 # IFS
9861 # We need space, tab and new line, in precisely that order.  Quoting is
9862 # there to prevent editors from complaining about space-tab.
9863 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9864 # splitting by setting IFS to empty value.)
9865 as_nl='
9866 '
9867 IFS=" ""        $as_nl"
9868
9869 # Find who we are.  Look in the path if we contain no directory separator.
9870 case $0 in
9871   *[\\/]* ) as_myself=$0 ;;
9872   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 for as_dir in $PATH
9874 do
9875   IFS=$as_save_IFS
9876   test -z "$as_dir" && as_dir=.
9877   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9878 done
9879 IFS=$as_save_IFS
9880
9881      ;;
9882 esac
9883 # We did not find ourselves, most probably we were run as `sh COMMAND'
9884 # in which case we are not to be found in the path.
9885 if test "x$as_myself" = x; then
9886   as_myself=$0
9887 fi
9888 if test ! -f "$as_myself"; then
9889   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9890   { (exit 1); exit 1; }
9891 fi
9892
9893 # Work around bugs in pre-3.0 UWIN ksh.
9894 for as_var in ENV MAIL MAILPATH
9895 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9896 done
9897 PS1='$ '
9898 PS2='> '
9899 PS4='+ '
9900
9901 # NLS nuisances.
9902 for as_var in \
9903   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9904   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9905   LC_TELEPHONE LC_TIME
9906 do
9907   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9908     eval $as_var=C; export $as_var
9909   else
9910     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9911   fi
9912 done
9913
9914 # Required to use basename.
9915 if expr a : '\(a\)' >/dev/null 2>&1 &&
9916    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9917   as_expr=expr
9918 else
9919   as_expr=false
9920 fi
9921
9922 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9923   as_basename=basename
9924 else
9925   as_basename=false
9926 fi
9927
9928
9929 # Name of the executable.
9930 as_me=`$as_basename -- "$0" ||
9931 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9932          X"$0" : 'X\(//\)$' \| \
9933          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9934 echo X/"$0" |
9935     sed '/^.*\/\([^/][^/]*\)\/*$/{
9936             s//\1/
9937             q
9938           }
9939           /^X\/\(\/\/\)$/{
9940             s//\1/
9941             q
9942           }
9943           /^X\/\(\/\).*/{
9944             s//\1/
9945             q
9946           }
9947           s/.*/./; q'`
9948
9949 # CDPATH.
9950 $as_unset CDPATH
9951
9952
9953
9954   as_lineno_1=$LINENO
9955   as_lineno_2=$LINENO
9956   test "x$as_lineno_1" != "x$as_lineno_2" &&
9957   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9958
9959   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9960   # uniformly replaced by the line number.  The first 'sed' inserts a
9961   # line-number line after each line using $LINENO; the second 'sed'
9962   # does the real work.  The second script uses 'N' to pair each
9963   # line-number line with the line containing $LINENO, and appends
9964   # trailing '-' during substitution so that $LINENO is not a special
9965   # case at line end.
9966   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9967   # scripts with optimization help from Paolo Bonzini.  Blame Lee
9968   # E. McMahon (1931-1989) for sed's syntax.  :-)
9969   sed -n '
9970     p
9971     /[$]LINENO/=
9972   ' <$as_myself |
9973     sed '
9974       s/[$]LINENO.*/&-/
9975       t lineno
9976       b
9977       :lineno
9978       N
9979       :loop
9980       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9981       t loop
9982       s/-\n.*//
9983     ' >$as_me.lineno &&
9984   chmod +x "$as_me.lineno" ||
9985     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9986    { (exit 1); exit 1; }; }
9987
9988   # Don't try to exec as it changes $[0], causing all sort of problems
9989   # (the dirname of $[0] is not the place where we might find the
9990   # original and so on.  Autoconf is especially sensitive to this).
9991   . "./$as_me.lineno"
9992   # Exit status is that of the last command.
9993   exit
9994 }
9995
9996
9997 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9998   as_dirname=dirname
9999 else
10000   as_dirname=false
10001 fi
10002
10003 ECHO_C= ECHO_N= ECHO_T=
10004 case `echo -n x` in
10005 -n*)
10006   case `echo 'x\c'` in
10007   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10008   *)   ECHO_C='\c';;
10009   esac;;
10010 *)
10011   ECHO_N='-n';;
10012 esac
10013
10014 if expr a : '\(a\)' >/dev/null 2>&1 &&
10015    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10016   as_expr=expr
10017 else
10018   as_expr=false
10019 fi
10020
10021 rm -f conf$$ conf$$.exe conf$$.file
10022 if test -d conf$$.dir; then
10023   rm -f conf$$.dir/conf$$.file
10024 else
10025   rm -f conf$$.dir
10026   mkdir conf$$.dir
10027 fi
10028 echo >conf$$.file
10029 if ln -s conf$$.file conf$$ 2>/dev/null; then
10030   as_ln_s='ln -s'
10031   # ... but there are two gotchas:
10032   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10033   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10034   # In both cases, we have to default to `cp -p'.
10035   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10036     as_ln_s='cp -p'
10037 elif ln conf$$.file conf$$ 2>/dev/null; then
10038   as_ln_s=ln
10039 else
10040   as_ln_s='cp -p'
10041 fi
10042 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10043 rmdir conf$$.dir 2>/dev/null
10044
10045 if mkdir -p . 2>/dev/null; then
10046   as_mkdir_p=:
10047 else
10048   test -d ./-p && rmdir ./-p
10049   as_mkdir_p=false
10050 fi
10051
10052 if test -x / >/dev/null 2>&1; then
10053   as_test_x='test -x'
10054 else
10055   if ls -dL / >/dev/null 2>&1; then
10056     as_ls_L_option=L
10057   else
10058     as_ls_L_option=
10059   fi
10060   as_test_x='
10061     eval sh -c '\''
10062       if test -d "$1"; then
10063         test -d "$1/.";
10064       else
10065         case $1 in
10066         -*)set "./$1";;
10067         esac;
10068         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10069         ???[sx]*):;;*)false;;esac;fi
10070     '\'' sh
10071   '
10072 fi
10073 as_executable_p=$as_test_x
10074
10075 # Sed expression to map a string onto a valid CPP name.
10076 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10077
10078 # Sed expression to map a string onto a valid variable name.
10079 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10080
10081
10082 exec 6>&1
10083
10084 # Save the log message, to keep $[0] and so on meaningful, and to
10085 # report actual input values of CONFIG_FILES etc. instead of their
10086 # values after options handling.
10087 ac_log="
10088 This file was extended by $as_me, which was
10089 generated by GNU Autoconf 2.61.  Invocation command line was
10090
10091   CONFIG_FILES    = $CONFIG_FILES
10092   CONFIG_HEADERS  = $CONFIG_HEADERS
10093   CONFIG_LINKS    = $CONFIG_LINKS
10094   CONFIG_COMMANDS = $CONFIG_COMMANDS
10095   $ $0 $@
10096
10097 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10098 "
10099
10100 _ACEOF
10101
10102 cat >>$CONFIG_STATUS <<_ACEOF
10103 # Files that config.status was made for.
10104 config_files="$ac_config_files"
10105 config_headers="$ac_config_headers"
10106
10107 _ACEOF
10108
10109 cat >>$CONFIG_STATUS <<\_ACEOF
10110 ac_cs_usage="\
10111 \`$as_me' instantiates files from templates according to the
10112 current configuration.
10113
10114 Usage: $0 [OPTIONS] [FILE]...
10115
10116   -h, --help       print this help, then exit
10117   -V, --version    print version number and configuration settings, then exit
10118   -q, --quiet      do not print progress messages
10119   -d, --debug      don't remove temporary files
10120       --recheck    update $as_me by reconfiguring in the same conditions
10121   --file=FILE[:TEMPLATE]
10122                    instantiate the configuration file FILE
10123   --header=FILE[:TEMPLATE]
10124                    instantiate the configuration header FILE
10125
10126 Configuration files:
10127 $config_files
10128
10129 Configuration headers:
10130 $config_headers
10131
10132 Report bugs to <bug-autoconf@gnu.org>."
10133
10134 _ACEOF
10135 cat >>$CONFIG_STATUS <<_ACEOF
10136 ac_cs_version="\\
10137 config.status
10138 configured by $0, generated by GNU Autoconf 2.61,
10139   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10140
10141 Copyright (C) 2006 Free Software Foundation, Inc.
10142 This config.status script is free software; the Free Software Foundation
10143 gives unlimited permission to copy, distribute and modify it."
10144
10145 ac_pwd='$ac_pwd'
10146 srcdir='$srcdir'
10147 INSTALL='$INSTALL'
10148 _ACEOF
10149
10150 cat >>$CONFIG_STATUS <<\_ACEOF
10151 # If no file are specified by the user, then we need to provide default
10152 # value.  By we need to know if files were specified by the user.
10153 ac_need_defaults=:
10154 while test $# != 0
10155 do
10156   case $1 in
10157   --*=*)
10158     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10159     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10160     ac_shift=:
10161     ;;
10162   *)
10163     ac_option=$1
10164     ac_optarg=$2
10165     ac_shift=shift
10166     ;;
10167   esac
10168
10169   case $ac_option in
10170   # Handling of the options.
10171   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10172     ac_cs_recheck=: ;;
10173   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10174     echo "$ac_cs_version"; exit ;;
10175   --debug | --debu | --deb | --de | --d | -d )
10176     debug=: ;;
10177   --file | --fil | --fi | --f )
10178     $ac_shift
10179     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10180     ac_need_defaults=false;;
10181   --header | --heade | --head | --hea )
10182     $ac_shift
10183     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10184     ac_need_defaults=false;;
10185   --he | --h)
10186     # Conflict between --help and --header
10187     { echo "$as_me: error: ambiguous option: $1
10188 Try \`$0 --help' for more information." >&2
10189    { (exit 1); exit 1; }; };;
10190   --help | --hel | -h )
10191     echo "$ac_cs_usage"; exit ;;
10192   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10193   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10194     ac_cs_silent=: ;;
10195
10196   # This is an error.
10197   -*) { echo "$as_me: error: unrecognized option: $1
10198 Try \`$0 --help' for more information." >&2
10199    { (exit 1); exit 1; }; } ;;
10200
10201   *) ac_config_targets="$ac_config_targets $1"
10202      ac_need_defaults=false ;;
10203
10204   esac
10205   shift
10206 done
10207
10208 ac_configure_extra_args=
10209
10210 if $ac_cs_silent; then
10211   exec 6>/dev/null
10212   ac_configure_extra_args="$ac_configure_extra_args --silent"
10213 fi
10214
10215 _ACEOF
10216 cat >>$CONFIG_STATUS <<_ACEOF
10217 if \$ac_cs_recheck; then
10218   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10219   CONFIG_SHELL=$SHELL
10220   export CONFIG_SHELL
10221   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10222 fi
10223
10224 _ACEOF
10225 cat >>$CONFIG_STATUS <<\_ACEOF
10226 exec 5>>config.log
10227 {
10228   echo
10229   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10230 ## Running $as_me. ##
10231 _ASBOX
10232   echo "$ac_log"
10233 } >&5
10234
10235 _ACEOF
10236 cat >>$CONFIG_STATUS <<_ACEOF
10237 _ACEOF
10238
10239 cat >>$CONFIG_STATUS <<\_ACEOF
10240
10241 # Handling of arguments.
10242 for ac_config_target in $ac_config_targets
10243 do
10244   case $ac_config_target in
10245     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10246     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10247
10248   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10249 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10250    { (exit 1); exit 1; }; };;
10251   esac
10252 done
10253
10254
10255 # If the user did not use the arguments to specify the items to instantiate,
10256 # then the envvar interface is used.  Set only those that are not.
10257 # We use the long form for the default assignment because of an extremely
10258 # bizarre bug on SunOS 4.1.3.
10259 if $ac_need_defaults; then
10260   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10261   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10262 fi
10263
10264 # Have a temporary directory for convenience.  Make it in the build tree
10265 # simply because there is no reason against having it here, and in addition,
10266 # creating and moving files from /tmp can sometimes cause problems.
10267 # Hook for its removal unless debugging.
10268 # Note that there is a small window in which the directory will not be cleaned:
10269 # after its creation but before its name has been assigned to `$tmp'.
10270 $debug ||
10271 {
10272   tmp=
10273   trap 'exit_status=$?
10274   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10275 ' 0
10276   trap '{ (exit 1); exit 1; }' 1 2 13 15
10277 }
10278 # Create a (secure) tmp directory for tmp files.
10279
10280 {
10281   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10282   test -n "$tmp" && test -d "$tmp"
10283 }  ||
10284 {
10285   tmp=./conf$$-$RANDOM
10286   (umask 077 && mkdir "$tmp")
10287 } ||
10288 {
10289    echo "$me: cannot create a temporary directory in ." >&2
10290    { (exit 1); exit 1; }
10291 }
10292
10293 #
10294 # Set up the sed scripts for CONFIG_FILES section.
10295 #
10296
10297 # No need to generate the scripts if there are no CONFIG_FILES.
10298 # This happens for instance when ./config.status config.h
10299 if test -n "$CONFIG_FILES"; then
10300
10301 _ACEOF
10302
10303
10304
10305 ac_delim='%!_!# '
10306 for ac_last_try in false false false false false :; do
10307   cat >conf$$subs.sed <<_ACEOF
10308 SHELL!$SHELL$ac_delim
10309 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10310 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10311 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10312 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10313 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10314 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10315 exec_prefix!$exec_prefix$ac_delim
10316 prefix!$prefix$ac_delim
10317 program_transform_name!$program_transform_name$ac_delim
10318 bindir!$bindir$ac_delim
10319 sbindir!$sbindir$ac_delim
10320 libexecdir!$libexecdir$ac_delim
10321 datarootdir!$datarootdir$ac_delim
10322 datadir!$datadir$ac_delim
10323 sysconfdir!$sysconfdir$ac_delim
10324 sharedstatedir!$sharedstatedir$ac_delim
10325 localstatedir!$localstatedir$ac_delim
10326 includedir!$includedir$ac_delim
10327 oldincludedir!$oldincludedir$ac_delim
10328 docdir!$docdir$ac_delim
10329 infodir!$infodir$ac_delim
10330 htmldir!$htmldir$ac_delim
10331 dvidir!$dvidir$ac_delim
10332 pdfdir!$pdfdir$ac_delim
10333 psdir!$psdir$ac_delim
10334 libdir!$libdir$ac_delim
10335 localedir!$localedir$ac_delim
10336 mandir!$mandir$ac_delim
10337 DEFS!$DEFS$ac_delim
10338 ECHO_C!$ECHO_C$ac_delim
10339 ECHO_N!$ECHO_N$ac_delim
10340 ECHO_T!$ECHO_T$ac_delim
10341 LIBS!$LIBS$ac_delim
10342 build_alias!$build_alias$ac_delim
10343 host_alias!$host_alias$ac_delim
10344 target_alias!$target_alias$ac_delim
10345 build!$build$ac_delim
10346 build_cpu!$build_cpu$ac_delim
10347 build_vendor!$build_vendor$ac_delim
10348 build_os!$build_os$ac_delim
10349 host!$host$ac_delim
10350 host_cpu!$host_cpu$ac_delim
10351 host_vendor!$host_vendor$ac_delim
10352 host_os!$host_os$ac_delim
10353 SHARED!$SHARED$ac_delim
10354 CC!$CC$ac_delim
10355 CFLAGS!$CFLAGS$ac_delim
10356 LDFLAGS!$LDFLAGS$ac_delim
10357 CPPFLAGS!$CPPFLAGS$ac_delim
10358 ac_ct_CC!$ac_ct_CC$ac_delim
10359 EXEEXT!$EXEEXT$ac_delim
10360 OBJEXT!$OBJEXT$ac_delim
10361 CXX!$CXX$ac_delim
10362 CXXFLAGS!$CXXFLAGS$ac_delim
10363 ac_ct_CXX!$ac_ct_CXX$ac_delim
10364 CPP!$CPP$ac_delim
10365 RANLIB!$RANLIB$ac_delim
10366 SET_MAKE!$SET_MAKE$ac_delim
10367 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10368 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10369 INSTALL_DATA!$INSTALL_DATA$ac_delim
10370 LN_S!$LN_S$ac_delim
10371 UNCOMPRESS!$UNCOMPRESS$ac_delim
10372 AREXT!$AREXT$ac_delim
10373 AR!$AR$ac_delim
10374 SLEXT!$SLEXT$ac_delim
10375 CXXLIBS!$CXXLIBS$ac_delim
10376 STRIP!$STRIP$ac_delim
10377 target!$target$ac_delim
10378 target_cpu!$target_cpu$ac_delim
10379 target_vendor!$target_vendor$ac_delim
10380 target_os!$target_os$ac_delim
10381 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
10382 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
10383 GREP!$GREP$ac_delim
10384 EGREP!$EGREP$ac_delim
10385 PACKAGE!$PACKAGE$ac_delim
10386 VERSION!$VERSION$ac_delim
10387 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
10388 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
10389 lame_objects!$lame_objects$ac_delim
10390 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
10391 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
10392 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
10393 USE_GZIP!$USE_GZIP$ac_delim
10394 PYTHON_LIB!$PYTHON_LIB$ac_delim
10395 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
10396 PDF2SWF!$PDF2SWF$ac_delim
10397 LIBPDF!$LIBPDF$ac_delim
10398 JPEG2SWF!$JPEG2SWF$ac_delim
10399 GIF2SWF!$GIF2SWF$ac_delim
10400 PNG2SWF!$PNG2SWF$ac_delim
10401 LIBOBJS!$LIBOBJS$ac_delim
10402 LTLIBOBJS!$LTLIBOBJS$ac_delim
10403 _ACEOF
10404
10405   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
10406     break
10407   elif $ac_last_try; then
10408     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10409 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10410    { (exit 1); exit 1; }; }
10411   else
10412     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10413   fi
10414 done
10415
10416 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10417 if test -n "$ac_eof"; then
10418   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10419   ac_eof=`expr $ac_eof + 1`
10420 fi
10421
10422 cat >>$CONFIG_STATUS <<_ACEOF
10423 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10425 _ACEOF
10426 sed '
10427 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10428 s/^/s,@/; s/!/@,|#_!!_#|/
10429 :n
10430 t n
10431 s/'"$ac_delim"'$/,g/; t
10432 s/$/\\/; p
10433 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10434 ' >>$CONFIG_STATUS <conf$$subs.sed
10435 rm -f conf$$subs.sed
10436 cat >>$CONFIG_STATUS <<_ACEOF
10437 :end
10438 s/|#_!!_#|//g
10439 CEOF$ac_eof
10440 _ACEOF
10441
10442
10443 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10444 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10445 # trailing colons and then remove the whole line if VPATH becomes empty
10446 # (actually we leave an empty line to preserve line numbers).
10447 if test "x$srcdir" = x.; then
10448   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10449 s/:*\$(srcdir):*/:/
10450 s/:*\${srcdir}:*/:/
10451 s/:*@srcdir@:*/:/
10452 s/^\([^=]*=[     ]*\):*/\1/
10453 s/:*$//
10454 s/^[^=]*=[       ]*$//
10455 }'
10456 fi
10457
10458 cat >>$CONFIG_STATUS <<\_ACEOF
10459 fi # test -n "$CONFIG_FILES"
10460
10461
10462 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
10463 do
10464   case $ac_tag in
10465   :[FHLC]) ac_mode=$ac_tag; continue;;
10466   esac
10467   case $ac_mode$ac_tag in
10468   :[FHL]*:*);;
10469   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10470 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10471    { (exit 1); exit 1; }; };;
10472   :[FH]-) ac_tag=-:-;;
10473   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10474   esac
10475   ac_save_IFS=$IFS
10476   IFS=:
10477   set x $ac_tag
10478   IFS=$ac_save_IFS
10479   shift
10480   ac_file=$1
10481   shift
10482
10483   case $ac_mode in
10484   :L) ac_source=$1;;
10485   :[FH])
10486     ac_file_inputs=
10487     for ac_f
10488     do
10489       case $ac_f in
10490       -) ac_f="$tmp/stdin";;
10491       *) # Look for the file first in the build tree, then in the source tree
10492          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10493          # because $ac_f cannot contain `:'.
10494          test -f "$ac_f" ||
10495            case $ac_f in
10496            [\\/$]*) false;;
10497            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10498            esac ||
10499            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10500 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10501    { (exit 1); exit 1; }; };;
10502       esac
10503       ac_file_inputs="$ac_file_inputs $ac_f"
10504     done
10505
10506     # Let's still pretend it is `configure' which instantiates (i.e., don't
10507     # use $as_me), people would be surprised to read:
10508     #    /* config.h.  Generated by config.status.  */
10509     configure_input="Generated from "`IFS=:
10510           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10511     if test x"$ac_file" != x-; then
10512       configure_input="$ac_file.  $configure_input"
10513       { echo "$as_me:$LINENO: creating $ac_file" >&5
10514 echo "$as_me: creating $ac_file" >&6;}
10515     fi
10516
10517     case $ac_tag in
10518     *:-:* | *:-) cat >"$tmp/stdin";;
10519     esac
10520     ;;
10521   esac
10522
10523   ac_dir=`$as_dirname -- "$ac_file" ||
10524 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10525          X"$ac_file" : 'X\(//\)[^/]' \| \
10526          X"$ac_file" : 'X\(//\)$' \| \
10527          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10528 echo X"$ac_file" |
10529     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10530             s//\1/
10531             q
10532           }
10533           /^X\(\/\/\)[^/].*/{
10534             s//\1/
10535             q
10536           }
10537           /^X\(\/\/\)$/{
10538             s//\1/
10539             q
10540           }
10541           /^X\(\/\).*/{
10542             s//\1/
10543             q
10544           }
10545           s/.*/./; q'`
10546   { as_dir="$ac_dir"
10547   case $as_dir in #(
10548   -*) as_dir=./$as_dir;;
10549   esac
10550   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10551     as_dirs=
10552     while :; do
10553       case $as_dir in #(
10554       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10555       *) as_qdir=$as_dir;;
10556       esac
10557       as_dirs="'$as_qdir' $as_dirs"
10558       as_dir=`$as_dirname -- "$as_dir" ||
10559 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10560          X"$as_dir" : 'X\(//\)[^/]' \| \
10561          X"$as_dir" : 'X\(//\)$' \| \
10562          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10563 echo X"$as_dir" |
10564     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10565             s//\1/
10566             q
10567           }
10568           /^X\(\/\/\)[^/].*/{
10569             s//\1/
10570             q
10571           }
10572           /^X\(\/\/\)$/{
10573             s//\1/
10574             q
10575           }
10576           /^X\(\/\).*/{
10577             s//\1/
10578             q
10579           }
10580           s/.*/./; q'`
10581       test -d "$as_dir" && break
10582     done
10583     test -z "$as_dirs" || eval "mkdir $as_dirs"
10584   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10585 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10586    { (exit 1); exit 1; }; }; }
10587   ac_builddir=.
10588
10589 case "$ac_dir" in
10590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10591 *)
10592   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10593   # A ".." for each directory in $ac_dir_suffix.
10594   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10595   case $ac_top_builddir_sub in
10596   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10597   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10598   esac ;;
10599 esac
10600 ac_abs_top_builddir=$ac_pwd
10601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10602 # for backward compatibility:
10603 ac_top_builddir=$ac_top_build_prefix
10604
10605 case $srcdir in
10606   .)  # We are building in place.
10607     ac_srcdir=.
10608     ac_top_srcdir=$ac_top_builddir_sub
10609     ac_abs_top_srcdir=$ac_pwd ;;
10610   [\\/]* | ?:[\\/]* )  # Absolute name.
10611     ac_srcdir=$srcdir$ac_dir_suffix;
10612     ac_top_srcdir=$srcdir
10613     ac_abs_top_srcdir=$srcdir ;;
10614   *) # Relative name.
10615     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10616     ac_top_srcdir=$ac_top_build_prefix$srcdir
10617     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10618 esac
10619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10620
10621
10622   case $ac_mode in
10623   :F)
10624   #
10625   # CONFIG_FILE
10626   #
10627
10628   case $INSTALL in
10629   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10630   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10631   esac
10632 _ACEOF
10633
10634 cat >>$CONFIG_STATUS <<\_ACEOF
10635 # If the template does not know about datarootdir, expand it.
10636 # FIXME: This hack should be removed a few years after 2.60.
10637 ac_datarootdir_hack=; ac_datarootdir_seen=
10638
10639 case `sed -n '/datarootdir/ {
10640   p
10641   q
10642 }
10643 /@datadir@/p
10644 /@docdir@/p
10645 /@infodir@/p
10646 /@localedir@/p
10647 /@mandir@/p
10648 ' $ac_file_inputs` in
10649 *datarootdir*) ac_datarootdir_seen=yes;;
10650 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10651   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10652 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10653 _ACEOF
10654 cat >>$CONFIG_STATUS <<_ACEOF
10655   ac_datarootdir_hack='
10656   s&@datadir@&$datadir&g
10657   s&@docdir@&$docdir&g
10658   s&@infodir@&$infodir&g
10659   s&@localedir@&$localedir&g
10660   s&@mandir@&$mandir&g
10661     s&\\\${datarootdir}&$datarootdir&g' ;;
10662 esac
10663 _ACEOF
10664
10665 # Neutralize VPATH when `$srcdir' = `.'.
10666 # Shell code in configure.ac might set extrasub.
10667 # FIXME: do we really want to maintain this feature?
10668 cat >>$CONFIG_STATUS <<_ACEOF
10669   sed "$ac_vpsub
10670 $extrasub
10671 _ACEOF
10672 cat >>$CONFIG_STATUS <<\_ACEOF
10673 :t
10674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10675 s&@configure_input@&$configure_input&;t t
10676 s&@top_builddir@&$ac_top_builddir_sub&;t t
10677 s&@srcdir@&$ac_srcdir&;t t
10678 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10679 s&@top_srcdir@&$ac_top_srcdir&;t t
10680 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10681 s&@builddir@&$ac_builddir&;t t
10682 s&@abs_builddir@&$ac_abs_builddir&;t t
10683 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10684 s&@INSTALL@&$ac_INSTALL&;t t
10685 $ac_datarootdir_hack
10686 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
10687
10688 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10689   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10690   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10691   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10692 which seems to be undefined.  Please make sure it is defined." >&5
10693 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10694 which seems to be undefined.  Please make sure it is defined." >&2;}
10695
10696   rm -f "$tmp/stdin"
10697   case $ac_file in
10698   -) cat "$tmp/out"; rm -f "$tmp/out";;
10699   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10700   esac
10701  ;;
10702   :H)
10703   #
10704   # CONFIG_HEADER
10705   #
10706 _ACEOF
10707
10708 # Transform confdefs.h into a sed script `conftest.defines', that
10709 # substitutes the proper values into config.h.in to produce config.h.
10710 rm -f conftest.defines conftest.tail
10711 # First, append a space to every undef/define line, to ease matching.
10712 echo 's/$/ /' >conftest.defines
10713 # Then, protect against being on the right side of a sed subst, or in
10714 # an unquoted here document, in config.status.  If some macros were
10715 # called several times there might be several #defines for the same
10716 # symbol, which is useless.  But do not sort them, since the last
10717 # AC_DEFINE must be honored.
10718 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10719 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10720 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10721 # PARAMS is the parameter list in the macro definition--in most cases, it's
10722 # just an empty string.
10723 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
10724 ac_dB='\\)[      (].*,\\1define\\2'
10725 ac_dC=' '
10726 ac_dD=' ,'
10727
10728 uniq confdefs.h |
10729   sed -n '
10730         t rset
10731         :rset
10732         s/^[     ]*#[    ]*define[       ][      ]*//
10733         t ok
10734         d
10735         :ok
10736         s/[\\&,]/\\&/g
10737         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10738         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10739   ' >>conftest.defines
10740
10741 # Remove the space that was appended to ease matching.
10742 # Then replace #undef with comments.  This is necessary, for
10743 # example, in the case of _POSIX_SOURCE, which is predefined and required
10744 # on some systems where configure will not decide to define it.
10745 # (The regexp can be short, since the line contains either #define or #undef.)
10746 echo 's/ $//
10747 s,^[     #]*u.*,/* & */,' >>conftest.defines
10748
10749 # Break up conftest.defines:
10750 ac_max_sed_lines=50
10751
10752 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10753 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10754 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10755 # et cetera.
10756 ac_in='$ac_file_inputs'
10757 ac_out='"$tmp/out1"'
10758 ac_nxt='"$tmp/out2"'
10759
10760 while :
10761 do
10762   # Write a here document:
10763     cat >>$CONFIG_STATUS <<_ACEOF
10764     # First, check the format of the line:
10765     cat >"\$tmp/defines.sed" <<\\CEOF
10766 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
10767 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
10768 b
10769 :def
10770 _ACEOF
10771   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10772   echo 'CEOF
10773     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10774   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10775   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10776   grep . conftest.tail >/dev/null || break
10777   rm -f conftest.defines
10778   mv conftest.tail conftest.defines
10779 done
10780 rm -f conftest.defines conftest.tail
10781
10782 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10783 cat >>$CONFIG_STATUS <<\_ACEOF
10784   if test x"$ac_file" != x-; then
10785     echo "/* $configure_input  */" >"$tmp/config.h"
10786     cat "$ac_result" >>"$tmp/config.h"
10787     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10788       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10789 echo "$as_me: $ac_file is unchanged" >&6;}
10790     else
10791       rm -f $ac_file
10792       mv "$tmp/config.h" $ac_file
10793     fi
10794   else
10795     echo "/* $configure_input  */"
10796     cat "$ac_result"
10797   fi
10798   rm -f "$tmp/out12"
10799  ;;
10800
10801
10802   esac
10803
10804 done # for ac_tag
10805
10806
10807 { (exit 0); exit 0; }
10808 _ACEOF
10809 chmod +x $CONFIG_STATUS
10810 ac_clean_files=$ac_clean_files_save
10811
10812
10813 # configure is writing to config.log, and then calls config.status.
10814 # config.status does its own redirection, appending to config.log.
10815 # Unfortunately, on DOS this fails, as config.log is still kept open
10816 # by configure, so config.status won't be able to write to it; its
10817 # output is simply discarded.  So we exec the FD to /dev/null,
10818 # effectively closing config.log, so it can be properly (re)opened and
10819 # appended to by config.status.  When coming back to configure, we
10820 # need to make the FD available again.
10821 if test "$no_create" != yes; then
10822   ac_cs_success=:
10823   ac_config_status_args=
10824   test "$silent" = yes &&
10825     ac_config_status_args="$ac_config_status_args --quiet"
10826   exec 5>/dev/null
10827   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10828   exec 5>>config.log
10829   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10830   # would make configure fail if this is the last instruction.
10831   $ac_cs_success || { (exit 1); exit 1; }
10832 fi
10833
10834
10835
10836 #
10837 # On development trees, create snapshots of config.status
10838 #
10839 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
10840     if test "x${MINGW}" = "xyes"; then
10841         echo cp config.status config.status.win32
10842         cp config.status config.status.win32
10843     else
10844         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
10845             echo cp config.status config.status.linux
10846             cp config.status config.status.linux
10847         fi
10848         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
10849             echo cp config.status config.status.debug
10850             cp config.status config.status.debug
10851         fi
10852         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
10853             echo cp config.status config.status.optimize
10854             cp config.status config.status.optimize
10855         fi
10856     fi
10857 fi