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