4a3ea2581dfd558d566e24a7b698f4443663d066
[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 PKG_CONFIG
681 AREXT
682 AR
683 SLEXT
684 CXXLIBS
685 STRIP
686 target
687 target_cpu
688 target_vendor
689 target_os
690 WORDS_BIGENDIAN
691 SYSTEM_BACKTICKS
692 GREP
693 EGREP
694 PACKAGE
695 VERSION
696 HAVE_UNISTD_H
697 FREETYPE_CONFIG
698 DEVICE_OPENGL
699 lame_in_source
700 LIBART_CFLAGS
701 LIBART_LIBS
702 art_in_source
703 POPPLER_CFLAGS
704 POPPLER_LIBS
705 CXXCPP
706 xpdf_in_source
707 splash_in_source
708 AVIFILE_CONFIG
709 VIDEO_LIBS
710 VIDEO_CFLAGS
711 USE_GZIP
712 PYTHON_LIB
713 PYTHON_INCLUDES
714 HAVE_PYTHON_IMAGING
715 PDF2SWF
716 LIBPDF
717 JPEG2SWF
718 GIF2SWF
719 PNG2SWF
720 LIBOBJS
721 LTLIBOBJS'
722 ac_subst_files=''
723       ac_precious_vars='build_alias
724 host_alias
725 target_alias
726 CC
727 CFLAGS
728 LDFLAGS
729 LIBS
730 CPPFLAGS
731 CXX
732 CXXFLAGS
733 CCC
734 CPP
735 PKG_CONFIG
736 LIBART_CFLAGS
737 LIBART_LIBS
738 POPPLER_CFLAGS
739 POPPLER_LIBS
740 CXXCPP'
741
742
743 # Initialize some variables set by options.
744 ac_init_help=
745 ac_init_version=false
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
748 cache_file=/dev/null
749 exec_prefix=NONE
750 no_create=
751 no_recursion=
752 prefix=NONE
753 program_prefix=NONE
754 program_suffix=NONE
755 program_transform_name=s,x,x,
756 silent=
757 site=
758 srcdir=
759 verbose=
760 x_includes=NONE
761 x_libraries=NONE
762
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir='${exec_prefix}/bin'
770 sbindir='${exec_prefix}/sbin'
771 libexecdir='${exec_prefix}/libexec'
772 datarootdir='${prefix}/share'
773 datadir='${datarootdir}'
774 sysconfdir='${prefix}/etc'
775 sharedstatedir='${prefix}/com'
776 localstatedir='${prefix}/var'
777 includedir='${prefix}/include'
778 oldincludedir='/usr/include'
779 docdir='${datarootdir}/doc/${PACKAGE}'
780 infodir='${datarootdir}/info'
781 htmldir='${docdir}'
782 dvidir='${docdir}'
783 pdfdir='${docdir}'
784 psdir='${docdir}'
785 libdir='${exec_prefix}/lib'
786 localedir='${datarootdir}/locale'
787 mandir='${datarootdir}/man'
788
789 ac_prev=
790 ac_dashdash=
791 for ac_option
792 do
793   # If the previous option needs an argument, assign it.
794   if test -n "$ac_prev"; then
795     eval $ac_prev=\$ac_option
796     ac_prev=
797     continue
798   fi
799
800   case $ac_option in
801   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802   *)    ac_optarg=yes ;;
803   esac
804
805   # Accept the important Cygnus configure options, so we can diagnose typos.
806
807   case $ac_dashdash$ac_option in
808   --)
809     ac_dashdash=yes ;;
810
811   -bindir | --bindir | --bindi | --bind | --bin | --bi)
812     ac_prev=bindir ;;
813   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814     bindir=$ac_optarg ;;
815
816   -build | --build | --buil | --bui | --bu)
817     ac_prev=build_alias ;;
818   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
819     build_alias=$ac_optarg ;;
820
821   -cache-file | --cache-file | --cache-fil | --cache-fi \
822   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823     ac_prev=cache_file ;;
824   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826     cache_file=$ac_optarg ;;
827
828   --config-cache | -C)
829     cache_file=config.cache ;;
830
831   -datadir | --datadir | --datadi | --datad)
832     ac_prev=datadir ;;
833   -datadir=* | --datadir=* | --datadi=* | --datad=*)
834     datadir=$ac_optarg ;;
835
836   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837   | --dataroo | --dataro | --datar)
838     ac_prev=datarootdir ;;
839   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841     datarootdir=$ac_optarg ;;
842
843   -disable-* | --disable-*)
844     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845     # Reject names that are not valid shell variable names.
846     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
847       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848    { (exit 1); exit 1; }; }
849     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850     eval enable_$ac_feature=no ;;
851
852   -docdir | --docdir | --docdi | --doc | --do)
853     ac_prev=docdir ;;
854   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855     docdir=$ac_optarg ;;
856
857   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858     ac_prev=dvidir ;;
859   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860     dvidir=$ac_optarg ;;
861
862   -enable-* | --enable-*)
863     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864     # Reject names that are not valid shell variable names.
865     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
866       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
867    { (exit 1); exit 1; }; }
868     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
869     eval enable_$ac_feature=\$ac_optarg ;;
870
871   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873   | --exec | --exe | --ex)
874     ac_prev=exec_prefix ;;
875   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877   | --exec=* | --exe=* | --ex=*)
878     exec_prefix=$ac_optarg ;;
879
880   -gas | --gas | --ga | --g)
881     # Obsolete; use --with-gas.
882     with_gas=yes ;;
883
884   -help | --help | --hel | --he | -h)
885     ac_init_help=long ;;
886   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887     ac_init_help=recursive ;;
888   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889     ac_init_help=short ;;
890
891   -host | --host | --hos | --ho)
892     ac_prev=host_alias ;;
893   -host=* | --host=* | --hos=* | --ho=*)
894     host_alias=$ac_optarg ;;
895
896   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897     ac_prev=htmldir ;;
898   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899   | --ht=*)
900     htmldir=$ac_optarg ;;
901
902   -includedir | --includedir | --includedi | --included | --include \
903   | --includ | --inclu | --incl | --inc)
904     ac_prev=includedir ;;
905   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906   | --includ=* | --inclu=* | --incl=* | --inc=*)
907     includedir=$ac_optarg ;;
908
909   -infodir | --infodir | --infodi | --infod | --info | --inf)
910     ac_prev=infodir ;;
911   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
912     infodir=$ac_optarg ;;
913
914   -libdir | --libdir | --libdi | --libd)
915     ac_prev=libdir ;;
916   -libdir=* | --libdir=* | --libdi=* | --libd=*)
917     libdir=$ac_optarg ;;
918
919   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920   | --libexe | --libex | --libe)
921     ac_prev=libexecdir ;;
922   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923   | --libexe=* | --libex=* | --libe=*)
924     libexecdir=$ac_optarg ;;
925
926   -localedir | --localedir | --localedi | --localed | --locale)
927     ac_prev=localedir ;;
928   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929     localedir=$ac_optarg ;;
930
931   -localstatedir | --localstatedir | --localstatedi | --localstated \
932   | --localstate | --localstat | --localsta | --localst | --locals)
933     ac_prev=localstatedir ;;
934   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
935   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
936     localstatedir=$ac_optarg ;;
937
938   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939     ac_prev=mandir ;;
940   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941     mandir=$ac_optarg ;;
942
943   -nfp | --nfp | --nf)
944     # Obsolete; use --without-fp.
945     with_fp=no ;;
946
947   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948   | --no-cr | --no-c | -n)
949     no_create=yes ;;
950
951   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953     no_recursion=yes ;;
954
955   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957   | --oldin | --oldi | --old | --ol | --o)
958     ac_prev=oldincludedir ;;
959   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
962     oldincludedir=$ac_optarg ;;
963
964   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965     ac_prev=prefix ;;
966   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
967     prefix=$ac_optarg ;;
968
969   -program-prefix | --program-prefix | --program-prefi | --program-pref \
970   | --program-pre | --program-pr | --program-p)
971     ac_prev=program_prefix ;;
972   -program-prefix=* | --program-prefix=* | --program-prefi=* \
973   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
974     program_prefix=$ac_optarg ;;
975
976   -program-suffix | --program-suffix | --program-suffi | --program-suff \
977   | --program-suf | --program-su | --program-s)
978     ac_prev=program_suffix ;;
979   -program-suffix=* | --program-suffix=* | --program-suffi=* \
980   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
981     program_suffix=$ac_optarg ;;
982
983   -program-transform-name | --program-transform-name \
984   | --program-transform-nam | --program-transform-na \
985   | --program-transform-n | --program-transform- \
986   | --program-transform | --program-transfor \
987   | --program-transfo | --program-transf \
988   | --program-trans | --program-tran \
989   | --progr-tra | --program-tr | --program-t)
990     ac_prev=program_transform_name ;;
991   -program-transform-name=* | --program-transform-name=* \
992   | --program-transform-nam=* | --program-transform-na=* \
993   | --program-transform-n=* | --program-transform-=* \
994   | --program-transform=* | --program-transfor=* \
995   | --program-transfo=* | --program-transf=* \
996   | --program-trans=* | --program-tran=* \
997   | --progr-tra=* | --program-tr=* | --program-t=*)
998     program_transform_name=$ac_optarg ;;
999
1000   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001     ac_prev=pdfdir ;;
1002   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003     pdfdir=$ac_optarg ;;
1004
1005   -psdir | --psdir | --psdi | --psd | --ps)
1006     ac_prev=psdir ;;
1007   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008     psdir=$ac_optarg ;;
1009
1010   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011   | -silent | --silent | --silen | --sile | --sil)
1012     silent=yes ;;
1013
1014   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015     ac_prev=sbindir ;;
1016   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017   | --sbi=* | --sb=*)
1018     sbindir=$ac_optarg ;;
1019
1020   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022   | --sharedst | --shareds | --shared | --share | --shar \
1023   | --sha | --sh)
1024     ac_prev=sharedstatedir ;;
1025   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028   | --sha=* | --sh=*)
1029     sharedstatedir=$ac_optarg ;;
1030
1031   -site | --site | --sit)
1032     ac_prev=site ;;
1033   -site=* | --site=* | --sit=*)
1034     site=$ac_optarg ;;
1035
1036   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037     ac_prev=srcdir ;;
1038   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039     srcdir=$ac_optarg ;;
1040
1041   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042   | --syscon | --sysco | --sysc | --sys | --sy)
1043     ac_prev=sysconfdir ;;
1044   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046     sysconfdir=$ac_optarg ;;
1047
1048   -target | --target | --targe | --targ | --tar | --ta | --t)
1049     ac_prev=target_alias ;;
1050   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051     target_alias=$ac_optarg ;;
1052
1053   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054     verbose=yes ;;
1055
1056   -version | --version | --versio | --versi | --vers | -V)
1057     ac_init_version=: ;;
1058
1059   -with-* | --with-*)
1060     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061     # Reject names that are not valid shell variable names.
1062     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063       { echo "$as_me: error: invalid package name: $ac_package" >&2
1064    { (exit 1); exit 1; }; }
1065     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1066     eval with_$ac_package=\$ac_optarg ;;
1067
1068   -without-* | --without-*)
1069     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070     # Reject names that are not valid shell variable names.
1071     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072       { echo "$as_me: error: invalid package name: $ac_package" >&2
1073    { (exit 1); exit 1; }; }
1074     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075     eval with_$ac_package=no ;;
1076
1077   --x)
1078     # Obsolete; use --with-x.
1079     with_x=yes ;;
1080
1081   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1082   | --x-incl | --x-inc | --x-in | --x-i)
1083     ac_prev=x_includes ;;
1084   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1085   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1086     x_includes=$ac_optarg ;;
1087
1088   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1089   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1090     ac_prev=x_libraries ;;
1091   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1093     x_libraries=$ac_optarg ;;
1094
1095   -*) { echo "$as_me: error: unrecognized option: $ac_option
1096 Try \`$0 --help' for more information." >&2
1097    { (exit 1); exit 1; }; }
1098     ;;
1099
1100   *=*)
1101     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102     # Reject names that are not valid shell variable names.
1103     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1104       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1105    { (exit 1); exit 1; }; }
1106     eval $ac_envvar=\$ac_optarg
1107     export $ac_envvar ;;
1108
1109   *)
1110     # FIXME: should be removed in autoconf 3.0.
1111     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115     ;;
1116
1117   esac
1118 done
1119
1120 if test -n "$ac_prev"; then
1121   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1122   { echo "$as_me: error: missing argument to $ac_option" >&2
1123    { (exit 1); exit 1; }; }
1124 fi
1125
1126 # Be sure to have absolute directory names.
1127 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128                 datadir sysconfdir sharedstatedir localstatedir includedir \
1129                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130                 libdir localedir mandir
1131 do
1132   eval ac_val=\$$ac_var
1133   case $ac_val in
1134     [\\/$]* | ?:[\\/]* )  continue;;
1135     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136   esac
1137   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1138    { (exit 1); exit 1; }; }
1139 done
1140
1141 # There might be people who depend on the old broken behavior: `$host'
1142 # used to hold the argument of --host etc.
1143 # FIXME: To remove some day.
1144 build=$build_alias
1145 host=$host_alias
1146 target=$target_alias
1147
1148 # FIXME: To remove some day.
1149 if test "x$host_alias" != x; then
1150   if test "x$build_alias" = x; then
1151     cross_compiling=maybe
1152     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1153     If a cross compiler is detected then cross compile mode will be used." >&2
1154   elif test "x$build_alias" != "x$host_alias"; then
1155     cross_compiling=yes
1156   fi
1157 fi
1158
1159 ac_tool_prefix=
1160 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1161
1162 test "$silent" = yes && exec 6>/dev/null
1163
1164
1165 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1166 ac_ls_di=`ls -di .` &&
1167 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1168   { echo "$as_me: error: Working directory cannot be determined" >&2
1169    { (exit 1); exit 1; }; }
1170 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171   { echo "$as_me: error: pwd does not report name of working directory" >&2
1172    { (exit 1); exit 1; }; }
1173
1174
1175 # Find the source files, if location was not specified.
1176 if test -z "$srcdir"; then
1177   ac_srcdir_defaulted=yes
1178   # Try the directory containing this script, then the parent directory.
1179   ac_confdir=`$as_dirname -- "$0" ||
1180 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181          X"$0" : 'X\(//\)[^/]' \| \
1182          X"$0" : 'X\(//\)$' \| \
1183          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1184 echo X"$0" |
1185     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186             s//\1/
1187             q
1188           }
1189           /^X\(\/\/\)[^/].*/{
1190             s//\1/
1191             q
1192           }
1193           /^X\(\/\/\)$/{
1194             s//\1/
1195             q
1196           }
1197           /^X\(\/\).*/{
1198             s//\1/
1199             q
1200           }
1201           s/.*/./; q'`
1202   srcdir=$ac_confdir
1203   if test ! -r "$srcdir/$ac_unique_file"; then
1204     srcdir=..
1205   fi
1206 else
1207   ac_srcdir_defaulted=no
1208 fi
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1212    { (exit 1); exit 1; }; }
1213 fi
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215 ac_abs_confdir=`(
1216         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1217    { (exit 1); exit 1; }; }
1218         pwd)`
1219 # When building in place, set srcdir=.
1220 if test "$ac_abs_confdir" = "$ac_pwd"; then
1221   srcdir=.
1222 fi
1223 # Remove unnecessary trailing slashes from srcdir.
1224 # Double slashes in file names in object file debugging info
1225 # mess up M-x gdb in Emacs.
1226 case $srcdir in
1227 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1228 esac
1229 for ac_var in $ac_precious_vars; do
1230   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1231   eval ac_env_${ac_var}_value=\$${ac_var}
1232   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1233   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1234 done
1235
1236 #
1237 # Report the --help message.
1238 #
1239 if test "$ac_init_help" = "long"; then
1240   # Omit some internal or obsolete options to make the list less imposing.
1241   # This message is too long to be a string in the A/UX 3.1 sh.
1242   cat <<_ACEOF
1243 \`configure' configures this package to adapt to many kinds of systems.
1244
1245 Usage: $0 [OPTION]... [VAR=VALUE]...
1246
1247 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248 VAR=VALUE.  See below for descriptions of some of the useful variables.
1249
1250 Defaults for the options are specified in brackets.
1251
1252 Configuration:
1253   -h, --help              display this help and exit
1254       --help=short        display options specific to this package
1255       --help=recursive    display the short help of all the included packages
1256   -V, --version           display version information and exit
1257   -q, --quiet, --silent   do not print \`checking...' messages
1258       --cache-file=FILE   cache test results in FILE [disabled]
1259   -C, --config-cache      alias for \`--cache-file=config.cache'
1260   -n, --no-create         do not create output files
1261       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1262
1263 Installation directories:
1264   --prefix=PREFIX         install architecture-independent files in PREFIX
1265                           [$ac_default_prefix]
1266   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1267                           [PREFIX]
1268
1269 By default, \`make install' will install all the files in
1270 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1271 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272 for instance \`--prefix=\$HOME'.
1273
1274 For better control, use the options below.
1275
1276 Fine tuning of the installation directories:
1277   --bindir=DIR           user executables [EPREFIX/bin]
1278   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1279   --libexecdir=DIR       program executables [EPREFIX/libexec]
1280   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1281   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1282   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1283   --libdir=DIR           object code libraries [EPREFIX/lib]
1284   --includedir=DIR       C header files [PREFIX/include]
1285   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1286   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1287   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1288   --infodir=DIR          info documentation [DATAROOTDIR/info]
1289   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1290   --mandir=DIR           man documentation [DATAROOTDIR/man]
1291   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1292   --htmldir=DIR          html documentation [DOCDIR]
1293   --dvidir=DIR           dvi documentation [DOCDIR]
1294   --pdfdir=DIR           pdf documentation [DOCDIR]
1295   --psdir=DIR            ps documentation [DOCDIR]
1296 _ACEOF
1297
1298   cat <<\_ACEOF
1299
1300 Program names:
1301   --program-prefix=PREFIX            prepend PREFIX to installed program names
1302   --program-suffix=SUFFIX            append SUFFIX to installed program names
1303   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1304
1305 System types:
1306   --build=BUILD     configure for building on BUILD [guessed]
1307   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1308   --target=TARGET   configure for building compilers for TARGET [HOST]
1309 _ACEOF
1310 fi
1311
1312 if test -n "$ac_init_help"; then
1313
1314   cat <<\_ACEOF
1315
1316 Optional Features:
1317   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1318   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1319   --enable-checkmem       turn on ccmalloc debugging
1320   --enable-debug          turn on debugging
1321   --enable-profiling      turn on profiling
1322   --enable-warnings        turn on compiler warnings
1323   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1324   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1325
1326 Optional Packages:
1327   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1328   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1329   --with-external-libart  use external libart library (currently broken)
1330   --with-poppler          use poppler instead of internal xpdf (currently broken)
1331
1332 Some influential environment variables:
1333   CC          C compiler command
1334   CFLAGS      C compiler flags
1335   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1336               nonstandard directory <lib dir>
1337   LIBS        libraries to pass to the linker, e.g. -l<library>
1338   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1339               you have headers in a nonstandard directory <include dir>
1340   CXX         C++ compiler command
1341   CXXFLAGS    C++ compiler flags
1342   CPP         C preprocessor
1343   PKG_CONFIG  path to pkg-config utility
1344   LIBART_CFLAGS
1345               C compiler flags for LIBART, overriding pkg-config
1346   LIBART_LIBS linker flags for LIBART, overriding pkg-config
1347   POPPLER_CFLAGS
1348               C compiler flags for POPPLER, overriding pkg-config
1349   POPPLER_LIBS
1350               linker flags for POPPLER, overriding pkg-config
1351   CXXCPP      C++ preprocessor
1352
1353 Use these variables to override the choices made by `configure' or to help
1354 it to find libraries and programs with nonstandard names/locations.
1355
1356 _ACEOF
1357 ac_status=$?
1358 fi
1359
1360 if test "$ac_init_help" = "recursive"; then
1361   # If there are subdirs, report their specific --help.
1362   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1363     test -d "$ac_dir" || continue
1364     ac_builddir=.
1365
1366 case "$ac_dir" in
1367 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1368 *)
1369   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1370   # A ".." for each directory in $ac_dir_suffix.
1371   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1372   case $ac_top_builddir_sub in
1373   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1375   esac ;;
1376 esac
1377 ac_abs_top_builddir=$ac_pwd
1378 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1379 # for backward compatibility:
1380 ac_top_builddir=$ac_top_build_prefix
1381
1382 case $srcdir in
1383   .)  # We are building in place.
1384     ac_srcdir=.
1385     ac_top_srcdir=$ac_top_builddir_sub
1386     ac_abs_top_srcdir=$ac_pwd ;;
1387   [\\/]* | ?:[\\/]* )  # Absolute name.
1388     ac_srcdir=$srcdir$ac_dir_suffix;
1389     ac_top_srcdir=$srcdir
1390     ac_abs_top_srcdir=$srcdir ;;
1391   *) # Relative name.
1392     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1393     ac_top_srcdir=$ac_top_build_prefix$srcdir
1394     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1395 esac
1396 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1397
1398     cd "$ac_dir" || { ac_status=$?; continue; }
1399     # Check for guested configure.
1400     if test -f "$ac_srcdir/configure.gnu"; then
1401       echo &&
1402       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1403     elif test -f "$ac_srcdir/configure"; then
1404       echo &&
1405       $SHELL "$ac_srcdir/configure" --help=recursive
1406     else
1407       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1408     fi || ac_status=$?
1409     cd "$ac_pwd" || { ac_status=$?; break; }
1410   done
1411 fi
1412
1413 test -n "$ac_init_help" && exit $ac_status
1414 if $ac_init_version; then
1415   cat <<\_ACEOF
1416 configure
1417 generated by GNU Autoconf 2.61
1418
1419 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1420 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1421 This configure script is free software; the Free Software Foundation
1422 gives unlimited permission to copy, distribute and modify it.
1423 _ACEOF
1424   exit
1425 fi
1426 cat >config.log <<_ACEOF
1427 This file contains any messages produced by compilers while
1428 running configure, to aid debugging if configure makes a mistake.
1429
1430 It was created by $as_me, which was
1431 generated by GNU Autoconf 2.61.  Invocation command line was
1432
1433   $ $0 $@
1434
1435 _ACEOF
1436 exec 5>>config.log
1437 {
1438 cat <<_ASUNAME
1439 ## --------- ##
1440 ## Platform. ##
1441 ## --------- ##
1442
1443 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1444 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1445 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1446 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1447 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1448
1449 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1450 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1451
1452 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1453 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1454 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1455 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1456 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1457 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1458 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1459
1460 _ASUNAME
1461
1462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1463 for as_dir in $PATH
1464 do
1465   IFS=$as_save_IFS
1466   test -z "$as_dir" && as_dir=.
1467   echo "PATH: $as_dir"
1468 done
1469 IFS=$as_save_IFS
1470
1471 } >&5
1472
1473 cat >&5 <<_ACEOF
1474
1475
1476 ## ----------- ##
1477 ## Core tests. ##
1478 ## ----------- ##
1479
1480 _ACEOF
1481
1482
1483 # Keep a trace of the command line.
1484 # Strip out --no-create and --no-recursion so they do not pile up.
1485 # Strip out --silent because we don't want to record it for future runs.
1486 # Also quote any args containing shell meta-characters.
1487 # Make two passes to allow for proper duplicate-argument suppression.
1488 ac_configure_args=
1489 ac_configure_args0=
1490 ac_configure_args1=
1491 ac_must_keep_next=false
1492 for ac_pass in 1 2
1493 do
1494   for ac_arg
1495   do
1496     case $ac_arg in
1497     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1498     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1499     | -silent | --silent | --silen | --sile | --sil)
1500       continue ;;
1501     *\'*)
1502       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1503     esac
1504     case $ac_pass in
1505     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1506     2)
1507       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1508       if test $ac_must_keep_next = true; then
1509         ac_must_keep_next=false # Got value, back to normal.
1510       else
1511         case $ac_arg in
1512           *=* | --config-cache | -C | -disable-* | --disable-* \
1513           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1514           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1515           | -with-* | --with-* | -without-* | --without-* | --x)
1516             case "$ac_configure_args0 " in
1517               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1518             esac
1519             ;;
1520           -* ) ac_must_keep_next=true ;;
1521         esac
1522       fi
1523       ac_configure_args="$ac_configure_args '$ac_arg'"
1524       ;;
1525     esac
1526   done
1527 done
1528 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1529 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1530
1531 # When interrupted or exit'd, cleanup temporary files, and complete
1532 # config.log.  We remove comments because anyway the quotes in there
1533 # would cause problems or look ugly.
1534 # WARNING: Use '\'' to represent an apostrophe within the trap.
1535 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1536 trap 'exit_status=$?
1537   # Save into config.log some information that might help in debugging.
1538   {
1539     echo
1540
1541     cat <<\_ASBOX
1542 ## ---------------- ##
1543 ## Cache variables. ##
1544 ## ---------------- ##
1545 _ASBOX
1546     echo
1547     # The following way of writing the cache mishandles newlines in values,
1548 (
1549   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1550     eval ac_val=\$$ac_var
1551     case $ac_val in #(
1552     *${as_nl}*)
1553       case $ac_var in #(
1554       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1555 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1556       esac
1557       case $ac_var in #(
1558       _ | IFS | as_nl) ;; #(
1559       *) $as_unset $ac_var ;;
1560       esac ;;
1561     esac
1562   done
1563   (set) 2>&1 |
1564     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1565     *${as_nl}ac_space=\ *)
1566       sed -n \
1567         "s/'\''/'\''\\\\'\'''\''/g;
1568           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1569       ;; #(
1570     *)
1571       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1572       ;;
1573     esac |
1574     sort
1575 )
1576     echo
1577
1578     cat <<\_ASBOX
1579 ## ----------------- ##
1580 ## Output variables. ##
1581 ## ----------------- ##
1582 _ASBOX
1583     echo
1584     for ac_var in $ac_subst_vars
1585     do
1586       eval ac_val=\$$ac_var
1587       case $ac_val in
1588       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1589       esac
1590       echo "$ac_var='\''$ac_val'\''"
1591     done | sort
1592     echo
1593
1594     if test -n "$ac_subst_files"; then
1595       cat <<\_ASBOX
1596 ## ------------------- ##
1597 ## File substitutions. ##
1598 ## ------------------- ##
1599 _ASBOX
1600       echo
1601       for ac_var in $ac_subst_files
1602       do
1603         eval ac_val=\$$ac_var
1604         case $ac_val in
1605         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1606         esac
1607         echo "$ac_var='\''$ac_val'\''"
1608       done | sort
1609       echo
1610     fi
1611
1612     if test -s confdefs.h; then
1613       cat <<\_ASBOX
1614 ## ----------- ##
1615 ## confdefs.h. ##
1616 ## ----------- ##
1617 _ASBOX
1618       echo
1619       cat confdefs.h
1620       echo
1621     fi
1622     test "$ac_signal" != 0 &&
1623       echo "$as_me: caught signal $ac_signal"
1624     echo "$as_me: exit $exit_status"
1625   } >&5
1626   rm -f core *.core core.conftest.* &&
1627     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1628     exit $exit_status
1629 ' 0
1630 for ac_signal in 1 2 13 15; do
1631   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1632 done
1633 ac_signal=0
1634
1635 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1636 rm -f -r conftest* confdefs.h
1637
1638 # Predefined preprocessor variables.
1639
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE_NAME "$PACKAGE_NAME"
1642 _ACEOF
1643
1644
1645 cat >>confdefs.h <<_ACEOF
1646 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1647 _ACEOF
1648
1649
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1652 _ACEOF
1653
1654
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_STRING "$PACKAGE_STRING"
1657 _ACEOF
1658
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1662 _ACEOF
1663
1664
1665 # Let the site file select an alternate cache file if it wants to.
1666 # Prefer explicitly selected file to automatically selected ones.
1667 if test -n "$CONFIG_SITE"; then
1668   set x "$CONFIG_SITE"
1669 elif test "x$prefix" != xNONE; then
1670   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1671 else
1672   set x "$ac_default_prefix/share/config.site" \
1673         "$ac_default_prefix/etc/config.site"
1674 fi
1675 shift
1676 for ac_site_file
1677 do
1678   if test -r "$ac_site_file"; then
1679     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1680 echo "$as_me: loading site script $ac_site_file" >&6;}
1681     sed 's/^/| /' "$ac_site_file" >&5
1682     . "$ac_site_file"
1683   fi
1684 done
1685
1686 if test -r "$cache_file"; then
1687   # Some versions of bash will fail to source /dev/null (special
1688   # files actually), so we avoid doing that.
1689   if test -f "$cache_file"; then
1690     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1691 echo "$as_me: loading cache $cache_file" >&6;}
1692     case $cache_file in
1693       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1694       *)                      . "./$cache_file";;
1695     esac
1696   fi
1697 else
1698   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1699 echo "$as_me: creating cache $cache_file" >&6;}
1700   >$cache_file
1701 fi
1702
1703 # Check that the precious variables saved in the cache have kept the same
1704 # value.
1705 ac_cache_corrupted=false
1706 for ac_var in $ac_precious_vars; do
1707   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1708   eval ac_new_set=\$ac_env_${ac_var}_set
1709   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1710   eval ac_new_val=\$ac_env_${ac_var}_value
1711   case $ac_old_set,$ac_new_set in
1712     set,)
1713       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1714 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1715       ac_cache_corrupted=: ;;
1716     ,set)
1717       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1718 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1719       ac_cache_corrupted=: ;;
1720     ,);;
1721     *)
1722       if test "x$ac_old_val" != "x$ac_new_val"; then
1723         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1724 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1725         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1726 echo "$as_me:   former value:  $ac_old_val" >&2;}
1727         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1728 echo "$as_me:   current value: $ac_new_val" >&2;}
1729         ac_cache_corrupted=:
1730       fi;;
1731   esac
1732   # Pass precious variables to config.status.
1733   if test "$ac_new_set" = set; then
1734     case $ac_new_val in
1735     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1736     *) ac_arg=$ac_var=$ac_new_val ;;
1737     esac
1738     case " $ac_configure_args " in
1739       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1740       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1741     esac
1742   fi
1743 done
1744 if $ac_cache_corrupted; then
1745   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1746 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1747   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1748 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1749    { (exit 1); exit 1; }; }
1750 fi
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768 ac_ext=c
1769 ac_cpp='$CPP $CPPFLAGS'
1770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1773
1774
1775
1776
1777 # Check whether --enable-checkmem was given.
1778 if test "${enable_checkmem+set}" = set; then
1779   enableval=$enable_checkmem; CHECKMEM=true
1780 fi
1781
1782 # Check whether --enable-debug was given.
1783 if test "${enable_debug+set}" = set; then
1784   enableval=$enable_debug; DEBUG=true
1785 fi
1786
1787 # Check whether --enable-profiling was given.
1788 if test "${enable_profiling+set}" = set; then
1789   enableval=$enable_profiling; PROFILING=true
1790 fi
1791
1792 # Check whether --enable-warnings was given.
1793 if test "${enable_warnings+set}" = set; then
1794   enableval=$enable_warnings; ENABLE_WARNINGS=true
1795 fi
1796
1797 # Check whether --enable-optimizations was given.
1798 if test "${enable_optimizations+set}" = set; then
1799   enableval=$enable_optimizations; OPTIMIZE=true
1800 fi
1801
1802 # Check whether --enable-lame was given.
1803 if test "${enable_lame+set}" = set; then
1804   enableval=$enable_lame; DISABLE_LAME=true
1805 fi
1806
1807
1808 # Check whether --with-external-libart was given.
1809 if test "${with_external_libart+set}" = set; then
1810   withval=$with_external_libart; EXTERNAL_LIBART=true
1811 fi
1812
1813
1814 # Check whether --with-poppler was given.
1815 if test "${with_poppler+set}" = set; then
1816   withval=$with_poppler; USE_POPPLER=true
1817 fi
1818
1819
1820 PACKAGE=swftools
1821 VERSION=2008-09-22-1956
1822
1823
1824 # ------------------------------------------------------------------
1825
1826 if test "x${srcdir}" != "x."; then
1827     echo "--srcdir is not supported"
1828     exit 1
1829 fi
1830
1831 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1832 if test "x$ENABLE_WARNINGS" '!=' "x";then
1833     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1834 fi
1835
1836 if test "x$CHECKMEM" '!=' "x";then
1837     DEBUG=yes
1838 fi
1839 if test "x$PROFILING" '!=' "x";then
1840     DEBUG=yes
1841 fi
1842 if test "x$DEBUG" '!=' "x";then
1843     if test "x$PROFILING" = "x";then
1844         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1845         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1846         LDFLAGS="-g $LIBS"
1847     else
1848         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1849         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1850         LDFLAGS="-g -pg $LIBS"
1851     fi
1852 else if test "x$OPTIMIZE" '!=' "x"; then
1853     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1854     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1855 else
1856     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1857     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1858 fi
1859 fi
1860
1861 CFLAGS="-fPIC $CFLAGS"
1862 CXXFLAGS="-fPIC $CFLAGS"
1863
1864 #OLDGCC=1
1865 #if test "x$OLDGCC" '!=' "x";then
1866 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1867 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1868 #     CFLAGS="$CFLAGS -ansi -pendantic"
1869 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1870 #fi
1871
1872 export PACKAGE VERSION CFLAGS CXXFLAGS
1873
1874
1875 ac_aux_dir=
1876 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1877   if test -f "$ac_dir/install-sh"; then
1878     ac_aux_dir=$ac_dir
1879     ac_install_sh="$ac_aux_dir/install-sh -c"
1880     break
1881   elif test -f "$ac_dir/install.sh"; then
1882     ac_aux_dir=$ac_dir
1883     ac_install_sh="$ac_aux_dir/install.sh -c"
1884     break
1885   elif test -f "$ac_dir/shtool"; then
1886     ac_aux_dir=$ac_dir
1887     ac_install_sh="$ac_aux_dir/shtool install -c"
1888     break
1889   fi
1890 done
1891 if test -z "$ac_aux_dir"; then
1892   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1893 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1894    { (exit 1); exit 1; }; }
1895 fi
1896
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1904
1905
1906 # Make sure we can run config.sub.
1907 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1908   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1909 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1910    { (exit 1); exit 1; }; }
1911
1912 { echo "$as_me:$LINENO: checking build system type" >&5
1913 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1914 if test "${ac_cv_build+set}" = set; then
1915   echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917   ac_build_alias=$build_alias
1918 test "x$ac_build_alias" = x &&
1919   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1920 test "x$ac_build_alias" = x &&
1921   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1922 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1923    { (exit 1); exit 1; }; }
1924 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1925   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1926 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1927    { (exit 1); exit 1; }; }
1928
1929 fi
1930 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1931 echo "${ECHO_T}$ac_cv_build" >&6; }
1932 case $ac_cv_build in
1933 *-*-*) ;;
1934 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1935 echo "$as_me: error: invalid value of canonical build" >&2;}
1936    { (exit 1); exit 1; }; };;
1937 esac
1938 build=$ac_cv_build
1939 ac_save_IFS=$IFS; IFS='-'
1940 set x $ac_cv_build
1941 shift
1942 build_cpu=$1
1943 build_vendor=$2
1944 shift; shift
1945 # Remember, the first character of IFS is used to create $*,
1946 # except with old shells:
1947 build_os=$*
1948 IFS=$ac_save_IFS
1949 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1950
1951
1952 { echo "$as_me:$LINENO: checking host system type" >&5
1953 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1954 if test "${ac_cv_host+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   if test "x$host_alias" = x; then
1958   ac_cv_host=$ac_cv_build
1959 else
1960   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1961     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1962 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1963    { (exit 1); exit 1; }; }
1964 fi
1965
1966 fi
1967 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1968 echo "${ECHO_T}$ac_cv_host" >&6; }
1969 case $ac_cv_host in
1970 *-*-*) ;;
1971 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1972 echo "$as_me: error: invalid value of canonical host" >&2;}
1973    { (exit 1); exit 1; }; };;
1974 esac
1975 host=$ac_cv_host
1976 ac_save_IFS=$IFS; IFS='-'
1977 set x $ac_cv_host
1978 shift
1979 host_cpu=$1
1980 host_vendor=$2
1981 shift; shift
1982 # Remember, the first character of IFS is used to create $*,
1983 # except with old shells:
1984 host_os=$*
1985 IFS=$ac_save_IFS
1986 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1987
1988
1989
1990 SHARED="-shared"
1991 MACOSX=
1992 case $host_os in
1993     *darwin* )
1994         MACOSX=yes
1995         CFLAGS="$CFLAGS"
1996         CXXFLAGS="$CXXFLAGS -fno-rtti"
1997         SHARED="-bundle"
1998         # Use fink packages if available.
1999         #if test -d /sw/include && test -d /sw/lib; then
2000         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
2001         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
2002         #fi
2003         ;;
2004 esac
2005
2006
2007
2008  ac_ext=c
2009 ac_cpp='$CPP $CPPFLAGS'
2010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013 if test -n "$ac_tool_prefix"; then
2014   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2015 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018 if test "${ac_cv_prog_CC+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   if test -n "$CC"; then
2022   ac_cv_prog_CC="$CC" # Let the user override the test.
2023 else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   for ac_exec_ext in '' $ac_executable_extensions; do
2030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2031     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033     break 2
2034   fi
2035 done
2036 done
2037 IFS=$as_save_IFS
2038
2039 fi
2040 fi
2041 CC=$ac_cv_prog_CC
2042 if test -n "$CC"; then
2043   { echo "$as_me:$LINENO: result: $CC" >&5
2044 echo "${ECHO_T}$CC" >&6; }
2045 else
2046   { echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6; }
2048 fi
2049
2050
2051 fi
2052 if test -z "$ac_cv_prog_CC"; then
2053   ac_ct_CC=$CC
2054   # Extract the first word of "gcc", so it can be a program name with args.
2055 set dummy gcc; ac_word=$2
2056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   if test -n "$ac_ct_CC"; then
2062   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2063 else
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067   IFS=$as_save_IFS
2068   test -z "$as_dir" && as_dir=.
2069   for ac_exec_ext in '' $ac_executable_extensions; do
2070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2071     ac_cv_prog_ac_ct_CC="gcc"
2072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073     break 2
2074   fi
2075 done
2076 done
2077 IFS=$as_save_IFS
2078
2079 fi
2080 fi
2081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2082 if test -n "$ac_ct_CC"; then
2083   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2084 echo "${ECHO_T}$ac_ct_CC" >&6; }
2085 else
2086   { echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6; }
2088 fi
2089
2090   if test "x$ac_ct_CC" = x; then
2091     CC=""
2092   else
2093     case $cross_compiling:$ac_tool_warned in
2094 yes:)
2095 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet.  If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&5
2098 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2099 whose name does not start with the host triplet.  If you think this
2100 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2101 ac_tool_warned=yes ;;
2102 esac
2103     CC=$ac_ct_CC
2104   fi
2105 else
2106   CC="$ac_cv_prog_CC"
2107 fi
2108
2109 if test -z "$CC"; then
2110           if test -n "$ac_tool_prefix"; then
2111     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2112 set dummy ${ac_tool_prefix}cc; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_CC+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   if test -n "$CC"; then
2119   ac_cv_prog_CC="$CC" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124   IFS=$as_save_IFS
2125   test -z "$as_dir" && as_dir=.
2126   for ac_exec_ext in '' $ac_executable_extensions; do
2127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128     ac_cv_prog_CC="${ac_tool_prefix}cc"
2129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130     break 2
2131   fi
2132 done
2133 done
2134 IFS=$as_save_IFS
2135
2136 fi
2137 fi
2138 CC=$ac_cv_prog_CC
2139 if test -n "$CC"; then
2140   { echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6; }
2142 else
2143   { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2145 fi
2146
2147
2148   fi
2149 fi
2150 if test -z "$CC"; then
2151   # Extract the first word of "cc", so it can be a program name with args.
2152 set dummy cc; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$CC"; then
2159   ac_cv_prog_CC="$CC" # Let the user override the test.
2160 else
2161   ac_prog_rejected=no
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2164 do
2165   IFS=$as_save_IFS
2166   test -z "$as_dir" && as_dir=.
2167   for ac_exec_ext in '' $ac_executable_extensions; do
2168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2169     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2170        ac_prog_rejected=yes
2171        continue
2172      fi
2173     ac_cv_prog_CC="cc"
2174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175     break 2
2176   fi
2177 done
2178 done
2179 IFS=$as_save_IFS
2180
2181 if test $ac_prog_rejected = yes; then
2182   # We found a bogon in the path, so make sure we never use it.
2183   set dummy $ac_cv_prog_CC
2184   shift
2185   if test $# != 0; then
2186     # We chose a different compiler from the bogus one.
2187     # However, it has the same basename, so the bogon will be chosen
2188     # first if we set CC to just the basename; use the full file name.
2189     shift
2190     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2191   fi
2192 fi
2193 fi
2194 fi
2195 CC=$ac_cv_prog_CC
2196 if test -n "$CC"; then
2197   { echo "$as_me:$LINENO: result: $CC" >&5
2198 echo "${ECHO_T}$CC" >&6; }
2199 else
2200   { echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6; }
2202 fi
2203
2204
2205 fi
2206 if test -z "$CC"; then
2207   if test -n "$ac_tool_prefix"; then
2208   for ac_prog in cl.exe
2209   do
2210     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2214 if test "${ac_cv_prog_CC+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   if test -n "$CC"; then
2218   ac_cv_prog_CC="$CC" # Let the user override the test.
2219 else
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH
2222 do
2223   IFS=$as_save_IFS
2224   test -z "$as_dir" && as_dir=.
2225   for ac_exec_ext in '' $ac_executable_extensions; do
2226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2227     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229     break 2
2230   fi
2231 done
2232 done
2233 IFS=$as_save_IFS
2234
2235 fi
2236 fi
2237 CC=$ac_cv_prog_CC
2238 if test -n "$CC"; then
2239   { echo "$as_me:$LINENO: result: $CC" >&5
2240 echo "${ECHO_T}$CC" >&6; }
2241 else
2242   { echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6; }
2244 fi
2245
2246
2247     test -n "$CC" && break
2248   done
2249 fi
2250 if test -z "$CC"; then
2251   ac_ct_CC=$CC
2252   for ac_prog in cl.exe
2253 do
2254   # Extract the first word of "$ac_prog", so it can be a program name with args.
2255 set dummy $ac_prog; ac_word=$2
2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2259   echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261   if test -n "$ac_ct_CC"; then
2262   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2263 else
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2266 do
2267   IFS=$as_save_IFS
2268   test -z "$as_dir" && as_dir=.
2269   for ac_exec_ext in '' $ac_executable_extensions; do
2270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271     ac_cv_prog_ac_ct_CC="$ac_prog"
2272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273     break 2
2274   fi
2275 done
2276 done
2277 IFS=$as_save_IFS
2278
2279 fi
2280 fi
2281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282 if test -n "$ac_ct_CC"; then
2283   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284 echo "${ECHO_T}$ac_ct_CC" >&6; }
2285 else
2286   { echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6; }
2288 fi
2289
2290
2291   test -n "$ac_ct_CC" && break
2292 done
2293
2294   if test "x$ac_ct_CC" = x; then
2295     CC=""
2296   else
2297     case $cross_compiling:$ac_tool_warned in
2298 yes:)
2299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2300 whose name does not start with the host triplet.  If you think this
2301 configuration is useful to you, please write to autoconf@gnu.org." >&5
2302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2303 whose name does not start with the host triplet.  If you think this
2304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2305 ac_tool_warned=yes ;;
2306 esac
2307     CC=$ac_ct_CC
2308   fi
2309 fi
2310
2311 fi
2312
2313
2314 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: no acceptable C compiler found in \$PATH
2317 See \`config.log' for more details." >&2;}
2318    { (exit 1); exit 1; }; }
2319
2320 # Provide some information about the compiler.
2321 echo "$as_me:$LINENO: checking for C compiler version" >&5
2322 ac_compiler=`set X $ac_compile; echo $2`
2323 { (ac_try="$ac_compiler --version >&5"
2324 case "(($ac_try" in
2325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326   *) ac_try_echo=$ac_try;;
2327 esac
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329   (eval "$ac_compiler --version >&5") 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }
2333 { (ac_try="$ac_compiler -v >&5"
2334 case "(($ac_try" in
2335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336   *) ac_try_echo=$ac_try;;
2337 esac
2338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2339   (eval "$ac_compiler -v >&5") 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); }
2343 { (ac_try="$ac_compiler -V >&5"
2344 case "(($ac_try" in
2345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346   *) ac_try_echo=$ac_try;;
2347 esac
2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349   (eval "$ac_compiler -V >&5") 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }
2353
2354 cat >conftest.$ac_ext <<_ACEOF
2355 /* confdefs.h.  */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h.  */
2360
2361 int
2362 main ()
2363 {
2364
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 ac_clean_files_save=$ac_clean_files
2370 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2371 # Try to create an executable without -o first, disregard a.out.
2372 # It will help us diagnose broken compilers, and finding out an intuition
2373 # of exeext.
2374 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2375 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2376 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2377 #
2378 # List of possible output files, starting from the most likely.
2379 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2380 # only as a last resort.  b.out is created by i960 compilers.
2381 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2382 #
2383 # The IRIX 6 linker writes into existing files which may not be
2384 # executable, retaining their permissions.  Remove them first so a
2385 # subsequent execution test works.
2386 ac_rmfiles=
2387 for ac_file in $ac_files
2388 do
2389   case $ac_file in
2390     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2391     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2392   esac
2393 done
2394 rm -f $ac_rmfiles
2395
2396 if { (ac_try="$ac_link_default"
2397 case "(($ac_try" in
2398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399   *) ac_try_echo=$ac_try;;
2400 esac
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402   (eval "$ac_link_default") 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; then
2406   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2407 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2408 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2409 # so that the user can short-circuit this test for compilers unknown to
2410 # Autoconf.
2411 for ac_file in $ac_files ''
2412 do
2413   test -f "$ac_file" || continue
2414   case $ac_file in
2415     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2416         ;;
2417     [ab].out )
2418         # We found the default executable, but exeext='' is most
2419         # certainly right.
2420         break;;
2421     *.* )
2422         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2423         then :; else
2424            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2425         fi
2426         # We set ac_cv_exeext here because the later test for it is not
2427         # safe: cross compilers may not add the suffix if given an `-o'
2428         # argument, so we may need to know it at that point already.
2429         # Even if this section looks crufty: it has the advantage of
2430         # actually working.
2431         break;;
2432     * )
2433         break;;
2434   esac
2435 done
2436 test "$ac_cv_exeext" = no && ac_cv_exeext=
2437
2438 else
2439   ac_file=''
2440 fi
2441
2442 { echo "$as_me:$LINENO: result: $ac_file" >&5
2443 echo "${ECHO_T}$ac_file" >&6; }
2444 if test -z "$ac_file"; then
2445   echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2449 See \`config.log' for more details." >&5
2450 echo "$as_me: error: C compiler cannot create executables
2451 See \`config.log' for more details." >&2;}
2452    { (exit 77); exit 77; }; }
2453 fi
2454
2455 ac_exeext=$ac_cv_exeext
2456
2457 # Check that the compiler produces executables we can run.  If not, either
2458 # the compiler is broken, or we cross compile.
2459 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2460 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2461 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2462 # If not cross compiling, check that we can run a simple program.
2463 if test "$cross_compiling" != yes; then
2464   if { ac_try='./$ac_file'
2465   { (case "(($ac_try" in
2466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467   *) ac_try_echo=$ac_try;;
2468 esac
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470   (eval "$ac_try") 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; }; then
2474     cross_compiling=no
2475   else
2476     if test "$cross_compiling" = maybe; then
2477         cross_compiling=yes
2478     else
2479         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \`config.log' for more details." >&5
2482 echo "$as_me: error: cannot run C compiled programs.
2483 If you meant to cross compile, use \`--host'.
2484 See \`config.log' for more details." >&2;}
2485    { (exit 1); exit 1; }; }
2486     fi
2487   fi
2488 fi
2489 { echo "$as_me:$LINENO: result: yes" >&5
2490 echo "${ECHO_T}yes" >&6; }
2491
2492 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2493 ac_clean_files=$ac_clean_files_save
2494 # Check that the compiler produces executables we can run.  If not, either
2495 # the compiler is broken, or we cross compile.
2496 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2497 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2498 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2499 echo "${ECHO_T}$cross_compiling" >&6; }
2500
2501 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2502 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2503 if { (ac_try="$ac_link"
2504 case "(($ac_try" in
2505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506   *) ac_try_echo=$ac_try;;
2507 esac
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509   (eval "$ac_link") 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; then
2513   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2514 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2515 # work properly (i.e., refer to `conftest.exe'), while it won't with
2516 # `rm'.
2517 for ac_file in conftest.exe conftest conftest.*; do
2518   test -f "$ac_file" || continue
2519   case $ac_file in
2520     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2521     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2522           break;;
2523     * ) break;;
2524   esac
2525 done
2526 else
2527   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details." >&5
2529 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2530 See \`config.log' for more details." >&2;}
2531    { (exit 1); exit 1; }; }
2532 fi
2533
2534 rm -f conftest$ac_cv_exeext
2535 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2536 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2537
2538 rm -f conftest.$ac_ext
2539 EXEEXT=$ac_cv_exeext
2540 ac_exeext=$EXEEXT
2541 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2542 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2543 if test "${ac_cv_objext+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h.  */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h.  */
2552
2553 int
2554 main ()
2555 {
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 rm -f conftest.o conftest.obj
2562 if { (ac_try="$ac_compile"
2563 case "(($ac_try" in
2564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565   *) ac_try_echo=$ac_try;;
2566 esac
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568   (eval "$ac_compile") 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }; then
2572   for ac_file in conftest.o conftest.obj conftest.*; do
2573   test -f "$ac_file" || continue;
2574   case $ac_file in
2575     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2576     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2577        break;;
2578   esac
2579 done
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2587 See \`config.log' for more details." >&2;}
2588    { (exit 1); exit 1; }; }
2589 fi
2590
2591 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2592 fi
2593 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2594 echo "${ECHO_T}$ac_cv_objext" >&6; }
2595 OBJEXT=$ac_cv_objext
2596 ac_objext=$OBJEXT
2597 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2598 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2599 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2600   echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602   cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h.  */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h.  */
2608
2609 int
2610 main ()
2611 {
2612 #ifndef __GNUC__
2613        choke me
2614 #endif
2615
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (ac_try="$ac_compile"
2622 case "(($ac_try" in
2623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624   *) ac_try_echo=$ac_try;;
2625 esac
2626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627   (eval "$ac_compile") 2>conftest.er1
2628   ac_status=$?
2629   grep -v '^ *+' conftest.er1 >conftest.err
2630   rm -f conftest.er1
2631   cat conftest.err >&5
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); } && {
2634          test -z "$ac_c_werror_flag" ||
2635          test ! -s conftest.err
2636        } && test -s conftest.$ac_objext; then
2637   ac_compiler_gnu=yes
2638 else
2639   echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642         ac_compiler_gnu=no
2643 fi
2644
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2647
2648 fi
2649 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2650 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2651 GCC=`test $ac_compiler_gnu = yes && echo yes`
2652 ac_test_CFLAGS=${CFLAGS+set}
2653 ac_save_CFLAGS=$CFLAGS
2654 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2655 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2656 if test "${ac_cv_prog_cc_g+set}" = set; then
2657   echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659   ac_save_c_werror_flag=$ac_c_werror_flag
2660    ac_c_werror_flag=yes
2661    ac_cv_prog_cc_g=no
2662    CFLAGS="-g"
2663    cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h.  */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h.  */
2669
2670 int
2671 main ()
2672 {
2673
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 rm -f conftest.$ac_objext
2679 if { (ac_try="$ac_compile"
2680 case "(($ac_try" in
2681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682   *) ac_try_echo=$ac_try;;
2683 esac
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685   (eval "$ac_compile") 2>conftest.er1
2686   ac_status=$?
2687   grep -v '^ *+' conftest.er1 >conftest.err
2688   rm -f conftest.er1
2689   cat conftest.err >&5
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); } && {
2692          test -z "$ac_c_werror_flag" ||
2693          test ! -s conftest.err
2694        } && test -s conftest.$ac_objext; then
2695   ac_cv_prog_cc_g=yes
2696 else
2697   echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700         CFLAGS=""
2701       cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h.  */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h.  */
2707
2708 int
2709 main ()
2710 {
2711
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 rm -f conftest.$ac_objext
2717 if { (ac_try="$ac_compile"
2718 case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_compile") 2>conftest.er1
2724   ac_status=$?
2725   grep -v '^ *+' conftest.er1 >conftest.err
2726   rm -f conftest.er1
2727   cat conftest.err >&5
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); } && {
2730          test -z "$ac_c_werror_flag" ||
2731          test ! -s conftest.err
2732        } && test -s conftest.$ac_objext; then
2733   :
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738         ac_c_werror_flag=$ac_save_c_werror_flag
2739          CFLAGS="-g"
2740          cat >conftest.$ac_ext <<_ACEOF
2741 /* confdefs.h.  */
2742 _ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h.  */
2746
2747 int
2748 main ()
2749 {
2750
2751   ;
2752   return 0;
2753 }
2754 _ACEOF
2755 rm -f conftest.$ac_objext
2756 if { (ac_try="$ac_compile"
2757 case "(($ac_try" in
2758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759   *) ac_try_echo=$ac_try;;
2760 esac
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762   (eval "$ac_compile") 2>conftest.er1
2763   ac_status=$?
2764   grep -v '^ *+' conftest.er1 >conftest.err
2765   rm -f conftest.er1
2766   cat conftest.err >&5
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); } && {
2769          test -z "$ac_c_werror_flag" ||
2770          test ! -s conftest.err
2771        } && test -s conftest.$ac_objext; then
2772   ac_cv_prog_cc_g=yes
2773 else
2774   echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2776
2777
2778 fi
2779
2780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781 fi
2782
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 fi
2785
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787    ac_c_werror_flag=$ac_save_c_werror_flag
2788 fi
2789 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2790 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2791 if test "$ac_test_CFLAGS" = set; then
2792   CFLAGS=$ac_save_CFLAGS
2793 elif test $ac_cv_prog_cc_g = yes; then
2794   if test "$GCC" = yes; then
2795     CFLAGS="-g -O2"
2796   else
2797     CFLAGS="-g"
2798   fi
2799 else
2800   if test "$GCC" = yes; then
2801     CFLAGS="-O2"
2802   else
2803     CFLAGS=
2804   fi
2805 fi
2806 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2807 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_cc_c89+set}" = set; then
2809   echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811   ac_cv_prog_cc_c89=no
2812 ac_save_CC=$CC
2813 cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h.  */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h.  */
2819 #include <stdarg.h>
2820 #include <stdio.h>
2821 #include <sys/types.h>
2822 #include <sys/stat.h>
2823 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2824 struct buf { int x; };
2825 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2826 static char *e (p, i)
2827      char **p;
2828      int i;
2829 {
2830   return p[i];
2831 }
2832 static char *f (char * (*g) (char **, int), char **p, ...)
2833 {
2834   char *s;
2835   va_list v;
2836   va_start (v,p);
2837   s = g (p, va_arg (v,int));
2838   va_end (v);
2839   return s;
2840 }
2841
2842 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2843    function prototypes and stuff, but not '\xHH' hex character constants.
2844    These don't provoke an error unfortunately, instead are silently treated
2845    as 'x'.  The following induces an error, until -std is added to get
2846    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2847    array size at least.  It's necessary to write '\x00'==0 to get something
2848    that's true only with -std.  */
2849 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2850
2851 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2852    inside strings and character constants.  */
2853 #define FOO(x) 'x'
2854 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2855
2856 int test (int i, double x);
2857 struct s1 {int (*f) (int a);};
2858 struct s2 {int (*f) (double a);};
2859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2860 int argc;
2861 char **argv;
2862 int
2863 main ()
2864 {
2865 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2866   ;
2867   return 0;
2868 }
2869 _ACEOF
2870 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2871         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2872 do
2873   CC="$ac_save_CC $ac_arg"
2874   rm -f conftest.$ac_objext
2875 if { (ac_try="$ac_compile"
2876 case "(($ac_try" in
2877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878   *) ac_try_echo=$ac_try;;
2879 esac
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881   (eval "$ac_compile") 2>conftest.er1
2882   ac_status=$?
2883   grep -v '^ *+' conftest.er1 >conftest.err
2884   rm -f conftest.er1
2885   cat conftest.err >&5
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); } && {
2888          test -z "$ac_c_werror_flag" ||
2889          test ! -s conftest.err
2890        } && test -s conftest.$ac_objext; then
2891   ac_cv_prog_cc_c89=$ac_arg
2892 else
2893   echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2895
2896
2897 fi
2898
2899 rm -f core conftest.err conftest.$ac_objext
2900   test "x$ac_cv_prog_cc_c89" != "xno" && break
2901 done
2902 rm -f conftest.$ac_ext
2903 CC=$ac_save_CC
2904
2905 fi
2906 # AC_CACHE_VAL
2907 case "x$ac_cv_prog_cc_c89" in
2908   x)
2909     { echo "$as_me:$LINENO: result: none needed" >&5
2910 echo "${ECHO_T}none needed" >&6; } ;;
2911   xno)
2912     { echo "$as_me:$LINENO: result: unsupported" >&5
2913 echo "${ECHO_T}unsupported" >&6; } ;;
2914   *)
2915     CC="$CC $ac_cv_prog_cc_c89"
2916     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2917 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2918 esac
2919
2920
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926
2927  ac_ext=cpp
2928 ac_cpp='$CXXCPP $CPPFLAGS'
2929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 if test -z "$CXX"; then
2933   if test -n "$CCC"; then
2934     CXX=$CCC
2935   else
2936     if test -n "$ac_tool_prefix"; then
2937   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2938   do
2939     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_CXX+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   if test -n "$CXX"; then
2947   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952   IFS=$as_save_IFS
2953   test -z "$as_dir" && as_dir=.
2954   for ac_exec_ext in '' $ac_executable_extensions; do
2955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958     break 2
2959   fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CXX=$ac_cv_prog_CXX
2967 if test -n "$CXX"; then
2968   { echo "$as_me:$LINENO: result: $CXX" >&5
2969 echo "${ECHO_T}$CXX" >&6; }
2970 else
2971   { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2973 fi
2974
2975
2976     test -n "$CXX" && break
2977   done
2978 fi
2979 if test -z "$CXX"; then
2980   ac_ct_CXX=$CXX
2981   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2982 do
2983   # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2988   echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990   if test -n "$ac_ct_CXX"; then
2991   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996   IFS=$as_save_IFS
2997   test -z "$as_dir" && as_dir=.
2998   for ac_exec_ext in '' $ac_executable_extensions; do
2999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000     ac_cv_prog_ac_ct_CXX="$ac_prog"
3001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002     break 2
3003   fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3011 if test -n "$ac_ct_CXX"; then
3012   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3013 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3014 else
3015   { echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6; }
3017 fi
3018
3019
3020   test -n "$ac_ct_CXX" && break
3021 done
3022
3023   if test "x$ac_ct_CXX" = x; then
3024     CXX="g++"
3025   else
3026     case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet.  If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&5
3031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3032 whose name does not start with the host triplet.  If you think this
3033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3034 ac_tool_warned=yes ;;
3035 esac
3036     CXX=$ac_ct_CXX
3037   fi
3038 fi
3039
3040   fi
3041 fi
3042 # Provide some information about the compiler.
3043 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3044 ac_compiler=`set X $ac_compile; echo $2`
3045 { (ac_try="$ac_compiler --version >&5"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compiler --version >&5") 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }
3055 { (ac_try="$ac_compiler -v >&5"
3056 case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061   (eval "$ac_compiler -v >&5") 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }
3065 { (ac_try="$ac_compiler -V >&5"
3066 case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_compiler -V >&5") 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }
3075
3076 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3077 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3078 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081   cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h.  */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h.  */
3087
3088 int
3089 main ()
3090 {
3091 #ifndef __GNUC__
3092        choke me
3093 #endif
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } && {
3113          test -z "$ac_cxx_werror_flag" ||
3114          test ! -s conftest.err
3115        } && test -s conftest.$ac_objext; then
3116   ac_compiler_gnu=yes
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121         ac_compiler_gnu=no
3122 fi
3123
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3126
3127 fi
3128 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3129 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3130 GXX=`test $ac_compiler_gnu = yes && echo yes`
3131 ac_test_CXXFLAGS=${CXXFLAGS+set}
3132 ac_save_CXXFLAGS=$CXXFLAGS
3133 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3134 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3135 if test "${ac_cv_prog_cxx_g+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3139    ac_cxx_werror_flag=yes
3140    ac_cv_prog_cxx_g=no
3141    CXXFLAGS="-g"
3142    cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148
3149 int
3150 main ()
3151 {
3152
3153   ;
3154   return 0;
3155 }
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3159 case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164   (eval "$ac_compile") 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } && {
3171          test -z "$ac_cxx_werror_flag" ||
3172          test ! -s conftest.err
3173        } && test -s conftest.$ac_objext; then
3174   ac_cv_prog_cxx_g=yes
3175 else
3176   echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179         CXXFLAGS=""
3180       cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h.  */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h.  */
3186
3187 int
3188 main ()
3189 {
3190
3191   ;
3192   return 0;
3193 }
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202   (eval "$ac_compile") 2>conftest.er1
3203   ac_status=$?
3204   grep -v '^ *+' conftest.er1 >conftest.err
3205   rm -f conftest.er1
3206   cat conftest.err >&5
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } && {
3209          test -z "$ac_cxx_werror_flag" ||
3210          test ! -s conftest.err
3211        } && test -s conftest.$ac_objext; then
3212   :
3213 else
3214   echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3218          CXXFLAGS="-g"
3219          cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h.  */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h.  */
3225
3226 int
3227 main ()
3228 {
3229
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_compile") 2>conftest.er1
3242   ac_status=$?
3243   grep -v '^ *+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } && {
3248          test -z "$ac_cxx_werror_flag" ||
3249          test ! -s conftest.err
3250        } && test -s conftest.$ac_objext; then
3251   ac_cv_prog_cxx_g=yes
3252 else
3253   echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256
3257 fi
3258
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 fi
3261
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 fi
3264
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3267 fi
3268 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3269 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3270 if test "$ac_test_CXXFLAGS" = set; then
3271   CXXFLAGS=$ac_save_CXXFLAGS
3272 elif test $ac_cv_prog_cxx_g = yes; then
3273   if test "$GXX" = yes; then
3274     CXXFLAGS="-g -O2"
3275   else
3276     CXXFLAGS="-g"
3277   fi
3278 else
3279   if test "$GXX" = yes; then
3280     CXXFLAGS="-O2"
3281   else
3282     CXXFLAGS=
3283   fi
3284 fi
3285 ac_ext=c
3286 ac_cpp='$CPP $CPPFLAGS'
3287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290
3291
3292
3293
3294 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3295 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3296
3297 cat > conftest.c << EOF
3298 #include <stdlib.h>
3299 #include <stdio.h>
3300
3301 int main (int argc, char*argv)
3302 {
3303     int a,b;
3304     b=3;
3305     int c;
3306     c=4;
3307     return 0;
3308 }
3309 EOF
3310
3311 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3312 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3313   { echo "$as_me:$LINENO: result: yes" >&5
3314 echo "${ECHO_T}yes" >&6; }
3315   GCC_IS_OK=true
3316   export GCC_IS_OK
3317 else
3318   echo "configure: failed program was:" >&5
3319   cat conftest.c >&5
3320   { echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6; }
3322 fi
3323 rm -f conftest*
3324
3325
3326 if test "x$GCC_IS_OK" '=' "x";then
3327     echo "***************************************************"
3328     echo "* Your gcc is too old to compile this!"
3329     echo "* "
3330     echo "* The last version compilable by this compiler is "
3331     echo "* swftools 0.7.0, which you can download from "
3332     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3333     echo "* ."
3334     echo "* Newer versions require at least gcc 3.0.0 "
3335     echo "***************************************************"
3336     exit 1
3337 fi
3338
3339 if test "x$CHECKMEM" '!=' "x";then
3340     CC="ccmalloc $CC"
3341     CXX="ccmalloc $CXX"
3342     #echo running again
3343     #unset ac_cv_prog_CC
3344     #unset ac_cv_prog_CXX
3345     #AC_PROG_CC
3346     #AC_PROG_CXX
3347 fi
3348  ac_ext=c
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3355 # On Suns, sometimes $CPP names a directory.
3356 if test -n "$CPP" && test -d "$CPP"; then
3357   CPP=
3358 fi
3359 if test -z "$CPP"; then
3360   if test "${ac_cv_prog_CPP+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363       # Double quotes because CPP needs to be expanded
3364     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3365     do
3366       ac_preproc_ok=false
3367 for ac_c_preproc_warn_flag in '' yes
3368 do
3369   # Use a header file that comes with gcc, so configuring glibc
3370   # with a fresh cross-compiler works.
3371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372   # <limits.h> exists even on freestanding compilers.
3373   # On the NeXT, cc -E runs the code through the compiler's parser,
3374   # not just through cpp. "Syntax error" is here to catch this case.
3375   cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381 #ifdef __STDC__
3382 # include <limits.h>
3383 #else
3384 # include <assert.h>
3385 #endif
3386                      Syntax error
3387 _ACEOF
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } >/dev/null && {
3401          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3402          test ! -s conftest.err
3403        }; then
3404   :
3405 else
3406   echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409   # Broken: fails on valid input.
3410 continue
3411 fi
3412
3413 rm -f conftest.err conftest.$ac_ext
3414
3415   # OK, works on sane cases.  Now check whether nonexistent headers
3416   # can be detected and how.
3417   cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 #include <ac_nonexistent.h>
3424 _ACEOF
3425 if { (ac_try="$ac_cpp conftest.$ac_ext"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3432   ac_status=$?
3433   grep -v '^ *+' conftest.er1 >conftest.err
3434   rm -f conftest.er1
3435   cat conftest.err >&5
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); } >/dev/null && {
3438          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3439          test ! -s conftest.err
3440        }; then
3441   # Broken: success on invalid input.
3442 continue
3443 else
3444   echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447   # Passes both tests.
3448 ac_preproc_ok=:
3449 break
3450 fi
3451
3452 rm -f conftest.err conftest.$ac_ext
3453
3454 done
3455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3456 rm -f conftest.err conftest.$ac_ext
3457 if $ac_preproc_ok; then
3458   break
3459 fi
3460
3461     done
3462     ac_cv_prog_CPP=$CPP
3463
3464 fi
3465   CPP=$ac_cv_prog_CPP
3466 else
3467   ac_cv_prog_CPP=$CPP
3468 fi
3469 { echo "$as_me:$LINENO: result: $CPP" >&5
3470 echo "${ECHO_T}$CPP" >&6; }
3471 ac_preproc_ok=false
3472 for ac_c_preproc_warn_flag in '' yes
3473 do
3474   # Use a header file that comes with gcc, so configuring glibc
3475   # with a fresh cross-compiler works.
3476   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3477   # <limits.h> exists even on freestanding compilers.
3478   # On the NeXT, cc -E runs the code through the compiler's parser,
3479   # not just through cpp. "Syntax error" is here to catch this case.
3480   cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h.  */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h.  */
3486 #ifdef __STDC__
3487 # include <limits.h>
3488 #else
3489 # include <assert.h>
3490 #endif
3491                      Syntax error
3492 _ACEOF
3493 if { (ac_try="$ac_cpp conftest.$ac_ext"
3494 case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3500   ac_status=$?
3501   grep -v '^ *+' conftest.er1 >conftest.err
3502   rm -f conftest.er1
3503   cat conftest.err >&5
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); } >/dev/null && {
3506          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3507          test ! -s conftest.err
3508        }; then
3509   :
3510 else
3511   echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514   # Broken: fails on valid input.
3515 continue
3516 fi
3517
3518 rm -f conftest.err conftest.$ac_ext
3519
3520   # OK, works on sane cases.  Now check whether nonexistent headers
3521   # can be detected and how.
3522   cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528 #include <ac_nonexistent.h>
3529 _ACEOF
3530 if { (ac_try="$ac_cpp conftest.$ac_ext"
3531 case "(($ac_try" in
3532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533   *) ac_try_echo=$ac_try;;
3534 esac
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3537   ac_status=$?
3538   grep -v '^ *+' conftest.er1 >conftest.err
3539   rm -f conftest.er1
3540   cat conftest.err >&5
3541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542   (exit $ac_status); } >/dev/null && {
3543          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3544          test ! -s conftest.err
3545        }; then
3546   # Broken: success on invalid input.
3547 continue
3548 else
3549   echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552   # Passes both tests.
3553 ac_preproc_ok=:
3554 break
3555 fi
3556
3557 rm -f conftest.err conftest.$ac_ext
3558
3559 done
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then
3563   :
3564 else
3565   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3566 See \`config.log' for more details." >&5
3567 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3568 See \`config.log' for more details." >&2;}
3569    { (exit 1); exit 1; }; }
3570 fi
3571
3572 ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578
3579  if test -n "$ac_tool_prefix"; then
3580   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3584 if test "${ac_cv_prog_RANLIB+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   if test -n "$RANLIB"; then
3588   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603 IFS=$as_save_IFS
3604
3605 fi
3606 fi
3607 RANLIB=$ac_cv_prog_RANLIB
3608 if test -n "$RANLIB"; then
3609   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3610 echo "${ECHO_T}$RANLIB" >&6; }
3611 else
3612   { echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6; }
3614 fi
3615
3616
3617 fi
3618 if test -z "$ac_cv_prog_RANLIB"; then
3619   ac_ct_RANLIB=$RANLIB
3620   # Extract the first word of "ranlib", so it can be a program name with args.
3621 set dummy ranlib; ac_word=$2
3622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3624 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   if test -n "$ac_ct_RANLIB"; then
3628   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637     ac_cv_prog_ac_ct_RANLIB="ranlib"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643 IFS=$as_save_IFS
3644
3645 fi
3646 fi
3647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3648 if test -n "$ac_ct_RANLIB"; then
3649   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3650 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3651 else
3652   { echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6; }
3654 fi
3655
3656   if test "x$ac_ct_RANLIB" = x; then
3657     RANLIB=":"
3658   else
3659     case $cross_compiling:$ac_tool_warned in
3660 yes:)
3661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3662 whose name does not start with the host triplet.  If you think this
3663 configuration is useful to you, please write to autoconf@gnu.org." >&5
3664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3665 whose name does not start with the host triplet.  If you think this
3666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3667 ac_tool_warned=yes ;;
3668 esac
3669     RANLIB=$ac_ct_RANLIB
3670   fi
3671 else
3672   RANLIB="$ac_cv_prog_RANLIB"
3673 fi
3674
3675  { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3676 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3677 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3678 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   cat >conftest.make <<\_ACEOF
3682 SHELL = /bin/sh
3683 all:
3684         @echo '@@@%%%=$(MAKE)=@@@%%%'
3685 _ACEOF
3686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3687 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3688   *@@@%%%=?*=@@@%%%*)
3689     eval ac_cv_prog_make_${ac_make}_set=yes;;
3690   *)
3691     eval ac_cv_prog_make_${ac_make}_set=no;;
3692 esac
3693 rm -f conftest.make
3694 fi
3695 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3696   { echo "$as_me:$LINENO: result: yes" >&5
3697 echo "${ECHO_T}yes" >&6; }
3698   SET_MAKE=
3699 else
3700   { echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6; }
3702   SET_MAKE="MAKE=${MAKE-make}"
3703 fi
3704
3705  # Find a good install program.  We prefer a C program (faster),
3706 # so one script is as good as another.  But avoid the broken or
3707 # incompatible versions:
3708 # SysV /etc/install, /usr/sbin/install
3709 # SunOS /usr/etc/install
3710 # IRIX /sbin/install
3711 # AIX /bin/install
3712 # AmigaOS /C/install, which installs bootblocks on floppy discs
3713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3716 # OS/2's system install, which has a completely different semantic
3717 # ./install, which can be erroneously created by make from ./install.sh.
3718 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3719 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3720 if test -z "$INSTALL"; then
3721 if test "${ac_cv_path_install+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3726 do
3727   IFS=$as_save_IFS
3728   test -z "$as_dir" && as_dir=.
3729   # Account for people who put trailing slashes in PATH elements.
3730 case $as_dir/ in
3731   ./ | .// | /cC/* | \
3732   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3733   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3734   /usr/ucb/* ) ;;
3735   *)
3736     # OSF1 and SCO ODT 3.0 have their own names for install.
3737     # Don't use installbsd from OSF since it installs stuff as root
3738     # by default.
3739     for ac_prog in ginstall scoinst install; do
3740       for ac_exec_ext in '' $ac_executable_extensions; do
3741         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3742           if test $ac_prog = install &&
3743             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3744             # AIX install.  It has an incompatible calling convention.
3745             :
3746           elif test $ac_prog = install &&
3747             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3748             # program-specific install script used by HP pwplus--don't use.
3749             :
3750           else
3751             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3752             break 3
3753           fi
3754         fi
3755       done
3756     done
3757     ;;
3758 esac
3759 done
3760 IFS=$as_save_IFS
3761
3762
3763 fi
3764   if test "${ac_cv_path_install+set}" = set; then
3765     INSTALL=$ac_cv_path_install
3766   else
3767     # As a last resort, use the slow shell script.  Don't cache a
3768     # value for INSTALL within a source directory, because that will
3769     # break other packages using the cache if that directory is
3770     # removed, or if the value is a relative name.
3771     INSTALL=$ac_install_sh
3772   fi
3773 fi
3774 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3775 echo "${ECHO_T}$INSTALL" >&6; }
3776
3777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3778 # It thinks the first close brace ends the variable substitution.
3779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3780
3781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3782
3783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3784
3785  { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3786 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3787 LN_S=$as_ln_s
3788 if test "$LN_S" = "ln -s"; then
3789   { echo "$as_me:$LINENO: result: yes" >&5
3790 echo "${ECHO_T}yes" >&6; }
3791 else
3792   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3793 echo "${ECHO_T}no, using $LN_S" >&6; }
3794 fi
3795
3796  for ac_prog in gzip uncompress compress
3797 do
3798   # Extract the first word of "$ac_prog", so it can be a program name with args.
3799 set dummy $ac_prog; ac_word=$2
3800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3802 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3803   echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805   if test -n "$UNCOMPRESS"; then
3806   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3810 do
3811   IFS=$as_save_IFS
3812   test -z "$as_dir" && as_dir=.
3813   for ac_exec_ext in '' $ac_executable_extensions; do
3814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815     ac_cv_prog_UNCOMPRESS="$ac_prog"
3816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817     break 2
3818   fi
3819 done
3820 done
3821 IFS=$as_save_IFS
3822
3823 fi
3824 fi
3825 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3826 if test -n "$UNCOMPRESS"; then
3827   { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3828 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3829 else
3830   { echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6; }
3832 fi
3833
3834
3835   test -n "$UNCOMPRESS" && break
3836 done
3837
3838
3839
3840
3841 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3842         if test -n "$ac_tool_prefix"; then
3843   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3847 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   case $PKG_CONFIG in
3851   [\\/]* | ?:[\\/]*)
3852   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3853   ;;
3854   *)
3855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860   for ac_exec_ext in '' $ac_executable_extensions; do
3861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3862     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867 done
3868 IFS=$as_save_IFS
3869
3870   ;;
3871 esac
3872 fi
3873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3874 if test -n "$PKG_CONFIG"; then
3875   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3876 echo "${ECHO_T}$PKG_CONFIG" >&6; }
3877 else
3878   { echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6; }
3880 fi
3881
3882
3883 fi
3884 if test -z "$ac_cv_path_PKG_CONFIG"; then
3885   ac_pt_PKG_CONFIG=$PKG_CONFIG
3886   # Extract the first word of "pkg-config", so it can be a program name with args.
3887 set dummy pkg-config; ac_word=$2
3888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3890 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   case $ac_pt_PKG_CONFIG in
3894   [\\/]* | ?:[\\/]*)
3895   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3896   ;;
3897   *)
3898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901   IFS=$as_save_IFS
3902   test -z "$as_dir" && as_dir=.
3903   for ac_exec_ext in '' $ac_executable_extensions; do
3904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907     break 2
3908   fi
3909 done
3910 done
3911 IFS=$as_save_IFS
3912
3913   ;;
3914 esac
3915 fi
3916 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3917 if test -n "$ac_pt_PKG_CONFIG"; then
3918   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3919 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
3920 else
3921   { echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6; }
3923 fi
3924
3925   if test "x$ac_pt_PKG_CONFIG" = x; then
3926     PKG_CONFIG=""
3927   else
3928     case $cross_compiling:$ac_tool_warned in
3929 yes:)
3930 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3931 whose name does not start with the host triplet.  If you think this
3932 configuration is useful to you, please write to autoconf@gnu.org." >&5
3933 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3934 whose name does not start with the host triplet.  If you think this
3935 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3936 ac_tool_warned=yes ;;
3937 esac
3938     PKG_CONFIG=$ac_pt_PKG_CONFIG
3939   fi
3940 else
3941   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3942 fi
3943
3944 fi
3945 if test -n "$PKG_CONFIG"; then
3946         _pkg_min_version=0.9.0
3947         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3948 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
3949         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3950                 { echo "$as_me:$LINENO: result: yes" >&5
3951 echo "${ECHO_T}yes" >&6; }
3952         else
3953                 { echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6; }
3955                 PKG_CONFIG=""
3956         fi
3957
3958 fi
3959
3960 OBJEXT="o"
3961 AREXT=".a"
3962 CXXLIBS="-lstdc++"
3963
3964
3965
3966 if test "x$EXEEXT" = "x.exe";then
3967     OBJEXT="obj"
3968     AREXT=".lib"
3969     CXXLIBS=""
3970 fi
3971
3972
3973
3974
3975 { echo "$as_me:$LINENO: checking host system type" >&5
3976 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3977 if test "${ac_cv_host+set}" = set; then
3978   echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980   if test "x$host_alias" = x; then
3981   ac_cv_host=$ac_cv_build
3982 else
3983   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3984     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3985 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3986    { (exit 1); exit 1; }; }
3987 fi
3988
3989 fi
3990 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3991 echo "${ECHO_T}$ac_cv_host" >&6; }
3992 case $ac_cv_host in
3993 *-*-*) ;;
3994 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3995 echo "$as_me: error: invalid value of canonical host" >&2;}
3996    { (exit 1); exit 1; }; };;
3997 esac
3998 host=$ac_cv_host
3999 ac_save_IFS=$IFS; IFS='-'
4000 set x $ac_cv_host
4001 shift
4002 host_cpu=$1
4003 host_vendor=$2
4004 shift; shift
4005 # Remember, the first character of IFS is used to create $*,
4006 # except with old shells:
4007 host_os=$*
4008 IFS=$ac_save_IFS
4009 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4010
4011
4012
4013
4014 { echo "$as_me:$LINENO: checking for target system" >&5
4015 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
4016 CYGWIN=
4017 MINGW=
4018 case $host_os in
4019     *cygwin* ) CYGWIN=yes;;
4020     *mingw* ) MINGW=yes;;
4021 esac
4022
4023 AR=ar
4024 if test "x$MINGW" = "xyes"; then
4025     #fix for the debian distribution of mingw
4026     if test -x "/usr/i586-mingw32msvc/bin/ar";then
4027         AR="/usr/i586-mingw32msvc/bin/ar"
4028     fi
4029     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4030         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4031     fi
4032     #fix for the gentoo distribution of mingw
4033     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4034         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4035     fi
4036     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4037         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4038     fi
4039     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4040         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4041     fi
4042 fi
4043
4044
4045
4046 if test "x${CYGWIN}" = "xyes"; then
4047
4048 cat >>confdefs.h <<\_ACEOF
4049 #define CYGWIN 1
4050 _ACEOF
4051
4052     { echo "$as_me:$LINENO: result: cygwin" >&5
4053 echo "${ECHO_T}cygwin" >&6; }
4054 else
4055     if test "x${MINGW}" = "xyes"; then
4056
4057 cat >>confdefs.h <<\_ACEOF
4058 #define MINGW 1
4059 _ACEOF
4060
4061         WIN32=1
4062
4063 cat >>confdefs.h <<\_ACEOF
4064 #define WIN32 1
4065 _ACEOF
4066
4067         LIBS="$LIBS -lws2_32 -lgdi32"
4068         { echo "$as_me:$LINENO: result: mingw" >&5
4069 echo "${ECHO_T}mingw" >&6; }
4070     else
4071         LINUX=1
4072         export LINUX
4073
4074 cat >>confdefs.h <<\_ACEOF
4075 #define LINUX 1
4076 _ACEOF
4077
4078         { echo "$as_me:$LINENO: result: " >&5
4079 echo "${ECHO_T}" >&6; }
4080     fi
4081 fi
4082
4083
4084 SLEXT="so"
4085 if test "x${MINGW}" != "xyes"; then
4086     # no mingW
4087
4088 cat >>confdefs.h <<\_ACEOF
4089 #define O_BINARY 0
4090 _ACEOF
4091
4092 else
4093     # mingW
4094     SLEXT="dll"
4095     CXXLIBS=""
4096 fi
4097 export SLEXT
4098
4099
4100
4101 # The following tries to make use of includes and libraries in
4102 # /usr/local, too. Notice: A -I/usr/local/include might break
4103 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4104 # especially on systems which link /usr/local to /usr, so it has yet
4105 # to be seen how useful this is.
4106 if test -d /usr/local/lib; then
4107     LDFLAGS="$LDFLAGS -L/usr/local/lib"
4108 fi
4109 if test -d /usr/local/include; then
4110 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4111 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4112     echo > /dev/null
4113 fi
4114 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4115     # if the user has a special prefix (like /opt), there might also be $prefix/lib
4116     # and $prefix/include, which should be included in our search paths for libraries
4117     # and includes.
4118     LDFLAGS="$LDFLAGS -L${libdir}"
4119     CPPFLAGS="$CPPFLAGS -I${includedir}"
4120     # TODO- test whether gcc still works after this
4121 fi
4122
4123 #Mac OS:
4124 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4125
4126
4127 # this must be done after (I believe) AC_PROG_MAKE_SET
4128 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4129     STRIP="@echo debug enabled, not stripping "
4130     export STRIP
4131
4132 fi
4133
4134
4135
4136 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
4137 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
4138 if test "${ac_cv_lib_m_sin+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   ac_check_lib_save_LIBS=$LIBS
4142 LIBS="-lm  $LIBS"
4143 cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149
4150 /* Override any GCC internal prototype to avoid an error.
4151    Use char because int might match the return type of a GCC
4152    builtin and then its argument prototype would still apply.  */
4153 #ifdef __cplusplus
4154 extern "C"
4155 #endif
4156 char sin ();
4157 int
4158 main ()
4159 {
4160 return sin ();
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.$ac_objext conftest$ac_exeext
4166 if { (ac_try="$ac_link"
4167 case "(($ac_try" in
4168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169   *) ac_try_echo=$ac_try;;
4170 esac
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172   (eval "$ac_link") 2>conftest.er1
4173   ac_status=$?
4174   grep -v '^ *+' conftest.er1 >conftest.err
4175   rm -f conftest.er1
4176   cat conftest.err >&5
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); } && {
4179          test -z "$ac_c_werror_flag" ||
4180          test ! -s conftest.err
4181        } && test -s conftest$ac_exeext &&
4182        $as_test_x conftest$ac_exeext; then
4183   ac_cv_lib_m_sin=yes
4184 else
4185   echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4187
4188         ac_cv_lib_m_sin=no
4189 fi
4190
4191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4192       conftest$ac_exeext conftest.$ac_ext
4193 LIBS=$ac_check_lib_save_LIBS
4194 fi
4195 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4196 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4197 if test $ac_cv_lib_m_sin = yes; then
4198   cat >>confdefs.h <<_ACEOF
4199 #define HAVE_LIBM 1
4200 _ACEOF
4201
4202   LIBS="-lm $LIBS"
4203
4204 else
4205   echo "Error: Math library not found.";
4206  exit;
4207
4208 fi
4209
4210
4211 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4212 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4213 if test "${ac_cv_lib_z_deflate+set}" = set; then
4214   echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216   ac_check_lib_save_LIBS=$LIBS
4217 LIBS="-lz  $LIBS"
4218 cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h.  */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h.  */
4224
4225 /* Override any GCC internal prototype to avoid an error.
4226    Use char because int might match the return type of a GCC
4227    builtin and then its argument prototype would still apply.  */
4228 #ifdef __cplusplus
4229 extern "C"
4230 #endif
4231 char deflate ();
4232 int
4233 main ()
4234 {
4235 return deflate ();
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest.$ac_objext conftest$ac_exeext
4241 if { (ac_try="$ac_link"
4242 case "(($ac_try" in
4243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244   *) ac_try_echo=$ac_try;;
4245 esac
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247   (eval "$ac_link") 2>conftest.er1
4248   ac_status=$?
4249   grep -v '^ *+' conftest.er1 >conftest.err
4250   rm -f conftest.er1
4251   cat conftest.err >&5
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); } && {
4254          test -z "$ac_c_werror_flag" ||
4255          test ! -s conftest.err
4256        } && test -s conftest$ac_exeext &&
4257        $as_test_x conftest$ac_exeext; then
4258   ac_cv_lib_z_deflate=yes
4259 else
4260   echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4262
4263         ac_cv_lib_z_deflate=no
4264 fi
4265
4266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4267       conftest$ac_exeext conftest.$ac_ext
4268 LIBS=$ac_check_lib_save_LIBS
4269 fi
4270 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4271 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4272 if test $ac_cv_lib_z_deflate = yes; then
4273   cat >>confdefs.h <<_ACEOF
4274 #define HAVE_LIBZ 1
4275 _ACEOF
4276
4277   LIBS="-lz $LIBS"
4278
4279 else
4280   ZLIBMISSING=true
4281 fi
4282
4283
4284 if test "x$ZLIBMISSING" = "xtrue";then
4285     echo
4286     echo "ERROR:"
4287     echo "You need zlib to compile swftools"
4288     echo
4289     exit
4290 fi
4291
4292
4293 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4294 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4295 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4296   echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298   ac_check_lib_save_LIBS=$LIBS
4299 LIBS="-ljpeg  $LIBS"
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h.  */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h.  */
4306
4307 /* Override any GCC internal prototype to avoid an error.
4308    Use char because int might match the return type of a GCC
4309    builtin and then its argument prototype would still apply.  */
4310 #ifdef __cplusplus
4311 extern "C"
4312 #endif
4313 char jpeg_write_raw_data ();
4314 int
4315 main ()
4316 {
4317 return jpeg_write_raw_data ();
4318   ;
4319   return 0;
4320 }
4321 _ACEOF
4322 rm -f conftest.$ac_objext conftest$ac_exeext
4323 if { (ac_try="$ac_link"
4324 case "(($ac_try" in
4325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326   *) ac_try_echo=$ac_try;;
4327 esac
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329   (eval "$ac_link") 2>conftest.er1
4330   ac_status=$?
4331   grep -v '^ *+' conftest.er1 >conftest.err
4332   rm -f conftest.er1
4333   cat conftest.err >&5
4334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335   (exit $ac_status); } && {
4336          test -z "$ac_c_werror_flag" ||
4337          test ! -s conftest.err
4338        } && test -s conftest$ac_exeext &&
4339        $as_test_x conftest$ac_exeext; then
4340   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4341 else
4342   echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345         ac_cv_lib_jpeg_jpeg_write_raw_data=no
4346 fi
4347
4348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4349       conftest$ac_exeext conftest.$ac_ext
4350 LIBS=$ac_check_lib_save_LIBS
4351 fi
4352 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4353 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4354 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4355   cat >>confdefs.h <<_ACEOF
4356 #define HAVE_LIBJPEG 1
4357 _ACEOF
4358
4359   LIBS="-ljpeg $LIBS"
4360
4361 else
4362   JPEGLIBMISSING=true
4363 fi
4364
4365
4366 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4367 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4368 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   ac_check_lib_save_LIBS=$LIBS
4372 LIBS="-lungif  $LIBS"
4373 cat >conftest.$ac_ext <<_ACEOF
4374 /* confdefs.h.  */
4375 _ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h.  */
4379
4380 /* Override any GCC internal prototype to avoid an error.
4381    Use char because int might match the return type of a GCC
4382    builtin and then its argument prototype would still apply.  */
4383 #ifdef __cplusplus
4384 extern "C"
4385 #endif
4386 char DGifOpen ();
4387 int
4388 main ()
4389 {
4390 return DGifOpen ();
4391   ;
4392   return 0;
4393 }
4394 _ACEOF
4395 rm -f conftest.$ac_objext conftest$ac_exeext
4396 if { (ac_try="$ac_link"
4397 case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402   (eval "$ac_link") 2>conftest.er1
4403   ac_status=$?
4404   grep -v '^ *+' conftest.er1 >conftest.err
4405   rm -f conftest.er1
4406   cat conftest.err >&5
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } && {
4409          test -z "$ac_c_werror_flag" ||
4410          test ! -s conftest.err
4411        } && test -s conftest$ac_exeext &&
4412        $as_test_x conftest$ac_exeext; then
4413   ac_cv_lib_ungif_DGifOpen=yes
4414 else
4415   echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4417
4418         ac_cv_lib_ungif_DGifOpen=no
4419 fi
4420
4421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4422       conftest$ac_exeext conftest.$ac_ext
4423 LIBS=$ac_check_lib_save_LIBS
4424 fi
4425 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4426 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4427 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4428   cat >>confdefs.h <<_ACEOF
4429 #define HAVE_LIBUNGIF 1
4430 _ACEOF
4431
4432   LIBS="-lungif $LIBS"
4433
4434 else
4435   UNGIFMISSING=true
4436 fi
4437
4438 if test "$UNGIFMISSING";then
4439     UNGIFMISSING=
4440
4441 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4442 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4443 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446   ac_check_lib_save_LIBS=$LIBS
4447 LIBS="-lgif  $LIBS"
4448 cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454
4455 /* Override any GCC internal prototype to avoid an error.
4456    Use char because int might match the return type of a GCC
4457    builtin and then its argument prototype would still apply.  */
4458 #ifdef __cplusplus
4459 extern "C"
4460 #endif
4461 char DGifOpen ();
4462 int
4463 main ()
4464 {
4465 return DGifOpen ();
4466   ;
4467   return 0;
4468 }
4469 _ACEOF
4470 rm -f conftest.$ac_objext conftest$ac_exeext
4471 if { (ac_try="$ac_link"
4472 case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477   (eval "$ac_link") 2>conftest.er1
4478   ac_status=$?
4479   grep -v '^ *+' conftest.er1 >conftest.err
4480   rm -f conftest.er1
4481   cat conftest.err >&5
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); } && {
4484          test -z "$ac_c_werror_flag" ||
4485          test ! -s conftest.err
4486        } && test -s conftest$ac_exeext &&
4487        $as_test_x conftest$ac_exeext; then
4488   ac_cv_lib_gif_DGifOpen=yes
4489 else
4490   echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493         ac_cv_lib_gif_DGifOpen=no
4494 fi
4495
4496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4497       conftest$ac_exeext conftest.$ac_ext
4498 LIBS=$ac_check_lib_save_LIBS
4499 fi
4500 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4501 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4502 if test $ac_cv_lib_gif_DGifOpen = yes; then
4503   cat >>confdefs.h <<_ACEOF
4504 #define HAVE_LIBGIF 1
4505 _ACEOF
4506
4507   LIBS="-lgif $LIBS"
4508
4509 else
4510   UNGIFMISSING=true
4511 fi
4512
4513 fi
4514
4515
4516 { echo "$as_me:$LINENO: checking for byte order" >&5
4517 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4518 if test "$cross_compiling" = yes; then
4519   CROSSCOMPILE=1
4520 else
4521   cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h.  */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h.  */
4527
4528 int main (int argc, char *argv[])
4529 {
4530     int i = 1;
4531     return *(char*)&i;
4532 }
4533
4534 _ACEOF
4535 rm -f conftest$ac_exeext
4536 if { (ac_try="$ac_link"
4537 case "(($ac_try" in
4538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539   *) ac_try_echo=$ac_try;;
4540 esac
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542   (eval "$ac_link") 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4546   { (case "(($ac_try" in
4547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548   *) ac_try_echo=$ac_try;;
4549 esac
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551   (eval "$ac_try") 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; }; then
4555   BIGENDIAN=1
4556 else
4557   echo "$as_me: program exited with status $ac_status" >&5
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4560
4561 ( exit $ac_status )
4562 LITTLEENDIAN=1
4563 fi
4564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4565 fi
4566
4567
4568 export CROSSCOMPILE
4569
4570 if test "x${CROSSCOMPILE}" = "x1"; then
4571  { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4572 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4573  { echo "$as_me:$LINENO: checking target system type" >&5
4574 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4575 if test "${ac_cv_target+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   if test "x$target_alias" = x; then
4579   ac_cv_target=$ac_cv_host
4580 else
4581   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4582     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4583 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4584    { (exit 1); exit 1; }; }
4585 fi
4586
4587 fi
4588 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4589 echo "${ECHO_T}$ac_cv_target" >&6; }
4590 case $ac_cv_target in
4591 *-*-*) ;;
4592 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4593 echo "$as_me: error: invalid value of canonical target" >&2;}
4594    { (exit 1); exit 1; }; };;
4595 esac
4596 target=$ac_cv_target
4597 ac_save_IFS=$IFS; IFS='-'
4598 set x $ac_cv_target
4599 shift
4600 target_cpu=$1
4601 target_vendor=$2
4602 shift; shift
4603 # Remember, the first character of IFS is used to create $*,
4604 # except with old shells:
4605 target_os=$*
4606 IFS=$ac_save_IFS
4607 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4608
4609
4610 # The aliases save the names the user supplied, while $host etc.
4611 # will get canonicalized.
4612 test -n "$target_alias" &&
4613   test "$program_prefix$program_suffix$program_transform_name" = \
4614     NONENONEs,x,x, &&
4615   program_prefix=${target_alias}-
4616  { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4617 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4618  case "${target}" in
4619   *86* | *-pc-* )
4620      LITTLEENDIAN=1
4621      ;;
4622   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4623      BIGENDIAN=1
4624      ;;
4625  esac
4626 fi
4627
4628 export LITTLEENDIAN
4629 if test "x${LITTLEENDIAN}" = "x1"; then
4630 { echo "$as_me:$LINENO: result: little endian" >&5
4631 echo "${ECHO_T}little endian" >&6; }
4632 BYTEORDERCHECKOK=1
4633 fi
4634 export BIGENDIAN
4635 if test "x${BIGENDIAN}" = "x1"; then
4636 { echo "$as_me:$LINENO: result: big endian" >&5
4637 echo "${ECHO_T}big endian" >&6; }
4638 BYTEORDERCHECKOK=1
4639 WORDS_BIGENDIAN=1
4640 export WORDS_BIGENDIAN
4641
4642 cat >>confdefs.h <<\_ACEOF
4643 #define WORDS_BIGENDIAN 1
4644 _ACEOF
4645
4646 fi
4647 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4648 { echo "$as_me:$LINENO: result: unknown" >&5
4649 echo "${ECHO_T}unknown" >&6; }
4650 echo Byte order could not determined.
4651 exit 1
4652 fi
4653
4654
4655
4656 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4657 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4658 if test "$cross_compiling" = yes; then
4659   CROSSCOMPILE=1
4660 else
4661   cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h.  */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h.  */
4667
4668 #include "stdlib.h"
4669 int main (int argc, char*argv[])
4670 {
4671     return system("test `touch config.tmp2`");
4672 }
4673
4674 _ACEOF
4675 rm -f conftest$ac_exeext
4676 if { (ac_try="$ac_link"
4677 case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682   (eval "$ac_link") 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4686   { (case "(($ac_try" in
4687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688   *) ac_try_echo=$ac_try;;
4689 esac
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691   (eval "$ac_try") 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }; }; then
4695   OK=OK
4696 else
4697   echo "$as_me: program exited with status $ac_status" >&5
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701 fi
4702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4703 fi
4704
4705
4706
4707 if test "x${OK}" = "xOK";then
4708     test -f config.tmp2 || OK=
4709 fi
4710
4711 if test "x${CROSSCOMPILE}" = "x1";then
4712     OK=no;
4713 fi
4714 if test "x${OK}" = "xOK";then
4715 rm -f config.tmp2
4716 { echo "$as_me:$LINENO: result: yes" >&5
4717 echo "${ECHO_T}yes" >&6; }
4718 SYSTEM_BACKTICKS=1
4719 export SYSTEM_BACKTICKS
4720
4721 cat >>confdefs.h <<\_ACEOF
4722 #define SYSTEM_BACKTICKS 1
4723 _ACEOF
4724
4725 else
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4728 fi
4729
4730
4731
4732 test "$program_prefix" != NONE &&
4733   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4734 # Use a double $ so make ignores it.
4735 test "$program_suffix" != NONE &&
4736   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4737 # Double any \ or $.  echo might interpret backslashes.
4738 # By default was `s,x,x', remove it if useless.
4739 cat <<\_ACEOF >conftest.sed
4740 s/[\\$]/&&/g;s/;s,x,x,$//
4741 _ACEOF
4742 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4743 rm -f conftest.sed
4744
4745
4746  ac_config_headers="$ac_config_headers config.h"
4747
4748
4749
4750
4751
4752
4753 ac_header_dirent=no
4754 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4755   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4756 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4757 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h.  */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h.  */
4767 #include <sys/types.h>
4768 #include <$ac_hdr>
4769
4770 int
4771 main ()
4772 {
4773 if ((DIR *) 0)
4774 return 0;
4775   ;
4776   return 0;
4777 }
4778 _ACEOF
4779 rm -f conftest.$ac_objext
4780 if { (ac_try="$ac_compile"
4781 case "(($ac_try" in
4782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783   *) ac_try_echo=$ac_try;;
4784 esac
4785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786   (eval "$ac_compile") 2>conftest.er1
4787   ac_status=$?
4788   grep -v '^ *+' conftest.er1 >conftest.err
4789   rm -f conftest.er1
4790   cat conftest.err >&5
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); } && {
4793          test -z "$ac_c_werror_flag" ||
4794          test ! -s conftest.err
4795        } && test -s conftest.$ac_objext; then
4796   eval "$as_ac_Header=yes"
4797 else
4798   echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4800
4801         eval "$as_ac_Header=no"
4802 fi
4803
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 ac_res=`eval echo '${'$as_ac_Header'}'`
4807                { echo "$as_me:$LINENO: result: $ac_res" >&5
4808 echo "${ECHO_T}$ac_res" >&6; }
4809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4810   cat >>confdefs.h <<_ACEOF
4811 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4812 _ACEOF
4813
4814 ac_header_dirent=$ac_hdr; break
4815 fi
4816
4817 done
4818 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4819 if test $ac_header_dirent = dirent.h; then
4820   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4821 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4822 if test "${ac_cv_search_opendir+set}" = set; then
4823   echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825   ac_func_search_save_LIBS=$LIBS
4826 cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h.  */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h.  */
4832
4833 /* Override any GCC internal prototype to avoid an error.
4834    Use char because int might match the return type of a GCC
4835    builtin and then its argument prototype would still apply.  */
4836 #ifdef __cplusplus
4837 extern "C"
4838 #endif
4839 char opendir ();
4840 int
4841 main ()
4842 {
4843 return opendir ();
4844   ;
4845   return 0;
4846 }
4847 _ACEOF
4848 for ac_lib in '' dir; do
4849   if test -z "$ac_lib"; then
4850     ac_res="none required"
4851   else
4852     ac_res=-l$ac_lib
4853     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4854   fi
4855   rm -f conftest.$ac_objext conftest$ac_exeext
4856 if { (ac_try="$ac_link"
4857 case "(($ac_try" in
4858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859   *) ac_try_echo=$ac_try;;
4860 esac
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862   (eval "$ac_link") 2>conftest.er1
4863   ac_status=$?
4864   grep -v '^ *+' conftest.er1 >conftest.err
4865   rm -f conftest.er1
4866   cat conftest.err >&5
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); } && {
4869          test -z "$ac_c_werror_flag" ||
4870          test ! -s conftest.err
4871        } && test -s conftest$ac_exeext &&
4872        $as_test_x conftest$ac_exeext; then
4873   ac_cv_search_opendir=$ac_res
4874 else
4875   echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878
4879 fi
4880
4881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4882       conftest$ac_exeext
4883   if test "${ac_cv_search_opendir+set}" = set; then
4884   break
4885 fi
4886 done
4887 if test "${ac_cv_search_opendir+set}" = set; then
4888   :
4889 else
4890   ac_cv_search_opendir=no
4891 fi
4892 rm conftest.$ac_ext
4893 LIBS=$ac_func_search_save_LIBS
4894 fi
4895 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4896 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4897 ac_res=$ac_cv_search_opendir
4898 if test "$ac_res" != no; then
4899   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4900
4901 fi
4902
4903 else
4904   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4905 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4906 if test "${ac_cv_search_opendir+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   ac_func_search_save_LIBS=$LIBS
4910 cat >conftest.$ac_ext <<_ACEOF
4911 /* confdefs.h.  */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h.  */
4916
4917 /* Override any GCC internal prototype to avoid an error.
4918    Use char because int might match the return type of a GCC
4919    builtin and then its argument prototype would still apply.  */
4920 #ifdef __cplusplus
4921 extern "C"
4922 #endif
4923 char opendir ();
4924 int
4925 main ()
4926 {
4927 return opendir ();
4928   ;
4929   return 0;
4930 }
4931 _ACEOF
4932 for ac_lib in '' x; do
4933   if test -z "$ac_lib"; then
4934     ac_res="none required"
4935   else
4936     ac_res=-l$ac_lib
4937     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4938   fi
4939   rm -f conftest.$ac_objext conftest$ac_exeext
4940 if { (ac_try="$ac_link"
4941 case "(($ac_try" in
4942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943   *) ac_try_echo=$ac_try;;
4944 esac
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946   (eval "$ac_link") 2>conftest.er1
4947   ac_status=$?
4948   grep -v '^ *+' conftest.er1 >conftest.err
4949   rm -f conftest.er1
4950   cat conftest.err >&5
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); } && {
4953          test -z "$ac_c_werror_flag" ||
4954          test ! -s conftest.err
4955        } && test -s conftest$ac_exeext &&
4956        $as_test_x conftest$ac_exeext; then
4957   ac_cv_search_opendir=$ac_res
4958 else
4959   echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962
4963 fi
4964
4965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4966       conftest$ac_exeext
4967   if test "${ac_cv_search_opendir+set}" = set; then
4968   break
4969 fi
4970 done
4971 if test "${ac_cv_search_opendir+set}" = set; then
4972   :
4973 else
4974   ac_cv_search_opendir=no
4975 fi
4976 rm conftest.$ac_ext
4977 LIBS=$ac_func_search_save_LIBS
4978 fi
4979 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4980 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4981 ac_res=$ac_cv_search_opendir
4982 if test "$ac_res" != no; then
4983   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4984
4985 fi
4986
4987 fi
4988
4989
4990 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4991 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4992 if test "${ac_cv_path_GREP+set}" = set; then
4993   echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995   # Extract the first word of "grep ggrep" to use in msg output
4996 if test -z "$GREP"; then
4997 set dummy grep ggrep; ac_prog_name=$2
4998 if test "${ac_cv_path_GREP+set}" = set; then
4999   echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001   ac_path_GREP_found=false
5002 # Loop through the user's path and test for each of PROGNAME-LIST
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5005 do
5006   IFS=$as_save_IFS
5007   test -z "$as_dir" && as_dir=.
5008   for ac_prog in grep ggrep; do
5009   for ac_exec_ext in '' $ac_executable_extensions; do
5010     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5011     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5012     # Check for GNU ac_path_GREP and select it if it is found.
5013   # Check for GNU $ac_path_GREP
5014 case `"$ac_path_GREP" --version 2>&1` in
5015 *GNU*)
5016   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5017 *)
5018   ac_count=0
5019   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5020   while :
5021   do
5022     cat "conftest.in" "conftest.in" >"conftest.tmp"
5023     mv "conftest.tmp" "conftest.in"
5024     cp "conftest.in" "conftest.nl"
5025     echo 'GREP' >> "conftest.nl"
5026     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5027     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5028     ac_count=`expr $ac_count + 1`
5029     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5030       # Best one so far, save it but keep looking for a better one
5031       ac_cv_path_GREP="$ac_path_GREP"
5032       ac_path_GREP_max=$ac_count
5033     fi
5034     # 10*(2^10) chars as input seems more than enough
5035     test $ac_count -gt 10 && break
5036   done
5037   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5038 esac
5039
5040
5041     $ac_path_GREP_found && break 3
5042   done
5043 done
5044
5045 done
5046 IFS=$as_save_IFS
5047
5048
5049 fi
5050
5051 GREP="$ac_cv_path_GREP"
5052 if test -z "$GREP"; then
5053   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5055    { (exit 1); exit 1; }; }
5056 fi
5057
5058 else
5059   ac_cv_path_GREP=$GREP
5060 fi
5061
5062
5063 fi
5064 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5065 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5066  GREP="$ac_cv_path_GREP"
5067
5068
5069 { echo "$as_me:$LINENO: checking for egrep" >&5
5070 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5071 if test "${ac_cv_path_EGREP+set}" = set; then
5072   echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5075    then ac_cv_path_EGREP="$GREP -E"
5076    else
5077      # Extract the first word of "egrep" to use in msg output
5078 if test -z "$EGREP"; then
5079 set dummy egrep; ac_prog_name=$2
5080 if test "${ac_cv_path_EGREP+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   ac_path_EGREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087 do
5088   IFS=$as_save_IFS
5089   test -z "$as_dir" && as_dir=.
5090   for ac_prog in egrep; do
5091   for ac_exec_ext in '' $ac_executable_extensions; do
5092     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5093     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5094     # Check for GNU ac_path_EGREP and select it if it is found.
5095   # Check for GNU $ac_path_EGREP
5096 case `"$ac_path_EGREP" --version 2>&1` in
5097 *GNU*)
5098   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5099 *)
5100   ac_count=0
5101   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5102   while :
5103   do
5104     cat "conftest.in" "conftest.in" >"conftest.tmp"
5105     mv "conftest.tmp" "conftest.in"
5106     cp "conftest.in" "conftest.nl"
5107     echo 'EGREP' >> "conftest.nl"
5108     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110     ac_count=`expr $ac_count + 1`
5111     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5112       # Best one so far, save it but keep looking for a better one
5113       ac_cv_path_EGREP="$ac_path_EGREP"
5114       ac_path_EGREP_max=$ac_count
5115     fi
5116     # 10*(2^10) chars as input seems more than enough
5117     test $ac_count -gt 10 && break
5118   done
5119   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120 esac
5121
5122
5123     $ac_path_EGREP_found && break 3
5124   done
5125 done
5126
5127 done
5128 IFS=$as_save_IFS
5129
5130
5131 fi
5132
5133 EGREP="$ac_cv_path_EGREP"
5134 if test -z "$EGREP"; then
5135   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5136 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5137    { (exit 1); exit 1; }; }
5138 fi
5139
5140 else
5141   ac_cv_path_EGREP=$EGREP
5142 fi
5143
5144
5145    fi
5146 fi
5147 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5148 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5149  EGREP="$ac_cv_path_EGREP"
5150
5151
5152 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5153 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5154 if test "${ac_cv_header_stdc+set}" = set; then
5155   echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157   cat >conftest.$ac_ext <<_ACEOF
5158 /* confdefs.h.  */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h.  */
5163 #include <stdlib.h>
5164 #include <stdarg.h>
5165 #include <string.h>
5166 #include <float.h>
5167
5168 int
5169 main ()
5170 {
5171
5172   ;
5173   return 0;
5174 }
5175 _ACEOF
5176 rm -f conftest.$ac_objext
5177 if { (ac_try="$ac_compile"
5178 case "(($ac_try" in
5179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180   *) ac_try_echo=$ac_try;;
5181 esac
5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183   (eval "$ac_compile") 2>conftest.er1
5184   ac_status=$?
5185   grep -v '^ *+' conftest.er1 >conftest.err
5186   rm -f conftest.er1
5187   cat conftest.err >&5
5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189   (exit $ac_status); } && {
5190          test -z "$ac_c_werror_flag" ||
5191          test ! -s conftest.err
5192        } && test -s conftest.$ac_objext; then
5193   ac_cv_header_stdc=yes
5194 else
5195   echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5197
5198         ac_cv_header_stdc=no
5199 fi
5200
5201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5202
5203 if test $ac_cv_header_stdc = yes; then
5204   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5205   cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h.  */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h.  */
5211 #include <string.h>
5212
5213 _ACEOF
5214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5215   $EGREP "memchr" >/dev/null 2>&1; then
5216   :
5217 else
5218   ac_cv_header_stdc=no
5219 fi
5220 rm -f conftest*
5221
5222 fi
5223
5224 if test $ac_cv_header_stdc = yes; then
5225   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5226   cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h.  */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h.  */
5232 #include <stdlib.h>
5233
5234 _ACEOF
5235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5236   $EGREP "free" >/dev/null 2>&1; then
5237   :
5238 else
5239   ac_cv_header_stdc=no
5240 fi
5241 rm -f conftest*
5242
5243 fi
5244
5245 if test $ac_cv_header_stdc = yes; then
5246   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5247   if test "$cross_compiling" = yes; then
5248   :
5249 else
5250   cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h.  */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h.  */
5256 #include <ctype.h>
5257 #include <stdlib.h>
5258 #if ((' ' & 0x0FF) == 0x020)
5259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5261 #else
5262 # define ISLOWER(c) \
5263                    (('a' <= (c) && (c) <= 'i') \
5264                      || ('j' <= (c) && (c) <= 'r') \
5265                      || ('s' <= (c) && (c) <= 'z'))
5266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5267 #endif
5268
5269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5270 int
5271 main ()
5272 {
5273   int i;
5274   for (i = 0; i < 256; i++)
5275     if (XOR (islower (i), ISLOWER (i))
5276         || toupper (i) != TOUPPER (i))
5277       return 2;
5278   return 0;
5279 }
5280 _ACEOF
5281 rm -f conftest$ac_exeext
5282 if { (ac_try="$ac_link"
5283 case "(($ac_try" in
5284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285   *) ac_try_echo=$ac_try;;
5286 esac
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288   (eval "$ac_link") 2>&5
5289   ac_status=$?
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5292   { (case "(($ac_try" in
5293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294   *) ac_try_echo=$ac_try;;
5295 esac
5296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297   (eval "$ac_try") 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }; }; then
5301   :
5302 else
5303   echo "$as_me: program exited with status $ac_status" >&5
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5306
5307 ( exit $ac_status )
5308 ac_cv_header_stdc=no
5309 fi
5310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5311 fi
5312
5313
5314 fi
5315 fi
5316 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5317 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5318 if test $ac_cv_header_stdc = yes; then
5319
5320 cat >>confdefs.h <<\_ACEOF
5321 #define STDC_HEADERS 1
5322 _ACEOF
5323
5324 fi
5325
5326
5327  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5338                   inttypes.h stdint.h unistd.h
5339 do
5340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h.  */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h.  */
5352 $ac_includes_default
5353
5354 #include <$ac_header>
5355 _ACEOF
5356 rm -f conftest.$ac_objext
5357 if { (ac_try="$ac_compile"
5358 case "(($ac_try" in
5359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360   *) ac_try_echo=$ac_try;;
5361 esac
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363   (eval "$ac_compile") 2>conftest.er1
5364   ac_status=$?
5365   grep -v '^ *+' conftest.er1 >conftest.err
5366   rm -f conftest.er1
5367   cat conftest.err >&5
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); } && {
5370          test -z "$ac_c_werror_flag" ||
5371          test ! -s conftest.err
5372        } && test -s conftest.$ac_objext; then
5373   eval "$as_ac_Header=yes"
5374 else
5375   echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378         eval "$as_ac_Header=no"
5379 fi
5380
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 fi
5383 ac_res=`eval echo '${'$as_ac_Header'}'`
5384                { echo "$as_me:$LINENO: result: $ac_res" >&5
5385 echo "${ECHO_T}$ac_res" >&6; }
5386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5387   cat >>confdefs.h <<_ACEOF
5388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5389 _ACEOF
5390
5391 fi
5392
5393 done
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 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/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h
5415 do
5416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5418   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 fi
5423 ac_res=`eval echo '${'$as_ac_Header'}'`
5424                { echo "$as_me:$LINENO: result: $ac_res" >&5
5425 echo "${ECHO_T}$ac_res" >&6; }
5426 else
5427   # Is the header compilable?
5428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5430 cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h.  */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h.  */
5436 $ac_includes_default
5437 #include <$ac_header>
5438 _ACEOF
5439 rm -f conftest.$ac_objext
5440 if { (ac_try="$ac_compile"
5441 case "(($ac_try" in
5442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443   *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446   (eval "$ac_compile") 2>conftest.er1
5447   ac_status=$?
5448   grep -v '^ *+' conftest.er1 >conftest.err
5449   rm -f conftest.er1
5450   cat conftest.err >&5
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); } && {
5453          test -z "$ac_c_werror_flag" ||
5454          test ! -s conftest.err
5455        } && test -s conftest.$ac_objext; then
5456   ac_header_compiler=yes
5457 else
5458   echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461         ac_header_compiler=no
5462 fi
5463
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5466 echo "${ECHO_T}$ac_header_compiler" >&6; }
5467
5468 # Is the header present?
5469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5471 cat >conftest.$ac_ext <<_ACEOF
5472 /* confdefs.h.  */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h.  */
5477 #include <$ac_header>
5478 _ACEOF
5479 if { (ac_try="$ac_cpp conftest.$ac_ext"
5480 case "(($ac_try" in
5481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482   *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5486   ac_status=$?
5487   grep -v '^ *+' conftest.er1 >conftest.err
5488   rm -f conftest.er1
5489   cat conftest.err >&5
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } >/dev/null && {
5492          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5493          test ! -s conftest.err
5494        }; then
5495   ac_header_preproc=yes
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500   ac_header_preproc=no
5501 fi
5502
5503 rm -f conftest.err conftest.$ac_ext
5504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5505 echo "${ECHO_T}$ac_header_preproc" >&6; }
5506
5507 # So?  What about this header?
5508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5509   yes:no: )
5510     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5514     ac_header_preproc=yes
5515     ;;
5516   no:yes:* )
5517     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5519     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5520 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5521     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5523     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5524 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5527     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5529
5530     ;;
5531 esac
5532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5535   echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537   eval "$as_ac_Header=\$ac_header_preproc"
5538 fi
5539 ac_res=`eval echo '${'$as_ac_Header'}'`
5540                { echo "$as_me:$LINENO: result: $ac_res" >&5
5541 echo "${ECHO_T}$ac_res" >&6; }
5542
5543 fi
5544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5545   cat >>confdefs.h <<_ACEOF
5546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5547 _ACEOF
5548
5549 fi
5550
5551 done
5552
5553
5554
5555 cat >>confdefs.h <<_ACEOF
5556 #define PACKAGE "$PACKAGE"
5557 _ACEOF
5558
5559
5560 cat >>confdefs.h <<_ACEOF
5561 #define VERSION "$VERSION"
5562 _ACEOF
5563
5564
5565
5566
5567
5568
5569
5570  { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5571 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5572 if test "${ac_cv_c_const+set}" = set; then
5573   echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575   cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h.  */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h.  */
5581
5582 int
5583 main ()
5584 {
5585 /* FIXME: Include the comments suggested by Paul. */
5586 #ifndef __cplusplus
5587   /* Ultrix mips cc rejects this.  */
5588   typedef int charset[2];
5589   const charset cs;
5590   /* SunOS 4.1.1 cc rejects this.  */
5591   char const *const *pcpcc;
5592   char **ppc;
5593   /* NEC SVR4.0.2 mips cc rejects this.  */
5594   struct point {int x, y;};
5595   static struct point const zero = {0,0};
5596   /* AIX XL C 1.02.0.0 rejects this.
5597      It does not let you subtract one const X* pointer from another in
5598      an arm of an if-expression whose if-part is not a constant
5599      expression */
5600   const char *g = "string";
5601   pcpcc = &g + (g ? g-g : 0);
5602   /* HPUX 7.0 cc rejects these. */
5603   ++pcpcc;
5604   ppc = (char**) pcpcc;
5605   pcpcc = (char const *const *) ppc;
5606   { /* SCO 3.2v4 cc rejects this.  */
5607     char *t;
5608     char const *s = 0 ? (char *) 0 : (char const *) 0;
5609
5610     *t++ = 0;
5611     if (s) return 0;
5612   }
5613   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5614     int x[] = {25, 17};
5615     const int *foo = &x[0];
5616     ++foo;
5617   }
5618   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5619     typedef const int *iptr;
5620     iptr p = 0;
5621     ++p;
5622   }
5623   { /* AIX XL C 1.02.0.0 rejects this saying
5624        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5625     struct s { int j; const int *ap[3]; };
5626     struct s *b; b->j = 5;
5627   }
5628   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5629     const int foo = 10;
5630     if (!foo) return 0;
5631   }
5632   return !cs[0] && !zero.x;
5633 #endif
5634
5635   ;
5636   return 0;
5637 }
5638 _ACEOF
5639 rm -f conftest.$ac_objext
5640 if { (ac_try="$ac_compile"
5641 case "(($ac_try" in
5642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643   *) ac_try_echo=$ac_try;;
5644 esac
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646   (eval "$ac_compile") 2>conftest.er1
5647   ac_status=$?
5648   grep -v '^ *+' conftest.er1 >conftest.err
5649   rm -f conftest.er1
5650   cat conftest.err >&5
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } && {
5653          test -z "$ac_c_werror_flag" ||
5654          test ! -s conftest.err
5655        } && test -s conftest.$ac_objext; then
5656   ac_cv_c_const=yes
5657 else
5658   echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5660
5661         ac_cv_c_const=no
5662 fi
5663
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 fi
5666 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5667 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5668 if test $ac_cv_c_const = no; then
5669
5670 cat >>confdefs.h <<\_ACEOF
5671 #define const
5672 _ACEOF
5673
5674 fi
5675
5676  { echo "$as_me:$LINENO: checking for inline" >&5
5677 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5678 if test "${ac_cv_c_inline+set}" = set; then
5679   echo $ECHO_N "(cached) $ECHO_C" >&6
5680 else
5681   ac_cv_c_inline=no
5682 for ac_kw in inline __inline__ __inline; do
5683   cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h.  */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h.  */
5689 #ifndef __cplusplus
5690 typedef int foo_t;
5691 static $ac_kw foo_t static_foo () {return 0; }
5692 $ac_kw foo_t foo () {return 0; }
5693 #endif
5694
5695 _ACEOF
5696 rm -f conftest.$ac_objext
5697 if { (ac_try="$ac_compile"
5698 case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703   (eval "$ac_compile") 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } && {
5710          test -z "$ac_c_werror_flag" ||
5711          test ! -s conftest.err
5712        } && test -s conftest.$ac_objext; then
5713   ac_cv_c_inline=$ac_kw
5714 else
5715   echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718
5719 fi
5720
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722   test "$ac_cv_c_inline" != no && break
5723 done
5724
5725 fi
5726 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5727 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5728
5729
5730 case $ac_cv_c_inline in
5731   inline | yes) ;;
5732   *)
5733     case $ac_cv_c_inline in
5734       no) ac_val=;;
5735       *) ac_val=$ac_cv_c_inline;;
5736     esac
5737     cat >>confdefs.h <<_ACEOF
5738 #ifndef __cplusplus
5739 #define inline $ac_val
5740 #endif
5741 _ACEOF
5742     ;;
5743 esac
5744
5745  { echo "$as_me:$LINENO: checking for off_t" >&5
5746 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5747 if test "${ac_cv_type_off_t+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756 $ac_includes_default
5757 typedef off_t ac__type_new_;
5758 int
5759 main ()
5760 {
5761 if ((ac__type_new_ *) 0)
5762   return 0;
5763 if (sizeof (ac__type_new_))
5764   return 0;
5765   ;
5766   return 0;
5767 }
5768 _ACEOF
5769 rm -f conftest.$ac_objext
5770 if { (ac_try="$ac_compile"
5771 case "(($ac_try" in
5772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773   *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776   (eval "$ac_compile") 2>conftest.er1
5777   ac_status=$?
5778   grep -v '^ *+' conftest.er1 >conftest.err
5779   rm -f conftest.er1
5780   cat conftest.err >&5
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); } && {
5783          test -z "$ac_c_werror_flag" ||
5784          test ! -s conftest.err
5785        } && test -s conftest.$ac_objext; then
5786   ac_cv_type_off_t=yes
5787 else
5788   echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791         ac_cv_type_off_t=no
5792 fi
5793
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 fi
5796 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5797 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5798 if test $ac_cv_type_off_t = yes; then
5799   :
5800 else
5801
5802 cat >>confdefs.h <<_ACEOF
5803 #define off_t long int
5804 _ACEOF
5805
5806 fi
5807
5808  { echo "$as_me:$LINENO: checking for size_t" >&5
5809 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5810 if test "${ac_cv_type_size_t+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h.  */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h.  */
5819 $ac_includes_default
5820 typedef size_t ac__type_new_;
5821 int
5822 main ()
5823 {
5824 if ((ac__type_new_ *) 0)
5825   return 0;
5826 if (sizeof (ac__type_new_))
5827   return 0;
5828   ;
5829   return 0;
5830 }
5831 _ACEOF
5832 rm -f conftest.$ac_objext
5833 if { (ac_try="$ac_compile"
5834 case "(($ac_try" in
5835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836   *) ac_try_echo=$ac_try;;
5837 esac
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839   (eval "$ac_compile") 2>conftest.er1
5840   ac_status=$?
5841   grep -v '^ *+' conftest.er1 >conftest.err
5842   rm -f conftest.er1
5843   cat conftest.err >&5
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); } && {
5846          test -z "$ac_c_werror_flag" ||
5847          test ! -s conftest.err
5848        } && test -s conftest.$ac_objext; then
5849   ac_cv_type_size_t=yes
5850 else
5851   echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854         ac_cv_type_size_t=no
5855 fi
5856
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858 fi
5859 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5860 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5861 if test $ac_cv_type_size_t = yes; then
5862   :
5863 else
5864
5865 cat >>confdefs.h <<_ACEOF
5866 #define size_t unsigned int
5867 _ACEOF
5868
5869 fi
5870
5871  { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5872 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5873 if test "${ac_cv_struct_tm+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   cat >conftest.$ac_ext <<_ACEOF
5877 /* confdefs.h.  */
5878 _ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h.  */
5882 #include <sys/types.h>
5883 #include <time.h>
5884
5885 int
5886 main ()
5887 {
5888 struct tm tm;
5889                                      int *p = &tm.tm_sec;
5890                                      return !p;
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_objext
5896 if { (ac_try="$ac_compile"
5897 case "(($ac_try" in
5898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899   *) ac_try_echo=$ac_try;;
5900 esac
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902   (eval "$ac_compile") 2>conftest.er1
5903   ac_status=$?
5904   grep -v '^ *+' conftest.er1 >conftest.err
5905   rm -f conftest.er1
5906   cat conftest.err >&5
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } && {
5909          test -z "$ac_c_werror_flag" ||
5910          test ! -s conftest.err
5911        } && test -s conftest.$ac_objext; then
5912   ac_cv_struct_tm=time.h
5913 else
5914   echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5916
5917         ac_cv_struct_tm=sys/time.h
5918 fi
5919
5920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921 fi
5922 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5923 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5924 if test $ac_cv_struct_tm = sys/time.h; then
5925
5926 cat >>confdefs.h <<\_ACEOF
5927 #define TM_IN_SYS_TIME 1
5928 _ACEOF
5929
5930 fi
5931
5932  { echo "$as_me:$LINENO: checking for boolean" >&5
5933 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5934 if test "${ac_cv_type_boolean+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h.  */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h.  */
5943 $ac_includes_default
5944 typedef boolean ac__type_new_;
5945 int
5946 main ()
5947 {
5948 if ((ac__type_new_ *) 0)
5949   return 0;
5950 if (sizeof (ac__type_new_))
5951   return 0;
5952   ;
5953   return 0;
5954 }
5955 _ACEOF
5956 rm -f conftest.$ac_objext
5957 if { (ac_try="$ac_compile"
5958 case "(($ac_try" in
5959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960   *) ac_try_echo=$ac_try;;
5961 esac
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963   (eval "$ac_compile") 2>conftest.er1
5964   ac_status=$?
5965   grep -v '^ *+' conftest.er1 >conftest.err
5966   rm -f conftest.er1
5967   cat conftest.err >&5
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); } && {
5970          test -z "$ac_c_werror_flag" ||
5971          test ! -s conftest.err
5972        } && test -s conftest.$ac_objext; then
5973   ac_cv_type_boolean=yes
5974 else
5975   echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5977
5978         ac_cv_type_boolean=no
5979 fi
5980
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 fi
5983 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5984 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5985 if test $ac_cv_type_boolean = yes; then
5986   :
5987 else
5988
5989 cat >>confdefs.h <<_ACEOF
5990 #define boolean int
5991 _ACEOF
5992
5993 fi
5994  #needed for jpeglib
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009 for ac_func in popen wcschr wcsdup mkstemp stat lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6010 do
6011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h.  */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h.  */
6023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6025 #define $ac_func innocuous_$ac_func
6026
6027 /* System header to define __stub macros and hopefully few prototypes,
6028     which can conflict with char $ac_func (); below.
6029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6030     <limits.h> exists even on freestanding compilers.  */
6031
6032 #ifdef __STDC__
6033 # include <limits.h>
6034 #else
6035 # include <assert.h>
6036 #endif
6037
6038 #undef $ac_func
6039
6040 /* Override any GCC internal prototype to avoid an error.
6041    Use char because int might match the return type of a GCC
6042    builtin and then its argument prototype would still apply.  */
6043 #ifdef __cplusplus
6044 extern "C"
6045 #endif
6046 char $ac_func ();
6047 /* The GNU C library defines this for functions which it implements
6048     to always fail with ENOSYS.  Some functions are actually named
6049     something starting with __ and the normal name is an alias.  */
6050 #if defined __stub_$ac_func || defined __stub___$ac_func
6051 choke me
6052 #endif
6053
6054 int
6055 main ()
6056 {
6057 return $ac_func ();
6058   ;
6059   return 0;
6060 }
6061 _ACEOF
6062 rm -f conftest.$ac_objext conftest$ac_exeext
6063 if { (ac_try="$ac_link"
6064 case "(($ac_try" in
6065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066   *) ac_try_echo=$ac_try;;
6067 esac
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069   (eval "$ac_link") 2>conftest.er1
6070   ac_status=$?
6071   grep -v '^ *+' conftest.er1 >conftest.err
6072   rm -f conftest.er1
6073   cat conftest.err >&5
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); } && {
6076          test -z "$ac_c_werror_flag" ||
6077          test ! -s conftest.err
6078        } && test -s conftest$ac_exeext &&
6079        $as_test_x conftest$ac_exeext; then
6080   eval "$as_ac_var=yes"
6081 else
6082   echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6084
6085         eval "$as_ac_var=no"
6086 fi
6087
6088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6089       conftest$ac_exeext conftest.$ac_ext
6090 fi
6091 ac_res=`eval echo '${'$as_ac_var'}'`
6092                { echo "$as_me:$LINENO: result: $ac_res" >&5
6093 echo "${ECHO_T}$ac_res" >&6; }
6094 if test `eval echo '${'$as_ac_var'}'` = yes; then
6095   cat >>confdefs.h <<_ACEOF
6096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6097 _ACEOF
6098
6099 fi
6100 done
6101
6102
6103 { echo "$as_me:$LINENO: checking for signed char" >&5
6104 echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
6105 if test "${ac_cv_type_signed_char+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h.  */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h.  */
6114 $ac_includes_default
6115 typedef signed char ac__type_new_;
6116 int
6117 main ()
6118 {
6119 if ((ac__type_new_ *) 0)
6120   return 0;
6121 if (sizeof (ac__type_new_))
6122   return 0;
6123   ;
6124   return 0;
6125 }
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (ac_try="$ac_compile"
6129 case "(($ac_try" in
6130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131   *) ac_try_echo=$ac_try;;
6132 esac
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134   (eval "$ac_compile") 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } && {
6141          test -z "$ac_c_werror_flag" ||
6142          test ! -s conftest.err
6143        } && test -s conftest.$ac_objext; then
6144   ac_cv_type_signed_char=yes
6145 else
6146   echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149         ac_cv_type_signed_char=no
6150 fi
6151
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 fi
6154 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
6155 echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
6156
6157 # The cast to long int works around a bug in the HP C Compiler
6158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6160 # This bug is HP SR number 8606223364.
6161 { echo "$as_me:$LINENO: checking size of signed char" >&5
6162 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6; }
6163 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6164   echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166   if test "$cross_compiling" = yes; then
6167   # Depending upon the size, compute the lo and hi bounds.
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174 $ac_includes_default
6175    typedef signed char ac__type_sizeof_;
6176 int
6177 main ()
6178 {
6179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6180 test_array [0] = 0
6181
6182   ;
6183   return 0;
6184 }
6185 _ACEOF
6186 rm -f conftest.$ac_objext
6187 if { (ac_try="$ac_compile"
6188 case "(($ac_try" in
6189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190   *) ac_try_echo=$ac_try;;
6191 esac
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193   (eval "$ac_compile") 2>conftest.er1
6194   ac_status=$?
6195   grep -v '^ *+' conftest.er1 >conftest.err
6196   rm -f conftest.er1
6197   cat conftest.err >&5
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } && {
6200          test -z "$ac_c_werror_flag" ||
6201          test ! -s conftest.err
6202        } && test -s conftest.$ac_objext; then
6203   ac_lo=0 ac_mid=0
6204   while :; do
6205     cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h.  */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h.  */
6211 $ac_includes_default
6212    typedef signed char ac__type_sizeof_;
6213 int
6214 main ()
6215 {
6216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6217 test_array [0] = 0
6218
6219   ;
6220   return 0;
6221 }
6222 _ACEOF
6223 rm -f conftest.$ac_objext
6224 if { (ac_try="$ac_compile"
6225 case "(($ac_try" in
6226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227   *) ac_try_echo=$ac_try;;
6228 esac
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230   (eval "$ac_compile") 2>conftest.er1
6231   ac_status=$?
6232   grep -v '^ *+' conftest.er1 >conftest.err
6233   rm -f conftest.er1
6234   cat conftest.err >&5
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); } && {
6237          test -z "$ac_c_werror_flag" ||
6238          test ! -s conftest.err
6239        } && test -s conftest.$ac_objext; then
6240   ac_hi=$ac_mid; break
6241 else
6242   echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6244
6245         ac_lo=`expr $ac_mid + 1`
6246                         if test $ac_lo -le $ac_mid; then
6247                           ac_lo= ac_hi=
6248                           break
6249                         fi
6250                         ac_mid=`expr 2 '*' $ac_mid + 1`
6251 fi
6252
6253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254   done
6255 else
6256   echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259         cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265 $ac_includes_default
6266    typedef signed char ac__type_sizeof_;
6267 int
6268 main ()
6269 {
6270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6271 test_array [0] = 0
6272
6273   ;
6274   return 0;
6275 }
6276 _ACEOF
6277 rm -f conftest.$ac_objext
6278 if { (ac_try="$ac_compile"
6279 case "(($ac_try" in
6280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281   *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284   (eval "$ac_compile") 2>conftest.er1
6285   ac_status=$?
6286   grep -v '^ *+' conftest.er1 >conftest.err
6287   rm -f conftest.er1
6288   cat conftest.err >&5
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } && {
6291          test -z "$ac_c_werror_flag" ||
6292          test ! -s conftest.err
6293        } && test -s conftest.$ac_objext; then
6294   ac_hi=-1 ac_mid=-1
6295   while :; do
6296     cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h.  */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h.  */
6302 $ac_includes_default
6303    typedef signed char ac__type_sizeof_;
6304 int
6305 main ()
6306 {
6307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6308 test_array [0] = 0
6309
6310   ;
6311   return 0;
6312 }
6313 _ACEOF
6314 rm -f conftest.$ac_objext
6315 if { (ac_try="$ac_compile"
6316 case "(($ac_try" in
6317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318   *) ac_try_echo=$ac_try;;
6319 esac
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321   (eval "$ac_compile") 2>conftest.er1
6322   ac_status=$?
6323   grep -v '^ *+' conftest.er1 >conftest.err
6324   rm -f conftest.er1
6325   cat conftest.err >&5
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); } && {
6328          test -z "$ac_c_werror_flag" ||
6329          test ! -s conftest.err
6330        } && test -s conftest.$ac_objext; then
6331   ac_lo=$ac_mid; break
6332 else
6333   echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6335
6336         ac_hi=`expr '(' $ac_mid ')' - 1`
6337                         if test $ac_mid -le $ac_hi; then
6338                           ac_lo= ac_hi=
6339                           break
6340                         fi
6341                         ac_mid=`expr 2 '*' $ac_mid`
6342 fi
6343
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345   done
6346 else
6347   echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350         ac_lo= ac_hi=
6351 fi
6352
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 fi
6355
6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 # Binary search between lo and hi bounds.
6358 while test "x$ac_lo" != "x$ac_hi"; do
6359   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6360   cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366 $ac_includes_default
6367    typedef signed char ac__type_sizeof_;
6368 int
6369 main ()
6370 {
6371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6372 test_array [0] = 0
6373
6374   ;
6375   return 0;
6376 }
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6380 case "(($ac_try" in
6381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382   *) ac_try_echo=$ac_try;;
6383 esac
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385   (eval "$ac_compile") 2>conftest.er1
6386   ac_status=$?
6387   grep -v '^ *+' conftest.er1 >conftest.err
6388   rm -f conftest.er1
6389   cat conftest.err >&5
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); } && {
6392          test -z "$ac_c_werror_flag" ||
6393          test ! -s conftest.err
6394        } && test -s conftest.$ac_objext; then
6395   ac_hi=$ac_mid
6396 else
6397   echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400         ac_lo=`expr '(' $ac_mid ')' + 1`
6401 fi
6402
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 done
6405 case $ac_lo in
6406 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6407 '') if test "$ac_cv_type_signed_char" = yes; then
6408      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6409 See \`config.log' for more details." >&5
6410 echo "$as_me: error: cannot compute sizeof (signed char)
6411 See \`config.log' for more details." >&2;}
6412    { (exit 77); exit 77; }; }
6413    else
6414      ac_cv_sizeof_signed_char=0
6415    fi ;;
6416 esac
6417 else
6418   cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h.  */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h.  */
6424 $ac_includes_default
6425    typedef signed char ac__type_sizeof_;
6426 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6427 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6428 #include <stdio.h>
6429 #include <stdlib.h>
6430 int
6431 main ()
6432 {
6433
6434   FILE *f = fopen ("conftest.val", "w");
6435   if (! f)
6436     return 1;
6437   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6438     {
6439       long int i = longval ();
6440       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6441         return 1;
6442       fprintf (f, "%ld\n", i);
6443     }
6444   else
6445     {
6446       unsigned long int i = ulongval ();
6447       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6448         return 1;
6449       fprintf (f, "%lu\n", i);
6450     }
6451   return ferror (f) || fclose (f) != 0;
6452
6453   ;
6454   return 0;
6455 }
6456 _ACEOF
6457 rm -f conftest$ac_exeext
6458 if { (ac_try="$ac_link"
6459 case "(($ac_try" in
6460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461   *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464   (eval "$ac_link") 2>&5
6465   ac_status=$?
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6468   { (case "(($ac_try" in
6469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470   *) ac_try_echo=$ac_try;;
6471 esac
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473   (eval "$ac_try") 2>&5
6474   ac_status=$?
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); }; }; then
6477   ac_cv_sizeof_signed_char=`cat conftest.val`
6478 else
6479   echo "$as_me: program exited with status $ac_status" >&5
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483 ( exit $ac_status )
6484 if test "$ac_cv_type_signed_char" = yes; then
6485      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6486 See \`config.log' for more details." >&5
6487 echo "$as_me: error: cannot compute sizeof (signed char)
6488 See \`config.log' for more details." >&2;}
6489    { (exit 77); exit 77; }; }
6490    else
6491      ac_cv_sizeof_signed_char=0
6492    fi
6493 fi
6494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6495 fi
6496 rm -f conftest.val
6497 fi
6498 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6499 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6; }
6500
6501
6502
6503 cat >>confdefs.h <<_ACEOF
6504 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6505 _ACEOF
6506
6507
6508 { echo "$as_me:$LINENO: checking for signed short" >&5
6509 echo $ECHO_N "checking for signed short... $ECHO_C" >&6; }
6510 if test "${ac_cv_type_signed_short+set}" = set; then
6511   echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513   cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h.  */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h.  */
6519 $ac_includes_default
6520 typedef signed short ac__type_new_;
6521 int
6522 main ()
6523 {
6524 if ((ac__type_new_ *) 0)
6525   return 0;
6526 if (sizeof (ac__type_new_))
6527   return 0;
6528   ;
6529   return 0;
6530 }
6531 _ACEOF
6532 rm -f conftest.$ac_objext
6533 if { (ac_try="$ac_compile"
6534 case "(($ac_try" in
6535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536   *) ac_try_echo=$ac_try;;
6537 esac
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539   (eval "$ac_compile") 2>conftest.er1
6540   ac_status=$?
6541   grep -v '^ *+' conftest.er1 >conftest.err
6542   rm -f conftest.er1
6543   cat conftest.err >&5
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); } && {
6546          test -z "$ac_c_werror_flag" ||
6547          test ! -s conftest.err
6548        } && test -s conftest.$ac_objext; then
6549   ac_cv_type_signed_short=yes
6550 else
6551   echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6553
6554         ac_cv_type_signed_short=no
6555 fi
6556
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 fi
6559 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_short" >&5
6560 echo "${ECHO_T}$ac_cv_type_signed_short" >&6; }
6561
6562 # The cast to long int works around a bug in the HP C Compiler
6563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6565 # This bug is HP SR number 8606223364.
6566 { echo "$as_me:$LINENO: checking size of signed short" >&5
6567 echo $ECHO_N "checking size of signed short... $ECHO_C" >&6; }
6568 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   if test "$cross_compiling" = yes; then
6572   # Depending upon the size, compute the lo and hi bounds.
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h.  */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h.  */
6579 $ac_includes_default
6580    typedef signed short ac__type_sizeof_;
6581 int
6582 main ()
6583 {
6584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6585 test_array [0] = 0
6586
6587   ;
6588   return 0;
6589 }
6590 _ACEOF
6591 rm -f conftest.$ac_objext
6592 if { (ac_try="$ac_compile"
6593 case "(($ac_try" in
6594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595   *) ac_try_echo=$ac_try;;
6596 esac
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598   (eval "$ac_compile") 2>conftest.er1
6599   ac_status=$?
6600   grep -v '^ *+' conftest.er1 >conftest.err
6601   rm -f conftest.er1
6602   cat conftest.err >&5
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); } && {
6605          test -z "$ac_c_werror_flag" ||
6606          test ! -s conftest.err
6607        } && test -s conftest.$ac_objext; then
6608   ac_lo=0 ac_mid=0
6609   while :; do
6610     cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h.  */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h.  */
6616 $ac_includes_default
6617    typedef signed short ac__type_sizeof_;
6618 int
6619 main ()
6620 {
6621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6622 test_array [0] = 0
6623
6624   ;
6625   return 0;
6626 }
6627 _ACEOF
6628 rm -f conftest.$ac_objext
6629 if { (ac_try="$ac_compile"
6630 case "(($ac_try" in
6631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632   *) ac_try_echo=$ac_try;;
6633 esac
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635   (eval "$ac_compile") 2>conftest.er1
6636   ac_status=$?
6637   grep -v '^ *+' conftest.er1 >conftest.err
6638   rm -f conftest.er1
6639   cat conftest.err >&5
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); } && {
6642          test -z "$ac_c_werror_flag" ||
6643          test ! -s conftest.err
6644        } && test -s conftest.$ac_objext; then
6645   ac_hi=$ac_mid; break
6646 else
6647   echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6649
6650         ac_lo=`expr $ac_mid + 1`
6651                         if test $ac_lo -le $ac_mid; then
6652                           ac_lo= ac_hi=
6653                           break
6654                         fi
6655                         ac_mid=`expr 2 '*' $ac_mid + 1`
6656 fi
6657
6658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659   done
6660 else
6661   echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6663
6664         cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h.  */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h.  */
6670 $ac_includes_default
6671    typedef signed short ac__type_sizeof_;
6672 int
6673 main ()
6674 {
6675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6676 test_array [0] = 0
6677
6678   ;
6679   return 0;
6680 }
6681 _ACEOF
6682 rm -f conftest.$ac_objext
6683 if { (ac_try="$ac_compile"
6684 case "(($ac_try" in
6685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686   *) ac_try_echo=$ac_try;;
6687 esac
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689   (eval "$ac_compile") 2>conftest.er1
6690   ac_status=$?
6691   grep -v '^ *+' conftest.er1 >conftest.err
6692   rm -f conftest.er1
6693   cat conftest.err >&5
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); } && {
6696          test -z "$ac_c_werror_flag" ||
6697          test ! -s conftest.err
6698        } && test -s conftest.$ac_objext; then
6699   ac_hi=-1 ac_mid=-1
6700   while :; do
6701     cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h.  */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h.  */
6707 $ac_includes_default
6708    typedef signed short ac__type_sizeof_;
6709 int
6710 main ()
6711 {
6712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6713 test_array [0] = 0
6714
6715   ;
6716   return 0;
6717 }
6718 _ACEOF
6719 rm -f conftest.$ac_objext
6720 if { (ac_try="$ac_compile"
6721 case "(($ac_try" in
6722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723   *) ac_try_echo=$ac_try;;
6724 esac
6725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6726   (eval "$ac_compile") 2>conftest.er1
6727   ac_status=$?
6728   grep -v '^ *+' conftest.er1 >conftest.err
6729   rm -f conftest.er1
6730   cat conftest.err >&5
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } && {
6733          test -z "$ac_c_werror_flag" ||
6734          test ! -s conftest.err
6735        } && test -s conftest.$ac_objext; then
6736   ac_lo=$ac_mid; break
6737 else
6738   echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6740
6741         ac_hi=`expr '(' $ac_mid ')' - 1`
6742                         if test $ac_mid -le $ac_hi; then
6743                           ac_lo= ac_hi=
6744                           break
6745                         fi
6746                         ac_mid=`expr 2 '*' $ac_mid`
6747 fi
6748
6749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750   done
6751 else
6752   echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6754
6755         ac_lo= ac_hi=
6756 fi
6757
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 fi
6760
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 # Binary search between lo and hi bounds.
6763 while test "x$ac_lo" != "x$ac_hi"; do
6764   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6765   cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h.  */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h.  */
6771 $ac_includes_default
6772    typedef signed short ac__type_sizeof_;
6773 int
6774 main ()
6775 {
6776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6777 test_array [0] = 0
6778
6779   ;
6780   return 0;
6781 }
6782 _ACEOF
6783 rm -f conftest.$ac_objext
6784 if { (ac_try="$ac_compile"
6785 case "(($ac_try" in
6786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787   *) ac_try_echo=$ac_try;;
6788 esac
6789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6790   (eval "$ac_compile") 2>conftest.er1
6791   ac_status=$?
6792   grep -v '^ *+' conftest.er1 >conftest.err
6793   rm -f conftest.er1
6794   cat conftest.err >&5
6795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796   (exit $ac_status); } && {
6797          test -z "$ac_c_werror_flag" ||
6798          test ! -s conftest.err
6799        } && test -s conftest.$ac_objext; then
6800   ac_hi=$ac_mid
6801 else
6802   echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6804
6805         ac_lo=`expr '(' $ac_mid ')' + 1`
6806 fi
6807
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 done
6810 case $ac_lo in
6811 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
6812 '') if test "$ac_cv_type_signed_short" = yes; then
6813      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6814 See \`config.log' for more details." >&5
6815 echo "$as_me: error: cannot compute sizeof (signed short)
6816 See \`config.log' for more details." >&2;}
6817    { (exit 77); exit 77; }; }
6818    else
6819      ac_cv_sizeof_signed_short=0
6820    fi ;;
6821 esac
6822 else
6823   cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h.  */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h.  */
6829 $ac_includes_default
6830    typedef signed short ac__type_sizeof_;
6831 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6832 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6833 #include <stdio.h>
6834 #include <stdlib.h>
6835 int
6836 main ()
6837 {
6838
6839   FILE *f = fopen ("conftest.val", "w");
6840   if (! f)
6841     return 1;
6842   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6843     {
6844       long int i = longval ();
6845       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6846         return 1;
6847       fprintf (f, "%ld\n", i);
6848     }
6849   else
6850     {
6851       unsigned long int i = ulongval ();
6852       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6853         return 1;
6854       fprintf (f, "%lu\n", i);
6855     }
6856   return ferror (f) || fclose (f) != 0;
6857
6858   ;
6859   return 0;
6860 }
6861 _ACEOF
6862 rm -f conftest$ac_exeext
6863 if { (ac_try="$ac_link"
6864 case "(($ac_try" in
6865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6866   *) ac_try_echo=$ac_try;;
6867 esac
6868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6869   (eval "$ac_link") 2>&5
6870   ac_status=$?
6871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6873   { (case "(($ac_try" in
6874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875   *) ac_try_echo=$ac_try;;
6876 esac
6877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878   (eval "$ac_try") 2>&5
6879   ac_status=$?
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); }; }; then
6882   ac_cv_sizeof_signed_short=`cat conftest.val`
6883 else
6884   echo "$as_me: program exited with status $ac_status" >&5
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6887
6888 ( exit $ac_status )
6889 if test "$ac_cv_type_signed_short" = yes; then
6890      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6891 See \`config.log' for more details." >&5
6892 echo "$as_me: error: cannot compute sizeof (signed short)
6893 See \`config.log' for more details." >&2;}
6894    { (exit 77); exit 77; }; }
6895    else
6896      ac_cv_sizeof_signed_short=0
6897    fi
6898 fi
6899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6900 fi
6901 rm -f conftest.val
6902 fi
6903 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
6904 echo "${ECHO_T}$ac_cv_sizeof_signed_short" >&6; }
6905
6906
6907
6908 cat >>confdefs.h <<_ACEOF
6909 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
6910 _ACEOF
6911
6912
6913 { echo "$as_me:$LINENO: checking for signed" >&5
6914 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
6915 if test "${ac_cv_type_signed+set}" = set; then
6916   echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918   cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h.  */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h.  */
6924 $ac_includes_default
6925 typedef signed ac__type_new_;
6926 int
6927 main ()
6928 {
6929 if ((ac__type_new_ *) 0)
6930   return 0;
6931 if (sizeof (ac__type_new_))
6932   return 0;
6933   ;
6934   return 0;
6935 }
6936 _ACEOF
6937 rm -f conftest.$ac_objext
6938 if { (ac_try="$ac_compile"
6939 case "(($ac_try" in
6940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941   *) ac_try_echo=$ac_try;;
6942 esac
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944   (eval "$ac_compile") 2>conftest.er1
6945   ac_status=$?
6946   grep -v '^ *+' conftest.er1 >conftest.err
6947   rm -f conftest.er1
6948   cat conftest.err >&5
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); } && {
6951          test -z "$ac_c_werror_flag" ||
6952          test ! -s conftest.err
6953        } && test -s conftest.$ac_objext; then
6954   ac_cv_type_signed=yes
6955 else
6956   echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6958
6959         ac_cv_type_signed=no
6960 fi
6961
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963 fi
6964 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
6965 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
6966
6967 # The cast to long int works around a bug in the HP C Compiler
6968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6970 # This bug is HP SR number 8606223364.
6971 { echo "$as_me:$LINENO: checking size of signed" >&5
6972 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
6973 if test "${ac_cv_sizeof_signed+set}" = set; then
6974   echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976   if test "$cross_compiling" = yes; then
6977   # Depending upon the size, compute the lo and hi bounds.
6978 cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h.  */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h.  */
6984 $ac_includes_default
6985    typedef signed ac__type_sizeof_;
6986 int
6987 main ()
6988 {
6989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6990 test_array [0] = 0
6991
6992   ;
6993   return 0;
6994 }
6995 _ACEOF
6996 rm -f conftest.$ac_objext
6997 if { (ac_try="$ac_compile"
6998 case "(($ac_try" in
6999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000   *) ac_try_echo=$ac_try;;
7001 esac
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003   (eval "$ac_compile") 2>conftest.er1
7004   ac_status=$?
7005   grep -v '^ *+' conftest.er1 >conftest.err
7006   rm -f conftest.er1
7007   cat conftest.err >&5
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } && {
7010          test -z "$ac_c_werror_flag" ||
7011          test ! -s conftest.err
7012        } && test -s conftest.$ac_objext; then
7013   ac_lo=0 ac_mid=0
7014   while :; do
7015     cat >conftest.$ac_ext <<_ACEOF
7016 /* confdefs.h.  */
7017 _ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h.  */
7021 $ac_includes_default
7022    typedef signed ac__type_sizeof_;
7023 int
7024 main ()
7025 {
7026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7027 test_array [0] = 0
7028
7029   ;
7030   return 0;
7031 }
7032 _ACEOF
7033 rm -f conftest.$ac_objext
7034 if { (ac_try="$ac_compile"
7035 case "(($ac_try" in
7036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037   *) ac_try_echo=$ac_try;;
7038 esac
7039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040   (eval "$ac_compile") 2>conftest.er1
7041   ac_status=$?
7042   grep -v '^ *+' conftest.er1 >conftest.err
7043   rm -f conftest.er1
7044   cat conftest.err >&5
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); } && {
7047          test -z "$ac_c_werror_flag" ||
7048          test ! -s conftest.err
7049        } && test -s conftest.$ac_objext; then
7050   ac_hi=$ac_mid; break
7051 else
7052   echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7054
7055         ac_lo=`expr $ac_mid + 1`
7056                         if test $ac_lo -le $ac_mid; then
7057                           ac_lo= ac_hi=
7058                           break
7059                         fi
7060                         ac_mid=`expr 2 '*' $ac_mid + 1`
7061 fi
7062
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064   done
7065 else
7066   echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7068
7069         cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h.  */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h.  */
7075 $ac_includes_default
7076    typedef signed ac__type_sizeof_;
7077 int
7078 main ()
7079 {
7080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7081 test_array [0] = 0
7082
7083   ;
7084   return 0;
7085 }
7086 _ACEOF
7087 rm -f conftest.$ac_objext
7088 if { (ac_try="$ac_compile"
7089 case "(($ac_try" in
7090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091   *) ac_try_echo=$ac_try;;
7092 esac
7093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094   (eval "$ac_compile") 2>conftest.er1
7095   ac_status=$?
7096   grep -v '^ *+' conftest.er1 >conftest.err
7097   rm -f conftest.er1
7098   cat conftest.err >&5
7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100   (exit $ac_status); } && {
7101          test -z "$ac_c_werror_flag" ||
7102          test ! -s conftest.err
7103        } && test -s conftest.$ac_objext; then
7104   ac_hi=-1 ac_mid=-1
7105   while :; do
7106     cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h.  */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h.  */
7112 $ac_includes_default
7113    typedef signed ac__type_sizeof_;
7114 int
7115 main ()
7116 {
7117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7118 test_array [0] = 0
7119
7120   ;
7121   return 0;
7122 }
7123 _ACEOF
7124 rm -f conftest.$ac_objext
7125 if { (ac_try="$ac_compile"
7126 case "(($ac_try" in
7127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128   *) ac_try_echo=$ac_try;;
7129 esac
7130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131   (eval "$ac_compile") 2>conftest.er1
7132   ac_status=$?
7133   grep -v '^ *+' conftest.er1 >conftest.err
7134   rm -f conftest.er1
7135   cat conftest.err >&5
7136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); } && {
7138          test -z "$ac_c_werror_flag" ||
7139          test ! -s conftest.err
7140        } && test -s conftest.$ac_objext; then
7141   ac_lo=$ac_mid; break
7142 else
7143   echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7145
7146         ac_hi=`expr '(' $ac_mid ')' - 1`
7147                         if test $ac_mid -le $ac_hi; then
7148                           ac_lo= ac_hi=
7149                           break
7150                         fi
7151                         ac_mid=`expr 2 '*' $ac_mid`
7152 fi
7153
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155   done
7156 else
7157   echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7159
7160         ac_lo= ac_hi=
7161 fi
7162
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 fi
7165
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 # Binary search between lo and hi bounds.
7168 while test "x$ac_lo" != "x$ac_hi"; do
7169   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7170   cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h.  */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h.  */
7176 $ac_includes_default
7177    typedef signed ac__type_sizeof_;
7178 int
7179 main ()
7180 {
7181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7182 test_array [0] = 0
7183
7184   ;
7185   return 0;
7186 }
7187 _ACEOF
7188 rm -f conftest.$ac_objext
7189 if { (ac_try="$ac_compile"
7190 case "(($ac_try" in
7191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192   *) ac_try_echo=$ac_try;;
7193 esac
7194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195   (eval "$ac_compile") 2>conftest.er1
7196   ac_status=$?
7197   grep -v '^ *+' conftest.er1 >conftest.err
7198   rm -f conftest.er1
7199   cat conftest.err >&5
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); } && {
7202          test -z "$ac_c_werror_flag" ||
7203          test ! -s conftest.err
7204        } && test -s conftest.$ac_objext; then
7205   ac_hi=$ac_mid
7206 else
7207   echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7209
7210         ac_lo=`expr '(' $ac_mid ')' + 1`
7211 fi
7212
7213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7214 done
7215 case $ac_lo in
7216 ?*) ac_cv_sizeof_signed=$ac_lo;;
7217 '') if test "$ac_cv_type_signed" = yes; then
7218      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7219 See \`config.log' for more details." >&5
7220 echo "$as_me: error: cannot compute sizeof (signed)
7221 See \`config.log' for more details." >&2;}
7222    { (exit 77); exit 77; }; }
7223    else
7224      ac_cv_sizeof_signed=0
7225    fi ;;
7226 esac
7227 else
7228   cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h.  */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h.  */
7234 $ac_includes_default
7235    typedef signed ac__type_sizeof_;
7236 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7237 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7238 #include <stdio.h>
7239 #include <stdlib.h>
7240 int
7241 main ()
7242 {
7243
7244   FILE *f = fopen ("conftest.val", "w");
7245   if (! f)
7246     return 1;
7247   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7248     {
7249       long int i = longval ();
7250       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7251         return 1;
7252       fprintf (f, "%ld\n", i);
7253     }
7254   else
7255     {
7256       unsigned long int i = ulongval ();
7257       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7258         return 1;
7259       fprintf (f, "%lu\n", i);
7260     }
7261   return ferror (f) || fclose (f) != 0;
7262
7263   ;
7264   return 0;
7265 }
7266 _ACEOF
7267 rm -f conftest$ac_exeext
7268 if { (ac_try="$ac_link"
7269 case "(($ac_try" in
7270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271   *) ac_try_echo=$ac_try;;
7272 esac
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274   (eval "$ac_link") 2>&5
7275   ac_status=$?
7276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7278   { (case "(($ac_try" in
7279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280   *) ac_try_echo=$ac_try;;
7281 esac
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283   (eval "$ac_try") 2>&5
7284   ac_status=$?
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); }; }; then
7287   ac_cv_sizeof_signed=`cat conftest.val`
7288 else
7289   echo "$as_me: program exited with status $ac_status" >&5
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7292
7293 ( exit $ac_status )
7294 if test "$ac_cv_type_signed" = yes; then
7295      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7296 See \`config.log' for more details." >&5
7297 echo "$as_me: error: cannot compute sizeof (signed)
7298 See \`config.log' for more details." >&2;}
7299    { (exit 77); exit 77; }; }
7300    else
7301      ac_cv_sizeof_signed=0
7302    fi
7303 fi
7304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7305 fi
7306 rm -f conftest.val
7307 fi
7308 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7309 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
7310
7311
7312
7313 cat >>confdefs.h <<_ACEOF
7314 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7315 _ACEOF
7316
7317
7318 { echo "$as_me:$LINENO: checking for signed long long" >&5
7319 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7320 if test "${ac_cv_type_signed_long_long+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323   cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h.  */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h.  */
7329 $ac_includes_default
7330 typedef signed long long ac__type_new_;
7331 int
7332 main ()
7333 {
7334 if ((ac__type_new_ *) 0)
7335   return 0;
7336 if (sizeof (ac__type_new_))
7337   return 0;
7338   ;
7339   return 0;
7340 }
7341 _ACEOF
7342 rm -f conftest.$ac_objext
7343 if { (ac_try="$ac_compile"
7344 case "(($ac_try" in
7345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346   *) ac_try_echo=$ac_try;;
7347 esac
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349   (eval "$ac_compile") 2>conftest.er1
7350   ac_status=$?
7351   grep -v '^ *+' conftest.er1 >conftest.err
7352   rm -f conftest.er1
7353   cat conftest.err >&5
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); } && {
7356          test -z "$ac_c_werror_flag" ||
7357          test ! -s conftest.err
7358        } && test -s conftest.$ac_objext; then
7359   ac_cv_type_signed_long_long=yes
7360 else
7361   echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7363
7364         ac_cv_type_signed_long_long=no
7365 fi
7366
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368 fi
7369 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7370 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7371
7372 # The cast to long int works around a bug in the HP C Compiler
7373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7375 # This bug is HP SR number 8606223364.
7376 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7377 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7378 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7379   echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381   if test "$cross_compiling" = yes; then
7382   # Depending upon the size, compute the lo and hi bounds.
7383 cat >conftest.$ac_ext <<_ACEOF
7384 /* confdefs.h.  */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h.  */
7389 $ac_includes_default
7390    typedef signed long long ac__type_sizeof_;
7391 int
7392 main ()
7393 {
7394 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7395 test_array [0] = 0
7396
7397   ;
7398   return 0;
7399 }
7400 _ACEOF
7401 rm -f conftest.$ac_objext
7402 if { (ac_try="$ac_compile"
7403 case "(($ac_try" in
7404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405   *) ac_try_echo=$ac_try;;
7406 esac
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408   (eval "$ac_compile") 2>conftest.er1
7409   ac_status=$?
7410   grep -v '^ *+' conftest.er1 >conftest.err
7411   rm -f conftest.er1
7412   cat conftest.err >&5
7413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414   (exit $ac_status); } && {
7415          test -z "$ac_c_werror_flag" ||
7416          test ! -s conftest.err
7417        } && test -s conftest.$ac_objext; then
7418   ac_lo=0 ac_mid=0
7419   while :; do
7420     cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h.  */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h.  */
7426 $ac_includes_default
7427    typedef signed long long ac__type_sizeof_;
7428 int
7429 main ()
7430 {
7431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7432 test_array [0] = 0
7433
7434   ;
7435   return 0;
7436 }
7437 _ACEOF
7438 rm -f conftest.$ac_objext
7439 if { (ac_try="$ac_compile"
7440 case "(($ac_try" in
7441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442   *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445   (eval "$ac_compile") 2>conftest.er1
7446   ac_status=$?
7447   grep -v '^ *+' conftest.er1 >conftest.err
7448   rm -f conftest.er1
7449   cat conftest.err >&5
7450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451   (exit $ac_status); } && {
7452          test -z "$ac_c_werror_flag" ||
7453          test ! -s conftest.err
7454        } && test -s conftest.$ac_objext; then
7455   ac_hi=$ac_mid; break
7456 else
7457   echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7459
7460         ac_lo=`expr $ac_mid + 1`
7461                         if test $ac_lo -le $ac_mid; then
7462                           ac_lo= ac_hi=
7463                           break
7464                         fi
7465                         ac_mid=`expr 2 '*' $ac_mid + 1`
7466 fi
7467
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469   done
7470 else
7471   echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7473
7474         cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h.  */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h.  */
7480 $ac_includes_default
7481    typedef signed long long ac__type_sizeof_;
7482 int
7483 main ()
7484 {
7485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7486 test_array [0] = 0
7487
7488   ;
7489   return 0;
7490 }
7491 _ACEOF
7492 rm -f conftest.$ac_objext
7493 if { (ac_try="$ac_compile"
7494 case "(($ac_try" in
7495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496   *) ac_try_echo=$ac_try;;
7497 esac
7498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7499   (eval "$ac_compile") 2>conftest.er1
7500   ac_status=$?
7501   grep -v '^ *+' conftest.er1 >conftest.err
7502   rm -f conftest.er1
7503   cat conftest.err >&5
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); } && {
7506          test -z "$ac_c_werror_flag" ||
7507          test ! -s conftest.err
7508        } && test -s conftest.$ac_objext; then
7509   ac_hi=-1 ac_mid=-1
7510   while :; do
7511     cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h.  */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h.  */
7517 $ac_includes_default
7518    typedef signed long long ac__type_sizeof_;
7519 int
7520 main ()
7521 {
7522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7523 test_array [0] = 0
7524
7525   ;
7526   return 0;
7527 }
7528 _ACEOF
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7531 case "(($ac_try" in
7532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533   *) ac_try_echo=$ac_try;;
7534 esac
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536   (eval "$ac_compile") 2>conftest.er1
7537   ac_status=$?
7538   grep -v '^ *+' conftest.er1 >conftest.err
7539   rm -f conftest.er1
7540   cat conftest.err >&5
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); } && {
7543          test -z "$ac_c_werror_flag" ||
7544          test ! -s conftest.err
7545        } && test -s conftest.$ac_objext; then
7546   ac_lo=$ac_mid; break
7547 else
7548   echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7550
7551         ac_hi=`expr '(' $ac_mid ')' - 1`
7552                         if test $ac_mid -le $ac_hi; then
7553                           ac_lo= ac_hi=
7554                           break
7555                         fi
7556                         ac_mid=`expr 2 '*' $ac_mid`
7557 fi
7558
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560   done
7561 else
7562   echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7564
7565         ac_lo= ac_hi=
7566 fi
7567
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569 fi
7570
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 # Binary search between lo and hi bounds.
7573 while test "x$ac_lo" != "x$ac_hi"; do
7574   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7575   cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h.  */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h.  */
7581 $ac_includes_default
7582    typedef signed long long ac__type_sizeof_;
7583 int
7584 main ()
7585 {
7586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7587 test_array [0] = 0
7588
7589   ;
7590   return 0;
7591 }
7592 _ACEOF
7593 rm -f conftest.$ac_objext
7594 if { (ac_try="$ac_compile"
7595 case "(($ac_try" in
7596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597   *) ac_try_echo=$ac_try;;
7598 esac
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600   (eval "$ac_compile") 2>conftest.er1
7601   ac_status=$?
7602   grep -v '^ *+' conftest.er1 >conftest.err
7603   rm -f conftest.er1
7604   cat conftest.err >&5
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); } && {
7607          test -z "$ac_c_werror_flag" ||
7608          test ! -s conftest.err
7609        } && test -s conftest.$ac_objext; then
7610   ac_hi=$ac_mid
7611 else
7612   echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7614
7615         ac_lo=`expr '(' $ac_mid ')' + 1`
7616 fi
7617
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 done
7620 case $ac_lo in
7621 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7622 '') if test "$ac_cv_type_signed_long_long" = yes; then
7623      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7624 See \`config.log' for more details." >&5
7625 echo "$as_me: error: cannot compute sizeof (signed long long)
7626 See \`config.log' for more details." >&2;}
7627    { (exit 77); exit 77; }; }
7628    else
7629      ac_cv_sizeof_signed_long_long=0
7630    fi ;;
7631 esac
7632 else
7633   cat >conftest.$ac_ext <<_ACEOF
7634 /* confdefs.h.  */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h.  */
7639 $ac_includes_default
7640    typedef signed long long ac__type_sizeof_;
7641 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7642 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7643 #include <stdio.h>
7644 #include <stdlib.h>
7645 int
7646 main ()
7647 {
7648
7649   FILE *f = fopen ("conftest.val", "w");
7650   if (! f)
7651     return 1;
7652   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7653     {
7654       long int i = longval ();
7655       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7656         return 1;
7657       fprintf (f, "%ld\n", i);
7658     }
7659   else
7660     {
7661       unsigned long int i = ulongval ();
7662       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7663         return 1;
7664       fprintf (f, "%lu\n", i);
7665     }
7666   return ferror (f) || fclose (f) != 0;
7667
7668   ;
7669   return 0;
7670 }
7671 _ACEOF
7672 rm -f conftest$ac_exeext
7673 if { (ac_try="$ac_link"
7674 case "(($ac_try" in
7675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676   *) ac_try_echo=$ac_try;;
7677 esac
7678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679   (eval "$ac_link") 2>&5
7680   ac_status=$?
7681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7683   { (case "(($ac_try" in
7684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685   *) ac_try_echo=$ac_try;;
7686 esac
7687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688   (eval "$ac_try") 2>&5
7689   ac_status=$?
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); }; }; then
7692   ac_cv_sizeof_signed_long_long=`cat conftest.val`
7693 else
7694   echo "$as_me: program exited with status $ac_status" >&5
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7697
7698 ( exit $ac_status )
7699 if test "$ac_cv_type_signed_long_long" = yes; then
7700      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7701 See \`config.log' for more details." >&5
7702 echo "$as_me: error: cannot compute sizeof (signed long long)
7703 See \`config.log' for more details." >&2;}
7704    { (exit 77); exit 77; }; }
7705    else
7706      ac_cv_sizeof_signed_long_long=0
7707    fi
7708 fi
7709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7710 fi
7711 rm -f conftest.val
7712 fi
7713 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7714 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
7715
7716
7717
7718 cat >>confdefs.h <<_ACEOF
7719 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7720 _ACEOF
7721
7722
7723 { echo "$as_me:$LINENO: checking for void*" >&5
7724 echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
7725 if test "${ac_cv_type_voidp+set}" = set; then
7726   echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728   cat >conftest.$ac_ext <<_ACEOF
7729 /* confdefs.h.  */
7730 _ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h.  */
7734 $ac_includes_default
7735 typedef void* ac__type_new_;
7736 int
7737 main ()
7738 {
7739 if ((ac__type_new_ *) 0)
7740   return 0;
7741 if (sizeof (ac__type_new_))
7742   return 0;
7743   ;
7744   return 0;
7745 }
7746 _ACEOF
7747 rm -f conftest.$ac_objext
7748 if { (ac_try="$ac_compile"
7749 case "(($ac_try" in
7750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751   *) ac_try_echo=$ac_try;;
7752 esac
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754   (eval "$ac_compile") 2>conftest.er1
7755   ac_status=$?
7756   grep -v '^ *+' conftest.er1 >conftest.err
7757   rm -f conftest.er1
7758   cat conftest.err >&5
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); } && {
7761          test -z "$ac_c_werror_flag" ||
7762          test ! -s conftest.err
7763        } && test -s conftest.$ac_objext; then
7764   ac_cv_type_voidp=yes
7765 else
7766   echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7768
7769         ac_cv_type_voidp=no
7770 fi
7771
7772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7773 fi
7774 { echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
7775 echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
7776
7777 # The cast to long int works around a bug in the HP C Compiler
7778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7780 # This bug is HP SR number 8606223364.
7781 { echo "$as_me:$LINENO: checking size of void*" >&5
7782 echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
7783 if test "${ac_cv_sizeof_voidp+set}" = set; then
7784   echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786   if test "$cross_compiling" = yes; then
7787   # Depending upon the size, compute the lo and hi bounds.
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h.  */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h.  */
7794 $ac_includes_default
7795    typedef void* ac__type_sizeof_;
7796 int
7797 main ()
7798 {
7799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7800 test_array [0] = 0
7801
7802   ;
7803   return 0;
7804 }
7805 _ACEOF
7806 rm -f conftest.$ac_objext
7807 if { (ac_try="$ac_compile"
7808 case "(($ac_try" in
7809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810   *) ac_try_echo=$ac_try;;
7811 esac
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813   (eval "$ac_compile") 2>conftest.er1
7814   ac_status=$?
7815   grep -v '^ *+' conftest.er1 >conftest.err
7816   rm -f conftest.er1
7817   cat conftest.err >&5
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); } && {
7820          test -z "$ac_c_werror_flag" ||
7821          test ! -s conftest.err
7822        } && test -s conftest.$ac_objext; then
7823   ac_lo=0 ac_mid=0
7824   while :; do
7825     cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h.  */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h.  */
7831 $ac_includes_default
7832    typedef void* ac__type_sizeof_;
7833 int
7834 main ()
7835 {
7836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7837 test_array [0] = 0
7838
7839   ;
7840   return 0;
7841 }
7842 _ACEOF
7843 rm -f conftest.$ac_objext
7844 if { (ac_try="$ac_compile"
7845 case "(($ac_try" in
7846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847   *) ac_try_echo=$ac_try;;
7848 esac
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850   (eval "$ac_compile") 2>conftest.er1
7851   ac_status=$?
7852   grep -v '^ *+' conftest.er1 >conftest.err
7853   rm -f conftest.er1
7854   cat conftest.err >&5
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); } && {
7857          test -z "$ac_c_werror_flag" ||
7858          test ! -s conftest.err
7859        } && test -s conftest.$ac_objext; then
7860   ac_hi=$ac_mid; break
7861 else
7862   echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7864
7865         ac_lo=`expr $ac_mid + 1`
7866                         if test $ac_lo -le $ac_mid; then
7867                           ac_lo= ac_hi=
7868                           break
7869                         fi
7870                         ac_mid=`expr 2 '*' $ac_mid + 1`
7871 fi
7872
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874   done
7875 else
7876   echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879         cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885 $ac_includes_default
7886    typedef void* ac__type_sizeof_;
7887 int
7888 main ()
7889 {
7890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7891 test_array [0] = 0
7892
7893   ;
7894   return 0;
7895 }
7896 _ACEOF
7897 rm -f conftest.$ac_objext
7898 if { (ac_try="$ac_compile"
7899 case "(($ac_try" in
7900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901   *) ac_try_echo=$ac_try;;
7902 esac
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904   (eval "$ac_compile") 2>conftest.er1
7905   ac_status=$?
7906   grep -v '^ *+' conftest.er1 >conftest.err
7907   rm -f conftest.er1
7908   cat conftest.err >&5
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); } && {
7911          test -z "$ac_c_werror_flag" ||
7912          test ! -s conftest.err
7913        } && test -s conftest.$ac_objext; then
7914   ac_hi=-1 ac_mid=-1
7915   while :; do
7916     cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h.  */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h.  */
7922 $ac_includes_default
7923    typedef void* ac__type_sizeof_;
7924 int
7925 main ()
7926 {
7927 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7928 test_array [0] = 0
7929
7930   ;
7931   return 0;
7932 }
7933 _ACEOF
7934 rm -f conftest.$ac_objext
7935 if { (ac_try="$ac_compile"
7936 case "(($ac_try" in
7937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938   *) ac_try_echo=$ac_try;;
7939 esac
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941   (eval "$ac_compile") 2>conftest.er1
7942   ac_status=$?
7943   grep -v '^ *+' conftest.er1 >conftest.err
7944   rm -f conftest.er1
7945   cat conftest.err >&5
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); } && {
7948          test -z "$ac_c_werror_flag" ||
7949          test ! -s conftest.err
7950        } && test -s conftest.$ac_objext; then
7951   ac_lo=$ac_mid; break
7952 else
7953   echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956         ac_hi=`expr '(' $ac_mid ')' - 1`
7957                         if test $ac_mid -le $ac_hi; then
7958                           ac_lo= ac_hi=
7959                           break
7960                         fi
7961                         ac_mid=`expr 2 '*' $ac_mid`
7962 fi
7963
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965   done
7966 else
7967   echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7969
7970         ac_lo= ac_hi=
7971 fi
7972
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 fi
7975
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 # Binary search between lo and hi bounds.
7978 while test "x$ac_lo" != "x$ac_hi"; do
7979   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7980   cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h.  */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h.  */
7986 $ac_includes_default
7987    typedef void* ac__type_sizeof_;
7988 int
7989 main ()
7990 {
7991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7992 test_array [0] = 0
7993
7994   ;
7995   return 0;
7996 }
7997 _ACEOF
7998 rm -f conftest.$ac_objext
7999 if { (ac_try="$ac_compile"
8000 case "(($ac_try" in
8001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002   *) ac_try_echo=$ac_try;;
8003 esac
8004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005   (eval "$ac_compile") 2>conftest.er1
8006   ac_status=$?
8007   grep -v '^ *+' conftest.er1 >conftest.err
8008   rm -f conftest.er1
8009   cat conftest.err >&5
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); } && {
8012          test -z "$ac_c_werror_flag" ||
8013          test ! -s conftest.err
8014        } && test -s conftest.$ac_objext; then
8015   ac_hi=$ac_mid
8016 else
8017   echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020         ac_lo=`expr '(' $ac_mid ')' + 1`
8021 fi
8022
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024 done
8025 case $ac_lo in
8026 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8027 '') if test "$ac_cv_type_voidp" = yes; then
8028      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8029 See \`config.log' for more details." >&5
8030 echo "$as_me: error: cannot compute sizeof (void*)
8031 See \`config.log' for more details." >&2;}
8032    { (exit 77); exit 77; }; }
8033    else
8034      ac_cv_sizeof_voidp=0
8035    fi ;;
8036 esac
8037 else
8038   cat >conftest.$ac_ext <<_ACEOF
8039 /* confdefs.h.  */
8040 _ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h.  */
8044 $ac_includes_default
8045    typedef void* ac__type_sizeof_;
8046 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8047 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8048 #include <stdio.h>
8049 #include <stdlib.h>
8050 int
8051 main ()
8052 {
8053
8054   FILE *f = fopen ("conftest.val", "w");
8055   if (! f)
8056     return 1;
8057   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8058     {
8059       long int i = longval ();
8060       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8061         return 1;
8062       fprintf (f, "%ld\n", i);
8063     }
8064   else
8065     {
8066       unsigned long int i = ulongval ();
8067       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8068         return 1;
8069       fprintf (f, "%lu\n", i);
8070     }
8071   return ferror (f) || fclose (f) != 0;
8072
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest$ac_exeext
8078 if { (ac_try="$ac_link"
8079 case "(($ac_try" in
8080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081   *) ac_try_echo=$ac_try;;
8082 esac
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084   (eval "$ac_link") 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8088   { (case "(($ac_try" in
8089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090   *) ac_try_echo=$ac_try;;
8091 esac
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093   (eval "$ac_try") 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; }; then
8097   ac_cv_sizeof_voidp=`cat conftest.val`
8098 else
8099   echo "$as_me: program exited with status $ac_status" >&5
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8102
8103 ( exit $ac_status )
8104 if test "$ac_cv_type_voidp" = yes; then
8105      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8106 See \`config.log' for more details." >&5
8107 echo "$as_me: error: cannot compute sizeof (void*)
8108 See \`config.log' for more details." >&2;}
8109    { (exit 77); exit 77; }; }
8110    else
8111      ac_cv_sizeof_voidp=0
8112    fi
8113 fi
8114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8115 fi
8116 rm -f conftest.val
8117 fi
8118 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8119 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
8120
8121
8122
8123 cat >>confdefs.h <<_ACEOF
8124 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8125 _ACEOF
8126
8127
8128
8129
8130
8131 # Extract the first word of "freetype-config", so it can be a program name with args.
8132 set dummy freetype-config; ac_word=$2
8133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8135 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8136   echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138   case $FREETYPE_CONFIG in
8139   [\\/]* | ?:[\\/]*)
8140   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8141   ;;
8142   *)
8143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8145 for as_dir in $as_dummy
8146 do
8147   IFS=$as_save_IFS
8148   test -z "$as_dir" && as_dir=.
8149   for ac_exec_ext in '' $ac_executable_extensions; do
8150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8151     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8153     break 2
8154   fi
8155 done
8156 done
8157 IFS=$as_save_IFS
8158
8159   ;;
8160 esac
8161 fi
8162 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8163 if test -n "$FREETYPE_CONFIG"; then
8164   { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8165 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8166 else
8167   { echo "$as_me:$LINENO: result: no" >&5
8168 echo "${ECHO_T}no" >&6; }
8169 fi
8170
8171
8172
8173 OLDCPPFLAGS="${CPPFLAGS}"
8174 OLDLIBS="${LIBS}"
8175 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8176     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8177 else if test -d /usr/include/freetype2; then
8178     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8179 else if test -d /usr/local/include/freetype2; then
8180     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8181 fi
8182 fi
8183 fi
8184
8185 if test "x${FREETYPE_CONFIG}" '=' "x";then
8186     # if we didn't find the freetype-config program, we won't
8187     # know where the libs are expected to be. So just blindly
8188     # try to link against them.
8189     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8190 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8191 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8192   echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194   ac_check_lib_save_LIBS=$LIBS
8195 LIBS="-lfreetype  $LIBS"
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h.  */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h.  */
8202
8203 /* Override any GCC internal prototype to avoid an error.
8204    Use char because int might match the return type of a GCC
8205    builtin and then its argument prototype would still apply.  */
8206 #ifdef __cplusplus
8207 extern "C"
8208 #endif
8209 char FT_Init_FreeType ();
8210 int
8211 main ()
8212 {
8213 return FT_Init_FreeType ();
8214   ;
8215   return 0;
8216 }
8217 _ACEOF
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (ac_try="$ac_link"
8220 case "(($ac_try" in
8221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222   *) ac_try_echo=$ac_try;;
8223 esac
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225   (eval "$ac_link") 2>conftest.er1
8226   ac_status=$?
8227   grep -v '^ *+' conftest.er1 >conftest.err
8228   rm -f conftest.er1
8229   cat conftest.err >&5
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); } && {
8232          test -z "$ac_c_werror_flag" ||
8233          test ! -s conftest.err
8234        } && test -s conftest$ac_exeext &&
8235        $as_test_x conftest$ac_exeext; then
8236   ac_cv_lib_freetype_FT_Init_FreeType=yes
8237 else
8238   echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241         ac_cv_lib_freetype_FT_Init_FreeType=no
8242 fi
8243
8244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8245       conftest$ac_exeext conftest.$ac_ext
8246 LIBS=$ac_check_lib_save_LIBS
8247 fi
8248 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8249 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8250 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8251   HAVE_LIB_FREETYPE=1
8252 fi
8253
8254 fi
8255
8256
8257 for ac_header in ft2build.h
8258 do
8259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8261   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8264   echo $ECHO_N "(cached) $ECHO_C" >&6
8265 fi
8266 ac_res=`eval echo '${'$as_ac_Header'}'`
8267                { echo "$as_me:$LINENO: result: $ac_res" >&5
8268 echo "${ECHO_T}$ac_res" >&6; }
8269 else
8270   # Is the header compilable?
8271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8273 cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279 $ac_includes_default
8280 #include <$ac_header>
8281 _ACEOF
8282 rm -f conftest.$ac_objext
8283 if { (ac_try="$ac_compile"
8284 case "(($ac_try" in
8285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286   *) ac_try_echo=$ac_try;;
8287 esac
8288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289   (eval "$ac_compile") 2>conftest.er1
8290   ac_status=$?
8291   grep -v '^ *+' conftest.er1 >conftest.err
8292   rm -f conftest.er1
8293   cat conftest.err >&5
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); } && {
8296          test -z "$ac_c_werror_flag" ||
8297          test ! -s conftest.err
8298        } && test -s conftest.$ac_objext; then
8299   ac_header_compiler=yes
8300 else
8301   echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8303
8304         ac_header_compiler=no
8305 fi
8306
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8309 echo "${ECHO_T}$ac_header_compiler" >&6; }
8310
8311 # Is the header present?
8312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h.  */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h.  */
8320 #include <$ac_header>
8321 _ACEOF
8322 if { (ac_try="$ac_cpp conftest.$ac_ext"
8323 case "(($ac_try" in
8324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325   *) ac_try_echo=$ac_try;;
8326 esac
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8329   ac_status=$?
8330   grep -v '^ *+' conftest.er1 >conftest.err
8331   rm -f conftest.er1
8332   cat conftest.err >&5
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); } >/dev/null && {
8335          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8336          test ! -s conftest.err
8337        }; then
8338   ac_header_preproc=yes
8339 else
8340   echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8342
8343   ac_header_preproc=no
8344 fi
8345
8346 rm -f conftest.err conftest.$ac_ext
8347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8348 echo "${ECHO_T}$ac_header_preproc" >&6; }
8349
8350 # So?  What about this header?
8351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8352   yes:no: )
8353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8357     ac_header_preproc=yes
8358     ;;
8359   no:yes:* )
8360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8362     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8363 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8364     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8366     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8367 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8370     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8372
8373     ;;
8374 esac
8375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8378   echo $ECHO_N "(cached) $ECHO_C" >&6
8379 else
8380   eval "$as_ac_Header=\$ac_header_preproc"
8381 fi
8382 ac_res=`eval echo '${'$as_ac_Header'}'`
8383                { echo "$as_me:$LINENO: result: $ac_res" >&5
8384 echo "${ECHO_T}$ac_res" >&6; }
8385
8386 fi
8387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8388   cat >>confdefs.h <<_ACEOF
8389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8390 _ACEOF
8391  HAVE_FT2BUILD_H=1
8392 fi
8393
8394 done
8395
8396 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8397
8398 for ac_header in freetype/freetype.h
8399 do
8400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8402   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8405   echo $ECHO_N "(cached) $ECHO_C" >&6
8406 fi
8407 ac_res=`eval echo '${'$as_ac_Header'}'`
8408                { echo "$as_me:$LINENO: result: $ac_res" >&5
8409 echo "${ECHO_T}$ac_res" >&6; }
8410 else
8411   # Is the header compilable?
8412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8414 cat >conftest.$ac_ext <<_ACEOF
8415 /* confdefs.h.  */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h.  */
8420 $ac_includes_default
8421 #include <$ac_header>
8422 _ACEOF
8423 rm -f conftest.$ac_objext
8424 if { (ac_try="$ac_compile"
8425 case "(($ac_try" in
8426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427   *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430   (eval "$ac_compile") 2>conftest.er1
8431   ac_status=$?
8432   grep -v '^ *+' conftest.er1 >conftest.err
8433   rm -f conftest.er1
8434   cat conftest.err >&5
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); } && {
8437          test -z "$ac_c_werror_flag" ||
8438          test ! -s conftest.err
8439        } && test -s conftest.$ac_objext; then
8440   ac_header_compiler=yes
8441 else
8442   echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.$ac_ext >&5
8444
8445         ac_header_compiler=no
8446 fi
8447
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8450 echo "${ECHO_T}$ac_header_compiler" >&6; }
8451
8452 # Is the header present?
8453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8455 cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h.  */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h.  */
8461 #include <$ac_header>
8462 _ACEOF
8463 if { (ac_try="$ac_cpp conftest.$ac_ext"
8464 case "(($ac_try" in
8465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466   *) ac_try_echo=$ac_try;;
8467 esac
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8470   ac_status=$?
8471   grep -v '^ *+' conftest.er1 >conftest.err
8472   rm -f conftest.er1
8473   cat conftest.err >&5
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); } >/dev/null && {
8476          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8477          test ! -s conftest.err
8478        }; then
8479   ac_header_preproc=yes
8480 else
8481   echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484   ac_header_preproc=no
8485 fi
8486
8487 rm -f conftest.err conftest.$ac_ext
8488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8489 echo "${ECHO_T}$ac_header_preproc" >&6; }
8490
8491 # So?  What about this header?
8492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8493   yes:no: )
8494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8498     ac_header_preproc=yes
8499     ;;
8500   no:yes:* )
8501     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8503     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8504 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8505     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8507     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8508 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8511     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8513
8514     ;;
8515 esac
8516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8519   echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521   eval "$as_ac_Header=\$ac_header_preproc"
8522 fi
8523 ac_res=`eval echo '${'$as_ac_Header'}'`
8524                { echo "$as_me:$LINENO: result: $ac_res" >&5
8525 echo "${ECHO_T}$ac_res" >&6; }
8526
8527 fi
8528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8529   cat >>confdefs.h <<_ACEOF
8530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8531 _ACEOF
8532  HAVE_FREETYPE_FREETYPE_H=1
8533 fi
8534
8535 done
8536
8537 fi
8538
8539 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8540         "x${FREETYPE_CONFIG}" '!=' "x";then
8541     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8542         HAVE_FREETYPE=1
8543     fi
8544     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8545         HAVE_FREETYPE=1
8546     fi
8547 fi
8548
8549 if test "x${HAVE_FREETYPE}" = "x1"; then
8550     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8551         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8552     else
8553         LIBS="$LIBS -lfreetype"
8554     fi
8555
8556     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8557         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8558     fi
8559
8560     { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8561 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8562
8563     cat > conftest.c << EOF
8564 $HAVE_FT2BUILD_H_DEFINE
8565
8566 #ifdef HAVE_FT2BUILD_H
8567 #include <ft2build.h>
8568 #include FT_FREETYPE_H
8569 #include FT_GLYPH_H
8570 #include FT_SIZES_H
8571 #include FT_SFNT_NAMES_H
8572 #include FT_TRUETYPE_IDS_H
8573 #include FT_OUTLINE_H
8574 #else
8575 #include <freetype/freetype.h>
8576 #include <freetype/ftglyph.h>
8577 #include <freetype/ftsizes.h>
8578 #include <freetype/ftsnames.h>
8579 #include <freetype/ttnameid.h>
8580 #include <freetype/ftoutln.h>
8581 #endif
8582
8583 int main()
8584 {
8585     FT_Library ftlibrary;
8586     FT_Face face;
8587     FT_Error error;
8588     FT_ULong charcode;
8589     FT_UInt gindex;
8590     FT_Glyph glyph;
8591     FT_BBox bbox;
8592     FT_Matrix matrix;
8593     FT_UInt i;
8594     char* name = 0;
8595     char italic, bold;
8596
8597     FT_Init_FreeType(&ftlibrary);
8598     FT_New_Face(ftlibrary, "filename", 0, &face);
8599     i = face->num_glyphs - 1;
8600     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8601     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8602     FT_Get_Postscript_Name(face);
8603     FT_Get_Char_Index(face, 33);
8604     FT_Get_First_Char(face, &i);
8605     FT_Get_Next_Char(face, 33, &i);
8606     if(FT_HAS_GLYPH_NAMES(face)) {
8607         FT_Get_Glyph_Name(face, 33, name, 127);
8608     }
8609     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8610     FT_Get_Glyph(face->glyph, &glyph);
8611     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8612     FT_Done_Glyph(glyph);
8613     FT_Done_Face(face);
8614     FT_Done_FreeType(ftlibrary);
8615     return 0;
8616 }
8617 EOF
8618
8619     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8620     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8621         { echo "$as_me:$LINENO: result: yes" >&5
8622 echo "${ECHO_T}yes" >&6; }
8623
8624 cat >>confdefs.h <<\_ACEOF
8625 #define HAVE_FREETYPE 1
8626 _ACEOF
8627
8628
8629 cat >>confdefs.h <<\_ACEOF
8630 #define HAVE_FREETYPE_FREETYPE_H 1
8631 _ACEOF
8632
8633
8634 cat >>confdefs.h <<\_ACEOF
8635 #define USE_FREETYPE 1
8636 _ACEOF
8637   # for ttf2tp1
8638     else
8639         echo "configure: failed program was:" >&5
8640         cat conftest.c >&5
8641         HAVE_FREETYPE=0
8642         { echo "$as_me:$LINENO: result: no" >&5
8643 echo "${ECHO_T}no" >&6; }
8644     fi
8645     rm -f conftest*
8646 fi
8647
8648 # if the above didn't work out, reset all changes to the compiler variables.
8649 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8650     CPPFLAGS=$OLDCPPFLAGS
8651     LIBS=$OLDLIBS
8652 fi
8653
8654
8655
8656 OLDCPPFLAGS="${CPPFLAGS}"
8657 OLDLIBS="${LIBS}"
8658
8659 if test -d /usr/include/fontconfig; then
8660     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8661 fi
8662
8663 { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8664 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; }
8665 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8666   echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668   ac_check_lib_save_LIBS=$LIBS
8669 LIBS="-lfontconfig  $LIBS"
8670 cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h.  */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h.  */
8676
8677 /* Override any GCC internal prototype to avoid an error.
8678    Use char because int might match the return type of a GCC
8679    builtin and then its argument prototype would still apply.  */
8680 #ifdef __cplusplus
8681 extern "C"
8682 #endif
8683 char FcInit ();
8684 int
8685 main ()
8686 {
8687 return FcInit ();
8688   ;
8689   return 0;
8690 }
8691 _ACEOF
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (ac_try="$ac_link"
8694 case "(($ac_try" in
8695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696   *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699   (eval "$ac_link") 2>conftest.er1
8700   ac_status=$?
8701   grep -v '^ *+' conftest.er1 >conftest.err
8702   rm -f conftest.er1
8703   cat conftest.err >&5
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); } && {
8706          test -z "$ac_c_werror_flag" ||
8707          test ! -s conftest.err
8708        } && test -s conftest$ac_exeext &&
8709        $as_test_x conftest$ac_exeext; then
8710   ac_cv_lib_fontconfig_FcInit=yes
8711 else
8712   echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8714
8715         ac_cv_lib_fontconfig_FcInit=no
8716 fi
8717
8718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8719       conftest$ac_exeext conftest.$ac_ext
8720 LIBS=$ac_check_lib_save_LIBS
8721 fi
8722 { echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8723 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; }
8724 if test $ac_cv_lib_fontconfig_FcInit = yes; then
8725   HAVE_LIB_FONTCONFIG=1
8726 fi
8727
8728
8729 for ac_header in fontconfig.h
8730 do
8731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8733   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 fi
8738 ac_res=`eval echo '${'$as_ac_Header'}'`
8739                { echo "$as_me:$LINENO: result: $ac_res" >&5
8740 echo "${ECHO_T}$ac_res" >&6; }
8741 else
8742   # Is the header compilable?
8743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h.  */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h.  */
8751 $ac_includes_default
8752 #include <$ac_header>
8753 _ACEOF
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8756 case "(($ac_try" in
8757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758   *) ac_try_echo=$ac_try;;
8759 esac
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761   (eval "$ac_compile") 2>conftest.er1
8762   ac_status=$?
8763   grep -v '^ *+' conftest.er1 >conftest.err
8764   rm -f conftest.er1
8765   cat conftest.err >&5
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); } && {
8768          test -z "$ac_c_werror_flag" ||
8769          test ! -s conftest.err
8770        } && test -s conftest.$ac_objext; then
8771   ac_header_compiler=yes
8772 else
8773   echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776         ac_header_compiler=no
8777 fi
8778
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8781 echo "${ECHO_T}$ac_header_compiler" >&6; }
8782
8783 # Is the header present?
8784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8786 cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h.  */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h.  */
8792 #include <$ac_header>
8793 _ACEOF
8794 if { (ac_try="$ac_cpp conftest.$ac_ext"
8795 case "(($ac_try" in
8796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797   *) ac_try_echo=$ac_try;;
8798 esac
8799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8801   ac_status=$?
8802   grep -v '^ *+' conftest.er1 >conftest.err
8803   rm -f conftest.er1
8804   cat conftest.err >&5
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); } >/dev/null && {
8807          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8808          test ! -s conftest.err
8809        }; then
8810   ac_header_preproc=yes
8811 else
8812   echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8814
8815   ac_header_preproc=no
8816 fi
8817
8818 rm -f conftest.err conftest.$ac_ext
8819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8820 echo "${ECHO_T}$ac_header_preproc" >&6; }
8821
8822 # So?  What about this header?
8823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8824   yes:no: )
8825     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8829     ac_header_preproc=yes
8830     ;;
8831   no:yes:* )
8832     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8834     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8835 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8836     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8838     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8839 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8842     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8844
8845     ;;
8846 esac
8847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8850   echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852   eval "$as_ac_Header=\$ac_header_preproc"
8853 fi
8854 ac_res=`eval echo '${'$as_ac_Header'}'`
8855                { echo "$as_me:$LINENO: result: $ac_res" >&5
8856 echo "${ECHO_T}$ac_res" >&6; }
8857
8858 fi
8859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8860   cat >>confdefs.h <<_ACEOF
8861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8862 _ACEOF
8863  HAVE_FONTCONFIG_H=1
8864 fi
8865
8866 done
8867
8868
8869 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8870 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8871     HAVE_FONTCONFIG=1
8872 fi
8873 fi
8874
8875 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8876     LIBS="$LIBS -lfontconfig"
8877 { echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8878 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6; }
8879
8880 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8881     #move freetype library to the end of libraries, otherwise fontconfig
8882     #won't compile.
8883     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8884 fi
8885
8886 cat > conftest.c << EOF
8887 #include <string.h>
8888 #include <fontconfig.h>
8889
8890 int main()
8891 {
8892     FcPattern *pattern, *match;
8893     FcResult result;
8894     FcChar8 *v;
8895     char*s1="abc",*s2="ABC";
8896     strcasecmp(s1,s2);
8897     FcInit();
8898     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8899     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8900     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8901
8902     FcConfig*c = FcConfigCreate();
8903     FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8904     FcConfigBuildFonts(c);
8905     FcConfigSetCurrent(c);
8906
8907     FcFontSet * set =  FcConfigGetFonts(c, FcSetSystem);
8908     FcFontSetDestroy(set);
8909
8910     FcConfigSubstitute(0, pattern, FcMatchPattern);
8911     FcDefaultSubstitute(pattern);
8912     match = FcFontMatch(0, pattern, &result);
8913     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8914     FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8915     FcPatternPrint(pattern);
8916     FcPatternDestroy(pattern);
8917     FcPatternDestroy(match);
8918     FcFini();
8919     return 0;
8920 }
8921 EOF
8922
8923     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8924     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8925         { echo "$as_me:$LINENO: result: yes" >&5
8926 echo "${ECHO_T}yes" >&6; }
8927
8928 cat >>confdefs.h <<\_ACEOF
8929 #define HAVE_FONTCONFIG 1
8930 _ACEOF
8931
8932     else
8933         echo "configure: failed program was:" >&5
8934         cat conftest.c >&5
8935         HAVE_FONTCONFIG=0
8936         { echo "$as_me:$LINENO: result: no" >&5
8937 echo "${ECHO_T}no" >&6; }
8938     fi
8939     rm -f conftest*
8940 fi
8941
8942 # if the above didn't work out, reset all changes to the compiler variables.
8943 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
8944     CPPFLAGS=$OLDCPPFLAGS
8945     LIBS=$OLDLIBS
8946 fi
8947
8948
8949
8950 OLDCPPFLAGS="${CPPFLAGS}"
8951 OLDLIBS="${LIBS}"
8952
8953
8954 { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
8955 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
8956 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
8957   echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959   ac_check_lib_save_LIBS=$LIBS
8960 LIBS="-lGL  $LIBS"
8961 cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h.  */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h.  */
8967
8968 /* Override any GCC internal prototype to avoid an error.
8969    Use char because int might match the return type of a GCC
8970    builtin and then its argument prototype would still apply.  */
8971 #ifdef __cplusplus
8972 extern "C"
8973 #endif
8974 char glBegin ();
8975 int
8976 main ()
8977 {
8978 return glBegin ();
8979   ;
8980   return 0;
8981 }
8982 _ACEOF
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (ac_try="$ac_link"
8985 case "(($ac_try" in
8986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987   *) ac_try_echo=$ac_try;;
8988 esac
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990   (eval "$ac_link") 2>conftest.er1
8991   ac_status=$?
8992   grep -v '^ *+' conftest.er1 >conftest.err
8993   rm -f conftest.er1
8994   cat conftest.err >&5
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); } && {
8997          test -z "$ac_c_werror_flag" ||
8998          test ! -s conftest.err
8999        } && test -s conftest$ac_exeext &&
9000        $as_test_x conftest$ac_exeext; then
9001   ac_cv_lib_GL_glBegin=yes
9002 else
9003   echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9005
9006         ac_cv_lib_GL_glBegin=no
9007 fi
9008
9009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9010       conftest$ac_exeext conftest.$ac_ext
9011 LIBS=$ac_check_lib_save_LIBS
9012 fi
9013 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
9014 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
9015 if test $ac_cv_lib_GL_glBegin = yes; then
9016   cat >>confdefs.h <<_ACEOF
9017 #define HAVE_LIBGL 1
9018 _ACEOF
9019
9020   LIBS="-lGL $LIBS"
9021
9022 fi
9023
9024
9025 { echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
9026 echo $ECHO_N "checking for gluBeginSurface in -lGLU... $ECHO_C" >&6; }
9027 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
9028   echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030   ac_check_lib_save_LIBS=$LIBS
9031 LIBS="-lGLU  $LIBS"
9032 cat >conftest.$ac_ext <<_ACEOF
9033 /* confdefs.h.  */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h.  */
9038
9039 /* Override any GCC internal prototype to avoid an error.
9040    Use char because int might match the return type of a GCC
9041    builtin and then its argument prototype would still apply.  */
9042 #ifdef __cplusplus
9043 extern "C"
9044 #endif
9045 char gluBeginSurface ();
9046 int
9047 main ()
9048 {
9049 return gluBeginSurface ();
9050   ;
9051   return 0;
9052 }
9053 _ACEOF
9054 rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (ac_try="$ac_link"
9056 case "(($ac_try" in
9057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058   *) ac_try_echo=$ac_try;;
9059 esac
9060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061   (eval "$ac_link") 2>conftest.er1
9062   ac_status=$?
9063   grep -v '^ *+' conftest.er1 >conftest.err
9064   rm -f conftest.er1
9065   cat conftest.err >&5
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   (exit $ac_status); } && {
9068          test -z "$ac_c_werror_flag" ||
9069          test ! -s conftest.err
9070        } && test -s conftest$ac_exeext &&
9071        $as_test_x conftest$ac_exeext; then
9072   ac_cv_lib_GLU_gluBeginSurface=yes
9073 else
9074   echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9076
9077         ac_cv_lib_GLU_gluBeginSurface=no
9078 fi
9079
9080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9081       conftest$ac_exeext conftest.$ac_ext
9082 LIBS=$ac_check_lib_save_LIBS
9083 fi
9084 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
9085 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginSurface" >&6; }
9086 if test $ac_cv_lib_GLU_gluBeginSurface = yes; then
9087   cat >>confdefs.h <<_ACEOF
9088 #define HAVE_LIBGLU 1
9089 _ACEOF
9090
9091   LIBS="-lGLU $LIBS"
9092
9093 fi
9094
9095
9096 { echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
9097 echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6; }
9098 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
9099   echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101   ac_check_lib_save_LIBS=$LIBS
9102 LIBS="-lglut  $LIBS"
9103 cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h.  */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h.  */
9109
9110 /* Override any GCC internal prototype to avoid an error.
9111    Use char because int might match the return type of a GCC
9112    builtin and then its argument prototype would still apply.  */
9113 #ifdef __cplusplus
9114 extern "C"
9115 #endif
9116 char glutInit ();
9117 int
9118 main ()
9119 {
9120 return glutInit ();
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 rm -f conftest.$ac_objext conftest$ac_exeext
9126 if { (ac_try="$ac_link"
9127 case "(($ac_try" in
9128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129   *) ac_try_echo=$ac_try;;
9130 esac
9131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9132   (eval "$ac_link") 2>conftest.er1
9133   ac_status=$?
9134   grep -v '^ *+' conftest.er1 >conftest.err
9135   rm -f conftest.er1
9136   cat conftest.err >&5
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); } && {
9139          test -z "$ac_c_werror_flag" ||
9140          test ! -s conftest.err
9141        } && test -s conftest$ac_exeext &&
9142        $as_test_x conftest$ac_exeext; then
9143   ac_cv_lib_glut_glutInit=yes
9144 else
9145   echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9147
9148         ac_cv_lib_glut_glutInit=no
9149 fi
9150
9151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9152       conftest$ac_exeext conftest.$ac_ext
9153 LIBS=$ac_check_lib_save_LIBS
9154 fi
9155 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
9156 echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6; }
9157 if test $ac_cv_lib_glut_glutInit = yes; then
9158   cat >>confdefs.h <<_ACEOF
9159 #define HAVE_LIBGLUT 1
9160 _ACEOF
9161
9162   LIBS="-lglut $LIBS"
9163
9164 fi
9165
9166
9167
9168 for ac_header in GL/gl.h GL/glut.h
9169 do
9170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9172   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9175   echo $ECHO_N "(cached) $ECHO_C" >&6
9176 fi
9177 ac_res=`eval echo '${'$as_ac_Header'}'`
9178                { echo "$as_me:$LINENO: result: $ac_res" >&5
9179 echo "${ECHO_T}$ac_res" >&6; }
9180 else
9181   # Is the header compilable?
9182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9184 cat >conftest.$ac_ext <<_ACEOF
9185 /* confdefs.h.  */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h.  */
9190 $ac_includes_default
9191 #include <$ac_header>
9192 _ACEOF
9193 rm -f conftest.$ac_objext
9194 if { (ac_try="$ac_compile"
9195 case "(($ac_try" in
9196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197   *) ac_try_echo=$ac_try;;
9198 esac
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200   (eval "$ac_compile") 2>conftest.er1
9201   ac_status=$?
9202   grep -v '^ *+' conftest.er1 >conftest.err
9203   rm -f conftest.er1
9204   cat conftest.err >&5
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); } && {
9207          test -z "$ac_c_werror_flag" ||
9208          test ! -s conftest.err
9209        } && test -s conftest.$ac_objext; then
9210   ac_header_compiler=yes
9211 else
9212   echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9214
9215         ac_header_compiler=no
9216 fi
9217
9218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9220 echo "${ECHO_T}$ac_header_compiler" >&6; }
9221
9222 # Is the header present?
9223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9225 cat >conftest.$ac_ext <<_ACEOF
9226 /* confdefs.h.  */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h.  */
9231 #include <$ac_header>
9232 _ACEOF
9233 if { (ac_try="$ac_cpp conftest.$ac_ext"
9234 case "(($ac_try" in
9235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236   *) ac_try_echo=$ac_try;;
9237 esac
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9240   ac_status=$?
9241   grep -v '^ *+' conftest.er1 >conftest.err
9242   rm -f conftest.er1
9243   cat conftest.err >&5
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); } >/dev/null && {
9246          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9247          test ! -s conftest.err
9248        }; then
9249   ac_header_preproc=yes
9250 else
9251   echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254   ac_header_preproc=no
9255 fi
9256
9257 rm -f conftest.err conftest.$ac_ext
9258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9259 echo "${ECHO_T}$ac_header_preproc" >&6; }
9260
9261 # So?  What about this header?
9262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9263   yes:no: )
9264     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9268     ac_header_preproc=yes
9269     ;;
9270   no:yes:* )
9271     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9273     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9274 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9275     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9277     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9278 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9281     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9283
9284     ;;
9285 esac
9286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9289   echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291   eval "$as_ac_Header=\$ac_header_preproc"
9292 fi
9293 ac_res=`eval echo '${'$as_ac_Header'}'`
9294                { echo "$as_me:$LINENO: result: $ac_res" >&5
9295 echo "${ECHO_T}$ac_res" >&6; }
9296
9297 fi
9298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9299   cat >>confdefs.h <<_ACEOF
9300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9301 _ACEOF
9302
9303 fi
9304
9305 done
9306
9307
9308 cat > conftest.c << EOF
9309 #include <GL/gl.h>
9310 #include <GL/glu.h>
9311 #include <GL/glut.h>
9312
9313 int main(int argc, char*argv)
9314 {
9315     glutInit(&argc, argv);
9316     glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
9317     glutInitWindowSize(320,200);
9318     glutInitWindowPosition(0,0);
9319     glutCreateWindow("main");
9320     glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
9321     glShadeModel(GL_SMOOTH);
9322     glEnable (GL_LINE_SMOOTH);
9323     glEnable (GL_POLYGON_SMOOTH);
9324     glEnable (GL_BLEND);
9325     glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
9326     glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
9327     glHint (GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
9328 }
9329 EOF
9330
9331 { echo "$as_me:$LINENO: checking whether we can compile the opengl test program" >&5
9332 echo $ECHO_N "checking whether we can compile the opengl test program... $ECHO_C" >&6; }
9333
9334 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9335 if { (eval echo opengl.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9336     { echo "$as_me:$LINENO: result: yes" >&5
9337 echo "${ECHO_T}yes" >&6; }
9338     HAVE_OPENGL=1
9339
9340 cat >>confdefs.h <<\_ACEOF
9341 #define HAVE_OPENGL 1
9342 _ACEOF
9343
9344 else
9345     echo "configure: failed program was:" >&5
9346     cat conftest.c >&5
9347     HAVE_OPENGL=
9348     { echo "$as_me:$LINENO: result: no" >&5
9349 echo "${ECHO_T}no" >&6; }
9350 fi
9351 rm -f conftest*
9352
9353 # if the above didn't work out, reset all changes to the compiler variables.
9354 if test "x${HAVE_OPENGL}" "!=" "x1"; then
9355     CPPFLAGS=$OLDCPPFLAGS
9356     LIBS=$OLDLIBS
9357 fi
9358
9359 if test "$HAVE_OPENGL";then
9360     DEVICE_OPENGL='devices/opengl.$(O)'
9361
9362 fi
9363
9364 lame_in_source=
9365 lame_makefile=
9366 if test "x${DISABLE_LAME}" = "xtrue"; then
9367     echo "*" Disabling lame support...
9368 else
9369     # old lame code at lib/lame
9370     if test -f lib/lame/Makefile.in; then
9371         lame_in_source='$(lame_objects)'
9372         lame_makefile="lib/lame/Makefile"
9373         CPPFLAGS="$CPPFLAGS -Ilame"
9374
9375 cat >>confdefs.h <<\_ACEOF
9376 #define HAVE_LAME 1
9377 _ACEOF
9378
9379     else
9380         if test -d /usr/include/lame; then
9381             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9382         else
9383             if test -d /usr/local/include/lame; then
9384                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9385             fi
9386         fi
9387
9388 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9389 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
9390 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9391   echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393   ac_check_lib_save_LIBS=$LIBS
9394 LIBS="-lmp3lame  $LIBS"
9395 cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h.  */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h.  */
9401
9402 /* Override any GCC internal prototype to avoid an error.
9403    Use char because int might match the return type of a GCC
9404    builtin and then its argument prototype would still apply.  */
9405 #ifdef __cplusplus
9406 extern "C"
9407 #endif
9408 char lame_init ();
9409 int
9410 main ()
9411 {
9412 return lame_init ();
9413   ;
9414   return 0;
9415 }
9416 _ACEOF
9417 rm -f conftest.$ac_objext conftest$ac_exeext
9418 if { (ac_try="$ac_link"
9419 case "(($ac_try" in
9420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421   *) ac_try_echo=$ac_try;;
9422 esac
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424   (eval "$ac_link") 2>conftest.er1
9425   ac_status=$?
9426   grep -v '^ *+' conftest.er1 >conftest.err
9427   rm -f conftest.er1
9428   cat conftest.err >&5
9429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   (exit $ac_status); } && {
9431          test -z "$ac_c_werror_flag" ||
9432          test ! -s conftest.err
9433        } && test -s conftest$ac_exeext &&
9434        $as_test_x conftest$ac_exeext; then
9435   ac_cv_lib_mp3lame_lame_init=yes
9436 else
9437   echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9439
9440         ac_cv_lib_mp3lame_lame_init=no
9441 fi
9442
9443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9444       conftest$ac_exeext conftest.$ac_ext
9445 LIBS=$ac_check_lib_save_LIBS
9446 fi
9447 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9448 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
9449 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9450   cat >>confdefs.h <<_ACEOF
9451 #define HAVE_LIBMP3LAME 1
9452 _ACEOF
9453
9454   LIBS="-lmp3lame $LIBS"
9455
9456 else
9457   NO_LIBMP3LAME=1
9458 fi
9459
9460
9461 for ac_header in lame.h
9462 do
9463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9465   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9468   echo $ECHO_N "(cached) $ECHO_C" >&6
9469 fi
9470 ac_res=`eval echo '${'$as_ac_Header'}'`
9471                { echo "$as_me:$LINENO: result: $ac_res" >&5
9472 echo "${ECHO_T}$ac_res" >&6; }
9473 else
9474   # Is the header compilable?
9475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9477 cat >conftest.$ac_ext <<_ACEOF
9478 /* confdefs.h.  */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h.  */
9483 $ac_includes_default
9484 #include <$ac_header>
9485 _ACEOF
9486 rm -f conftest.$ac_objext
9487 if { (ac_try="$ac_compile"
9488 case "(($ac_try" in
9489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490   *) ac_try_echo=$ac_try;;
9491 esac
9492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493   (eval "$ac_compile") 2>conftest.er1
9494   ac_status=$?
9495   grep -v '^ *+' conftest.er1 >conftest.err
9496   rm -f conftest.er1
9497   cat conftest.err >&5
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); } && {
9500          test -z "$ac_c_werror_flag" ||
9501          test ! -s conftest.err
9502        } && test -s conftest.$ac_objext; then
9503   ac_header_compiler=yes
9504 else
9505   echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9507
9508         ac_header_compiler=no
9509 fi
9510
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9513 echo "${ECHO_T}$ac_header_compiler" >&6; }
9514
9515 # Is the header present?
9516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9518 cat >conftest.$ac_ext <<_ACEOF
9519 /* confdefs.h.  */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h.  */
9524 #include <$ac_header>
9525 _ACEOF
9526 if { (ac_try="$ac_cpp conftest.$ac_ext"
9527 case "(($ac_try" in
9528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529   *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9533   ac_status=$?
9534   grep -v '^ *+' conftest.er1 >conftest.err
9535   rm -f conftest.er1
9536   cat conftest.err >&5
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); } >/dev/null && {
9539          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9540          test ! -s conftest.err
9541        }; then
9542   ac_header_preproc=yes
9543 else
9544   echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9546
9547   ac_header_preproc=no
9548 fi
9549
9550 rm -f conftest.err conftest.$ac_ext
9551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9552 echo "${ECHO_T}$ac_header_preproc" >&6; }
9553
9554 # So?  What about this header?
9555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9556   yes:no: )
9557     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9561     ac_header_preproc=yes
9562     ;;
9563   no:yes:* )
9564     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9566     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9567 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9568     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9570     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9571 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9574     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9576
9577     ;;
9578 esac
9579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9582   echo $ECHO_N "(cached) $ECHO_C" >&6
9583 else
9584   eval "$as_ac_Header=\$ac_header_preproc"
9585 fi
9586 ac_res=`eval echo '${'$as_ac_Header'}'`
9587                { echo "$as_me:$LINENO: result: $ac_res" >&5
9588 echo "${ECHO_T}$ac_res" >&6; }
9589
9590 fi
9591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9592   cat >>confdefs.h <<_ACEOF
9593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9594 _ACEOF
9595
9596 fi
9597
9598 done
9599
9600         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
9601             cat >>confdefs.h <<\_ACEOF
9602 #define HAVE_LAME 1
9603 _ACEOF
9604
9605         fi
9606     fi
9607 fi
9608
9609
9610 art_in_source='$(art_objects)'
9611
9612 cat >>confdefs.h <<\_ACEOF
9613 #define INTERNAL_LIBART 1
9614 _ACEOF
9615
9616
9617 if test "x$EXTERNAL_LIBART" = "xtrue"; then
9618     art_in_source=
9619
9620 pkg_failed=no
9621 { echo "$as_me:$LINENO: checking for LIBART" >&5
9622 echo $ECHO_N "checking for LIBART... $ECHO_C" >&6; }
9623
9624 if test -n "$PKG_CONFIG"; then
9625     if test -n "$LIBART_CFLAGS"; then
9626         pkg_cv_LIBART_CFLAGS="$LIBART_CFLAGS"
9627     else
9628         if test -n "$PKG_CONFIG" && \
9629     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libart-2.0\"") >&5
9630   ($PKG_CONFIG --exists --print-errors "libart-2.0") 2>&5
9631   ac_status=$?
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); }; then
9634   pkg_cv_LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0" 2>/dev/null`
9635 else
9636   pkg_failed=yes
9637 fi
9638     fi
9639 else
9640         pkg_failed=untried
9641 fi
9642 if test -n "$PKG_CONFIG"; then
9643     if test -n "$LIBART_LIBS"; then
9644         pkg_cv_LIBART_LIBS="$LIBART_LIBS"
9645     else
9646         if test -n "$PKG_CONFIG" && \
9647     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libart-2.0\"") >&5
9648   ($PKG_CONFIG --exists --print-errors "libart-2.0") 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); }; then
9652   pkg_cv_LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0" 2>/dev/null`
9653 else
9654   pkg_failed=yes
9655 fi
9656     fi
9657 else
9658         pkg_failed=untried
9659 fi
9660
9661
9662
9663 if test $pkg_failed = yes; then
9664
9665 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9666         _pkg_short_errors_supported=yes
9667 else
9668         _pkg_short_errors_supported=no
9669 fi
9670         if test $_pkg_short_errors_supported = yes; then
9671                 LIBART_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libart-2.0"`
9672         else
9673                 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0"`
9674         fi
9675         # Put the nasty error message in config.log where it belongs
9676         echo "$LIBART_PKG_ERRORS" >&5
9677
9678         { echo "$as_me:$LINENO: result: no" >&5
9679 echo "${ECHO_T}no" >&6; }
9680                 libart_pkgconfig_libart=no
9681 elif test $pkg_failed = untried; then
9682         libart_pkgconfig_libart=no
9683 else
9684         LIBART_CFLAGS=$pkg_cv_LIBART_CFLAGS
9685         LIBART_LIBS=$pkg_cv_LIBART_LIBS
9686         { echo "$as_me:$LINENO: result: yes" >&5
9687 echo "${ECHO_T}yes" >&6; }
9688         :
9689 fi
9690     if test "x$libart_pkgconfig_libart" = "xno"; then
9691
9692 for ac_header in libart_lgpl/libart.h
9693 do
9694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9696   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9699   echo $ECHO_N "(cached) $ECHO_C" >&6
9700 fi
9701 ac_res=`eval echo '${'$as_ac_Header'}'`
9702                { echo "$as_me:$LINENO: result: $ac_res" >&5
9703 echo "${ECHO_T}$ac_res" >&6; }
9704 else
9705   # Is the header compilable?
9706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9708 cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h.  */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h.  */
9714 $ac_includes_default
9715 #include <$ac_header>
9716 _ACEOF
9717 rm -f conftest.$ac_objext
9718 if { (ac_try="$ac_compile"
9719 case "(($ac_try" in
9720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721   *) ac_try_echo=$ac_try;;
9722 esac
9723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724   (eval "$ac_compile") 2>conftest.er1
9725   ac_status=$?
9726   grep -v '^ *+' conftest.er1 >conftest.err
9727   rm -f conftest.er1
9728   cat conftest.err >&5
9729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); } && {
9731          test -z "$ac_c_werror_flag" ||
9732          test ! -s conftest.err
9733        } && test -s conftest.$ac_objext; then
9734   ac_header_compiler=yes
9735 else
9736   echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9738
9739         ac_header_compiler=no
9740 fi
9741
9742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9744 echo "${ECHO_T}$ac_header_compiler" >&6; }
9745
9746 # Is the header present?
9747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h.  */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h.  */
9755 #include <$ac_header>
9756 _ACEOF
9757 if { (ac_try="$ac_cpp conftest.$ac_ext"
9758 case "(($ac_try" in
9759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760   *) ac_try_echo=$ac_try;;
9761 esac
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9764   ac_status=$?
9765   grep -v '^ *+' conftest.er1 >conftest.err
9766   rm -f conftest.er1
9767   cat conftest.err >&5
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); } >/dev/null && {
9770          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9771          test ! -s conftest.err
9772        }; then
9773   ac_header_preproc=yes
9774 else
9775   echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9777
9778   ac_header_preproc=no
9779 fi
9780
9781 rm -f conftest.err conftest.$ac_ext
9782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9783 echo "${ECHO_T}$ac_header_preproc" >&6; }
9784
9785 # So?  What about this header?
9786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9787   yes:no: )
9788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9792     ac_header_preproc=yes
9793     ;;
9794   no:yes:* )
9795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9807
9808     ;;
9809 esac
9810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9813   echo $ECHO_N "(cached) $ECHO_C" >&6
9814 else
9815   eval "$as_ac_Header=\$ac_header_preproc"
9816 fi
9817 ac_res=`eval echo '${'$as_ac_Header'}'`
9818                { echo "$as_me:$LINENO: result: $ac_res" >&5
9819 echo "${ECHO_T}$ac_res" >&6; }
9820
9821 fi
9822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9823   cat >>confdefs.h <<_ACEOF
9824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9825 _ACEOF
9826
9827
9828 { echo "$as_me:$LINENO: checking for art_new in -lart_lgpl_2" >&5
9829 echo $ECHO_N "checking for art_new in -lart_lgpl_2... $ECHO_C" >&6; }
9830 if test "${ac_cv_lib_art_lgpl_2_art_new+set}" = set; then
9831   echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9833   ac_check_lib_save_LIBS=$LIBS
9834 LIBS="-lart_lgpl_2  $LIBS"
9835 cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h.  */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h.  */
9841
9842 /* Override any GCC internal prototype to avoid an error.
9843    Use char because int might match the return type of a GCC
9844    builtin and then its argument prototype would still apply.  */
9845 #ifdef __cplusplus
9846 extern "C"
9847 #endif
9848 char art_new ();
9849 int
9850 main ()
9851 {
9852 return art_new ();
9853   ;
9854   return 0;
9855 }
9856 _ACEOF
9857 rm -f conftest.$ac_objext conftest$ac_exeext
9858 if { (ac_try="$ac_link"
9859 case "(($ac_try" in
9860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861   *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864   (eval "$ac_link") 2>conftest.er1
9865   ac_status=$?
9866   grep -v '^ *+' conftest.er1 >conftest.err
9867   rm -f conftest.er1
9868   cat conftest.err >&5
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); } && {
9871          test -z "$ac_c_werror_flag" ||
9872          test ! -s conftest.err
9873        } && test -s conftest$ac_exeext &&
9874        $as_test_x conftest$ac_exeext; then
9875   ac_cv_lib_art_lgpl_2_art_new=yes
9876 else
9877   echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880         ac_cv_lib_art_lgpl_2_art_new=no
9881 fi
9882
9883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9884       conftest$ac_exeext conftest.$ac_ext
9885 LIBS=$ac_check_lib_save_LIBS
9886 fi
9887 { echo "$as_me:$LINENO: result: $ac_cv_lib_art_lgpl_2_art_new" >&5
9888 echo "${ECHO_T}$ac_cv_lib_art_lgpl_2_art_new" >&6; }
9889 if test $ac_cv_lib_art_lgpl_2_art_new = yes; then
9890   cat >>confdefs.h <<_ACEOF
9891 #define HAVE_LIBART_LGPL_2 1
9892 _ACEOF
9893
9894   LIBS="-lart_lgpl_2 $LIBS"
9895
9896 fi
9897
9898
9899 else
9900   { { echo "$as_me:$LINENO: error: No libart library found. This library is required." >&5
9901 echo "$as_me: error: No libart library found. This library is required." >&2;}
9902    { (exit 1); exit 1; }; }
9903 fi
9904
9905 done
9906
9907     else
9908         CPPFLAGS="$CPPFLAGS $LIBART_CFLAGS"
9909         cat >>confdefs.h <<\_ACEOF
9910 #define INTERNAL_LIBART 0
9911 _ACEOF
9912
9913         LIBS="$LIBS $LIBART_LIBS"
9914     fi
9915 fi
9916
9917
9918 xpdf_in_source='$(xpdf_objects)'
9919 splash_in_source='$(splash_objects)'
9920
9921 if test "x$USE_POPPLER" = "xtrue"; then
9922     xpdf_in_source=
9923     splash_in_source=
9924
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_POPPLER 1
9927 _ACEOF
9928
9929
9930 pkg_failed=no
9931 { echo "$as_me:$LINENO: checking for POPPLER" >&5
9932 echo $ECHO_N "checking for POPPLER... $ECHO_C" >&6; }
9933
9934 if test -n "$PKG_CONFIG"; then
9935     if test -n "$POPPLER_CFLAGS"; then
9936         pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
9937     else
9938         if test -n "$PKG_CONFIG" && \
9939     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler poppler-splash\"") >&5
9940   ($PKG_CONFIG --exists --print-errors "poppler poppler-splash") 2>&5
9941   ac_status=$?
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); }; then
9944   pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler poppler-splash" 2>/dev/null`
9945 else
9946   pkg_failed=yes
9947 fi
9948     fi
9949 else
9950         pkg_failed=untried
9951 fi
9952 if test -n "$PKG_CONFIG"; then
9953     if test -n "$POPPLER_LIBS"; then
9954         pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
9955     else
9956         if test -n "$PKG_CONFIG" && \
9957     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler poppler-splash\"") >&5
9958   ($PKG_CONFIG --exists --print-errors "poppler poppler-splash") 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; then
9962   pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler poppler-splash" 2>/dev/null`
9963 else
9964   pkg_failed=yes
9965 fi
9966     fi
9967 else
9968         pkg_failed=untried
9969 fi
9970
9971
9972
9973 if test $pkg_failed = yes; then
9974
9975 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9976         _pkg_short_errors_supported=yes
9977 else
9978         _pkg_short_errors_supported=no
9979 fi
9980         if test $_pkg_short_errors_supported = yes; then
9981                 POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "poppler poppler-splash"`
9982         else
9983                 POPPLER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "poppler poppler-splash"`
9984         fi
9985         # Put the nasty error message in config.log where it belongs
9986         echo "$POPPLER_PKG_ERRORS" >&5
9987
9988         { echo "$as_me:$LINENO: result: no" >&5
9989 echo "${ECHO_T}no" >&6; }
9990                 poppler_pkgconfig=no
9991 elif test $pkg_failed = untried; then
9992         poppler_pkgconfig=no
9993 else
9994         POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
9995         POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
9996         { echo "$as_me:$LINENO: result: yes" >&5
9997 echo "${ECHO_T}yes" >&6; }
9998         :
9999 fi
10000     if test "x$poppler_pkgconfig" = "xno"; then
10001         ac_ext=cpp
10002 ac_cpp='$CXXCPP $CPPFLAGS'
10003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10006
10007
10008 ac_ext=cpp
10009 ac_cpp='$CXXCPP $CPPFLAGS'
10010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10013 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10014 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10015 if test -z "$CXXCPP"; then
10016   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019       # Double quotes because CXXCPP needs to be expanded
10020     for CXXCPP in "$CXX -E" "/lib/cpp"
10021     do
10022       ac_preproc_ok=false
10023 for ac_cxx_preproc_warn_flag in '' yes
10024 do
10025   # Use a header file that comes with gcc, so configuring glibc
10026   # with a fresh cross-compiler works.
10027   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10028   # <limits.h> exists even on freestanding compilers.
10029   # On the NeXT, cc -E runs the code through the compiler's parser,
10030   # not just through cpp. "Syntax error" is here to catch this case.
10031   cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h.  */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h.  */
10037 #ifdef __STDC__
10038 # include <limits.h>
10039 #else
10040 # include <assert.h>
10041 #endif
10042                      Syntax error
10043 _ACEOF
10044 if { (ac_try="$ac_cpp conftest.$ac_ext"
10045 case "(($ac_try" in
10046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047   *) ac_try_echo=$ac_try;;
10048 esac
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10051   ac_status=$?
10052   grep -v '^ *+' conftest.er1 >conftest.err
10053   rm -f conftest.er1
10054   cat conftest.err >&5
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); } >/dev/null && {
10057          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10058          test ! -s conftest.err
10059        }; then
10060   :
10061 else
10062   echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065   # Broken: fails on valid input.
10066 continue
10067 fi
10068
10069 rm -f conftest.err conftest.$ac_ext
10070
10071   # OK, works on sane cases.  Now check whether nonexistent headers
10072   # can be detected and how.
10073   cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h.  */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h.  */
10079 #include <ac_nonexistent.h>
10080 _ACEOF
10081 if { (ac_try="$ac_cpp conftest.$ac_ext"
10082 case "(($ac_try" in
10083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084   *) ac_try_echo=$ac_try;;
10085 esac
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10088   ac_status=$?
10089   grep -v '^ *+' conftest.er1 >conftest.err
10090   rm -f conftest.er1
10091   cat conftest.err >&5
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); } >/dev/null && {
10094          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10095          test ! -s conftest.err
10096        }; then
10097   # Broken: success on invalid input.
10098 continue
10099 else
10100   echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10102
10103   # Passes both tests.
10104 ac_preproc_ok=:
10105 break
10106 fi
10107
10108 rm -f conftest.err conftest.$ac_ext
10109
10110 done
10111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10112 rm -f conftest.err conftest.$ac_ext
10113 if $ac_preproc_ok; then
10114   break
10115 fi
10116
10117     done
10118     ac_cv_prog_CXXCPP=$CXXCPP
10119
10120 fi
10121   CXXCPP=$ac_cv_prog_CXXCPP
10122 else
10123   ac_cv_prog_CXXCPP=$CXXCPP
10124 fi
10125 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
10126 echo "${ECHO_T}$CXXCPP" >&6; }
10127 ac_preproc_ok=false
10128 for ac_cxx_preproc_warn_flag in '' yes
10129 do
10130   # Use a header file that comes with gcc, so configuring glibc
10131   # with a fresh cross-compiler works.
10132   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10133   # <limits.h> exists even on freestanding compilers.
10134   # On the NeXT, cc -E runs the code through the compiler's parser,
10135   # not just through cpp. "Syntax error" is here to catch this case.
10136   cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h.  */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h.  */
10142 #ifdef __STDC__
10143 # include <limits.h>
10144 #else
10145 # include <assert.h>
10146 #endif
10147                      Syntax error
10148 _ACEOF
10149 if { (ac_try="$ac_cpp conftest.$ac_ext"
10150 case "(($ac_try" in
10151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152   *) ac_try_echo=$ac_try;;
10153 esac
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10156   ac_status=$?
10157   grep -v '^ *+' conftest.er1 >conftest.err
10158   rm -f conftest.er1
10159   cat conftest.err >&5
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); } >/dev/null && {
10162          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10163          test ! -s conftest.err
10164        }; then
10165   :
10166 else
10167   echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170   # Broken: fails on valid input.
10171 continue
10172 fi
10173
10174 rm -f conftest.err conftest.$ac_ext
10175
10176   # OK, works on sane cases.  Now check whether nonexistent headers
10177   # can be detected and how.
10178   cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h.  */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h.  */
10184 #include <ac_nonexistent.h>
10185 _ACEOF
10186 if { (ac_try="$ac_cpp conftest.$ac_ext"
10187 case "(($ac_try" in
10188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189   *) ac_try_echo=$ac_try;;
10190 esac
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10193   ac_status=$?
10194   grep -v '^ *+' conftest.er1 >conftest.err
10195   rm -f conftest.er1
10196   cat conftest.err >&5
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); } >/dev/null && {
10199          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10200          test ! -s conftest.err
10201        }; then
10202   # Broken: success on invalid input.
10203 continue
10204 else
10205   echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10207
10208   # Passes both tests.
10209 ac_preproc_ok=:
10210 break
10211 fi
10212
10213 rm -f conftest.err conftest.$ac_ext
10214
10215 done
10216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10217 rm -f conftest.err conftest.$ac_ext
10218 if $ac_preproc_ok; then
10219   :
10220 else
10221   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10222 See \`config.log' for more details." >&5
10223 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10224 See \`config.log' for more details." >&2;}
10225    { (exit 1); exit 1; }; }
10226 fi
10227
10228 ac_ext=cpp
10229 ac_cpp='$CXXCPP $CPPFLAGS'
10230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10233
10234
10235
10236 for ac_header in OutputDev.h
10237 do
10238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10240   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10243   echo $ECHO_N "(cached) $ECHO_C" >&6
10244 fi
10245 ac_res=`eval echo '${'$as_ac_Header'}'`
10246                { echo "$as_me:$LINENO: result: $ac_res" >&5
10247 echo "${ECHO_T}$ac_res" >&6; }
10248 else
10249   # Is the header compilable?
10250 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10251 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10252 cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h.  */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h.  */
10258 $ac_includes_default
10259 #include <$ac_header>
10260 _ACEOF
10261 rm -f conftest.$ac_objext
10262 if { (ac_try="$ac_compile"
10263 case "(($ac_try" in
10264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265   *) ac_try_echo=$ac_try;;
10266 esac
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268   (eval "$ac_compile") 2>conftest.er1
10269   ac_status=$?
10270   grep -v '^ *+' conftest.er1 >conftest.err
10271   rm -f conftest.er1
10272   cat conftest.err >&5
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); } && {
10275          test -z "$ac_cxx_werror_flag" ||
10276          test ! -s conftest.err
10277        } && test -s conftest.$ac_objext; then
10278   ac_header_compiler=yes
10279 else
10280   echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10282
10283         ac_header_compiler=no
10284 fi
10285
10286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10288 echo "${ECHO_T}$ac_header_compiler" >&6; }
10289
10290 # Is the header present?
10291 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10293 cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h.  */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h.  */
10299 #include <$ac_header>
10300 _ACEOF
10301 if { (ac_try="$ac_cpp conftest.$ac_ext"
10302 case "(($ac_try" in
10303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304   *) ac_try_echo=$ac_try;;
10305 esac
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10308   ac_status=$?
10309   grep -v '^ *+' conftest.er1 >conftest.err
10310   rm -f conftest.er1
10311   cat conftest.err >&5
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); } >/dev/null && {
10314          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10315          test ! -s conftest.err
10316        }; then
10317   ac_header_preproc=yes
10318 else
10319   echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322   ac_header_preproc=no
10323 fi
10324
10325 rm -f conftest.err conftest.$ac_ext
10326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10327 echo "${ECHO_T}$ac_header_preproc" >&6; }
10328
10329 # So?  What about this header?
10330 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10331   yes:no: )
10332     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10336     ac_header_preproc=yes
10337     ;;
10338   no:yes:* )
10339     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10341     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10342 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10343     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10345     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10346 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10349     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10351
10352     ;;
10353 esac
10354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10357   echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359   eval "$as_ac_Header=\$ac_header_preproc"
10360 fi
10361 ac_res=`eval echo '${'$as_ac_Header'}'`
10362                { echo "$as_me:$LINENO: result: $ac_res" >&5
10363 echo "${ECHO_T}$ac_res" >&6; }
10364
10365 fi
10366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10367   cat >>confdefs.h <<_ACEOF
10368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10369 _ACEOF
10370
10371
10372 { echo "$as_me:$LINENO: checking for main in -lpoppler" >&5
10373 echo $ECHO_N "checking for main in -lpoppler... $ECHO_C" >&6; }
10374 if test "${ac_cv_lib_poppler_main+set}" = set; then
10375   echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377   ac_check_lib_save_LIBS=$LIBS
10378 LIBS="-lpoppler  $LIBS"
10379 cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h.  */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h.  */
10385
10386
10387 int
10388 main ()
10389 {
10390 return main ();
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399   *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402   (eval "$ac_link") 2>conftest.er1
10403   ac_status=$?
10404   grep -v '^ *+' conftest.er1 >conftest.err
10405   rm -f conftest.er1
10406   cat conftest.err >&5
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); } && {
10409          test -z "$ac_cxx_werror_flag" ||
10410          test ! -s conftest.err
10411        } && test -s conftest$ac_exeext &&
10412        $as_test_x conftest$ac_exeext; then
10413   ac_cv_lib_poppler_main=yes
10414 else
10415   echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418         ac_cv_lib_poppler_main=no
10419 fi
10420
10421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10422       conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10424 fi
10425 { echo "$as_me:$LINENO: result: $ac_cv_lib_poppler_main" >&5
10426 echo "${ECHO_T}$ac_cv_lib_poppler_main" >&6; }
10427 if test $ac_cv_lib_poppler_main = yes; then
10428   cat >>confdefs.h <<_ACEOF
10429 #define HAVE_LIBPOPPLER 1
10430 _ACEOF
10431
10432   LIBS="-lpoppler $LIBS"
10433
10434 fi
10435
10436
10437 else
10438   { { echo "$as_me:$LINENO: error: No poppler library found. This library is required." >&5
10439 echo "$as_me: error: No poppler library found. This library is required." >&2;}
10440    { (exit 1); exit 1; }; }
10441 fi
10442
10443 done
10444
10445         ac_ext=c
10446 ac_cpp='$CPP $CPPFLAGS'
10447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10450
10451     else
10452         CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
10453         cat >>confdefs.h <<\_ACEOF
10454 #define HAVE_POPPLER 1
10455 _ACEOF
10456
10457         LIBS="$LIBS $POPPLER_LIBS"
10458     fi
10459 fi
10460
10461
10462
10463 # ------------------------------------------------------------------
10464
10465
10466
10467 for ac_prog in avifile-config
10468 do
10469   # Extract the first word of "$ac_prog", so it can be a program name with args.
10470 set dummy $ac_prog; ac_word=$2
10471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10473 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10474   echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476   if test -n "$AVIFILE_CONFIG"; then
10477   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10478 else
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480 for as_dir in $PATH
10481 do
10482   IFS=$as_save_IFS
10483   test -z "$as_dir" && as_dir=.
10484   for ac_exec_ext in '' $ac_executable_extensions; do
10485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10486     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10488     break 2
10489   fi
10490 done
10491 done
10492 IFS=$as_save_IFS
10493
10494 fi
10495 fi
10496 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10497 if test -n "$AVIFILE_CONFIG"; then
10498   { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10499 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
10500 else
10501   { echo "$as_me:$LINENO: result: no" >&5
10502 echo "${ECHO_T}no" >&6; }
10503 fi
10504
10505
10506   test -n "$AVIFILE_CONFIG" && break
10507 done
10508
10509
10510 if test "x$AVIFILE_CONFIG" '!=' "x";then
10511     OLDCPPFLAGS="$CPPFLAGS"
10512     # temporarily add avifile paths to CPPFLAGS...
10513     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10514
10515
10516 for ac_header in avifile/version.h version.h
10517 do
10518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10520   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10523   echo $ECHO_N "(cached) $ECHO_C" >&6
10524 fi
10525 ac_res=`eval echo '${'$as_ac_Header'}'`
10526                { echo "$as_me:$LINENO: result: $ac_res" >&5
10527 echo "${ECHO_T}$ac_res" >&6; }
10528 else
10529   # Is the header compilable?
10530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h.  */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h.  */
10538 $ac_includes_default
10539 #include <$ac_header>
10540 _ACEOF
10541 rm -f conftest.$ac_objext
10542 if { (ac_try="$ac_compile"
10543 case "(($ac_try" in
10544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545   *) ac_try_echo=$ac_try;;
10546 esac
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548   (eval "$ac_compile") 2>conftest.er1
10549   ac_status=$?
10550   grep -v '^ *+' conftest.er1 >conftest.err
10551   rm -f conftest.er1
10552   cat conftest.err >&5
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); } && {
10555          test -z "$ac_c_werror_flag" ||
10556          test ! -s conftest.err
10557        } && test -s conftest.$ac_objext; then
10558   ac_header_compiler=yes
10559 else
10560   echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10562
10563         ac_header_compiler=no
10564 fi
10565
10566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10568 echo "${ECHO_T}$ac_header_compiler" >&6; }
10569
10570 # Is the header present?
10571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10573 cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h.  */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h.  */
10579 #include <$ac_header>
10580 _ACEOF
10581 if { (ac_try="$ac_cpp conftest.$ac_ext"
10582 case "(($ac_try" in
10583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584   *) ac_try_echo=$ac_try;;
10585 esac
10586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10588   ac_status=$?
10589   grep -v '^ *+' conftest.er1 >conftest.err
10590   rm -f conftest.er1
10591   cat conftest.err >&5
10592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593   (exit $ac_status); } >/dev/null && {
10594          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10595          test ! -s conftest.err
10596        }; then
10597   ac_header_preproc=yes
10598 else
10599   echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602   ac_header_preproc=no
10603 fi
10604
10605 rm -f conftest.err conftest.$ac_ext
10606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10607 echo "${ECHO_T}$ac_header_preproc" >&6; }
10608
10609 # So?  What about this header?
10610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10611   yes:no: )
10612     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10616     ac_header_preproc=yes
10617     ;;
10618   no:yes:* )
10619     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10621     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10622 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10623     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10625     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10626 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10629     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10631
10632     ;;
10633 esac
10634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10637   echo $ECHO_N "(cached) $ECHO_C" >&6
10638 else
10639   eval "$as_ac_Header=\$ac_header_preproc"
10640 fi
10641 ac_res=`eval echo '${'$as_ac_Header'}'`
10642                { echo "$as_me:$LINENO: result: $ac_res" >&5
10643 echo "${ECHO_T}$ac_res" >&6; }
10644
10645 fi
10646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10647   cat >>confdefs.h <<_ACEOF
10648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10649 _ACEOF
10650
10651 fi
10652
10653 done
10654
10655     # ... and reset
10656     CPPFLAGS="$OLDCPPFLAGS"
10657 fi
10658
10659 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10660 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
10661
10662 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10663     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10664 fi
10665 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10666     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10667 fi
10668
10669 cat > conftest.cpp << EOF
10670
10671 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10672 // so we have to introduce them this way
10673 $HAVE_VERSION_H_DEFINE
10674 $HAVE_AVIFILE_VERSION_H_DEFINE
10675
10676 #ifdef HAVE_VERSION_H
10677   #include <version.h>
10678 #endif
10679 #ifdef HAVE_AVIFILE_VERSION_H
10680   #include <avifile/version.h>
10681 #endif
10682
10683 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10684    #include <avifile.h>
10685    #include <aviplay.h>
10686    #include <avm_fourcc.h>
10687    #include <avm_creators.h>
10688    #include <StreamInfo.h>
10689    #define VERSION6
10690 #else
10691    #include <avifile.h>
10692    #include <aviplay.h>
10693    #include <aviutil.h>
10694    #define Width width
10695    #define Height height
10696    #define Data data
10697    #define Bpp bpp
10698 #endif
10699
10700 void test()
10701 {
10702   IAviReadFile* player;
10703   IAviReadStream* astream;
10704   IAviReadStream* vstream;
10705   player = CreateIAviReadFile(0);
10706   astream = player->GetStream(0, AviStream::Audio);
10707   vstream = player->GetStream(0, AviStream::Video);
10708   vstream -> StartStreaming();
10709   astream -> StartStreaming();
10710 #ifndef VERSION6
10711   MainAVIHeader head;
10712   player->GetFileHeader(&head);
10713   head.dwMicroSecPerFrame;
10714   head.dwTotalFrames;
10715   head.dwStreams;
10716   head.dwWidth;
10717   head.dwHeight;
10718   head.dwMicroSecPerFrame;
10719   astream->GetEndPos(),
10720   astream->GetEndTime());
10721   player->StreamCount();
10722 #else
10723   StreamInfo*audioinfo;
10724   StreamInfo*videoinfo;
10725   audioinfo = astream->GetStreamInfo();
10726   videoinfo = vstream->GetStreamInfo();
10727   videoinfo->GetVideoWidth();
10728   videoinfo->GetVideoHeight();
10729   audioinfo->GetAudioSamplesPerSec();
10730   videoinfo->GetFps();
10731 #endif
10732   CImage*img = vstream->GetFrame();
10733   img->ToRGB();
10734   img->Data();
10735   img->Bpp();
10736   img->Width();
10737   img->Height();
10738   WAVEFORMATEX wave;
10739   astream->GetAudioFormatInfo(&wave,0);
10740   uint_t a,b;
10741   astream->ReadFrames(0,0,0,a,b);
10742 }
10743 int main (int argc, char*argv)
10744 {
10745     return 0;
10746 }
10747 EOF
10748
10749 if test "x$AVIFILE_CONFIG" '!=' "x";then
10750     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
10751     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
10752     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
10753     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
10754       { echo "$as_me:$LINENO: result: yes" >&5
10755 echo "${ECHO_T}yes" >&6; }
10756       AVIFILE=true
10757       export AVIFILE
10758
10759 cat >>confdefs.h <<\_ACEOF
10760 #define AVIFILE true
10761 _ACEOF
10762
10763     else
10764       echo "configure: failed program was:" >&5
10765       cat conftest.cpp >&5
10766       { echo "$as_me:$LINENO: result: no" >&5
10767 echo "${ECHO_T}no" >&6; }
10768     fi
10769 else
10770     { echo "$as_me:$LINENO: result: no" >&5
10771 echo "${ECHO_T}no" >&6; }
10772 fi
10773 rm -f conftest*
10774
10775 if test "x${AVIFILE}" = "xtrue"; then
10776     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
10777     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
10778
10779 cat >>confdefs.h <<\_ACEOF
10780 #define HAVE_AVIFILE 1
10781 _ACEOF
10782
10783 fi
10784
10785 if test "x${WIN32}" != "x"; then
10786     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
10787     #if test "x${AVIFIL32}" != "x"; then
10788     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
10789     #fi
10790     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
10791     AVIFIL32=true
10792 fi
10793
10794
10795
10796 # ------------------------------------------------------------------
10797
10798 if test "x${UNCOMPRESS}" = "xgzip"; then
10799
10800 cat >>confdefs.h <<\_ACEOF
10801 #define USE_GZIP 1
10802 _ACEOF
10803
10804 fi
10805
10806
10807 # ------------------------------------------------------------------
10808
10809
10810 { echo "$as_me:$LINENO: checking for Python.h" >&5
10811 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
10812
10813 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
10814     PY_VERSION=unknown
10815 else
10816     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
10817         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
10818     fi
10819     # iterate through version 2.2 to 2.5
10820     for v in 2 3 4 5; do
10821         # Linux
10822         if test -f "/usr/include/python2.$v/Python.h";then
10823             PY_VERSION=2.$v
10824             PYTHON_LIB="-lpython$PY_VERSION"
10825             if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
10826                 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
10827                 HAVE_PYTHON_IMAGING_LIB=1
10828             else
10829                 PYTHON_LIB2="$PYTHON_LIB"
10830             fi
10831             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
10832         # Mac OS X
10833         elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
10834             #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
10835             PY_VERSION=2.$v
10836             PYTHON_LIB="-framework Python"
10837             if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
10838                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
10839                 HAVE_PYTHON_IMAGING_LIB=1
10840             else
10841                 PYTHON_LIB2="$PYTHON_LIB"
10842             fi
10843             PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
10844         # Mac OS X [Fink]:
10845         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
10846                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
10847                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
10848                   ")" \
10849                -a -f "/sw/include/python2.$v/Python.h"; then
10850             PY_VERSION=2.$v
10851             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10852             if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
10853                 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10854                 HAVE_PYTHON_IMAGING_LIB=1
10855             else
10856                 PYTHON_LIB2="$PYTHON_LIB"
10857             fi
10858             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
10859         fi
10860     done
10861 fi
10862
10863 if test "x$PY_VERSION" "!=" "x"; then
10864     { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
10865 echo "${ECHO_T}$PY_VERSION" >&6; }
10866     export PYTHON_INCLUDES PYTHON_LIB
10867
10868
10869     { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
10870 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
10871
10872     cat > conftest.c << EOF
10873 #include <Python.h>
10874
10875 int main()
10876 {
10877     int ret;
10878     ret = Py_Main(0, 0);
10879     int x; // check also for gcc 2.95.x incompatibilities
10880     return ret;
10881 }
10882 EOF
10883
10884     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
10885     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10886         { echo "$as_me:$LINENO: result: yes" >&5
10887 echo "${ECHO_T}yes" >&6; }
10888         PYTHON_OK=yes
10889     else
10890         echo "configure: failed program was:" >&5
10891         cat conftest.c >&5
10892         { echo "$as_me:$LINENO: result: no" >&5
10893 echo "${ECHO_T}no" >&6; }
10894     fi
10895     rm -f conftest*
10896     if test "x$PYTHON_OK" = "xyes";then
10897         { echo "$as_me:$LINENO: checking for Python-Imaging" >&5
10898 echo $ECHO_N "checking for Python-Imaging... $ECHO_C" >&6; }
10899     cat > conftest.c << EOF
10900 #include <Python.h>
10901 #include <Imaging.h>
10902
10903 int main()
10904 {
10905     Py_Main(0, 0);
10906     return 0;
10907 }
10908 EOF
10909         if test "$HAVE_PYTHON_IMAGING_LIB"; then
10910             ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
10911             if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10912                 PYTHON_LIB="${PYTHON_LIB2}"
10913
10914 cat >>confdefs.h <<\_ACEOF
10915 #define HAVE_PYTHON_IMAGING 1
10916 _ACEOF
10917
10918                 HAVE_PYTHON_IMAGING=yes
10919                 export HAVE_PYTHON_IMAGING
10920
10921                 { echo "$as_me:$LINENO: result: yes" >&5
10922 echo "${ECHO_T}yes" >&6; }
10923             else
10924                 echo "configure: failed program was:" >&5
10925                 cat conftest.c >&5
10926                 { echo "$as_me:$LINENO: result: no" >&5
10927 echo "${ECHO_T}no" >&6; }
10928             fi
10929         else
10930             echo "(didn't find the Python-Imaging libraries)" >&5
10931             { echo "$as_me:$LINENO: result: no" >&5
10932 echo "${ECHO_T}no" >&6; }
10933         fi
10934     fi
10935     rm -f conftest*
10936 else
10937     { echo "$as_me:$LINENO: result: nope" >&5
10938 echo "${ECHO_T}nope" >&6; }
10939 fi
10940
10941
10942 if test "x$PYTHON_OK" '!=' "xyes";then
10943     echo all install uninstall clean: > lib/python/Makefile
10944     # fail silently- the most users won't have any need for the
10945     # python interface anyway
10946 else
10947     pythonrfxswf="lib/python/Makefile"
10948 fi
10949
10950 # ------------------------------------------------------------------
10951
10952 { echo "$as_me:$LINENO: checking for missing libraries" >&5
10953 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
10954
10955 if test "x$ZLIBMISSING" = "xtrue";then
10956     MISSINGLIBS="${MISSINGLIBS} zlib"
10957     DISABLEPNG2SWF=true
10958     PARTIAL=true
10959 fi
10960 if test "x$JPEGLIBMISSING" = "xtrue";then
10961     MISSINGLIBS="${MISSINGLIBS} jpeglib"
10962     DISABLEPDF2SWF=true
10963     DISABLEJPEG2SWF=true
10964     PARTIAL=true
10965 fi
10966 #if test "x$T1LIBMISSING" = "xtrue";then
10967 #    MISSINGLIBS="${MISSINGLIBS} t1lib"
10968 #fi
10969 if test "x$UNGIFMISSING" = "xtrue";then
10970     DISABLEGIF2SWF=true
10971     MISSINGLIBS="${MISSINGLIBS} ungif"
10972     PARTIAL=true
10973 fi
10974
10975 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
10976     DISABLEPDF2SWF=true;
10977     DISABLEJPEG2SWF=true;
10978     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10979     PARTIAL=true
10980 fi
10981 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10982     DISABLEPDF2SWF=true;
10983     MISSINGLIBS="${MISSINGLIBS} freetype"
10984     PARTIAL=true
10985 fi
10986 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10987 #    MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10988 #fi
10989 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10990     DISABLEGIF2SWF=true
10991     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10992     PARTIAL=true
10993 fi
10994 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10995     DISABLEPNG2SWF=true;
10996     MISSINGLIBS="${MISSINGLIBS} zlib.h"
10997     PARTIAL=true
10998 fi
10999 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11000 #    MISSINGLIBS="${MISSINGLIBS} avifile"
11001 #fi
11002
11003 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11004 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
11005
11006 # ------------------------------------------------------------------
11007
11008 if test "x${MISSINGLIBS}" '!=' "x"; then
11009   echo "***************************************************"
11010   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11011 fi
11012
11013 avi2swf="avi2swf/Makefile"
11014 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11015  #don't whine, avi2swf is outdated anyway
11016  #echo "* Disabling avi2swf tool..."
11017  echo all install uninstall clean: > avi2swf/Makefile
11018  avi2swf=
11019 fi
11020
11021 pdf2swf_makefile="lib/pdf/Makefile"
11022 PDF2SWF='pdf2swf$(E)'
11023 LIBPDF='libpdf$(A)'
11024
11025 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11026   echo "* Disabling pdf2swf tool..."
11027   rm -f lib/pdf/Makefile
11028   echo all install uninstall clean libpdf: > lib/pdf/Makefile
11029   pdf2swf_makefile=""
11030   PDF2SWF=
11031   LIBPDF=
11032 fi
11033
11034
11035
11036 if test "x${ZLIBMISSING}" = "xtrue"; then
11037   echo
11038   echo "* Warning! Without zlib, you will not be able to read"
11039   echo "* or write compressed Flash MX files!"
11040 fi
11041
11042 JPEG2SWF='jpeg2swf$(E)'
11043 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11044   echo "* Disabling jpeg2swf tool..."
11045   JPEG2SWF=
11046 fi
11047 export JPEG2SWF
11048
11049
11050 GIF2SWF='gif2swf$(E)'
11051 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
11052   echo "* Disabling gif2swf tool..."
11053   GIF2SWF=
11054 fi
11055 export GIF2SWF
11056
11057
11058 PNG2SWF='png2swf$(E)'
11059 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11060   echo "* Disabling png2swf tool..."
11061   PNG2SWF=
11062 fi
11063 export PNG2SWF
11064
11065
11066 if test "x${MISSINGLIBS}" '!=' "x"; then
11067   if test "x${PARTIAL}" '=' "x"; then
11068     echo "* (never mind)"
11069   fi
11070   echo "***************************************************"
11071 fi
11072
11073 # ------------------------------------------------------------------
11074
11075
11076
11077
11078
11079
11080
11081
11082 if test -f "release.in"; then release_in="./release"; fi
11083 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/readers/Makefile"
11084 ac_config_files="$ac_config_files ${FILES}"
11085
11086 cat >confcache <<\_ACEOF
11087 # This file is a shell script that caches the results of configure
11088 # tests run on this system so they can be shared between configure
11089 # scripts and configure runs, see configure's option --config-cache.
11090 # It is not useful on other systems.  If it contains results you don't
11091 # want to keep, you may remove or edit it.
11092 #
11093 # config.status only pays attention to the cache file if you give it
11094 # the --recheck option to rerun configure.
11095 #
11096 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11097 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11098 # following values.
11099
11100 _ACEOF
11101
11102 # The following way of writing the cache mishandles newlines in values,
11103 # but we know of no workaround that is simple, portable, and efficient.
11104 # So, we kill variables containing newlines.
11105 # Ultrix sh set writes to stderr and can't be redirected directly,
11106 # and sets the high bit in the cache file unless we assign to the vars.
11107 (
11108   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11109     eval ac_val=\$$ac_var
11110     case $ac_val in #(
11111     *${as_nl}*)
11112       case $ac_var in #(
11113       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11114 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11115       esac
11116       case $ac_var in #(
11117       _ | IFS | as_nl) ;; #(
11118       *) $as_unset $ac_var ;;
11119       esac ;;
11120     esac
11121   done
11122
11123   (set) 2>&1 |
11124     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11125     *${as_nl}ac_space=\ *)
11126       # `set' does not quote correctly, so add quotes (double-quote
11127       # substitution turns \\\\ into \\, and sed turns \\ into \).
11128       sed -n \
11129         "s/'/'\\\\''/g;
11130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11131       ;; #(
11132     *)
11133       # `set' quotes correctly as required by POSIX, so do not add quotes.
11134       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11135       ;;
11136     esac |
11137     sort
11138 ) |
11139   sed '
11140      /^ac_cv_env_/b end
11141      t clear
11142      :clear
11143      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11144      t end
11145      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11146      :end' >>confcache
11147 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11148   if test -w "$cache_file"; then
11149     test "x$cache_file" != "x/dev/null" &&
11150       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11151 echo "$as_me: updating cache $cache_file" >&6;}
11152     cat confcache >$cache_file
11153   else
11154     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11155 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11156   fi
11157 fi
11158 rm -f confcache
11159
11160 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11161 # Let make expand exec_prefix.
11162 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11163
11164 DEFS=-DHAVE_CONFIG_H
11165
11166 ac_libobjs=
11167 ac_ltlibobjs=
11168 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11169   # 1. Remove the extension, and $U if already installed.
11170   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11171   ac_i=`echo "$ac_i" | sed "$ac_script"`
11172   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11173   #    will be set to the directory where LIBOBJS objects are built.
11174   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11175   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11176 done
11177 LIBOBJS=$ac_libobjs
11178
11179 LTLIBOBJS=$ac_ltlibobjs
11180
11181
11182
11183 : ${CONFIG_STATUS=./config.status}
11184 ac_clean_files_save=$ac_clean_files
11185 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11186 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11187 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11188 cat >$CONFIG_STATUS <<_ACEOF
11189 #! $SHELL
11190 # Generated by $as_me.
11191 # Run this file to recreate the current configuration.
11192 # Compiler output produced by configure, useful for debugging
11193 # configure, is in config.log if it exists.
11194
11195 debug=false
11196 ac_cs_recheck=false
11197 ac_cs_silent=false
11198 SHELL=\${CONFIG_SHELL-$SHELL}
11199 _ACEOF
11200
11201 cat >>$CONFIG_STATUS <<\_ACEOF
11202 ## --------------------- ##
11203 ## M4sh Initialization.  ##
11204 ## --------------------- ##
11205
11206 # Be more Bourne compatible
11207 DUALCASE=1; export DUALCASE # for MKS sh
11208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11209   emulate sh
11210   NULLCMD=:
11211   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11212   # is contrary to our usage.  Disable this feature.
11213   alias -g '${1+"$@"}'='"$@"'
11214   setopt NO_GLOB_SUBST
11215 else
11216   case `(set -o) 2>/dev/null` in
11217   *posix*) set -o posix ;;
11218 esac
11219
11220 fi
11221
11222
11223
11224
11225 # PATH needs CR
11226 # Avoid depending upon Character Ranges.
11227 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11228 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11229 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11230 as_cr_digits='0123456789'
11231 as_cr_alnum=$as_cr_Letters$as_cr_digits
11232
11233 # The user is always right.
11234 if test "${PATH_SEPARATOR+set}" != set; then
11235   echo "#! /bin/sh" >conf$$.sh
11236   echo  "exit 0"   >>conf$$.sh
11237   chmod +x conf$$.sh
11238   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11239     PATH_SEPARATOR=';'
11240   else
11241     PATH_SEPARATOR=:
11242   fi
11243   rm -f conf$$.sh
11244 fi
11245
11246 # Support unset when possible.
11247 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11248   as_unset=unset
11249 else
11250   as_unset=false
11251 fi
11252
11253
11254 # IFS
11255 # We need space, tab and new line, in precisely that order.  Quoting is
11256 # there to prevent editors from complaining about space-tab.
11257 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11258 # splitting by setting IFS to empty value.)
11259 as_nl='
11260 '
11261 IFS=" ""        $as_nl"
11262
11263 # Find who we are.  Look in the path if we contain no directory separator.
11264 case $0 in
11265   *[\\/]* ) as_myself=$0 ;;
11266   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11268 do
11269   IFS=$as_save_IFS
11270   test -z "$as_dir" && as_dir=.
11271   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11272 done
11273 IFS=$as_save_IFS
11274
11275      ;;
11276 esac
11277 # We did not find ourselves, most probably we were run as `sh COMMAND'
11278 # in which case we are not to be found in the path.
11279 if test "x$as_myself" = x; then
11280   as_myself=$0
11281 fi
11282 if test ! -f "$as_myself"; then
11283   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11284   { (exit 1); exit 1; }
11285 fi
11286
11287 # Work around bugs in pre-3.0 UWIN ksh.
11288 for as_var in ENV MAIL MAILPATH
11289 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11290 done
11291 PS1='$ '
11292 PS2='> '
11293 PS4='+ '
11294
11295 # NLS nuisances.
11296 for as_var in \
11297   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11298   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11299   LC_TELEPHONE LC_TIME
11300 do
11301   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11302     eval $as_var=C; export $as_var
11303   else
11304     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11305   fi
11306 done
11307
11308 # Required to use basename.
11309 if expr a : '\(a\)' >/dev/null 2>&1 &&
11310    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11311   as_expr=expr
11312 else
11313   as_expr=false
11314 fi
11315
11316 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11317   as_basename=basename
11318 else
11319   as_basename=false
11320 fi
11321
11322
11323 # Name of the executable.
11324 as_me=`$as_basename -- "$0" ||
11325 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11326          X"$0" : 'X\(//\)$' \| \
11327          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11328 echo X/"$0" |
11329     sed '/^.*\/\([^/][^/]*\)\/*$/{
11330             s//\1/
11331             q
11332           }
11333           /^X\/\(\/\/\)$/{
11334             s//\1/
11335             q
11336           }
11337           /^X\/\(\/\).*/{
11338             s//\1/
11339             q
11340           }
11341           s/.*/./; q'`
11342
11343 # CDPATH.
11344 $as_unset CDPATH
11345
11346
11347
11348   as_lineno_1=$LINENO
11349   as_lineno_2=$LINENO
11350   test "x$as_lineno_1" != "x$as_lineno_2" &&
11351   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11352
11353   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11354   # uniformly replaced by the line number.  The first 'sed' inserts a
11355   # line-number line after each line using $LINENO; the second 'sed'
11356   # does the real work.  The second script uses 'N' to pair each
11357   # line-number line with the line containing $LINENO, and appends
11358   # trailing '-' during substitution so that $LINENO is not a special
11359   # case at line end.
11360   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11361   # scripts with optimization help from Paolo Bonzini.  Blame Lee
11362   # E. McMahon (1931-1989) for sed's syntax.  :-)
11363   sed -n '
11364     p
11365     /[$]LINENO/=
11366   ' <$as_myself |
11367     sed '
11368       s/[$]LINENO.*/&-/
11369       t lineno
11370       b
11371       :lineno
11372       N
11373       :loop
11374       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11375       t loop
11376       s/-\n.*//
11377     ' >$as_me.lineno &&
11378   chmod +x "$as_me.lineno" ||
11379     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11380    { (exit 1); exit 1; }; }
11381
11382   # Don't try to exec as it changes $[0], causing all sort of problems
11383   # (the dirname of $[0] is not the place where we might find the
11384   # original and so on.  Autoconf is especially sensitive to this).
11385   . "./$as_me.lineno"
11386   # Exit status is that of the last command.
11387   exit
11388 }
11389
11390
11391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11392   as_dirname=dirname
11393 else
11394   as_dirname=false
11395 fi
11396
11397 ECHO_C= ECHO_N= ECHO_T=
11398 case `echo -n x` in
11399 -n*)
11400   case `echo 'x\c'` in
11401   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11402   *)   ECHO_C='\c';;
11403   esac;;
11404 *)
11405   ECHO_N='-n';;
11406 esac
11407
11408 if expr a : '\(a\)' >/dev/null 2>&1 &&
11409    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11410   as_expr=expr
11411 else
11412   as_expr=false
11413 fi
11414
11415 rm -f conf$$ conf$$.exe conf$$.file
11416 if test -d conf$$.dir; then
11417   rm -f conf$$.dir/conf$$.file
11418 else
11419   rm -f conf$$.dir
11420   mkdir conf$$.dir
11421 fi
11422 echo >conf$$.file
11423 if ln -s conf$$.file conf$$ 2>/dev/null; then
11424   as_ln_s='ln -s'
11425   # ... but there are two gotchas:
11426   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11427   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11428   # In both cases, we have to default to `cp -p'.
11429   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11430     as_ln_s='cp -p'
11431 elif ln conf$$.file conf$$ 2>/dev/null; then
11432   as_ln_s=ln
11433 else
11434   as_ln_s='cp -p'
11435 fi
11436 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11437 rmdir conf$$.dir 2>/dev/null
11438
11439 if mkdir -p . 2>/dev/null; then
11440   as_mkdir_p=:
11441 else
11442   test -d ./-p && rmdir ./-p
11443   as_mkdir_p=false
11444 fi
11445
11446 if test -x / >/dev/null 2>&1; then
11447   as_test_x='test -x'
11448 else
11449   if ls -dL / >/dev/null 2>&1; then
11450     as_ls_L_option=L
11451   else
11452     as_ls_L_option=
11453   fi
11454   as_test_x='
11455     eval sh -c '\''
11456       if test -d "$1"; then
11457         test -d "$1/.";
11458       else
11459         case $1 in
11460         -*)set "./$1";;
11461         esac;
11462         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11463         ???[sx]*):;;*)false;;esac;fi
11464     '\'' sh
11465   '
11466 fi
11467 as_executable_p=$as_test_x
11468
11469 # Sed expression to map a string onto a valid CPP name.
11470 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11471
11472 # Sed expression to map a string onto a valid variable name.
11473 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11474
11475
11476 exec 6>&1
11477
11478 # Save the log message, to keep $[0] and so on meaningful, and to
11479 # report actual input values of CONFIG_FILES etc. instead of their
11480 # values after options handling.
11481 ac_log="
11482 This file was extended by $as_me, which was
11483 generated by GNU Autoconf 2.61.  Invocation command line was
11484
11485   CONFIG_FILES    = $CONFIG_FILES
11486   CONFIG_HEADERS  = $CONFIG_HEADERS
11487   CONFIG_LINKS    = $CONFIG_LINKS
11488   CONFIG_COMMANDS = $CONFIG_COMMANDS
11489   $ $0 $@
11490
11491 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11492 "
11493
11494 _ACEOF
11495
11496 cat >>$CONFIG_STATUS <<_ACEOF
11497 # Files that config.status was made for.
11498 config_files="$ac_config_files"
11499 config_headers="$ac_config_headers"
11500
11501 _ACEOF
11502
11503 cat >>$CONFIG_STATUS <<\_ACEOF
11504 ac_cs_usage="\
11505 \`$as_me' instantiates files from templates according to the
11506 current configuration.
11507
11508 Usage: $0 [OPTIONS] [FILE]...
11509
11510   -h, --help       print this help, then exit
11511   -V, --version    print version number and configuration settings, then exit
11512   -q, --quiet      do not print progress messages
11513   -d, --debug      don't remove temporary files
11514       --recheck    update $as_me by reconfiguring in the same conditions
11515   --file=FILE[:TEMPLATE]
11516                    instantiate the configuration file FILE
11517   --header=FILE[:TEMPLATE]
11518                    instantiate the configuration header FILE
11519
11520 Configuration files:
11521 $config_files
11522
11523 Configuration headers:
11524 $config_headers
11525
11526 Report bugs to <bug-autoconf@gnu.org>."
11527
11528 _ACEOF
11529 cat >>$CONFIG_STATUS <<_ACEOF
11530 ac_cs_version="\\
11531 config.status
11532 configured by $0, generated by GNU Autoconf 2.61,
11533   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11534
11535 Copyright (C) 2006 Free Software Foundation, Inc.
11536 This config.status script is free software; the Free Software Foundation
11537 gives unlimited permission to copy, distribute and modify it."
11538
11539 ac_pwd='$ac_pwd'
11540 srcdir='$srcdir'
11541 INSTALL='$INSTALL'
11542 _ACEOF
11543
11544 cat >>$CONFIG_STATUS <<\_ACEOF
11545 # If no file are specified by the user, then we need to provide default
11546 # value.  By we need to know if files were specified by the user.
11547 ac_need_defaults=:
11548 while test $# != 0
11549 do
11550   case $1 in
11551   --*=*)
11552     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11553     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11554     ac_shift=:
11555     ;;
11556   *)
11557     ac_option=$1
11558     ac_optarg=$2
11559     ac_shift=shift
11560     ;;
11561   esac
11562
11563   case $ac_option in
11564   # Handling of the options.
11565   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11566     ac_cs_recheck=: ;;
11567   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11568     echo "$ac_cs_version"; exit ;;
11569   --debug | --debu | --deb | --de | --d | -d )
11570     debug=: ;;
11571   --file | --fil | --fi | --f )
11572     $ac_shift
11573     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11574     ac_need_defaults=false;;
11575   --header | --heade | --head | --hea )
11576     $ac_shift
11577     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11578     ac_need_defaults=false;;
11579   --he | --h)
11580     # Conflict between --help and --header
11581     { echo "$as_me: error: ambiguous option: $1
11582 Try \`$0 --help' for more information." >&2
11583    { (exit 1); exit 1; }; };;
11584   --help | --hel | -h )
11585     echo "$ac_cs_usage"; exit ;;
11586   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11587   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11588     ac_cs_silent=: ;;
11589
11590   # This is an error.
11591   -*) { echo "$as_me: error: unrecognized option: $1
11592 Try \`$0 --help' for more information." >&2
11593    { (exit 1); exit 1; }; } ;;
11594
11595   *) ac_config_targets="$ac_config_targets $1"
11596      ac_need_defaults=false ;;
11597
11598   esac
11599   shift
11600 done
11601
11602 ac_configure_extra_args=
11603
11604 if $ac_cs_silent; then
11605   exec 6>/dev/null
11606   ac_configure_extra_args="$ac_configure_extra_args --silent"
11607 fi
11608
11609 _ACEOF
11610 cat >>$CONFIG_STATUS <<_ACEOF
11611 if \$ac_cs_recheck; then
11612   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11613   CONFIG_SHELL=$SHELL
11614   export CONFIG_SHELL
11615   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11616 fi
11617
11618 _ACEOF
11619 cat >>$CONFIG_STATUS <<\_ACEOF
11620 exec 5>>config.log
11621 {
11622   echo
11623   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11624 ## Running $as_me. ##
11625 _ASBOX
11626   echo "$ac_log"
11627 } >&5
11628
11629 _ACEOF
11630 cat >>$CONFIG_STATUS <<_ACEOF
11631 _ACEOF
11632
11633 cat >>$CONFIG_STATUS <<\_ACEOF
11634
11635 # Handling of arguments.
11636 for ac_config_target in $ac_config_targets
11637 do
11638   case $ac_config_target in
11639     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11640     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11641
11642   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11643 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11644    { (exit 1); exit 1; }; };;
11645   esac
11646 done
11647
11648
11649 # If the user did not use the arguments to specify the items to instantiate,
11650 # then the envvar interface is used.  Set only those that are not.
11651 # We use the long form for the default assignment because of an extremely
11652 # bizarre bug on SunOS 4.1.3.
11653 if $ac_need_defaults; then
11654   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11655   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11656 fi
11657
11658 # Have a temporary directory for convenience.  Make it in the build tree
11659 # simply because there is no reason against having it here, and in addition,
11660 # creating and moving files from /tmp can sometimes cause problems.
11661 # Hook for its removal unless debugging.
11662 # Note that there is a small window in which the directory will not be cleaned:
11663 # after its creation but before its name has been assigned to `$tmp'.
11664 $debug ||
11665 {
11666   tmp=
11667   trap 'exit_status=$?
11668   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11669 ' 0
11670   trap '{ (exit 1); exit 1; }' 1 2 13 15
11671 }
11672 # Create a (secure) tmp directory for tmp files.
11673
11674 {
11675   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11676   test -n "$tmp" && test -d "$tmp"
11677 }  ||
11678 {
11679   tmp=./conf$$-$RANDOM
11680   (umask 077 && mkdir "$tmp")
11681 } ||
11682 {
11683    echo "$me: cannot create a temporary directory in ." >&2
11684    { (exit 1); exit 1; }
11685 }
11686
11687 #
11688 # Set up the sed scripts for CONFIG_FILES section.
11689 #
11690
11691 # No need to generate the scripts if there are no CONFIG_FILES.
11692 # This happens for instance when ./config.status config.h
11693 if test -n "$CONFIG_FILES"; then
11694
11695 _ACEOF
11696
11697
11698
11699 ac_delim='%!_!# '
11700 for ac_last_try in false false false false false :; do
11701   cat >conf$$subs.sed <<_ACEOF
11702 SHELL!$SHELL$ac_delim
11703 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11704 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11705 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11706 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11707 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11708 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11709 exec_prefix!$exec_prefix$ac_delim
11710 prefix!$prefix$ac_delim
11711 program_transform_name!$program_transform_name$ac_delim
11712 bindir!$bindir$ac_delim
11713 sbindir!$sbindir$ac_delim
11714 libexecdir!$libexecdir$ac_delim
11715 datarootdir!$datarootdir$ac_delim
11716 datadir!$datadir$ac_delim
11717 sysconfdir!$sysconfdir$ac_delim
11718 sharedstatedir!$sharedstatedir$ac_delim
11719 localstatedir!$localstatedir$ac_delim
11720 includedir!$includedir$ac_delim
11721 oldincludedir!$oldincludedir$ac_delim
11722 docdir!$docdir$ac_delim
11723 infodir!$infodir$ac_delim
11724 htmldir!$htmldir$ac_delim
11725 dvidir!$dvidir$ac_delim
11726 pdfdir!$pdfdir$ac_delim
11727 psdir!$psdir$ac_delim
11728 libdir!$libdir$ac_delim
11729 localedir!$localedir$ac_delim
11730 mandir!$mandir$ac_delim
11731 DEFS!$DEFS$ac_delim
11732 ECHO_C!$ECHO_C$ac_delim
11733 ECHO_N!$ECHO_N$ac_delim
11734 ECHO_T!$ECHO_T$ac_delim
11735 LIBS!$LIBS$ac_delim
11736 build_alias!$build_alias$ac_delim
11737 host_alias!$host_alias$ac_delim
11738 target_alias!$target_alias$ac_delim
11739 build!$build$ac_delim
11740 build_cpu!$build_cpu$ac_delim
11741 build_vendor!$build_vendor$ac_delim
11742 build_os!$build_os$ac_delim
11743 host!$host$ac_delim
11744 host_cpu!$host_cpu$ac_delim
11745 host_vendor!$host_vendor$ac_delim
11746 host_os!$host_os$ac_delim
11747 SHARED!$SHARED$ac_delim
11748 CC!$CC$ac_delim
11749 CFLAGS!$CFLAGS$ac_delim
11750 LDFLAGS!$LDFLAGS$ac_delim
11751 CPPFLAGS!$CPPFLAGS$ac_delim
11752 ac_ct_CC!$ac_ct_CC$ac_delim
11753 EXEEXT!$EXEEXT$ac_delim
11754 OBJEXT!$OBJEXT$ac_delim
11755 CXX!$CXX$ac_delim
11756 CXXFLAGS!$CXXFLAGS$ac_delim
11757 ac_ct_CXX!$ac_ct_CXX$ac_delim
11758 CPP!$CPP$ac_delim
11759 RANLIB!$RANLIB$ac_delim
11760 SET_MAKE!$SET_MAKE$ac_delim
11761 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11762 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11763 INSTALL_DATA!$INSTALL_DATA$ac_delim
11764 LN_S!$LN_S$ac_delim
11765 UNCOMPRESS!$UNCOMPRESS$ac_delim
11766 PKG_CONFIG!$PKG_CONFIG$ac_delim
11767 AREXT!$AREXT$ac_delim
11768 AR!$AR$ac_delim
11769 SLEXT!$SLEXT$ac_delim
11770 CXXLIBS!$CXXLIBS$ac_delim
11771 STRIP!$STRIP$ac_delim
11772 target!$target$ac_delim
11773 target_cpu!$target_cpu$ac_delim
11774 target_vendor!$target_vendor$ac_delim
11775 target_os!$target_os$ac_delim
11776 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
11777 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
11778 GREP!$GREP$ac_delim
11779 EGREP!$EGREP$ac_delim
11780 PACKAGE!$PACKAGE$ac_delim
11781 VERSION!$VERSION$ac_delim
11782 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
11783 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
11784 DEVICE_OPENGL!$DEVICE_OPENGL$ac_delim
11785 lame_in_source!$lame_in_source$ac_delim
11786 LIBART_CFLAGS!$LIBART_CFLAGS$ac_delim
11787 LIBART_LIBS!$LIBART_LIBS$ac_delim
11788 art_in_source!$art_in_source$ac_delim
11789 POPPLER_CFLAGS!$POPPLER_CFLAGS$ac_delim
11790 POPPLER_LIBS!$POPPLER_LIBS$ac_delim
11791 CXXCPP!$CXXCPP$ac_delim
11792 xpdf_in_source!$xpdf_in_source$ac_delim
11793 splash_in_source!$splash_in_source$ac_delim
11794 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
11795 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
11796 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
11797 USE_GZIP!$USE_GZIP$ac_delim
11798 PYTHON_LIB!$PYTHON_LIB$ac_delim
11799 _ACEOF
11800
11801   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11802     break
11803   elif $ac_last_try; then
11804     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11805 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11806    { (exit 1); exit 1; }; }
11807   else
11808     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11809   fi
11810 done
11811
11812 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11813 if test -n "$ac_eof"; then
11814   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11815   ac_eof=`expr $ac_eof + 1`
11816 fi
11817
11818 cat >>$CONFIG_STATUS <<_ACEOF
11819 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11821 _ACEOF
11822 sed '
11823 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11824 s/^/s,@/; s/!/@,|#_!!_#|/
11825 :n
11826 t n
11827 s/'"$ac_delim"'$/,g/; t
11828 s/$/\\/; p
11829 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11830 ' >>$CONFIG_STATUS <conf$$subs.sed
11831 rm -f conf$$subs.sed
11832 cat >>$CONFIG_STATUS <<_ACEOF
11833 CEOF$ac_eof
11834 _ACEOF
11835
11836
11837 ac_delim='%!_!# '
11838 for ac_last_try in false false false false false :; do
11839   cat >conf$$subs.sed <<_ACEOF
11840 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
11841 HAVE_PYTHON_IMAGING!$HAVE_PYTHON_IMAGING$ac_delim
11842 PDF2SWF!$PDF2SWF$ac_delim
11843 LIBPDF!$LIBPDF$ac_delim
11844 JPEG2SWF!$JPEG2SWF$ac_delim
11845 GIF2SWF!$GIF2SWF$ac_delim
11846 PNG2SWF!$PNG2SWF$ac_delim
11847 LIBOBJS!$LIBOBJS$ac_delim
11848 LTLIBOBJS!$LTLIBOBJS$ac_delim
11849 _ACEOF
11850
11851   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
11852     break
11853   elif $ac_last_try; then
11854     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11855 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11856    { (exit 1); exit 1; }; }
11857   else
11858     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11859   fi
11860 done
11861
11862 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11863 if test -n "$ac_eof"; then
11864   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11865   ac_eof=`expr $ac_eof + 1`
11866 fi
11867
11868 cat >>$CONFIG_STATUS <<_ACEOF
11869 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11871 _ACEOF
11872 sed '
11873 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11874 s/^/s,@/; s/!/@,|#_!!_#|/
11875 :n
11876 t n
11877 s/'"$ac_delim"'$/,g/; t
11878 s/$/\\/; p
11879 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11880 ' >>$CONFIG_STATUS <conf$$subs.sed
11881 rm -f conf$$subs.sed
11882 cat >>$CONFIG_STATUS <<_ACEOF
11883 :end
11884 s/|#_!!_#|//g
11885 CEOF$ac_eof
11886 _ACEOF
11887
11888
11889 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11890 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11891 # trailing colons and then remove the whole line if VPATH becomes empty
11892 # (actually we leave an empty line to preserve line numbers).
11893 if test "x$srcdir" = x.; then
11894   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11895 s/:*\$(srcdir):*/:/
11896 s/:*\${srcdir}:*/:/
11897 s/:*@srcdir@:*/:/
11898 s/^\([^=]*=[     ]*\):*/\1/
11899 s/:*$//
11900 s/^[^=]*=[       ]*$//
11901 }'
11902 fi
11903
11904 cat >>$CONFIG_STATUS <<\_ACEOF
11905 fi # test -n "$CONFIG_FILES"
11906
11907
11908 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
11909 do
11910   case $ac_tag in
11911   :[FHLC]) ac_mode=$ac_tag; continue;;
11912   esac
11913   case $ac_mode$ac_tag in
11914   :[FHL]*:*);;
11915   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11916 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11917    { (exit 1); exit 1; }; };;
11918   :[FH]-) ac_tag=-:-;;
11919   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11920   esac
11921   ac_save_IFS=$IFS
11922   IFS=:
11923   set x $ac_tag
11924   IFS=$ac_save_IFS
11925   shift
11926   ac_file=$1
11927   shift
11928
11929   case $ac_mode in
11930   :L) ac_source=$1;;
11931   :[FH])
11932     ac_file_inputs=
11933     for ac_f
11934     do
11935       case $ac_f in
11936       -) ac_f="$tmp/stdin";;
11937       *) # Look for the file first in the build tree, then in the source tree
11938          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11939          # because $ac_f cannot contain `:'.
11940          test -f "$ac_f" ||
11941            case $ac_f in
11942            [\\/$]*) false;;
11943            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11944            esac ||
11945            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11946 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11947    { (exit 1); exit 1; }; };;
11948       esac
11949       ac_file_inputs="$ac_file_inputs $ac_f"
11950     done
11951
11952     # Let's still pretend it is `configure' which instantiates (i.e., don't
11953     # use $as_me), people would be surprised to read:
11954     #    /* config.h.  Generated by config.status.  */
11955     configure_input="Generated from "`IFS=:
11956           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11957     if test x"$ac_file" != x-; then
11958       configure_input="$ac_file.  $configure_input"
11959       { echo "$as_me:$LINENO: creating $ac_file" >&5
11960 echo "$as_me: creating $ac_file" >&6;}
11961     fi
11962
11963     case $ac_tag in
11964     *:-:* | *:-) cat >"$tmp/stdin";;
11965     esac
11966     ;;
11967   esac
11968
11969   ac_dir=`$as_dirname -- "$ac_file" ||
11970 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11971          X"$ac_file" : 'X\(//\)[^/]' \| \
11972          X"$ac_file" : 'X\(//\)$' \| \
11973          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11974 echo X"$ac_file" |
11975     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11976             s//\1/
11977             q
11978           }
11979           /^X\(\/\/\)[^/].*/{
11980             s//\1/
11981             q
11982           }
11983           /^X\(\/\/\)$/{
11984             s//\1/
11985             q
11986           }
11987           /^X\(\/\).*/{
11988             s//\1/
11989             q
11990           }
11991           s/.*/./; q'`
11992   { as_dir="$ac_dir"
11993   case $as_dir in #(
11994   -*) as_dir=./$as_dir;;
11995   esac
11996   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11997     as_dirs=
11998     while :; do
11999       case $as_dir in #(
12000       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12001       *) as_qdir=$as_dir;;
12002       esac
12003       as_dirs="'$as_qdir' $as_dirs"
12004       as_dir=`$as_dirname -- "$as_dir" ||
12005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12006          X"$as_dir" : 'X\(//\)[^/]' \| \
12007          X"$as_dir" : 'X\(//\)$' \| \
12008          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12009 echo X"$as_dir" |
12010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12011             s//\1/
12012             q
12013           }
12014           /^X\(\/\/\)[^/].*/{
12015             s//\1/
12016             q
12017           }
12018           /^X\(\/\/\)$/{
12019             s//\1/
12020             q
12021           }
12022           /^X\(\/\).*/{
12023             s//\1/
12024             q
12025           }
12026           s/.*/./; q'`
12027       test -d "$as_dir" && break
12028     done
12029     test -z "$as_dirs" || eval "mkdir $as_dirs"
12030   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12031 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12032    { (exit 1); exit 1; }; }; }
12033   ac_builddir=.
12034
12035 case "$ac_dir" in
12036 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12037 *)
12038   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12039   # A ".." for each directory in $ac_dir_suffix.
12040   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12041   case $ac_top_builddir_sub in
12042   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12043   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12044   esac ;;
12045 esac
12046 ac_abs_top_builddir=$ac_pwd
12047 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12048 # for backward compatibility:
12049 ac_top_builddir=$ac_top_build_prefix
12050
12051 case $srcdir in
12052   .)  # We are building in place.
12053     ac_srcdir=.
12054     ac_top_srcdir=$ac_top_builddir_sub
12055     ac_abs_top_srcdir=$ac_pwd ;;
12056   [\\/]* | ?:[\\/]* )  # Absolute name.
12057     ac_srcdir=$srcdir$ac_dir_suffix;
12058     ac_top_srcdir=$srcdir
12059     ac_abs_top_srcdir=$srcdir ;;
12060   *) # Relative name.
12061     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12062     ac_top_srcdir=$ac_top_build_prefix$srcdir
12063     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12064 esac
12065 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12066
12067
12068   case $ac_mode in
12069   :F)
12070   #
12071   # CONFIG_FILE
12072   #
12073
12074   case $INSTALL in
12075   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12076   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12077   esac
12078 _ACEOF
12079
12080 cat >>$CONFIG_STATUS <<\_ACEOF
12081 # If the template does not know about datarootdir, expand it.
12082 # FIXME: This hack should be removed a few years after 2.60.
12083 ac_datarootdir_hack=; ac_datarootdir_seen=
12084
12085 case `sed -n '/datarootdir/ {
12086   p
12087   q
12088 }
12089 /@datadir@/p
12090 /@docdir@/p
12091 /@infodir@/p
12092 /@localedir@/p
12093 /@mandir@/p
12094 ' $ac_file_inputs` in
12095 *datarootdir*) ac_datarootdir_seen=yes;;
12096 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12097   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12098 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12099 _ACEOF
12100 cat >>$CONFIG_STATUS <<_ACEOF
12101   ac_datarootdir_hack='
12102   s&@datadir@&$datadir&g
12103   s&@docdir@&$docdir&g
12104   s&@infodir@&$infodir&g
12105   s&@localedir@&$localedir&g
12106   s&@mandir@&$mandir&g
12107     s&\\\${datarootdir}&$datarootdir&g' ;;
12108 esac
12109 _ACEOF
12110
12111 # Neutralize VPATH when `$srcdir' = `.'.
12112 # Shell code in configure.ac might set extrasub.
12113 # FIXME: do we really want to maintain this feature?
12114 cat >>$CONFIG_STATUS <<_ACEOF
12115   sed "$ac_vpsub
12116 $extrasub
12117 _ACEOF
12118 cat >>$CONFIG_STATUS <<\_ACEOF
12119 :t
12120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12121 s&@configure_input@&$configure_input&;t t
12122 s&@top_builddir@&$ac_top_builddir_sub&;t t
12123 s&@srcdir@&$ac_srcdir&;t t
12124 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12125 s&@top_srcdir@&$ac_top_srcdir&;t t
12126 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12127 s&@builddir@&$ac_builddir&;t t
12128 s&@abs_builddir@&$ac_abs_builddir&;t t
12129 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12130 s&@INSTALL@&$ac_INSTALL&;t t
12131 $ac_datarootdir_hack
12132 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12133
12134 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12135   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12136   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12137   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12138 which seems to be undefined.  Please make sure it is defined." >&5
12139 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12140 which seems to be undefined.  Please make sure it is defined." >&2;}
12141
12142   rm -f "$tmp/stdin"
12143   case $ac_file in
12144   -) cat "$tmp/out"; rm -f "$tmp/out";;
12145   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12146   esac
12147  ;;
12148   :H)
12149   #
12150   # CONFIG_HEADER
12151   #
12152 _ACEOF
12153
12154 # Transform confdefs.h into a sed script `conftest.defines', that
12155 # substitutes the proper values into config.h.in to produce config.h.
12156 rm -f conftest.defines conftest.tail
12157 # First, append a space to every undef/define line, to ease matching.
12158 echo 's/$/ /' >conftest.defines
12159 # Then, protect against being on the right side of a sed subst, or in
12160 # an unquoted here document, in config.status.  If some macros were
12161 # called several times there might be several #defines for the same
12162 # symbol, which is useless.  But do not sort them, since the last
12163 # AC_DEFINE must be honored.
12164 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12165 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12166 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12167 # PARAMS is the parameter list in the macro definition--in most cases, it's
12168 # just an empty string.
12169 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
12170 ac_dB='\\)[      (].*,\\1define\\2'
12171 ac_dC=' '
12172 ac_dD=' ,'
12173
12174 uniq confdefs.h |
12175   sed -n '
12176         t rset
12177         :rset
12178         s/^[     ]*#[    ]*define[       ][      ]*//
12179         t ok
12180         d
12181         :ok
12182         s/[\\&,]/\\&/g
12183         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12184         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12185   ' >>conftest.defines
12186
12187 # Remove the space that was appended to ease matching.
12188 # Then replace #undef with comments.  This is necessary, for
12189 # example, in the case of _POSIX_SOURCE, which is predefined and required
12190 # on some systems where configure will not decide to define it.
12191 # (The regexp can be short, since the line contains either #define or #undef.)
12192 echo 's/ $//
12193 s,^[     #]*u.*,/* & */,' >>conftest.defines
12194
12195 # Break up conftest.defines:
12196 ac_max_sed_lines=50
12197
12198 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12199 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12200 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12201 # et cetera.
12202 ac_in='$ac_file_inputs'
12203 ac_out='"$tmp/out1"'
12204 ac_nxt='"$tmp/out2"'
12205
12206 while :
12207 do
12208   # Write a here document:
12209     cat >>$CONFIG_STATUS <<_ACEOF
12210     # First, check the format of the line:
12211     cat >"\$tmp/defines.sed" <<\\CEOF
12212 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
12213 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
12214 b
12215 :def
12216 _ACEOF
12217   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12218   echo 'CEOF
12219     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12220   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12221   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12222   grep . conftest.tail >/dev/null || break
12223   rm -f conftest.defines
12224   mv conftest.tail conftest.defines
12225 done
12226 rm -f conftest.defines conftest.tail
12227
12228 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12229 cat >>$CONFIG_STATUS <<\_ACEOF
12230   if test x"$ac_file" != x-; then
12231     echo "/* $configure_input  */" >"$tmp/config.h"
12232     cat "$ac_result" >>"$tmp/config.h"
12233     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12234       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12235 echo "$as_me: $ac_file is unchanged" >&6;}
12236     else
12237       rm -f $ac_file
12238       mv "$tmp/config.h" $ac_file
12239     fi
12240   else
12241     echo "/* $configure_input  */"
12242     cat "$ac_result"
12243   fi
12244   rm -f "$tmp/out12"
12245  ;;
12246
12247
12248   esac
12249
12250 done # for ac_tag
12251
12252
12253 { (exit 0); exit 0; }
12254 _ACEOF
12255 chmod +x $CONFIG_STATUS
12256 ac_clean_files=$ac_clean_files_save
12257
12258
12259 # configure is writing to config.log, and then calls config.status.
12260 # config.status does its own redirection, appending to config.log.
12261 # Unfortunately, on DOS this fails, as config.log is still kept open
12262 # by configure, so config.status won't be able to write to it; its
12263 # output is simply discarded.  So we exec the FD to /dev/null,
12264 # effectively closing config.log, so it can be properly (re)opened and
12265 # appended to by config.status.  When coming back to configure, we
12266 # need to make the FD available again.
12267 if test "$no_create" != yes; then
12268   ac_cs_success=:
12269   ac_config_status_args=
12270   test "$silent" = yes &&
12271     ac_config_status_args="$ac_config_status_args --quiet"
12272   exec 5>/dev/null
12273   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12274   exec 5>>config.log
12275   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12276   # would make configure fail if this is the last instruction.
12277   $ac_cs_success || { (exit 1); exit 1; }
12278 fi
12279
12280
12281
12282 #
12283 # On development trees, create snapshots of config.status
12284 #
12285 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
12286     if test "x${MINGW}" = "xyes"; then
12287         echo cp config.status config.status.win32
12288         cp config.status config.status.win32
12289     else
12290         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
12291             echo cp config.status config.status.linux
12292             cp config.status config.status.linux
12293         fi
12294         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
12295             echo cp config.status config.status.debug
12296             cp config.status config.status.debug
12297         fi
12298         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
12299             echo cp config.status config.status.optimize
12300             cp config.status config.status.optimize
12301         fi
12302     fi
12303 fi