handle filesystems where lowercase(file)==file more gracefully
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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   # Pre-4.2 versions of Zsh do 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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="src/"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 #  include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #  include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 PNG2SWF
641 GIF2SWF
642 JPEG2SWF
643 LIBPDF
644 PDF2SWF
645 HAVE_PYTHON_IMAGING
646 PYTHON_INCLUDES
647 PYTHON_LIB
648 USE_GZIP
649 VIDEO_CFLAGS
650 VIDEO_LIBS
651 AVIFILE_CONFIG
652 splash_in_source
653 xpdf_in_source
654 art_in_source
655 lame_in_source
656 DEVICE_OPENGL
657 FREETYPE_CONFIG
658 HAVE_UNISTD_H
659 VERSION
660 PACKAGE
661 EGREP
662 GREP
663 SYSTEM_BACKTICKS
664 WORDS_BIGENDIAN
665 target_os
666 target_vendor
667 target_cpu
668 target
669 STRIP
670 CXXLIBS
671 SLEXT
672 AR
673 AREXT
674 UNCOMPRESS
675 LN_S
676 INSTALL_DATA
677 INSTALL_SCRIPT
678 INSTALL_PROGRAM
679 SET_MAKE
680 RANLIB
681 CPP
682 ac_ct_CXX
683 CXXFLAGS
684 CXX
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
691 CC
692 SHARED
693 host_os
694 host_vendor
695 host_cpu
696 host
697 build_os
698 build_vendor
699 build_cpu
700 build
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_BUGREPORT
732 PACKAGE_STRING
733 PACKAGE_VERSION
734 PACKAGE_TARNAME
735 PACKAGE_NAME
736 PATH_SEPARATOR
737 SHELL'
738 ac_subst_files=''
739 ac_user_opts='
740 enable_option_checking
741 enable_checkmem
742 enable_debug
743 enable_profiling
744 enable_warnings
745 enable_optimizations
746 enable_lame
747 '
748       ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CC
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CXX
757 CXXFLAGS
758 CCC
759 CPP'
760
761
762 # Initialize some variables set by options.
763 ac_init_help=
764 ac_init_version=false
765 ac_unrecognized_opts=
766 ac_unrecognized_sep=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
783
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE}'
801 infodir='${datarootdir}/info'
802 htmldir='${docdir}'
803 dvidir='${docdir}'
804 pdfdir='${docdir}'
805 psdir='${docdir}'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
809
810 ac_prev=
811 ac_dashdash=
812 for ac_option
813 do
814   # If the previous option needs an argument, assign it.
815   if test -n "$ac_prev"; then
816     eval $ac_prev=\$ac_option
817     ac_prev=
818     continue
819   fi
820
821   case $ac_option in
822   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823   *)    ac_optarg=yes ;;
824   esac
825
826   # Accept the important Cygnus configure options, so we can diagnose typos.
827
828   case $ac_dashdash$ac_option in
829   --)
830     ac_dashdash=yes ;;
831
832   -bindir | --bindir | --bindi | --bind | --bin | --bi)
833     ac_prev=bindir ;;
834   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835     bindir=$ac_optarg ;;
836
837   -build | --build | --buil | --bui | --bu)
838     ac_prev=build_alias ;;
839   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840     build_alias=$ac_optarg ;;
841
842   -cache-file | --cache-file | --cache-fil | --cache-fi \
843   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844     ac_prev=cache_file ;;
845   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847     cache_file=$ac_optarg ;;
848
849   --config-cache | -C)
850     cache_file=config.cache ;;
851
852   -datadir | --datadir | --datadi | --datad)
853     ac_prev=datadir ;;
854   -datadir=* | --datadir=* | --datadi=* | --datad=*)
855     datadir=$ac_optarg ;;
856
857   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858   | --dataroo | --dataro | --datar)
859     ac_prev=datarootdir ;;
860   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862     datarootdir=$ac_optarg ;;
863
864   -disable-* | --disable-*)
865     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866     # Reject names that are not valid shell variable names.
867     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
869    { (exit 1); exit 1; }; }
870     ac_useropt_orig=$ac_useropt
871     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872     case $ac_user_opts in
873       *"
874 "enable_$ac_useropt"
875 "*) ;;
876       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877          ac_unrecognized_sep=', ';;
878     esac
879     eval enable_$ac_useropt=no ;;
880
881   -docdir | --docdir | --docdi | --doc | --do)
882     ac_prev=docdir ;;
883   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884     docdir=$ac_optarg ;;
885
886   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887     ac_prev=dvidir ;;
888   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889     dvidir=$ac_optarg ;;
890
891   -enable-* | --enable-*)
892     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893     # Reject names that are not valid shell variable names.
894     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
896    { (exit 1); exit 1; }; }
897     ac_useropt_orig=$ac_useropt
898     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899     case $ac_user_opts in
900       *"
901 "enable_$ac_useropt"
902 "*) ;;
903       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904          ac_unrecognized_sep=', ';;
905     esac
906     eval enable_$ac_useropt=\$ac_optarg ;;
907
908   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910   | --exec | --exe | --ex)
911     ac_prev=exec_prefix ;;
912   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914   | --exec=* | --exe=* | --ex=*)
915     exec_prefix=$ac_optarg ;;
916
917   -gas | --gas | --ga | --g)
918     # Obsolete; use --with-gas.
919     with_gas=yes ;;
920
921   -help | --help | --hel | --he | -h)
922     ac_init_help=long ;;
923   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924     ac_init_help=recursive ;;
925   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926     ac_init_help=short ;;
927
928   -host | --host | --hos | --ho)
929     ac_prev=host_alias ;;
930   -host=* | --host=* | --hos=* | --ho=*)
931     host_alias=$ac_optarg ;;
932
933   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934     ac_prev=htmldir ;;
935   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936   | --ht=*)
937     htmldir=$ac_optarg ;;
938
939   -includedir | --includedir | --includedi | --included | --include \
940   | --includ | --inclu | --incl | --inc)
941     ac_prev=includedir ;;
942   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943   | --includ=* | --inclu=* | --incl=* | --inc=*)
944     includedir=$ac_optarg ;;
945
946   -infodir | --infodir | --infodi | --infod | --info | --inf)
947     ac_prev=infodir ;;
948   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949     infodir=$ac_optarg ;;
950
951   -libdir | --libdir | --libdi | --libd)
952     ac_prev=libdir ;;
953   -libdir=* | --libdir=* | --libdi=* | --libd=*)
954     libdir=$ac_optarg ;;
955
956   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957   | --libexe | --libex | --libe)
958     ac_prev=libexecdir ;;
959   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960   | --libexe=* | --libex=* | --libe=*)
961     libexecdir=$ac_optarg ;;
962
963   -localedir | --localedir | --localedi | --localed | --locale)
964     ac_prev=localedir ;;
965   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966     localedir=$ac_optarg ;;
967
968   -localstatedir | --localstatedir | --localstatedi | --localstated \
969   | --localstate | --localstat | --localsta | --localst | --locals)
970     ac_prev=localstatedir ;;
971   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973     localstatedir=$ac_optarg ;;
974
975   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976     ac_prev=mandir ;;
977   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978     mandir=$ac_optarg ;;
979
980   -nfp | --nfp | --nf)
981     # Obsolete; use --without-fp.
982     with_fp=no ;;
983
984   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985   | --no-cr | --no-c | -n)
986     no_create=yes ;;
987
988   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990     no_recursion=yes ;;
991
992   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994   | --oldin | --oldi | --old | --ol | --o)
995     ac_prev=oldincludedir ;;
996   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999     oldincludedir=$ac_optarg ;;
1000
1001   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002     ac_prev=prefix ;;
1003   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004     prefix=$ac_optarg ;;
1005
1006   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007   | --program-pre | --program-pr | --program-p)
1008     ac_prev=program_prefix ;;
1009   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011     program_prefix=$ac_optarg ;;
1012
1013   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014   | --program-suf | --program-su | --program-s)
1015     ac_prev=program_suffix ;;
1016   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018     program_suffix=$ac_optarg ;;
1019
1020   -program-transform-name | --program-transform-name \
1021   | --program-transform-nam | --program-transform-na \
1022   | --program-transform-n | --program-transform- \
1023   | --program-transform | --program-transfor \
1024   | --program-transfo | --program-transf \
1025   | --program-trans | --program-tran \
1026   | --progr-tra | --program-tr | --program-t)
1027     ac_prev=program_transform_name ;;
1028   -program-transform-name=* | --program-transform-name=* \
1029   | --program-transform-nam=* | --program-transform-na=* \
1030   | --program-transform-n=* | --program-transform-=* \
1031   | --program-transform=* | --program-transfor=* \
1032   | --program-transfo=* | --program-transf=* \
1033   | --program-trans=* | --program-tran=* \
1034   | --progr-tra=* | --program-tr=* | --program-t=*)
1035     program_transform_name=$ac_optarg ;;
1036
1037   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038     ac_prev=pdfdir ;;
1039   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040     pdfdir=$ac_optarg ;;
1041
1042   -psdir | --psdir | --psdi | --psd | --ps)
1043     ac_prev=psdir ;;
1044   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045     psdir=$ac_optarg ;;
1046
1047   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048   | -silent | --silent | --silen | --sile | --sil)
1049     silent=yes ;;
1050
1051   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052     ac_prev=sbindir ;;
1053   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054   | --sbi=* | --sb=*)
1055     sbindir=$ac_optarg ;;
1056
1057   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059   | --sharedst | --shareds | --shared | --share | --shar \
1060   | --sha | --sh)
1061     ac_prev=sharedstatedir ;;
1062   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065   | --sha=* | --sh=*)
1066     sharedstatedir=$ac_optarg ;;
1067
1068   -site | --site | --sit)
1069     ac_prev=site ;;
1070   -site=* | --site=* | --sit=*)
1071     site=$ac_optarg ;;
1072
1073   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074     ac_prev=srcdir ;;
1075   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076     srcdir=$ac_optarg ;;
1077
1078   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079   | --syscon | --sysco | --sysc | --sys | --sy)
1080     ac_prev=sysconfdir ;;
1081   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083     sysconfdir=$ac_optarg ;;
1084
1085   -target | --target | --targe | --targ | --tar | --ta | --t)
1086     ac_prev=target_alias ;;
1087   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088     target_alias=$ac_optarg ;;
1089
1090   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091     verbose=yes ;;
1092
1093   -version | --version | --versio | --versi | --vers | -V)
1094     ac_init_version=: ;;
1095
1096   -with-* | --with-*)
1097     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1101    { (exit 1); exit 1; }; }
1102     ac_useropt_orig=$ac_useropt
1103     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104     case $ac_user_opts in
1105       *"
1106 "with_$ac_useropt"
1107 "*) ;;
1108       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109          ac_unrecognized_sep=', ';;
1110     esac
1111     eval with_$ac_useropt=\$ac_optarg ;;
1112
1113   -without-* | --without-*)
1114     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115     # Reject names that are not valid shell variable names.
1116     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1118    { (exit 1); exit 1; }; }
1119     ac_useropt_orig=$ac_useropt
1120     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121     case $ac_user_opts in
1122       *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126          ac_unrecognized_sep=', ';;
1127     esac
1128     eval with_$ac_useropt=no ;;
1129
1130   --x)
1131     # Obsolete; use --with-x.
1132     with_x=yes ;;
1133
1134   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135   | --x-incl | --x-inc | --x-in | --x-i)
1136     ac_prev=x_includes ;;
1137   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139     x_includes=$ac_optarg ;;
1140
1141   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143     ac_prev=x_libraries ;;
1144   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146     x_libraries=$ac_optarg ;;
1147
1148   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1149 Try \`$0 --help' for more information." >&2
1150    { (exit 1); exit 1; }; }
1151     ;;
1152
1153   *=*)
1154     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1157       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1158    { (exit 1); exit 1; }; }
1159     eval $ac_envvar=\$ac_optarg
1160     export $ac_envvar ;;
1161
1162   *)
1163     # FIXME: should be removed in autoconf 3.0.
1164     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168     ;;
1169
1170   esac
1171 done
1172
1173 if test -n "$ac_prev"; then
1174   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1176    { (exit 1); exit 1; }; }
1177 fi
1178
1179 if test -n "$ac_unrecognized_opts"; then
1180   case $enable_option_checking in
1181     no) ;;
1182     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1183    { (exit 1); exit 1; }; } ;;
1184     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185   esac
1186 fi
1187
1188 # Check all directory arguments for consistency.
1189 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190                 datadir sysconfdir sharedstatedir localstatedir includedir \
1191                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192                 libdir localedir mandir
1193 do
1194   eval ac_val=\$$ac_var
1195   # Remove trailing slashes.
1196   case $ac_val in
1197     */ )
1198       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199       eval $ac_var=\$ac_val;;
1200   esac
1201   # Be sure to have absolute directory names.
1202   case $ac_val in
1203     [\\/$]* | ?:[\\/]* )  continue;;
1204     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205   esac
1206   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1207    { (exit 1); exit 1; }; }
1208 done
1209
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1216
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219   if test "x$build_alias" = x; then
1220     cross_compiling=maybe
1221     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222     If a cross compiler is detected then cross compile mode will be used." >&2
1223   elif test "x$build_alias" != "x$host_alias"; then
1224     cross_compiling=yes
1225   fi
1226 fi
1227
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231 test "$silent" = yes && exec 6>/dev/null
1232
1233
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1238    { (exit 1); exit 1; }; }
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1241    { (exit 1); exit 1; }; }
1242
1243
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246   ac_srcdir_defaulted=yes
1247   # Try the directory containing this script, then the parent directory.
1248   ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250          X"$as_myself" : 'X\(//\)[^/]' \| \
1251          X"$as_myself" : 'X\(//\)$' \| \
1252          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255             s//\1/
1256             q
1257           }
1258           /^X\(\/\/\)[^/].*/{
1259             s//\1/
1260             q
1261           }
1262           /^X\(\/\/\)$/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\).*/{
1267             s//\1/
1268             q
1269           }
1270           s/.*/./; q'`
1271   srcdir=$ac_confdir
1272   if test ! -r "$srcdir/$ac_unique_file"; then
1273     srcdir=..
1274   fi
1275 else
1276   ac_srcdir_defaulted=no
1277 fi
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1281    { (exit 1); exit 1; }; }
1282 fi
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 ac_abs_confdir=`(
1285         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1286    { (exit 1); exit 1; }; }
1287         pwd)`
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290   srcdir=.
1291 fi
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1295 case $srcdir in
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 esac
1298 for ac_var in $ac_precious_vars; do
1299   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300   eval ac_env_${ac_var}_value=\$${ac_var}
1301   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303 done
1304
1305 #
1306 # Report the --help message.
1307 #
1308 if test "$ac_init_help" = "long"; then
1309   # Omit some internal or obsolete options to make the list less imposing.
1310   # This message is too long to be a string in the A/UX 3.1 sh.
1311   cat <<_ACEOF
1312 \`configure' configures this package to adapt to many kinds of systems.
1313
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE.  See below for descriptions of some of the useful variables.
1318
1319 Defaults for the options are specified in brackets.
1320
1321 Configuration:
1322   -h, --help              display this help and exit
1323       --help=short        display options specific to this package
1324       --help=recursive    display the short help of all the included packages
1325   -V, --version           display version information and exit
1326   -q, --quiet, --silent   do not print \`checking...' messages
1327       --cache-file=FILE   cache test results in FILE [disabled]
1328   -C, --config-cache      alias for \`--cache-file=config.cache'
1329   -n, --no-create         do not create output files
1330       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1331
1332 Installation directories:
1333   --prefix=PREFIX         install architecture-independent files in PREFIX
1334                           [$ac_default_prefix]
1335   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1336                           [PREFIX]
1337
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1342
1343 For better control, use the options below.
1344
1345 Fine tuning of the installation directories:
1346   --bindir=DIR            user executables [EPREFIX/bin]
1347   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1348   --libexecdir=DIR        program executables [EPREFIX/libexec]
1349   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1350   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1351   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1352   --libdir=DIR            object code libraries [EPREFIX/lib]
1353   --includedir=DIR        C header files [PREFIX/include]
1354   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1355   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1356   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1357   --infodir=DIR           info documentation [DATAROOTDIR/info]
1358   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1359   --mandir=DIR            man documentation [DATAROOTDIR/man]
1360   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1361   --htmldir=DIR           html documentation [DOCDIR]
1362   --dvidir=DIR            dvi documentation [DOCDIR]
1363   --pdfdir=DIR            pdf documentation [DOCDIR]
1364   --psdir=DIR             ps documentation [DOCDIR]
1365 _ACEOF
1366
1367   cat <<\_ACEOF
1368
1369 Program names:
1370   --program-prefix=PREFIX            prepend PREFIX to installed program names
1371   --program-suffix=SUFFIX            append SUFFIX to installed program names
1372   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1373
1374 System types:
1375   --build=BUILD     configure for building on BUILD [guessed]
1376   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377   --target=TARGET   configure for building compilers for TARGET [HOST]
1378 _ACEOF
1379 fi
1380
1381 if test -n "$ac_init_help"; then
1382
1383   cat <<\_ACEOF
1384
1385 Optional Features:
1386   --disable-option-checking  ignore unrecognized --enable/--with options
1387   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389   --enable-checkmem       turn on ccmalloc debugging
1390   --enable-debug          turn on debugging
1391   --enable-profiling      turn on profiling
1392   --enable-warnings        turn on compiler warnings
1393   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1394   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1395
1396 Some influential environment variables:
1397   CC          C compiler command
1398   CFLAGS      C compiler flags
1399   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1400               nonstandard directory <lib dir>
1401   LIBS        libraries to pass to the linker, e.g. -l<library>
1402   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1403               you have headers in a nonstandard directory <include dir>
1404   CXX         C++ compiler command
1405   CXXFLAGS    C++ compiler flags
1406   CPP         C preprocessor
1407
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1410
1411 _ACEOF
1412 ac_status=$?
1413 fi
1414
1415 if test "$ac_init_help" = "recursive"; then
1416   # If there are subdirs, report their specific --help.
1417   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1418     test -d "$ac_dir" ||
1419       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1420       continue
1421     ac_builddir=.
1422
1423 case "$ac_dir" in
1424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 *)
1426   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1427   # A ".." for each directory in $ac_dir_suffix.
1428   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1429   case $ac_top_builddir_sub in
1430   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1432   esac ;;
1433 esac
1434 ac_abs_top_builddir=$ac_pwd
1435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1436 # for backward compatibility:
1437 ac_top_builddir=$ac_top_build_prefix
1438
1439 case $srcdir in
1440   .)  # We are building in place.
1441     ac_srcdir=.
1442     ac_top_srcdir=$ac_top_builddir_sub
1443     ac_abs_top_srcdir=$ac_pwd ;;
1444   [\\/]* | ?:[\\/]* )  # Absolute name.
1445     ac_srcdir=$srcdir$ac_dir_suffix;
1446     ac_top_srcdir=$srcdir
1447     ac_abs_top_srcdir=$srcdir ;;
1448   *) # Relative name.
1449     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1450     ac_top_srcdir=$ac_top_build_prefix$srcdir
1451     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1452 esac
1453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1454
1455     cd "$ac_dir" || { ac_status=$?; continue; }
1456     # Check for guested configure.
1457     if test -f "$ac_srcdir/configure.gnu"; then
1458       echo &&
1459       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1460     elif test -f "$ac_srcdir/configure"; then
1461       echo &&
1462       $SHELL "$ac_srcdir/configure" --help=recursive
1463     else
1464       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1465     fi || ac_status=$?
1466     cd "$ac_pwd" || { ac_status=$?; break; }
1467   done
1468 fi
1469
1470 test -n "$ac_init_help" && exit $ac_status
1471 if $ac_init_version; then
1472   cat <<\_ACEOF
1473 configure
1474 generated by GNU Autoconf 2.63
1475
1476 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1477 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1478 This configure script is free software; the Free Software Foundation
1479 gives unlimited permission to copy, distribute and modify it.
1480 _ACEOF
1481   exit
1482 fi
1483 cat >config.log <<_ACEOF
1484 This file contains any messages produced by compilers while
1485 running configure, to aid debugging if configure makes a mistake.
1486
1487 It was created by $as_me, which was
1488 generated by GNU Autoconf 2.63.  Invocation command line was
1489
1490   $ $0 $@
1491
1492 _ACEOF
1493 exec 5>>config.log
1494 {
1495 cat <<_ASUNAME
1496 ## --------- ##
1497 ## Platform. ##
1498 ## --------- ##
1499
1500 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1501 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1502 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1503 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1504 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1505
1506 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1507 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1508
1509 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1510 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1511 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1512 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1513 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1514 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1515 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1516
1517 _ASUNAME
1518
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 for as_dir in $PATH
1521 do
1522   IFS=$as_save_IFS
1523   test -z "$as_dir" && as_dir=.
1524   $as_echo "PATH: $as_dir"
1525 done
1526 IFS=$as_save_IFS
1527
1528 } >&5
1529
1530 cat >&5 <<_ACEOF
1531
1532
1533 ## ----------- ##
1534 ## Core tests. ##
1535 ## ----------- ##
1536
1537 _ACEOF
1538
1539
1540 # Keep a trace of the command line.
1541 # Strip out --no-create and --no-recursion so they do not pile up.
1542 # Strip out --silent because we don't want to record it for future runs.
1543 # Also quote any args containing shell meta-characters.
1544 # Make two passes to allow for proper duplicate-argument suppression.
1545 ac_configure_args=
1546 ac_configure_args0=
1547 ac_configure_args1=
1548 ac_must_keep_next=false
1549 for ac_pass in 1 2
1550 do
1551   for ac_arg
1552   do
1553     case $ac_arg in
1554     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1555     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1556     | -silent | --silent | --silen | --sile | --sil)
1557       continue ;;
1558     *\'*)
1559       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1560     esac
1561     case $ac_pass in
1562     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1563     2)
1564       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1565       if test $ac_must_keep_next = true; then
1566         ac_must_keep_next=false # Got value, back to normal.
1567       else
1568         case $ac_arg in
1569           *=* | --config-cache | -C | -disable-* | --disable-* \
1570           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1571           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1572           | -with-* | --with-* | -without-* | --without-* | --x)
1573             case "$ac_configure_args0 " in
1574               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1575             esac
1576             ;;
1577           -* ) ac_must_keep_next=true ;;
1578         esac
1579       fi
1580       ac_configure_args="$ac_configure_args '$ac_arg'"
1581       ;;
1582     esac
1583   done
1584 done
1585 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1586 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1587
1588 # When interrupted or exit'd, cleanup temporary files, and complete
1589 # config.log.  We remove comments because anyway the quotes in there
1590 # would cause problems or look ugly.
1591 # WARNING: Use '\'' to represent an apostrophe within the trap.
1592 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1593 trap 'exit_status=$?
1594   # Save into config.log some information that might help in debugging.
1595   {
1596     echo
1597
1598     cat <<\_ASBOX
1599 ## ---------------- ##
1600 ## Cache variables. ##
1601 ## ---------------- ##
1602 _ASBOX
1603     echo
1604     # The following way of writing the cache mishandles newlines in values,
1605 (
1606   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1607     eval ac_val=\$$ac_var
1608     case $ac_val in #(
1609     *${as_nl}*)
1610       case $ac_var in #(
1611       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1612 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1613       esac
1614       case $ac_var in #(
1615       _ | IFS | as_nl) ;; #(
1616       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1617       *) $as_unset $ac_var ;;
1618       esac ;;
1619     esac
1620   done
1621   (set) 2>&1 |
1622     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1623     *${as_nl}ac_space=\ *)
1624       sed -n \
1625         "s/'\''/'\''\\\\'\'''\''/g;
1626           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1627       ;; #(
1628     *)
1629       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1630       ;;
1631     esac |
1632     sort
1633 )
1634     echo
1635
1636     cat <<\_ASBOX
1637 ## ----------------- ##
1638 ## Output variables. ##
1639 ## ----------------- ##
1640 _ASBOX
1641     echo
1642     for ac_var in $ac_subst_vars
1643     do
1644       eval ac_val=\$$ac_var
1645       case $ac_val in
1646       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1647       esac
1648       $as_echo "$ac_var='\''$ac_val'\''"
1649     done | sort
1650     echo
1651
1652     if test -n "$ac_subst_files"; then
1653       cat <<\_ASBOX
1654 ## ------------------- ##
1655 ## File substitutions. ##
1656 ## ------------------- ##
1657 _ASBOX
1658       echo
1659       for ac_var in $ac_subst_files
1660       do
1661         eval ac_val=\$$ac_var
1662         case $ac_val in
1663         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1664         esac
1665         $as_echo "$ac_var='\''$ac_val'\''"
1666       done | sort
1667       echo
1668     fi
1669
1670     if test -s confdefs.h; then
1671       cat <<\_ASBOX
1672 ## ----------- ##
1673 ## confdefs.h. ##
1674 ## ----------- ##
1675 _ASBOX
1676       echo
1677       cat confdefs.h
1678       echo
1679     fi
1680     test "$ac_signal" != 0 &&
1681       $as_echo "$as_me: caught signal $ac_signal"
1682     $as_echo "$as_me: exit $exit_status"
1683   } >&5
1684   rm -f core *.core core.conftest.* &&
1685     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1686     exit $exit_status
1687 ' 0
1688 for ac_signal in 1 2 13 15; do
1689   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1690 done
1691 ac_signal=0
1692
1693 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1694 rm -f -r conftest* confdefs.h
1695
1696 # Predefined preprocessor variables.
1697
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_NAME "$PACKAGE_NAME"
1700 _ACEOF
1701
1702
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1705 _ACEOF
1706
1707
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1710 _ACEOF
1711
1712
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_STRING "$PACKAGE_STRING"
1715 _ACEOF
1716
1717
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1720 _ACEOF
1721
1722
1723 # Let the site file select an alternate cache file if it wants to.
1724 # Prefer an explicitly selected file to automatically selected ones.
1725 ac_site_file1=NONE
1726 ac_site_file2=NONE
1727 if test -n "$CONFIG_SITE"; then
1728   ac_site_file1=$CONFIG_SITE
1729 elif test "x$prefix" != xNONE; then
1730   ac_site_file1=$prefix/share/config.site
1731   ac_site_file2=$prefix/etc/config.site
1732 else
1733   ac_site_file1=$ac_default_prefix/share/config.site
1734   ac_site_file2=$ac_default_prefix/etc/config.site
1735 fi
1736 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1737 do
1738   test "x$ac_site_file" = xNONE && continue
1739   if test -r "$ac_site_file"; then
1740     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1741 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1742     sed 's/^/| /' "$ac_site_file" >&5
1743     . "$ac_site_file"
1744   fi
1745 done
1746
1747 if test -r "$cache_file"; then
1748   # Some versions of bash will fail to source /dev/null (special
1749   # files actually), so we avoid doing that.
1750   if test -f "$cache_file"; then
1751     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1752 $as_echo "$as_me: loading cache $cache_file" >&6;}
1753     case $cache_file in
1754       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1755       *)                      . "./$cache_file";;
1756     esac
1757   fi
1758 else
1759   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1760 $as_echo "$as_me: creating cache $cache_file" >&6;}
1761   >$cache_file
1762 fi
1763
1764 # Check that the precious variables saved in the cache have kept the same
1765 # value.
1766 ac_cache_corrupted=false
1767 for ac_var in $ac_precious_vars; do
1768   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1769   eval ac_new_set=\$ac_env_${ac_var}_set
1770   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1771   eval ac_new_val=\$ac_env_${ac_var}_value
1772   case $ac_old_set,$ac_new_set in
1773     set,)
1774       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1775 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1776       ac_cache_corrupted=: ;;
1777     ,set)
1778       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1779 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1780       ac_cache_corrupted=: ;;
1781     ,);;
1782     *)
1783       if test "x$ac_old_val" != "x$ac_new_val"; then
1784         # differences in whitespace do not lead to failure.
1785         ac_old_val_w=`echo x $ac_old_val`
1786         ac_new_val_w=`echo x $ac_new_val`
1787         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1788           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1789 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1790           ac_cache_corrupted=:
1791         else
1792           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1793 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1794           eval $ac_var=\$ac_old_val
1795         fi
1796         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1797 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1798         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1799 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1800       fi;;
1801   esac
1802   # Pass precious variables to config.status.
1803   if test "$ac_new_set" = set; then
1804     case $ac_new_val in
1805     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1806     *) ac_arg=$ac_var=$ac_new_val ;;
1807     esac
1808     case " $ac_configure_args " in
1809       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1810       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1811     esac
1812   fi
1813 done
1814 if $ac_cache_corrupted; then
1815   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1817   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1818 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1819   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1820 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1821    { (exit 1); exit 1; }; }
1822 fi
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840 ac_ext=c
1841 ac_cpp='$CPP $CPPFLAGS'
1842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1845
1846
1847
1848
1849 # Check whether --enable-checkmem was given.
1850 if test "${enable_checkmem+set}" = set; then
1851   enableval=$enable_checkmem; CHECKMEM=true
1852 fi
1853
1854 # Check whether --enable-debug was given.
1855 if test "${enable_debug+set}" = set; then
1856   enableval=$enable_debug; DEBUG=true
1857 fi
1858
1859 # Check whether --enable-profiling was given.
1860 if test "${enable_profiling+set}" = set; then
1861   enableval=$enable_profiling; PROFILING=true
1862 fi
1863
1864 # Check whether --enable-warnings was given.
1865 if test "${enable_warnings+set}" = set; then
1866   enableval=$enable_warnings; ENABLE_WARNINGS=true
1867 fi
1868
1869 # Check whether --enable-optimizations was given.
1870 if test "${enable_optimizations+set}" = set; then
1871   enableval=$enable_optimizations; OPTIMIZE=true
1872 fi
1873
1874 # Check whether --enable-lame was given.
1875 if test "${enable_lame+set}" = set; then
1876   enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1877     DISABLE_LAME=yes
1878 fi
1879 else
1880   DISABLE_LAME=
1881 fi
1882
1883
1884 PACKAGE=swftools
1885 VERSION=0.9.0
1886
1887
1888 # ------------------------------------------------------------------
1889
1890 if test "x${srcdir}" != "x."; then
1891     echo "--srcdir is not supported"
1892     exit 1
1893 fi
1894
1895 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1896 if test "x$ENABLE_WARNINGS" '!=' "x";then
1897     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1898 fi
1899
1900 if test "x$CHECKMEM" '!=' "x";then
1901     DEBUG=yes
1902 fi
1903 if test "x$PROFILING" '!=' "x";then
1904     DEBUG=yes
1905 fi
1906 if test "x$DEBUG" '!=' "x";then
1907     if test "x$PROFILING" = "x";then
1908         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1909         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1910         LDFLAGS="-g $LIBS"
1911     else
1912         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1913         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1914         LDFLAGS="-g -pg $LIBS"
1915     fi
1916 else if test "x$OPTIMIZE" '!=' "x"; then
1917     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1918     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1919 else
1920     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1921     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1922 fi
1923 fi
1924
1925 CFLAGS="-fPIC $CFLAGS"
1926 CXXFLAGS="-fPIC $CFLAGS"
1927
1928 #OLDGCC=1
1929 #if test "x$OLDGCC" '!=' "x";then
1930 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1931 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1932 #     CFLAGS="$CFLAGS -ansi -pendantic"
1933 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1934 #fi
1935
1936 export PACKAGE VERSION CFLAGS CXXFLAGS
1937
1938
1939 ac_aux_dir=
1940 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1941   if test -f "$ac_dir/install-sh"; then
1942     ac_aux_dir=$ac_dir
1943     ac_install_sh="$ac_aux_dir/install-sh -c"
1944     break
1945   elif test -f "$ac_dir/install.sh"; then
1946     ac_aux_dir=$ac_dir
1947     ac_install_sh="$ac_aux_dir/install.sh -c"
1948     break
1949   elif test -f "$ac_dir/shtool"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/shtool install -c"
1952     break
1953   fi
1954 done
1955 if test -z "$ac_aux_dir"; then
1956   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1957 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 # These three variables are undocumented and unsupported,
1962 # and are intended to be withdrawn in a future Autoconf release.
1963 # They can cause serious problems if a builder's source tree is in a directory
1964 # whose full name contains unusual characters.
1965 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1966 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1967 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1968
1969
1970 # Make sure we can run config.sub.
1971 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1972   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1973 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1974    { (exit 1); exit 1; }; }
1975
1976 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1977 $as_echo_n "checking build system type... " >&6; }
1978 if test "${ac_cv_build+set}" = set; then
1979   $as_echo_n "(cached) " >&6
1980 else
1981   ac_build_alias=$build_alias
1982 test "x$ac_build_alias" = x &&
1983   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1984 test "x$ac_build_alias" = x &&
1985   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1986 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1987    { (exit 1); exit 1; }; }
1988 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1989   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1990 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1991    { (exit 1); exit 1; }; }
1992
1993 fi
1994 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1995 $as_echo "$ac_cv_build" >&6; }
1996 case $ac_cv_build in
1997 *-*-*) ;;
1998 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1999 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2000    { (exit 1); exit 1; }; };;
2001 esac
2002 build=$ac_cv_build
2003 ac_save_IFS=$IFS; IFS='-'
2004 set x $ac_cv_build
2005 shift
2006 build_cpu=$1
2007 build_vendor=$2
2008 shift; shift
2009 # Remember, the first character of IFS is used to create $*,
2010 # except with old shells:
2011 build_os=$*
2012 IFS=$ac_save_IFS
2013 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2014
2015
2016 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2017 $as_echo_n "checking host system type... " >&6; }
2018 if test "${ac_cv_host+set}" = set; then
2019   $as_echo_n "(cached) " >&6
2020 else
2021   if test "x$host_alias" = x; then
2022   ac_cv_host=$ac_cv_build
2023 else
2024   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2025     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2026 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2027    { (exit 1); exit 1; }; }
2028 fi
2029
2030 fi
2031 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2032 $as_echo "$ac_cv_host" >&6; }
2033 case $ac_cv_host in
2034 *-*-*) ;;
2035 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2036 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2037    { (exit 1); exit 1; }; };;
2038 esac
2039 host=$ac_cv_host
2040 ac_save_IFS=$IFS; IFS='-'
2041 set x $ac_cv_host
2042 shift
2043 host_cpu=$1
2044 host_vendor=$2
2045 shift; shift
2046 # Remember, the first character of IFS is used to create $*,
2047 # except with old shells:
2048 host_os=$*
2049 IFS=$ac_save_IFS
2050 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2051
2052
2053
2054 SHARED="-shared"
2055 MACOSX=
2056 case $host_os in
2057     *darwin* )
2058         MACOSX=yes
2059         CFLAGS="$CFLAGS"
2060         CXXFLAGS="$CXXFLAGS -fno-rtti"
2061         SHARED="-bundle"
2062         if test -d /opt/local/include && test -d /opt/local/lib; then
2063             CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2064             LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2065         fi
2066         # Use fink packages if available.
2067         #if test -d /sw/include && test -d /sw/lib; then
2068         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
2069         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
2070         #fi
2071         ;;
2072 esac
2073
2074
2075
2076  ac_ext=c
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081 if test -n "$ac_tool_prefix"; then
2082   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2083 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 $as_echo_n "checking for $ac_word... " >&6; }
2086 if test "${ac_cv_prog_CC+set}" = set; then
2087   $as_echo_n "(cached) " >&6
2088 else
2089   if test -n "$CC"; then
2090   ac_cv_prog_CC="$CC" # Let the user override the test.
2091 else
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2094 do
2095   IFS=$as_save_IFS
2096   test -z "$as_dir" && as_dir=.
2097   for ac_exec_ext in '' $ac_executable_extensions; do
2098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2099     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2100     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101     break 2
2102   fi
2103 done
2104 done
2105 IFS=$as_save_IFS
2106
2107 fi
2108 fi
2109 CC=$ac_cv_prog_CC
2110 if test -n "$CC"; then
2111   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2112 $as_echo "$CC" >&6; }
2113 else
2114   { $as_echo "$as_me:$LINENO: result: no" >&5
2115 $as_echo "no" >&6; }
2116 fi
2117
2118
2119 fi
2120 if test -z "$ac_cv_prog_CC"; then
2121   ac_ct_CC=$CC
2122   # Extract the first word of "gcc", so it can be a program name with args.
2123 set dummy gcc; ac_word=$2
2124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 $as_echo_n "checking for $ac_word... " >&6; }
2126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2127   $as_echo_n "(cached) " >&6
2128 else
2129   if test -n "$ac_ct_CC"; then
2130   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2134 do
2135   IFS=$as_save_IFS
2136   test -z "$as_dir" && as_dir=.
2137   for ac_exec_ext in '' $ac_executable_extensions; do
2138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2139     ac_cv_prog_ac_ct_CC="gcc"
2140     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141     break 2
2142   fi
2143 done
2144 done
2145 IFS=$as_save_IFS
2146
2147 fi
2148 fi
2149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2150 if test -n "$ac_ct_CC"; then
2151   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2152 $as_echo "$ac_ct_CC" >&6; }
2153 else
2154   { $as_echo "$as_me:$LINENO: result: no" >&5
2155 $as_echo "no" >&6; }
2156 fi
2157
2158   if test "x$ac_ct_CC" = x; then
2159     CC=""
2160   else
2161     case $cross_compiling:$ac_tool_warned in
2162 yes:)
2163 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2165 ac_tool_warned=yes ;;
2166 esac
2167     CC=$ac_ct_CC
2168   fi
2169 else
2170   CC="$ac_cv_prog_CC"
2171 fi
2172
2173 if test -z "$CC"; then
2174           if test -n "$ac_tool_prefix"; then
2175     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2176 set dummy ${ac_tool_prefix}cc; ac_word=$2
2177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 $as_echo_n "checking for $ac_word... " >&6; }
2179 if test "${ac_cv_prog_CC+set}" = set; then
2180   $as_echo_n "(cached) " >&6
2181 else
2182   if test -n "$CC"; then
2183   ac_cv_prog_CC="$CC" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188   IFS=$as_save_IFS
2189   test -z "$as_dir" && as_dir=.
2190   for ac_exec_ext in '' $ac_executable_extensions; do
2191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192     ac_cv_prog_CC="${ac_tool_prefix}cc"
2193     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194     break 2
2195   fi
2196 done
2197 done
2198 IFS=$as_save_IFS
2199
2200 fi
2201 fi
2202 CC=$ac_cv_prog_CC
2203 if test -n "$CC"; then
2204   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2205 $as_echo "$CC" >&6; }
2206 else
2207   { $as_echo "$as_me:$LINENO: result: no" >&5
2208 $as_echo "no" >&6; }
2209 fi
2210
2211
2212   fi
2213 fi
2214 if test -z "$CC"; then
2215   # Extract the first word of "cc", so it can be a program name with args.
2216 set dummy cc; ac_word=$2
2217 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 $as_echo_n "checking for $ac_word... " >&6; }
2219 if test "${ac_cv_prog_CC+set}" = set; then
2220   $as_echo_n "(cached) " >&6
2221 else
2222   if test -n "$CC"; then
2223   ac_cv_prog_CC="$CC" # Let the user override the test.
2224 else
2225   ac_prog_rejected=no
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2228 do
2229   IFS=$as_save_IFS
2230   test -z "$as_dir" && as_dir=.
2231   for ac_exec_ext in '' $ac_executable_extensions; do
2232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2234        ac_prog_rejected=yes
2235        continue
2236      fi
2237     ac_cv_prog_CC="cc"
2238     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239     break 2
2240   fi
2241 done
2242 done
2243 IFS=$as_save_IFS
2244
2245 if test $ac_prog_rejected = yes; then
2246   # We found a bogon in the path, so make sure we never use it.
2247   set dummy $ac_cv_prog_CC
2248   shift
2249   if test $# != 0; then
2250     # We chose a different compiler from the bogus one.
2251     # However, it has the same basename, so the bogon will be chosen
2252     # first if we set CC to just the basename; use the full file name.
2253     shift
2254     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2255   fi
2256 fi
2257 fi
2258 fi
2259 CC=$ac_cv_prog_CC
2260 if test -n "$CC"; then
2261   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2262 $as_echo "$CC" >&6; }
2263 else
2264   { $as_echo "$as_me:$LINENO: result: no" >&5
2265 $as_echo "no" >&6; }
2266 fi
2267
2268
2269 fi
2270 if test -z "$CC"; then
2271   if test -n "$ac_tool_prefix"; then
2272   for ac_prog in cl.exe
2273   do
2274     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 $as_echo_n "checking for $ac_word... " >&6; }
2278 if test "${ac_cv_prog_CC+set}" = set; then
2279   $as_echo_n "(cached) " >&6
2280 else
2281   if test -n "$CC"; then
2282   ac_cv_prog_CC="$CC" # Let the user override the test.
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2286 do
2287   IFS=$as_save_IFS
2288   test -z "$as_dir" && as_dir=.
2289   for ac_exec_ext in '' $ac_executable_extensions; do
2290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2292     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293     break 2
2294   fi
2295 done
2296 done
2297 IFS=$as_save_IFS
2298
2299 fi
2300 fi
2301 CC=$ac_cv_prog_CC
2302 if test -n "$CC"; then
2303   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2304 $as_echo "$CC" >&6; }
2305 else
2306   { $as_echo "$as_me:$LINENO: result: no" >&5
2307 $as_echo "no" >&6; }
2308 fi
2309
2310
2311     test -n "$CC" && break
2312   done
2313 fi
2314 if test -z "$CC"; then
2315   ac_ct_CC=$CC
2316   for ac_prog in cl.exe
2317 do
2318   # Extract the first word of "$ac_prog", so it can be a program name with args.
2319 set dummy $ac_prog; ac_word=$2
2320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 $as_echo_n "checking for $ac_word... " >&6; }
2322 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2323   $as_echo_n "(cached) " >&6
2324 else
2325   if test -n "$ac_ct_CC"; then
2326   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331   IFS=$as_save_IFS
2332   test -z "$as_dir" && as_dir=.
2333   for ac_exec_ext in '' $ac_executable_extensions; do
2334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335     ac_cv_prog_ac_ct_CC="$ac_prog"
2336     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337     break 2
2338   fi
2339 done
2340 done
2341 IFS=$as_save_IFS
2342
2343 fi
2344 fi
2345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2346 if test -n "$ac_ct_CC"; then
2347   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2348 $as_echo "$ac_ct_CC" >&6; }
2349 else
2350   { $as_echo "$as_me:$LINENO: result: no" >&5
2351 $as_echo "no" >&6; }
2352 fi
2353
2354
2355   test -n "$ac_ct_CC" && break
2356 done
2357
2358   if test "x$ac_ct_CC" = x; then
2359     CC=""
2360   else
2361     case $cross_compiling:$ac_tool_warned in
2362 yes:)
2363 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2365 ac_tool_warned=yes ;;
2366 esac
2367     CC=$ac_ct_CC
2368   fi
2369 fi
2370
2371 fi
2372
2373
2374 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2377 See \`config.log' for more details." >&5
2378 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2379 See \`config.log' for more details." >&2;}
2380    { (exit 1); exit 1; }; }; }
2381
2382 # Provide some information about the compiler.
2383 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2384 set X $ac_compile
2385 ac_compiler=$2
2386 { (ac_try="$ac_compiler --version >&5"
2387 case "(($ac_try" in
2388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389   *) ac_try_echo=$ac_try;;
2390 esac
2391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2392 $as_echo "$ac_try_echo") >&5
2393   (eval "$ac_compiler --version >&5") 2>&5
2394   ac_status=$?
2395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }
2397 { (ac_try="$ac_compiler -v >&5"
2398 case "(($ac_try" in
2399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400   *) ac_try_echo=$ac_try;;
2401 esac
2402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2403 $as_echo "$ac_try_echo") >&5
2404   (eval "$ac_compiler -v >&5") 2>&5
2405   ac_status=$?
2406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }
2408 { (ac_try="$ac_compiler -V >&5"
2409 case "(($ac_try" in
2410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411   *) ac_try_echo=$ac_try;;
2412 esac
2413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2414 $as_echo "$ac_try_echo") >&5
2415   (eval "$ac_compiler -V >&5") 2>&5
2416   ac_status=$?
2417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }
2419
2420 cat >conftest.$ac_ext <<_ACEOF
2421 /* confdefs.h.  */
2422 _ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h.  */
2426
2427 int
2428 main ()
2429 {
2430
2431   ;
2432   return 0;
2433 }
2434 _ACEOF
2435 ac_clean_files_save=$ac_clean_files
2436 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2437 # Try to create an executable without -o first, disregard a.out.
2438 # It will help us diagnose broken compilers, and finding out an intuition
2439 # of exeext.
2440 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2441 $as_echo_n "checking for C compiler default output file name... " >&6; }
2442 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2443
2444 # The possible output files:
2445 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2446
2447 ac_rmfiles=
2448 for ac_file in $ac_files
2449 do
2450   case $ac_file in
2451     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2452     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2453   esac
2454 done
2455 rm -f $ac_rmfiles
2456
2457 if { (ac_try="$ac_link_default"
2458 case "(($ac_try" in
2459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460   *) ac_try_echo=$ac_try;;
2461 esac
2462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2463 $as_echo "$ac_try_echo") >&5
2464   (eval "$ac_link_default") 2>&5
2465   ac_status=$?
2466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); }; then
2468   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2469 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2470 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2471 # so that the user can short-circuit this test for compilers unknown to
2472 # Autoconf.
2473 for ac_file in $ac_files ''
2474 do
2475   test -f "$ac_file" || continue
2476   case $ac_file in
2477     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2478         ;;
2479     [ab].out )
2480         # We found the default executable, but exeext='' is most
2481         # certainly right.
2482         break;;
2483     *.* )
2484         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2485         then :; else
2486            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2487         fi
2488         # We set ac_cv_exeext here because the later test for it is not
2489         # safe: cross compilers may not add the suffix if given an `-o'
2490         # argument, so we may need to know it at that point already.
2491         # Even if this section looks crufty: it has the advantage of
2492         # actually working.
2493         break;;
2494     * )
2495         break;;
2496   esac
2497 done
2498 test "$ac_cv_exeext" = no && ac_cv_exeext=
2499
2500 else
2501   ac_file=''
2502 fi
2503
2504 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2505 $as_echo "$ac_file" >&6; }
2506 if test -z "$ac_file"; then
2507   $as_echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2513 See \`config.log' for more details." >&5
2514 $as_echo "$as_me: error: C compiler cannot create executables
2515 See \`config.log' for more details." >&2;}
2516    { (exit 77); exit 77; }; }; }
2517 fi
2518
2519 ac_exeext=$ac_cv_exeext
2520
2521 # Check that the compiler produces executables we can run.  If not, either
2522 # the compiler is broken, or we cross compile.
2523 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2524 $as_echo_n "checking whether the C compiler works... " >&6; }
2525 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2526 # If not cross compiling, check that we can run a simple program.
2527 if test "$cross_compiling" != yes; then
2528   if { ac_try='./$ac_file'
2529   { (case "(($ac_try" in
2530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531   *) ac_try_echo=$ac_try;;
2532 esac
2533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2534 $as_echo "$ac_try_echo") >&5
2535   (eval "$ac_try") 2>&5
2536   ac_status=$?
2537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; }; then
2539     cross_compiling=no
2540   else
2541     if test "$cross_compiling" = maybe; then
2542         cross_compiling=yes
2543     else
2544         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2546 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2547 If you meant to cross compile, use \`--host'.
2548 See \`config.log' for more details." >&5
2549 $as_echo "$as_me: error: cannot run C compiled programs.
2550 If you meant to cross compile, use \`--host'.
2551 See \`config.log' for more details." >&2;}
2552    { (exit 1); exit 1; }; }; }
2553     fi
2554   fi
2555 fi
2556 { $as_echo "$as_me:$LINENO: result: yes" >&5
2557 $as_echo "yes" >&6; }
2558
2559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2560 ac_clean_files=$ac_clean_files_save
2561 # Check that the compiler produces executables we can run.  If not, either
2562 # the compiler is broken, or we cross compile.
2563 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2564 $as_echo_n "checking whether we are cross compiling... " >&6; }
2565 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2566 $as_echo "$cross_compiling" >&6; }
2567
2568 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2569 $as_echo_n "checking for suffix of executables... " >&6; }
2570 if { (ac_try="$ac_link"
2571 case "(($ac_try" in
2572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573   *) ac_try_echo=$ac_try;;
2574 esac
2575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2576 $as_echo "$ac_try_echo") >&5
2577   (eval "$ac_link") 2>&5
2578   ac_status=$?
2579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; then
2581   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2582 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2583 # work properly (i.e., refer to `conftest.exe'), while it won't with
2584 # `rm'.
2585 for ac_file in conftest.exe conftest conftest.*; do
2586   test -f "$ac_file" || continue
2587   case $ac_file in
2588     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2589     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2590           break;;
2591     * ) break;;
2592   esac
2593 done
2594 else
2595   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2598 See \`config.log' for more details." >&5
2599 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2600 See \`config.log' for more details." >&2;}
2601    { (exit 1); exit 1; }; }; }
2602 fi
2603
2604 rm -f conftest$ac_cv_exeext
2605 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2606 $as_echo "$ac_cv_exeext" >&6; }
2607
2608 rm -f conftest.$ac_ext
2609 EXEEXT=$ac_cv_exeext
2610 ac_exeext=$EXEEXT
2611 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2612 $as_echo_n "checking for suffix of object files... " >&6; }
2613 if test "${ac_cv_objext+set}" = set; then
2614   $as_echo_n "(cached) " >&6
2615 else
2616   cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h.  */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h.  */
2622
2623 int
2624 main ()
2625 {
2626
2627   ;
2628   return 0;
2629 }
2630 _ACEOF
2631 rm -f conftest.o conftest.obj
2632 if { (ac_try="$ac_compile"
2633 case "(($ac_try" in
2634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635   *) ac_try_echo=$ac_try;;
2636 esac
2637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2638 $as_echo "$ac_try_echo") >&5
2639   (eval "$ac_compile") 2>&5
2640   ac_status=$?
2641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; then
2643   for ac_file in conftest.o conftest.obj conftest.*; do
2644   test -f "$ac_file" || continue;
2645   case $ac_file in
2646     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2647     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2648        break;;
2649   esac
2650 done
2651 else
2652   $as_echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2657 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2658 See \`config.log' for more details." >&5
2659 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2660 See \`config.log' for more details." >&2;}
2661    { (exit 1); exit 1; }; }; }
2662 fi
2663
2664 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2665 fi
2666 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2667 $as_echo "$ac_cv_objext" >&6; }
2668 OBJEXT=$ac_cv_objext
2669 ac_objext=$OBJEXT
2670 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2671 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2672 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2673   $as_echo_n "(cached) " >&6
2674 else
2675   cat >conftest.$ac_ext <<_ACEOF
2676 /* confdefs.h.  */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h.  */
2681
2682 int
2683 main ()
2684 {
2685 #ifndef __GNUC__
2686        choke me
2687 #endif
2688
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2700 $as_echo "$ac_try_echo") >&5
2701   (eval "$ac_compile") 2>conftest.er1
2702   ac_status=$?
2703   grep -v '^ *+' conftest.er1 >conftest.err
2704   rm -f conftest.er1
2705   cat conftest.err >&5
2706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); } && {
2708          test -z "$ac_c_werror_flag" ||
2709          test ! -s conftest.err
2710        } && test -s conftest.$ac_objext; then
2711   ac_compiler_gnu=yes
2712 else
2713   $as_echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2715
2716         ac_compiler_gnu=no
2717 fi
2718
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2721
2722 fi
2723 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2724 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2725 if test $ac_compiler_gnu = yes; then
2726   GCC=yes
2727 else
2728   GCC=
2729 fi
2730 ac_test_CFLAGS=${CFLAGS+set}
2731 ac_save_CFLAGS=$CFLAGS
2732 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2733 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2734 if test "${ac_cv_prog_cc_g+set}" = set; then
2735   $as_echo_n "(cached) " >&6
2736 else
2737   ac_save_c_werror_flag=$ac_c_werror_flag
2738    ac_c_werror_flag=yes
2739    ac_cv_prog_cc_g=no
2740    CFLAGS="-g"
2741    cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h.  */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h.  */
2747
2748 int
2749 main ()
2750 {
2751
2752   ;
2753   return 0;
2754 }
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (ac_try="$ac_compile"
2758 case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2763 $as_echo "$ac_try_echo") >&5
2764   (eval "$ac_compile") 2>conftest.er1
2765   ac_status=$?
2766   grep -v '^ *+' conftest.er1 >conftest.err
2767   rm -f conftest.er1
2768   cat conftest.err >&5
2769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); } && {
2771          test -z "$ac_c_werror_flag" ||
2772          test ! -s conftest.err
2773        } && test -s conftest.$ac_objext; then
2774   ac_cv_prog_cc_g=yes
2775 else
2776   $as_echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2778
2779         CFLAGS=""
2780       cat >conftest.$ac_ext <<_ACEOF
2781 /* confdefs.h.  */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h.  */
2786
2787 int
2788 main ()
2789 {
2790
2791   ;
2792   return 0;
2793 }
2794 _ACEOF
2795 rm -f conftest.$ac_objext
2796 if { (ac_try="$ac_compile"
2797 case "(($ac_try" in
2798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799   *) ac_try_echo=$ac_try;;
2800 esac
2801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2802 $as_echo "$ac_try_echo") >&5
2803   (eval "$ac_compile") 2>conftest.er1
2804   ac_status=$?
2805   grep -v '^ *+' conftest.er1 >conftest.err
2806   rm -f conftest.er1
2807   cat conftest.err >&5
2808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); } && {
2810          test -z "$ac_c_werror_flag" ||
2811          test ! -s conftest.err
2812        } && test -s conftest.$ac_objext; then
2813   :
2814 else
2815   $as_echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2817
2818         ac_c_werror_flag=$ac_save_c_werror_flag
2819          CFLAGS="-g"
2820          cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h.  */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h.  */
2826
2827 int
2828 main ()
2829 {
2830
2831   ;
2832   return 0;
2833 }
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (ac_try="$ac_compile"
2837 case "(($ac_try" in
2838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839   *) ac_try_echo=$ac_try;;
2840 esac
2841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2842 $as_echo "$ac_try_echo") >&5
2843   (eval "$ac_compile") 2>conftest.er1
2844   ac_status=$?
2845   grep -v '^ *+' conftest.er1 >conftest.err
2846   rm -f conftest.er1
2847   cat conftest.err >&5
2848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); } && {
2850          test -z "$ac_c_werror_flag" ||
2851          test ! -s conftest.err
2852        } && test -s conftest.$ac_objext; then
2853   ac_cv_prog_cc_g=yes
2854 else
2855   $as_echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858
2859 fi
2860
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 fi
2863
2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 fi
2866
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868    ac_c_werror_flag=$ac_save_c_werror_flag
2869 fi
2870 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2871 $as_echo "$ac_cv_prog_cc_g" >&6; }
2872 if test "$ac_test_CFLAGS" = set; then
2873   CFLAGS=$ac_save_CFLAGS
2874 elif test $ac_cv_prog_cc_g = yes; then
2875   if test "$GCC" = yes; then
2876     CFLAGS="-g -O2"
2877   else
2878     CFLAGS="-g"
2879   fi
2880 else
2881   if test "$GCC" = yes; then
2882     CFLAGS="-O2"
2883   else
2884     CFLAGS=
2885   fi
2886 fi
2887 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2888 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2889 if test "${ac_cv_prog_cc_c89+set}" = set; then
2890   $as_echo_n "(cached) " >&6
2891 else
2892   ac_cv_prog_cc_c89=no
2893 ac_save_CC=$CC
2894 cat >conftest.$ac_ext <<_ACEOF
2895 /* confdefs.h.  */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h.  */
2900 #include <stdarg.h>
2901 #include <stdio.h>
2902 #include <sys/types.h>
2903 #include <sys/stat.h>
2904 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2905 struct buf { int x; };
2906 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2907 static char *e (p, i)
2908      char **p;
2909      int i;
2910 {
2911   return p[i];
2912 }
2913 static char *f (char * (*g) (char **, int), char **p, ...)
2914 {
2915   char *s;
2916   va_list v;
2917   va_start (v,p);
2918   s = g (p, va_arg (v,int));
2919   va_end (v);
2920   return s;
2921 }
2922
2923 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2924    function prototypes and stuff, but not '\xHH' hex character constants.
2925    These don't provoke an error unfortunately, instead are silently treated
2926    as 'x'.  The following induces an error, until -std is added to get
2927    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2928    array size at least.  It's necessary to write '\x00'==0 to get something
2929    that's true only with -std.  */
2930 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2931
2932 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2933    inside strings and character constants.  */
2934 #define FOO(x) 'x'
2935 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2936
2937 int test (int i, double x);
2938 struct s1 {int (*f) (int a);};
2939 struct s2 {int (*f) (double a);};
2940 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2941 int argc;
2942 char **argv;
2943 int
2944 main ()
2945 {
2946 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2947   ;
2948   return 0;
2949 }
2950 _ACEOF
2951 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2952         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2953 do
2954   CC="$ac_save_CC $ac_arg"
2955   rm -f conftest.$ac_objext
2956 if { (ac_try="$ac_compile"
2957 case "(($ac_try" in
2958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959   *) ac_try_echo=$ac_try;;
2960 esac
2961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2962 $as_echo "$ac_try_echo") >&5
2963   (eval "$ac_compile") 2>conftest.er1
2964   ac_status=$?
2965   grep -v '^ *+' conftest.er1 >conftest.err
2966   rm -f conftest.er1
2967   cat conftest.err >&5
2968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); } && {
2970          test -z "$ac_c_werror_flag" ||
2971          test ! -s conftest.err
2972        } && test -s conftest.$ac_objext; then
2973   ac_cv_prog_cc_c89=$ac_arg
2974 else
2975   $as_echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978
2979 fi
2980
2981 rm -f core conftest.err conftest.$ac_objext
2982   test "x$ac_cv_prog_cc_c89" != "xno" && break
2983 done
2984 rm -f conftest.$ac_ext
2985 CC=$ac_save_CC
2986
2987 fi
2988 # AC_CACHE_VAL
2989 case "x$ac_cv_prog_cc_c89" in
2990   x)
2991     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2992 $as_echo "none needed" >&6; } ;;
2993   xno)
2994     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2995 $as_echo "unsupported" >&6; } ;;
2996   *)
2997     CC="$CC $ac_cv_prog_cc_c89"
2998     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2999 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3000 esac
3001
3002
3003 ac_ext=c
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008
3009  ac_ext=cpp
3010 ac_cpp='$CXXCPP $CPPFLAGS'
3011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3014 if test -z "$CXX"; then
3015   if test -n "$CCC"; then
3016     CXX=$CCC
3017   else
3018     if test -n "$ac_tool_prefix"; then
3019   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3020   do
3021     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3023 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if test "${ac_cv_prog_CXX+set}" = set; then
3026   $as_echo_n "(cached) " >&6
3027 else
3028   if test -n "$CXX"; then
3029   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034   IFS=$as_save_IFS
3035   test -z "$as_dir" && as_dir=.
3036   for ac_exec_ext in '' $ac_executable_extensions; do
3037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3039     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3040     break 2
3041   fi
3042 done
3043 done
3044 IFS=$as_save_IFS
3045
3046 fi
3047 fi
3048 CXX=$ac_cv_prog_CXX
3049 if test -n "$CXX"; then
3050   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3051 $as_echo "$CXX" >&6; }
3052 else
3053   { $as_echo "$as_me:$LINENO: result: no" >&5
3054 $as_echo "no" >&6; }
3055 fi
3056
3057
3058     test -n "$CXX" && break
3059   done
3060 fi
3061 if test -z "$CXX"; then
3062   ac_ct_CXX=$CXX
3063   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3064 do
3065   # Extract the first word of "$ac_prog", so it can be a program name with args.
3066 set dummy $ac_prog; ac_word=$2
3067 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3070   $as_echo_n "(cached) " >&6
3071 else
3072   if test -n "$ac_ct_CXX"; then
3073   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080   for ac_exec_ext in '' $ac_executable_extensions; do
3081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082     ac_cv_prog_ac_ct_CXX="$ac_prog"
3083     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084     break 2
3085   fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3093 if test -n "$ac_ct_CXX"; then
3094   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3095 $as_echo "$ac_ct_CXX" >&6; }
3096 else
3097   { $as_echo "$as_me:$LINENO: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101
3102   test -n "$ac_ct_CXX" && break
3103 done
3104
3105   if test "x$ac_ct_CXX" = x; then
3106     CXX="g++"
3107   else
3108     case $cross_compiling:$ac_tool_warned in
3109 yes:)
3110 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3112 ac_tool_warned=yes ;;
3113 esac
3114     CXX=$ac_ct_CXX
3115   fi
3116 fi
3117
3118   fi
3119 fi
3120 # Provide some information about the compiler.
3121 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3122 set X $ac_compile
3123 ac_compiler=$2
3124 { (ac_try="$ac_compiler --version >&5"
3125 case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3130 $as_echo "$ac_try_echo") >&5
3131   (eval "$ac_compiler --version >&5") 2>&5
3132   ac_status=$?
3133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }
3135 { (ac_try="$ac_compiler -v >&5"
3136 case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3141 $as_echo "$ac_try_echo") >&5
3142   (eval "$ac_compiler -v >&5") 2>&5
3143   ac_status=$?
3144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); }
3146 { (ac_try="$ac_compiler -V >&5"
3147 case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3152 $as_echo "$ac_try_echo") >&5
3153   (eval "$ac_compiler -V >&5") 2>&5
3154   ac_status=$?
3155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); }
3157
3158 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3159 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3160 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3161   $as_echo_n "(cached) " >&6
3162 else
3163   cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h.  */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h.  */
3169
3170 int
3171 main ()
3172 {
3173 #ifndef __GNUC__
3174        choke me
3175 #endif
3176
3177   ;
3178   return 0;
3179 }
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3188 $as_echo "$ac_try_echo") >&5
3189   (eval "$ac_compile") 2>conftest.er1
3190   ac_status=$?
3191   grep -v '^ *+' conftest.er1 >conftest.err
3192   rm -f conftest.er1
3193   cat conftest.err >&5
3194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); } && {
3196          test -z "$ac_cxx_werror_flag" ||
3197          test ! -s conftest.err
3198        } && test -s conftest.$ac_objext; then
3199   ac_compiler_gnu=yes
3200 else
3201   $as_echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204         ac_compiler_gnu=no
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3209
3210 fi
3211 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3212 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3213 if test $ac_compiler_gnu = yes; then
3214   GXX=yes
3215 else
3216   GXX=
3217 fi
3218 ac_test_CXXFLAGS=${CXXFLAGS+set}
3219 ac_save_CXXFLAGS=$CXXFLAGS
3220 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3221 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3222 if test "${ac_cv_prog_cxx_g+set}" = set; then
3223   $as_echo_n "(cached) " >&6
3224 else
3225   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3226    ac_cxx_werror_flag=yes
3227    ac_cv_prog_cxx_g=no
3228    CXXFLAGS="-g"
3229    cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h.  */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h.  */
3235
3236 int
3237 main ()
3238 {
3239
3240   ;
3241   return 0;
3242 }
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (ac_try="$ac_compile"
3246 case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3251 $as_echo "$ac_try_echo") >&5
3252   (eval "$ac_compile") 2>conftest.er1
3253   ac_status=$?
3254   grep -v '^ *+' conftest.er1 >conftest.err
3255   rm -f conftest.er1
3256   cat conftest.err >&5
3257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); } && {
3259          test -z "$ac_cxx_werror_flag" ||
3260          test ! -s conftest.err
3261        } && test -s conftest.$ac_objext; then
3262   ac_cv_prog_cxx_g=yes
3263 else
3264   $as_echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267         CXXFLAGS=""
3268       cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h.  */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h.  */
3274
3275 int
3276 main ()
3277 {
3278
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3290 $as_echo "$ac_try_echo") >&5
3291   (eval "$ac_compile") 2>conftest.er1
3292   ac_status=$?
3293   grep -v '^ *+' conftest.er1 >conftest.err
3294   rm -f conftest.er1
3295   cat conftest.err >&5
3296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); } && {
3298          test -z "$ac_cxx_werror_flag" ||
3299          test ! -s conftest.err
3300        } && test -s conftest.$ac_objext; then
3301   :
3302 else
3303   $as_echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3307          CXXFLAGS="-g"
3308          cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h.  */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h.  */
3314
3315 int
3316 main ()
3317 {
3318
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 rm -f conftest.$ac_objext
3324 if { (ac_try="$ac_compile"
3325 case "(($ac_try" in
3326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327   *) ac_try_echo=$ac_try;;
3328 esac
3329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3330 $as_echo "$ac_try_echo") >&5
3331   (eval "$ac_compile") 2>conftest.er1
3332   ac_status=$?
3333   grep -v '^ *+' conftest.er1 >conftest.err
3334   rm -f conftest.er1
3335   cat conftest.err >&5
3336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); } && {
3338          test -z "$ac_cxx_werror_flag" ||
3339          test ! -s conftest.err
3340        } && test -s conftest.$ac_objext; then
3341   ac_cv_prog_cxx_g=yes
3342 else
3343   $as_echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346
3347 fi
3348
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 fi
3351
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 fi
3354
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3357 fi
3358 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3359 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3360 if test "$ac_test_CXXFLAGS" = set; then
3361   CXXFLAGS=$ac_save_CXXFLAGS
3362 elif test $ac_cv_prog_cxx_g = yes; then
3363   if test "$GXX" = yes; then
3364     CXXFLAGS="-g -O2"
3365   else
3366     CXXFLAGS="-g"
3367   fi
3368 else
3369   if test "$GXX" = yes; then
3370     CXXFLAGS="-O2"
3371   else
3372     CXXFLAGS=
3373   fi
3374 fi
3375 ac_ext=c
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380
3381
3382
3383
3384 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3385 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3386
3387 cat > conftest.c << EOF
3388 #include <stdlib.h>
3389 #include <stdio.h>
3390
3391 int main (int argc, char*argv)
3392 {
3393     int a,b;
3394     b=3;
3395     int c;
3396     c=4;
3397     return 0;
3398 }
3399 EOF
3400
3401 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3402 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3403   { $as_echo "$as_me:$LINENO: result: yes" >&5
3404 $as_echo "yes" >&6; }
3405   GCC_IS_OK=true
3406   export GCC_IS_OK
3407 else
3408   echo "configure: failed program was:" >&5
3409   cat conftest.c >&5
3410   { $as_echo "$as_me:$LINENO: result: no" >&5
3411 $as_echo "no" >&6; }
3412 fi
3413 rm -f conftest*
3414
3415
3416 if test "x$GCC_IS_OK" '=' "x";then
3417     echo "***************************************************"
3418     echo "* Your gcc is too old to compile this!"
3419     echo "* "
3420     echo "* The last version compileable by this compiler is "
3421     echo "* swftools 0.7.0, which you can download from "
3422     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3423     echo "* ."
3424     echo "* Newer versions require at least gcc 3.0.0 "
3425     echo "***************************************************"
3426     exit 1
3427 fi
3428
3429 if test "x$CHECKMEM" '!=' "x";then
3430     CC="ccmalloc $CC"
3431     CXX="ccmalloc $CXX"
3432     #echo running again
3433     #unset ac_cv_prog_CC
3434     #unset ac_cv_prog_CXX
3435     #AC_PROG_CC
3436     #AC_PROG_CXX
3437 fi
3438  ac_ext=c
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3444 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3445 # On Suns, sometimes $CPP names a directory.
3446 if test -n "$CPP" && test -d "$CPP"; then
3447   CPP=
3448 fi
3449 if test -z "$CPP"; then
3450   if test "${ac_cv_prog_CPP+set}" = set; then
3451   $as_echo_n "(cached) " >&6
3452 else
3453       # Double quotes because CPP needs to be expanded
3454     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3455     do
3456       ac_preproc_ok=false
3457 for ac_c_preproc_warn_flag in '' yes
3458 do
3459   # Use a header file that comes with gcc, so configuring glibc
3460   # with a fresh cross-compiler works.
3461   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3462   # <limits.h> exists even on freestanding compilers.
3463   # On the NeXT, cc -E runs the code through the compiler's parser,
3464   # not just through cpp. "Syntax error" is here to catch this case.
3465   cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h.  */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h.  */
3471 #ifdef __STDC__
3472 # include <limits.h>
3473 #else
3474 # include <assert.h>
3475 #endif
3476                      Syntax error
3477 _ACEOF
3478 if { (ac_try="$ac_cpp conftest.$ac_ext"
3479 case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3484 $as_echo "$ac_try_echo") >&5
3485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3486   ac_status=$?
3487   grep -v '^ *+' conftest.er1 >conftest.err
3488   rm -f conftest.er1
3489   cat conftest.err >&5
3490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); } >/dev/null && {
3492          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3493          test ! -s conftest.err
3494        }; then
3495   :
3496 else
3497   $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500   # Broken: fails on valid input.
3501 continue
3502 fi
3503
3504 rm -f conftest.err conftest.$ac_ext
3505
3506   # OK, works on sane cases.  Now check whether nonexistent headers
3507   # can be detected and how.
3508   cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h.  */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h.  */
3514 #include <ac_nonexistent.h>
3515 _ACEOF
3516 if { (ac_try="$ac_cpp conftest.$ac_ext"
3517 case "(($ac_try" in
3518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519   *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3524   ac_status=$?
3525   grep -v '^ *+' conftest.er1 >conftest.err
3526   rm -f conftest.er1
3527   cat conftest.err >&5
3528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); } >/dev/null && {
3530          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3531          test ! -s conftest.err
3532        }; then
3533   # Broken: success on invalid input.
3534 continue
3535 else
3536   $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3538
3539   # Passes both tests.
3540 ac_preproc_ok=:
3541 break
3542 fi
3543
3544 rm -f conftest.err conftest.$ac_ext
3545
3546 done
3547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3548 rm -f conftest.err conftest.$ac_ext
3549 if $ac_preproc_ok; then
3550   break
3551 fi
3552
3553     done
3554     ac_cv_prog_CPP=$CPP
3555
3556 fi
3557   CPP=$ac_cv_prog_CPP
3558 else
3559   ac_cv_prog_CPP=$CPP
3560 fi
3561 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3562 $as_echo "$CPP" >&6; }
3563 ac_preproc_ok=false
3564 for ac_c_preproc_warn_flag in '' yes
3565 do
3566   # Use a header file that comes with gcc, so configuring glibc
3567   # with a fresh cross-compiler works.
3568   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3569   # <limits.h> exists even on freestanding compilers.
3570   # On the NeXT, cc -E runs the code through the compiler's parser,
3571   # not just through cpp. "Syntax error" is here to catch this case.
3572   cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h.  */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h.  */
3578 #ifdef __STDC__
3579 # include <limits.h>
3580 #else
3581 # include <assert.h>
3582 #endif
3583                      Syntax error
3584 _ACEOF
3585 if { (ac_try="$ac_cpp conftest.$ac_ext"
3586 case "(($ac_try" in
3587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588   *) ac_try_echo=$ac_try;;
3589 esac
3590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3591 $as_echo "$ac_try_echo") >&5
3592   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3593   ac_status=$?
3594   grep -v '^ *+' conftest.er1 >conftest.err
3595   rm -f conftest.er1
3596   cat conftest.err >&5
3597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); } >/dev/null && {
3599          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3600          test ! -s conftest.err
3601        }; then
3602   :
3603 else
3604   $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607   # Broken: fails on valid input.
3608 continue
3609 fi
3610
3611 rm -f conftest.err conftest.$ac_ext
3612
3613   # OK, works on sane cases.  Now check whether nonexistent headers
3614   # can be detected and how.
3615   cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h.  */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h.  */
3621 #include <ac_nonexistent.h>
3622 _ACEOF
3623 if { (ac_try="$ac_cpp conftest.$ac_ext"
3624 case "(($ac_try" in
3625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626   *) ac_try_echo=$ac_try;;
3627 esac
3628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3629 $as_echo "$ac_try_echo") >&5
3630   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3631   ac_status=$?
3632   grep -v '^ *+' conftest.er1 >conftest.err
3633   rm -f conftest.er1
3634   cat conftest.err >&5
3635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); } >/dev/null && {
3637          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3638          test ! -s conftest.err
3639        }; then
3640   # Broken: success on invalid input.
3641 continue
3642 else
3643   $as_echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646   # Passes both tests.
3647 ac_preproc_ok=:
3648 break
3649 fi
3650
3651 rm -f conftest.err conftest.$ac_ext
3652
3653 done
3654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655 rm -f conftest.err conftest.$ac_ext
3656 if $ac_preproc_ok; then
3657   :
3658 else
3659   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3662 See \`config.log' for more details." >&5
3663 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3664 See \`config.log' for more details." >&2;}
3665    { (exit 1); exit 1; }; }; }
3666 fi
3667
3668 ac_ext=c
3669 ac_cpp='$CPP $CPPFLAGS'
3670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673
3674
3675  if test -n "$ac_tool_prefix"; then
3676   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_RANLIB+set}" = set; then
3681   $as_echo_n "(cached) " >&6
3682 else
3683   if test -n "$RANLIB"; then
3684   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689   IFS=$as_save_IFS
3690   test -z "$as_dir" && as_dir=.
3691   for ac_exec_ext in '' $ac_executable_extensions; do
3692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3694     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695     break 2
3696   fi
3697 done
3698 done
3699 IFS=$as_save_IFS
3700
3701 fi
3702 fi
3703 RANLIB=$ac_cv_prog_RANLIB
3704 if test -n "$RANLIB"; then
3705   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3706 $as_echo "$RANLIB" >&6; }
3707 else
3708   { $as_echo "$as_me:$LINENO: result: no" >&5
3709 $as_echo "no" >&6; }
3710 fi
3711
3712
3713 fi
3714 if test -z "$ac_cv_prog_RANLIB"; then
3715   ac_ct_RANLIB=$RANLIB
3716   # Extract the first word of "ranlib", so it can be a program name with args.
3717 set dummy ranlib; ac_word=$2
3718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3721   $as_echo_n "(cached) " >&6
3722 else
3723   if test -n "$ac_ct_RANLIB"; then
3724   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731   for ac_exec_ext in '' $ac_executable_extensions; do
3732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733     ac_cv_prog_ac_ct_RANLIB="ranlib"
3734     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735     break 2
3736   fi
3737 done
3738 done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3744 if test -n "$ac_ct_RANLIB"; then
3745   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3746 $as_echo "$ac_ct_RANLIB" >&6; }
3747 else
3748   { $as_echo "$as_me:$LINENO: result: no" >&5
3749 $as_echo "no" >&6; }
3750 fi
3751
3752   if test "x$ac_ct_RANLIB" = x; then
3753     RANLIB=":"
3754   else
3755     case $cross_compiling:$ac_tool_warned in
3756 yes:)
3757 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759 ac_tool_warned=yes ;;
3760 esac
3761     RANLIB=$ac_ct_RANLIB
3762   fi
3763 else
3764   RANLIB="$ac_cv_prog_RANLIB"
3765 fi
3766
3767  { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3768 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3769 set x ${MAKE-make}
3770 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3771 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3772   $as_echo_n "(cached) " >&6
3773 else
3774   cat >conftest.make <<\_ACEOF
3775 SHELL = /bin/sh
3776 all:
3777         @echo '@@@%%%=$(MAKE)=@@@%%%'
3778 _ACEOF
3779 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3780 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3781   *@@@%%%=?*=@@@%%%*)
3782     eval ac_cv_prog_make_${ac_make}_set=yes;;
3783   *)
3784     eval ac_cv_prog_make_${ac_make}_set=no;;
3785 esac
3786 rm -f conftest.make
3787 fi
3788 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3789   { $as_echo "$as_me:$LINENO: result: yes" >&5
3790 $as_echo "yes" >&6; }
3791   SET_MAKE=
3792 else
3793   { $as_echo "$as_me:$LINENO: result: no" >&5
3794 $as_echo "no" >&6; }
3795   SET_MAKE="MAKE=${MAKE-make}"
3796 fi
3797
3798  # Find a good install program.  We prefer a C program (faster),
3799 # so one script is as good as another.  But avoid the broken or
3800 # incompatible versions:
3801 # SysV /etc/install, /usr/sbin/install
3802 # SunOS /usr/etc/install
3803 # IRIX /sbin/install
3804 # AIX /bin/install
3805 # AmigaOS /C/install, which installs bootblocks on floppy discs
3806 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3809 # OS/2's system install, which has a completely different semantic
3810 # ./install, which can be erroneously created by make from ./install.sh.
3811 # Reject install programs that cannot install multiple files.
3812 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3813 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3814 if test -z "$INSTALL"; then
3815 if test "${ac_cv_path_install+set}" = set; then
3816   $as_echo_n "(cached) " >&6
3817 else
3818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3820 do
3821   IFS=$as_save_IFS
3822   test -z "$as_dir" && as_dir=.
3823   # Account for people who put trailing slashes in PATH elements.
3824 case $as_dir/ in
3825   ./ | .// | /cC/* | \
3826   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3827   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3828   /usr/ucb/* ) ;;
3829   *)
3830     # OSF1 and SCO ODT 3.0 have their own names for install.
3831     # Don't use installbsd from OSF since it installs stuff as root
3832     # by default.
3833     for ac_prog in ginstall scoinst install; do
3834       for ac_exec_ext in '' $ac_executable_extensions; do
3835         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3836           if test $ac_prog = install &&
3837             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3838             # AIX install.  It has an incompatible calling convention.
3839             :
3840           elif test $ac_prog = install &&
3841             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3842             # program-specific install script used by HP pwplus--don't use.
3843             :
3844           else
3845             rm -rf conftest.one conftest.two conftest.dir
3846             echo one > conftest.one
3847             echo two > conftest.two
3848             mkdir conftest.dir
3849             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3850               test -s conftest.one && test -s conftest.two &&
3851               test -s conftest.dir/conftest.one &&
3852               test -s conftest.dir/conftest.two
3853             then
3854               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3855               break 3
3856             fi
3857           fi
3858         fi
3859       done
3860     done
3861     ;;
3862 esac
3863
3864 done
3865 IFS=$as_save_IFS
3866
3867 rm -rf conftest.one conftest.two conftest.dir
3868
3869 fi
3870   if test "${ac_cv_path_install+set}" = set; then
3871     INSTALL=$ac_cv_path_install
3872   else
3873     # As a last resort, use the slow shell script.  Don't cache a
3874     # value for INSTALL within a source directory, because that will
3875     # break other packages using the cache if that directory is
3876     # removed, or if the value is a relative name.
3877     INSTALL=$ac_install_sh
3878   fi
3879 fi
3880 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3881 $as_echo "$INSTALL" >&6; }
3882
3883 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3884 # It thinks the first close brace ends the variable substitution.
3885 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3886
3887 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3888
3889 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3890
3891  { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3892 $as_echo_n "checking whether ln -s works... " >&6; }
3893 LN_S=$as_ln_s
3894 if test "$LN_S" = "ln -s"; then
3895   { $as_echo "$as_me:$LINENO: result: yes" >&5
3896 $as_echo "yes" >&6; }
3897 else
3898   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3899 $as_echo "no, using $LN_S" >&6; }
3900 fi
3901
3902  for ac_prog in gzip uncompress compress
3903 do
3904   # Extract the first word of "$ac_prog", so it can be a program name with args.
3905 set dummy $ac_prog; ac_word=$2
3906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3909   $as_echo_n "(cached) " >&6
3910 else
3911   if test -n "$UNCOMPRESS"; then
3912   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917   IFS=$as_save_IFS
3918   test -z "$as_dir" && as_dir=.
3919   for ac_exec_ext in '' $ac_executable_extensions; do
3920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921     ac_cv_prog_UNCOMPRESS="$ac_prog"
3922     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923     break 2
3924   fi
3925 done
3926 done
3927 IFS=$as_save_IFS
3928
3929 fi
3930 fi
3931 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3932 if test -n "$UNCOMPRESS"; then
3933   { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3934 $as_echo "$UNCOMPRESS" >&6; }
3935 else
3936   { $as_echo "$as_me:$LINENO: result: no" >&5
3937 $as_echo "no" >&6; }
3938 fi
3939
3940
3941   test -n "$UNCOMPRESS" && break
3942 done
3943
3944
3945
3946 OBJEXT="o"
3947 AREXT=".a"
3948 CXXLIBS="-lstdc++"
3949
3950
3951
3952 if test "x$EXEEXT" = "x.exe";then
3953     OBJEXT="obj"
3954     AREXT=".lib"
3955     CXXLIBS=""
3956 fi
3957
3958
3959
3960
3961 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3962 $as_echo_n "checking host system type... " >&6; }
3963 if test "${ac_cv_host+set}" = set; then
3964   $as_echo_n "(cached) " >&6
3965 else
3966   if test "x$host_alias" = x; then
3967   ac_cv_host=$ac_cv_build
3968 else
3969   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3970     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3971 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3972    { (exit 1); exit 1; }; }
3973 fi
3974
3975 fi
3976 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3977 $as_echo "$ac_cv_host" >&6; }
3978 case $ac_cv_host in
3979 *-*-*) ;;
3980 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3981 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3982    { (exit 1); exit 1; }; };;
3983 esac
3984 host=$ac_cv_host
3985 ac_save_IFS=$IFS; IFS='-'
3986 set x $ac_cv_host
3987 shift
3988 host_cpu=$1
3989 host_vendor=$2
3990 shift; shift
3991 # Remember, the first character of IFS is used to create $*,
3992 # except with old shells:
3993 host_os=$*
3994 IFS=$ac_save_IFS
3995 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3996
3997
3998
3999
4000 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4001 $as_echo_n "checking for target system... " >&6; }
4002 CYGWIN=
4003 MINGW=
4004 case $host_os in
4005     *cygwin* ) CYGWIN=yes;;
4006     *mingw* ) MINGW=yes;;
4007 esac
4008
4009 AR=ar
4010 if test "x$MINGW" = "xyes"; then
4011     #fix for the debian distribution of mingw
4012     if test -x "/usr/i586-mingw32msvc/bin/ar";then
4013         AR="/usr/i586-mingw32msvc/bin/ar"
4014     fi
4015     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4016         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4017     fi
4018     #fix for the gentoo distribution of mingw
4019     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4020         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4021     fi
4022     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4023         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4024     fi
4025     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4026         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4027     fi
4028 fi
4029
4030
4031
4032 if test "x${CYGWIN}" = "xyes"; then
4033
4034 cat >>confdefs.h <<\_ACEOF
4035 #define CYGWIN 1
4036 _ACEOF
4037
4038     { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4039 $as_echo "cygwin" >&6; }
4040 else
4041     if test "x${MINGW}" = "xyes"; then
4042
4043 cat >>confdefs.h <<\_ACEOF
4044 #define MINGW 1
4045 _ACEOF
4046
4047         WIN32=1
4048
4049 cat >>confdefs.h <<\_ACEOF
4050 #define WIN32 1
4051 _ACEOF
4052
4053         LIBS="$LIBS -lws2_32 -lgdi32"
4054         { $as_echo "$as_me:$LINENO: result: mingw" >&5
4055 $as_echo "mingw" >&6; }
4056     else
4057         LINUX=1
4058         export LINUX
4059
4060 cat >>confdefs.h <<\_ACEOF
4061 #define LINUX 1
4062 _ACEOF
4063
4064         { $as_echo "$as_me:$LINENO: result: " >&5
4065 $as_echo "" >&6; }
4066     fi
4067 fi
4068
4069
4070 SLEXT="so"
4071 if test "x${MINGW}" != "xyes"; then
4072     # no mingW
4073
4074 cat >>confdefs.h <<\_ACEOF
4075 #define O_BINARY 0
4076 _ACEOF
4077
4078 else
4079     # mingW
4080     SLEXT="dll"
4081     CXXLIBS=""
4082 fi
4083 export SLEXT
4084
4085
4086
4087 # The following tries to make use of includes and libraries in
4088 # /usr/local, too. Notice: A -I/usr/local/include might break
4089 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4090 # especially on systems which link /usr/local to /usr, so it has yet
4091 # to be seen how useful this is.
4092 if test -d /usr/local/lib; then
4093     LDFLAGS="$LDFLAGS -L/usr/local/lib"
4094 fi
4095 if test -d /usr/local/include; then
4096 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4097 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4098     echo > /dev/null
4099 fi
4100 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4101     # if the user has a special prefix (like /opt), there might also be $prefix/lib
4102     # and $prefix/include, which should be included in our search paths for libraries
4103     # and includes.
4104     LDFLAGS="$LDFLAGS -L${libdir}"
4105     CPPFLAGS="$CPPFLAGS -I${includedir}"
4106     # TODO- test whether gcc still works after this
4107 fi
4108
4109 #Mac OS:
4110 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4111
4112
4113 # this must be done after (I believe) AC_PROG_MAKE_SET
4114 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4115     if test "$MACOSX";then
4116         STRIP=dsymutil
4117     else
4118         STRIP="@echo debug enabled, not stripping "
4119     fi
4120     export STRIP
4121
4122 fi
4123
4124
4125
4126 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4127 $as_echo_n "checking for sin in -lm... " >&6; }
4128 if test "${ac_cv_lib_m_sin+set}" = set; then
4129   $as_echo_n "(cached) " >&6
4130 else
4131   ac_check_lib_save_LIBS=$LIBS
4132 LIBS="-lm  $LIBS"
4133 cat >conftest.$ac_ext <<_ACEOF
4134 /* confdefs.h.  */
4135 _ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h.  */
4139
4140 /* Override any GCC internal prototype to avoid an error.
4141    Use char because int might match the return type of a GCC
4142    builtin and then its argument prototype would still apply.  */
4143 #ifdef __cplusplus
4144 extern "C"
4145 #endif
4146 char sin ();
4147 int
4148 main ()
4149 {
4150 return sin ();
4151   ;
4152   return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.$ac_objext conftest$ac_exeext
4156 if { (ac_try="$ac_link"
4157 case "(($ac_try" in
4158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159   *) ac_try_echo=$ac_try;;
4160 esac
4161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4162 $as_echo "$ac_try_echo") >&5
4163   (eval "$ac_link") 2>conftest.er1
4164   ac_status=$?
4165   grep -v '^ *+' conftest.er1 >conftest.err
4166   rm -f conftest.er1
4167   cat conftest.err >&5
4168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); } && {
4170          test -z "$ac_c_werror_flag" ||
4171          test ! -s conftest.err
4172        } && test -s conftest$ac_exeext && {
4173          test "$cross_compiling" = yes ||
4174          $as_test_x conftest$ac_exeext
4175        }; then
4176   ac_cv_lib_m_sin=yes
4177 else
4178   $as_echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181         ac_cv_lib_m_sin=no
4182 fi
4183
4184 rm -rf conftest.dSYM
4185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4186       conftest$ac_exeext conftest.$ac_ext
4187 LIBS=$ac_check_lib_save_LIBS
4188 fi
4189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4190 $as_echo "$ac_cv_lib_m_sin" >&6; }
4191 if test "x$ac_cv_lib_m_sin" = x""yes; then
4192   cat >>confdefs.h <<_ACEOF
4193 #define HAVE_LIBM 1
4194 _ACEOF
4195
4196   LIBS="-lm $LIBS"
4197
4198 else
4199   echo "Error: Math library not found.";
4200  exit;
4201
4202 fi
4203
4204
4205 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4206 $as_echo_n "checking for deflate in -lz... " >&6; }
4207 if test "${ac_cv_lib_z_deflate+set}" = set; then
4208   $as_echo_n "(cached) " >&6
4209 else
4210   ac_check_lib_save_LIBS=$LIBS
4211 LIBS="-lz  $LIBS"
4212 cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h.  */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h.  */
4218
4219 /* Override any GCC internal prototype to avoid an error.
4220    Use char because int might match the return type of a GCC
4221    builtin and then its argument prototype would still apply.  */
4222 #ifdef __cplusplus
4223 extern "C"
4224 #endif
4225 char deflate ();
4226 int
4227 main ()
4228 {
4229 return deflate ();
4230   ;
4231   return 0;
4232 }
4233 _ACEOF
4234 rm -f conftest.$ac_objext conftest$ac_exeext
4235 if { (ac_try="$ac_link"
4236 case "(($ac_try" in
4237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238   *) ac_try_echo=$ac_try;;
4239 esac
4240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4241 $as_echo "$ac_try_echo") >&5
4242   (eval "$ac_link") 2>conftest.er1
4243   ac_status=$?
4244   grep -v '^ *+' conftest.er1 >conftest.err
4245   rm -f conftest.er1
4246   cat conftest.err >&5
4247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); } && {
4249          test -z "$ac_c_werror_flag" ||
4250          test ! -s conftest.err
4251        } && test -s conftest$ac_exeext && {
4252          test "$cross_compiling" = yes ||
4253          $as_test_x conftest$ac_exeext
4254        }; then
4255   ac_cv_lib_z_deflate=yes
4256 else
4257   $as_echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4259
4260         ac_cv_lib_z_deflate=no
4261 fi
4262
4263 rm -rf conftest.dSYM
4264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4265       conftest$ac_exeext conftest.$ac_ext
4266 LIBS=$ac_check_lib_save_LIBS
4267 fi
4268 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4269 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4270 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4271   cat >>confdefs.h <<_ACEOF
4272 #define HAVE_LIBZ 1
4273 _ACEOF
4274
4275   LIBS="-lz $LIBS"
4276
4277 else
4278   ZLIBMISSING=true
4279 fi
4280
4281
4282 if test "x$ZLIBMISSING" = "xtrue";then
4283     echo
4284     echo "ERROR:"
4285     echo "You need zlib to compile swftools"
4286     echo
4287     exit
4288 fi
4289
4290
4291 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4292 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4293 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4294   $as_echo_n "(cached) " >&6
4295 else
4296   ac_check_lib_save_LIBS=$LIBS
4297 LIBS="-ljpeg  $LIBS"
4298 cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h.  */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h.  */
4304
4305 /* Override any GCC internal prototype to avoid an error.
4306    Use char because int might match the return type of a GCC
4307    builtin and then its argument prototype would still apply.  */
4308 #ifdef __cplusplus
4309 extern "C"
4310 #endif
4311 char jpeg_write_raw_data ();
4312 int
4313 main ()
4314 {
4315 return jpeg_write_raw_data ();
4316   ;
4317   return 0;
4318 }
4319 _ACEOF
4320 rm -f conftest.$ac_objext conftest$ac_exeext
4321 if { (ac_try="$ac_link"
4322 case "(($ac_try" in
4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324   *) ac_try_echo=$ac_try;;
4325 esac
4326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4327 $as_echo "$ac_try_echo") >&5
4328   (eval "$ac_link") 2>conftest.er1
4329   ac_status=$?
4330   grep -v '^ *+' conftest.er1 >conftest.err
4331   rm -f conftest.er1
4332   cat conftest.err >&5
4333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } && {
4335          test -z "$ac_c_werror_flag" ||
4336          test ! -s conftest.err
4337        } && test -s conftest$ac_exeext && {
4338          test "$cross_compiling" = yes ||
4339          $as_test_x conftest$ac_exeext
4340        }; then
4341   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4342 else
4343   $as_echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346         ac_cv_lib_jpeg_jpeg_write_raw_data=no
4347 fi
4348
4349 rm -rf conftest.dSYM
4350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4351       conftest$ac_exeext conftest.$ac_ext
4352 LIBS=$ac_check_lib_save_LIBS
4353 fi
4354 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4355 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4356 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
4357   cat >>confdefs.h <<_ACEOF
4358 #define HAVE_LIBJPEG 1
4359 _ACEOF
4360
4361   LIBS="-ljpeg $LIBS"
4362
4363 else
4364   JPEGLIBMISSING=true
4365 fi
4366
4367
4368 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4369 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4370 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4371   $as_echo_n "(cached) " >&6
4372 else
4373   ac_check_lib_save_LIBS=$LIBS
4374 LIBS="-lungif  $LIBS"
4375 cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h.  */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h.  */
4381
4382 /* Override any GCC internal prototype to avoid an error.
4383    Use char because int might match the return type of a GCC
4384    builtin and then its argument prototype would still apply.  */
4385 #ifdef __cplusplus
4386 extern "C"
4387 #endif
4388 char DGifOpen ();
4389 int
4390 main ()
4391 {
4392 return DGifOpen ();
4393   ;
4394   return 0;
4395 }
4396 _ACEOF
4397 rm -f conftest.$ac_objext conftest$ac_exeext
4398 if { (ac_try="$ac_link"
4399 case "(($ac_try" in
4400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401   *) ac_try_echo=$ac_try;;
4402 esac
4403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4404 $as_echo "$ac_try_echo") >&5
4405   (eval "$ac_link") 2>conftest.er1
4406   ac_status=$?
4407   grep -v '^ *+' conftest.er1 >conftest.err
4408   rm -f conftest.er1
4409   cat conftest.err >&5
4410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } && {
4412          test -z "$ac_c_werror_flag" ||
4413          test ! -s conftest.err
4414        } && test -s conftest$ac_exeext && {
4415          test "$cross_compiling" = yes ||
4416          $as_test_x conftest$ac_exeext
4417        }; then
4418   ac_cv_lib_ungif_DGifOpen=yes
4419 else
4420   $as_echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423         ac_cv_lib_ungif_DGifOpen=no
4424 fi
4425
4426 rm -rf conftest.dSYM
4427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4428       conftest$ac_exeext conftest.$ac_ext
4429 LIBS=$ac_check_lib_save_LIBS
4430 fi
4431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4432 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4433 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then
4434   cat >>confdefs.h <<_ACEOF
4435 #define HAVE_LIBUNGIF 1
4436 _ACEOF
4437
4438   LIBS="-lungif $LIBS"
4439
4440 else
4441   UNGIFMISSING=true
4442 fi
4443
4444 if test "$UNGIFMISSING";then
4445     UNGIFMISSING=
4446
4447 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4448 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4449 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4450   $as_echo_n "(cached) " >&6
4451 else
4452   ac_check_lib_save_LIBS=$LIBS
4453 LIBS="-lgif  $LIBS"
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h.  */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h.  */
4460
4461 /* Override any GCC internal prototype to avoid an error.
4462    Use char because int might match the return type of a GCC
4463    builtin and then its argument prototype would still apply.  */
4464 #ifdef __cplusplus
4465 extern "C"
4466 #endif
4467 char DGifOpen ();
4468 int
4469 main ()
4470 {
4471 return DGifOpen ();
4472   ;
4473   return 0;
4474 }
4475 _ACEOF
4476 rm -f conftest.$ac_objext conftest$ac_exeext
4477 if { (ac_try="$ac_link"
4478 case "(($ac_try" in
4479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480   *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4483 $as_echo "$ac_try_echo") >&5
4484   (eval "$ac_link") 2>conftest.er1
4485   ac_status=$?
4486   grep -v '^ *+' conftest.er1 >conftest.err
4487   rm -f conftest.er1
4488   cat conftest.err >&5
4489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); } && {
4491          test -z "$ac_c_werror_flag" ||
4492          test ! -s conftest.err
4493        } && test -s conftest$ac_exeext && {
4494          test "$cross_compiling" = yes ||
4495          $as_test_x conftest$ac_exeext
4496        }; then
4497   ac_cv_lib_gif_DGifOpen=yes
4498 else
4499   $as_echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502         ac_cv_lib_gif_DGifOpen=no
4503 fi
4504
4505 rm -rf conftest.dSYM
4506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4507       conftest$ac_exeext conftest.$ac_ext
4508 LIBS=$ac_check_lib_save_LIBS
4509 fi
4510 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4511 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4512 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then
4513   cat >>confdefs.h <<_ACEOF
4514 #define HAVE_LIBGIF 1
4515 _ACEOF
4516
4517   LIBS="-lgif $LIBS"
4518
4519 else
4520   UNGIFMISSING=true
4521 fi
4522
4523 fi
4524
4525
4526 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4527 $as_echo_n "checking for byte order... " >&6; }
4528 if test "$cross_compiling" = yes; then
4529   CROSSCOMPILE=1
4530 else
4531   cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h.  */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h.  */
4537
4538 int main (int argc, char *argv[])
4539 {
4540     int i = 1;
4541     return *(char*)&i;
4542 }
4543
4544 _ACEOF
4545 rm -f conftest$ac_exeext
4546 if { (ac_try="$ac_link"
4547 case "(($ac_try" in
4548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549   *) ac_try_echo=$ac_try;;
4550 esac
4551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4552 $as_echo "$ac_try_echo") >&5
4553   (eval "$ac_link") 2>&5
4554   ac_status=$?
4555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4557   { (case "(($ac_try" in
4558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559   *) ac_try_echo=$ac_try;;
4560 esac
4561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4562 $as_echo "$ac_try_echo") >&5
4563   (eval "$ac_try") 2>&5
4564   ac_status=$?
4565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; }; then
4567   BIGENDIAN=1
4568 else
4569   $as_echo "$as_me: program exited with status $ac_status" >&5
4570 $as_echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4572
4573 ( exit $ac_status )
4574 LITTLEENDIAN=1
4575 fi
4576 rm -rf conftest.dSYM
4577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4578 fi
4579
4580
4581 export CROSSCOMPILE
4582
4583 if test "x${CROSSCOMPILE}" = "x1"; then
4584  { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4585 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4586  { $as_echo "$as_me:$LINENO: checking target system type" >&5
4587 $as_echo_n "checking target system type... " >&6; }
4588 if test "${ac_cv_target+set}" = set; then
4589   $as_echo_n "(cached) " >&6
4590 else
4591   if test "x$target_alias" = x; then
4592   ac_cv_target=$ac_cv_host
4593 else
4594   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4595     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4596 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4597    { (exit 1); exit 1; }; }
4598 fi
4599
4600 fi
4601 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4602 $as_echo "$ac_cv_target" >&6; }
4603 case $ac_cv_target in
4604 *-*-*) ;;
4605 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4606 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4607    { (exit 1); exit 1; }; };;
4608 esac
4609 target=$ac_cv_target
4610 ac_save_IFS=$IFS; IFS='-'
4611 set x $ac_cv_target
4612 shift
4613 target_cpu=$1
4614 target_vendor=$2
4615 shift; shift
4616 # Remember, the first character of IFS is used to create $*,
4617 # except with old shells:
4618 target_os=$*
4619 IFS=$ac_save_IFS
4620 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4621
4622
4623 # The aliases save the names the user supplied, while $host etc.
4624 # will get canonicalized.
4625 test -n "$target_alias" &&
4626   test "$program_prefix$program_suffix$program_transform_name" = \
4627     NONENONEs,x,x, &&
4628   program_prefix=${target_alias}-
4629  { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4630 $as_echo_n "checking for byte order, try 2... " >&6; }
4631  case "${target}" in
4632   *86* | *-pc-* )
4633      LITTLEENDIAN=1
4634      ;;
4635   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4636      BIGENDIAN=1
4637      ;;
4638  esac
4639 fi
4640
4641 export LITTLEENDIAN
4642 if test "x${LITTLEENDIAN}" = "x1"; then
4643 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4644 $as_echo "little endian" >&6; }
4645 BYTEORDERCHECKOK=1
4646 fi
4647 export BIGENDIAN
4648 if test "x${BIGENDIAN}" = "x1"; then
4649 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4650 $as_echo "big endian" >&6; }
4651 BYTEORDERCHECKOK=1
4652 WORDS_BIGENDIAN=1
4653 export WORDS_BIGENDIAN
4654
4655 cat >>confdefs.h <<\_ACEOF
4656 #define WORDS_BIGENDIAN 1
4657 _ACEOF
4658
4659 fi
4660 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4661 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4662 $as_echo "unknown" >&6; }
4663 echo Byte order could not determined.
4664 exit 1
4665 fi
4666
4667
4668
4669 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4670 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4671 if test "$cross_compiling" = yes; then
4672   CROSSCOMPILE=1
4673 else
4674   cat >conftest.$ac_ext <<_ACEOF
4675 /* confdefs.h.  */
4676 _ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h.  */
4680
4681 #include "stdlib.h"
4682 int main (int argc, char*argv[])
4683 {
4684     return system("test `touch config.tmp2`");
4685 }
4686
4687 _ACEOF
4688 rm -f conftest$ac_exeext
4689 if { (ac_try="$ac_link"
4690 case "(($ac_try" in
4691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692   *) ac_try_echo=$ac_try;;
4693 esac
4694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4695 $as_echo "$ac_try_echo") >&5
4696   (eval "$ac_link") 2>&5
4697   ac_status=$?
4698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4700   { (case "(($ac_try" in
4701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702   *) ac_try_echo=$ac_try;;
4703 esac
4704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4705 $as_echo "$ac_try_echo") >&5
4706   (eval "$ac_try") 2>&5
4707   ac_status=$?
4708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709   (exit $ac_status); }; }; then
4710   OK=OK
4711 else
4712   $as_echo "$as_me: program exited with status $ac_status" >&5
4713 $as_echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4715
4716 fi
4717 rm -rf conftest.dSYM
4718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4719 fi
4720
4721
4722
4723 if test "x${OK}" = "xOK";then
4724     test -f config.tmp2 || OK=
4725 fi
4726
4727 if test "x${CROSSCOMPILE}" = "x1";then
4728     OK=no;
4729 fi
4730 if test "x${OK}" = "xOK";then
4731 rm -f config.tmp2
4732 { $as_echo "$as_me:$LINENO: result: yes" >&5
4733 $as_echo "yes" >&6; }
4734 SYSTEM_BACKTICKS=1
4735 export SYSTEM_BACKTICKS
4736
4737 cat >>confdefs.h <<\_ACEOF
4738 #define SYSTEM_BACKTICKS 1
4739 _ACEOF
4740
4741 else
4742 { $as_echo "$as_me:$LINENO: result: no" >&5
4743 $as_echo "no" >&6; }
4744 fi
4745
4746
4747
4748 test "$program_prefix" != NONE &&
4749   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4750 # Use a double $ so make ignores it.
4751 test "$program_suffix" != NONE &&
4752   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4753 # Double any \ or $.
4754 # By default was `s,x,x', remove it if useless.
4755 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4756 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4757
4758
4759  ac_config_headers="$ac_config_headers config.h"
4760
4761
4762
4763
4764
4765
4766 ac_header_dirent=no
4767 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4768   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4769 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4770 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4772   $as_echo_n "(cached) " >&6
4773 else
4774   cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h.  */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h.  */
4780 #include <sys/types.h>
4781 #include <$ac_hdr>
4782
4783 int
4784 main ()
4785 {
4786 if ((DIR *) 0)
4787 return 0;
4788   ;
4789   return 0;
4790 }
4791 _ACEOF
4792 rm -f conftest.$ac_objext
4793 if { (ac_try="$ac_compile"
4794 case "(($ac_try" in
4795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796   *) ac_try_echo=$ac_try;;
4797 esac
4798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4799 $as_echo "$ac_try_echo") >&5
4800   (eval "$ac_compile") 2>conftest.er1
4801   ac_status=$?
4802   grep -v '^ *+' conftest.er1 >conftest.err
4803   rm -f conftest.er1
4804   cat conftest.err >&5
4805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); } && {
4807          test -z "$ac_c_werror_flag" ||
4808          test ! -s conftest.err
4809        } && test -s conftest.$ac_objext; then
4810   eval "$as_ac_Header=yes"
4811 else
4812   $as_echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815         eval "$as_ac_Header=no"
4816 fi
4817
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 fi
4820 ac_res=`eval 'as_val=${'$as_ac_Header'}
4821                  $as_echo "$as_val"'`
4822                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4823 $as_echo "$ac_res" >&6; }
4824 as_val=`eval 'as_val=${'$as_ac_Header'}
4825                  $as_echo "$as_val"'`
4826    if test "x$as_val" = x""yes; then
4827   cat >>confdefs.h <<_ACEOF
4828 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4829 _ACEOF
4830
4831 ac_header_dirent=$ac_hdr; break
4832 fi
4833
4834 done
4835 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4836 if test $ac_header_dirent = dirent.h; then
4837   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4838 $as_echo_n "checking for library containing opendir... " >&6; }
4839 if test "${ac_cv_search_opendir+set}" = set; then
4840   $as_echo_n "(cached) " >&6
4841 else
4842   ac_func_search_save_LIBS=$LIBS
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h.  */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h.  */
4849
4850 /* Override any GCC internal prototype to avoid an error.
4851    Use char because int might match the return type of a GCC
4852    builtin and then its argument prototype would still apply.  */
4853 #ifdef __cplusplus
4854 extern "C"
4855 #endif
4856 char opendir ();
4857 int
4858 main ()
4859 {
4860 return opendir ();
4861   ;
4862   return 0;
4863 }
4864 _ACEOF
4865 for ac_lib in '' dir; do
4866   if test -z "$ac_lib"; then
4867     ac_res="none required"
4868   else
4869     ac_res=-l$ac_lib
4870     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4871   fi
4872   rm -f conftest.$ac_objext conftest$ac_exeext
4873 if { (ac_try="$ac_link"
4874 case "(($ac_try" in
4875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876   *) ac_try_echo=$ac_try;;
4877 esac
4878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4879 $as_echo "$ac_try_echo") >&5
4880   (eval "$ac_link") 2>conftest.er1
4881   ac_status=$?
4882   grep -v '^ *+' conftest.er1 >conftest.err
4883   rm -f conftest.er1
4884   cat conftest.err >&5
4885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); } && {
4887          test -z "$ac_c_werror_flag" ||
4888          test ! -s conftest.err
4889        } && test -s conftest$ac_exeext && {
4890          test "$cross_compiling" = yes ||
4891          $as_test_x conftest$ac_exeext
4892        }; then
4893   ac_cv_search_opendir=$ac_res
4894 else
4895   $as_echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4897
4898
4899 fi
4900
4901 rm -rf conftest.dSYM
4902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4903       conftest$ac_exeext
4904   if test "${ac_cv_search_opendir+set}" = set; then
4905   break
4906 fi
4907 done
4908 if test "${ac_cv_search_opendir+set}" = set; then
4909   :
4910 else
4911   ac_cv_search_opendir=no
4912 fi
4913 rm conftest.$ac_ext
4914 LIBS=$ac_func_search_save_LIBS
4915 fi
4916 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4917 $as_echo "$ac_cv_search_opendir" >&6; }
4918 ac_res=$ac_cv_search_opendir
4919 if test "$ac_res" != no; then
4920   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4921
4922 fi
4923
4924 else
4925   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4926 $as_echo_n "checking for library containing opendir... " >&6; }
4927 if test "${ac_cv_search_opendir+set}" = set; then
4928   $as_echo_n "(cached) " >&6
4929 else
4930   ac_func_search_save_LIBS=$LIBS
4931 cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h.  */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h.  */
4937
4938 /* Override any GCC internal prototype to avoid an error.
4939    Use char because int might match the return type of a GCC
4940    builtin and then its argument prototype would still apply.  */
4941 #ifdef __cplusplus
4942 extern "C"
4943 #endif
4944 char opendir ();
4945 int
4946 main ()
4947 {
4948 return opendir ();
4949   ;
4950   return 0;
4951 }
4952 _ACEOF
4953 for ac_lib in '' x; do
4954   if test -z "$ac_lib"; then
4955     ac_res="none required"
4956   else
4957     ac_res=-l$ac_lib
4958     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4959   fi
4960   rm -f conftest.$ac_objext conftest$ac_exeext
4961 if { (ac_try="$ac_link"
4962 case "(($ac_try" in
4963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964   *) ac_try_echo=$ac_try;;
4965 esac
4966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4967 $as_echo "$ac_try_echo") >&5
4968   (eval "$ac_link") 2>conftest.er1
4969   ac_status=$?
4970   grep -v '^ *+' conftest.er1 >conftest.err
4971   rm -f conftest.er1
4972   cat conftest.err >&5
4973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); } && {
4975          test -z "$ac_c_werror_flag" ||
4976          test ! -s conftest.err
4977        } && test -s conftest$ac_exeext && {
4978          test "$cross_compiling" = yes ||
4979          $as_test_x conftest$ac_exeext
4980        }; then
4981   ac_cv_search_opendir=$ac_res
4982 else
4983   $as_echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4985
4986
4987 fi
4988
4989 rm -rf conftest.dSYM
4990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4991       conftest$ac_exeext
4992   if test "${ac_cv_search_opendir+set}" = set; then
4993   break
4994 fi
4995 done
4996 if test "${ac_cv_search_opendir+set}" = set; then
4997   :
4998 else
4999   ac_cv_search_opendir=no
5000 fi
5001 rm conftest.$ac_ext
5002 LIBS=$ac_func_search_save_LIBS
5003 fi
5004 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5005 $as_echo "$ac_cv_search_opendir" >&6; }
5006 ac_res=$ac_cv_search_opendir
5007 if test "$ac_res" != no; then
5008   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5009
5010 fi
5011
5012 fi
5013
5014
5015 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5016 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5017 if test "${ac_cv_path_GREP+set}" = set; then
5018   $as_echo_n "(cached) " >&6
5019 else
5020   if test -z "$GREP"; then
5021   ac_path_GREP_found=false
5022   # Loop through the user's path and test for each of PROGNAME-LIST
5023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5025 do
5026   IFS=$as_save_IFS
5027   test -z "$as_dir" && as_dir=.
5028   for ac_prog in grep ggrep; do
5029     for ac_exec_ext in '' $ac_executable_extensions; do
5030       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5031       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5032 # Check for GNU ac_path_GREP and select it if it is found.
5033   # Check for GNU $ac_path_GREP
5034 case `"$ac_path_GREP" --version 2>&1` in
5035 *GNU*)
5036   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5037 *)
5038   ac_count=0
5039   $as_echo_n 0123456789 >"conftest.in"
5040   while :
5041   do
5042     cat "conftest.in" "conftest.in" >"conftest.tmp"
5043     mv "conftest.tmp" "conftest.in"
5044     cp "conftest.in" "conftest.nl"
5045     $as_echo 'GREP' >> "conftest.nl"
5046     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5047     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5048     ac_count=`expr $ac_count + 1`
5049     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5050       # Best one so far, save it but keep looking for a better one
5051       ac_cv_path_GREP="$ac_path_GREP"
5052       ac_path_GREP_max=$ac_count
5053     fi
5054     # 10*(2^10) chars as input seems more than enough
5055     test $ac_count -gt 10 && break
5056   done
5057   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5058 esac
5059
5060       $ac_path_GREP_found && break 3
5061     done
5062   done
5063 done
5064 IFS=$as_save_IFS
5065   if test -z "$ac_cv_path_GREP"; then
5066     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5067 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5068    { (exit 1); exit 1; }; }
5069   fi
5070 else
5071   ac_cv_path_GREP=$GREP
5072 fi
5073
5074 fi
5075 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5076 $as_echo "$ac_cv_path_GREP" >&6; }
5077  GREP="$ac_cv_path_GREP"
5078
5079
5080 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5081 $as_echo_n "checking for egrep... " >&6; }
5082 if test "${ac_cv_path_EGREP+set}" = set; then
5083   $as_echo_n "(cached) " >&6
5084 else
5085   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5086    then ac_cv_path_EGREP="$GREP -E"
5087    else
5088      if test -z "$EGREP"; then
5089   ac_path_EGREP_found=false
5090   # Loop through the user's path and test for each of PROGNAME-LIST
5091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5093 do
5094   IFS=$as_save_IFS
5095   test -z "$as_dir" && as_dir=.
5096   for ac_prog in egrep; do
5097     for ac_exec_ext in '' $ac_executable_extensions; do
5098       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5099       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5100 # Check for GNU ac_path_EGREP and select it if it is found.
5101   # Check for GNU $ac_path_EGREP
5102 case `"$ac_path_EGREP" --version 2>&1` in
5103 *GNU*)
5104   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5105 *)
5106   ac_count=0
5107   $as_echo_n 0123456789 >"conftest.in"
5108   while :
5109   do
5110     cat "conftest.in" "conftest.in" >"conftest.tmp"
5111     mv "conftest.tmp" "conftest.in"
5112     cp "conftest.in" "conftest.nl"
5113     $as_echo 'EGREP' >> "conftest.nl"
5114     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5115     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5116     ac_count=`expr $ac_count + 1`
5117     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5118       # Best one so far, save it but keep looking for a better one
5119       ac_cv_path_EGREP="$ac_path_EGREP"
5120       ac_path_EGREP_max=$ac_count
5121     fi
5122     # 10*(2^10) chars as input seems more than enough
5123     test $ac_count -gt 10 && break
5124   done
5125   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5126 esac
5127
5128       $ac_path_EGREP_found && break 3
5129     done
5130   done
5131 done
5132 IFS=$as_save_IFS
5133   if test -z "$ac_cv_path_EGREP"; then
5134     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5135 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5136    { (exit 1); exit 1; }; }
5137   fi
5138 else
5139   ac_cv_path_EGREP=$EGREP
5140 fi
5141
5142    fi
5143 fi
5144 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5145 $as_echo "$ac_cv_path_EGREP" >&6; }
5146  EGREP="$ac_cv_path_EGREP"
5147
5148
5149 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5150 $as_echo_n "checking for ANSI C header files... " >&6; }
5151 if test "${ac_cv_header_stdc+set}" = set; then
5152   $as_echo_n "(cached) " >&6
5153 else
5154   cat >conftest.$ac_ext <<_ACEOF
5155 /* confdefs.h.  */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h.  */
5160 #include <stdlib.h>
5161 #include <stdarg.h>
5162 #include <string.h>
5163 #include <float.h>
5164
5165 int
5166 main ()
5167 {
5168
5169   ;
5170   return 0;
5171 }
5172 _ACEOF
5173 rm -f conftest.$ac_objext
5174 if { (ac_try="$ac_compile"
5175 case "(($ac_try" in
5176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177   *) ac_try_echo=$ac_try;;
5178 esac
5179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5180 $as_echo "$ac_try_echo") >&5
5181   (eval "$ac_compile") 2>conftest.er1
5182   ac_status=$?
5183   grep -v '^ *+' conftest.er1 >conftest.err
5184   rm -f conftest.er1
5185   cat conftest.err >&5
5186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); } && {
5188          test -z "$ac_c_werror_flag" ||
5189          test ! -s conftest.err
5190        } && test -s conftest.$ac_objext; then
5191   ac_cv_header_stdc=yes
5192 else
5193   $as_echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5195
5196         ac_cv_header_stdc=no
5197 fi
5198
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200
5201 if test $ac_cv_header_stdc = yes; then
5202   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5203   cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h.  */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h.  */
5209 #include <string.h>
5210
5211 _ACEOF
5212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213   $EGREP "memchr" >/dev/null 2>&1; then
5214   :
5215 else
5216   ac_cv_header_stdc=no
5217 fi
5218 rm -f conftest*
5219
5220 fi
5221
5222 if test $ac_cv_header_stdc = yes; then
5223   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5224   cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h.  */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h.  */
5230 #include <stdlib.h>
5231
5232 _ACEOF
5233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5234   $EGREP "free" >/dev/null 2>&1; then
5235   :
5236 else
5237   ac_cv_header_stdc=no
5238 fi
5239 rm -f conftest*
5240
5241 fi
5242
5243 if test $ac_cv_header_stdc = yes; then
5244   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5245   if test "$cross_compiling" = yes; then
5246   :
5247 else
5248   cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h.  */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h.  */
5254 #include <ctype.h>
5255 #include <stdlib.h>
5256 #if ((' ' & 0x0FF) == 0x020)
5257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5259 #else
5260 # define ISLOWER(c) \
5261                    (('a' <= (c) && (c) <= 'i') \
5262                      || ('j' <= (c) && (c) <= 'r') \
5263                      || ('s' <= (c) && (c) <= 'z'))
5264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5265 #endif
5266
5267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5268 int
5269 main ()
5270 {
5271   int i;
5272   for (i = 0; i < 256; i++)
5273     if (XOR (islower (i), ISLOWER (i))
5274         || toupper (i) != TOUPPER (i))
5275       return 2;
5276   return 0;
5277 }
5278 _ACEOF
5279 rm -f conftest$ac_exeext
5280 if { (ac_try="$ac_link"
5281 case "(($ac_try" in
5282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283   *) ac_try_echo=$ac_try;;
5284 esac
5285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5286 $as_echo "$ac_try_echo") >&5
5287   (eval "$ac_link") 2>&5
5288   ac_status=$?
5289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5291   { (case "(($ac_try" in
5292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293   *) ac_try_echo=$ac_try;;
5294 esac
5295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5296 $as_echo "$ac_try_echo") >&5
5297   (eval "$ac_try") 2>&5
5298   ac_status=$?
5299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }; }; then
5301   :
5302 else
5303   $as_echo "$as_me: program exited with status $ac_status" >&5
5304 $as_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 -rf conftest.dSYM
5311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5312 fi
5313
5314
5315 fi
5316 fi
5317 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5318 $as_echo "$ac_cv_header_stdc" >&6; }
5319 if test $ac_cv_header_stdc = yes; then
5320
5321 cat >>confdefs.h <<\_ACEOF
5322 #define STDC_HEADERS 1
5323 _ACEOF
5324
5325 fi
5326
5327
5328  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5339                   inttypes.h stdint.h unistd.h
5340 do
5341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5342 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5343 $as_echo_n "checking for $ac_header... " >&6; }
5344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5345   $as_echo_n "(cached) " >&6
5346 else
5347   cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h.  */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h.  */
5353 $ac_includes_default
5354
5355 #include <$ac_header>
5356 _ACEOF
5357 rm -f conftest.$ac_objext
5358 if { (ac_try="$ac_compile"
5359 case "(($ac_try" in
5360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361   *) ac_try_echo=$ac_try;;
5362 esac
5363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5364 $as_echo "$ac_try_echo") >&5
5365   (eval "$ac_compile") 2>conftest.er1
5366   ac_status=$?
5367   grep -v '^ *+' conftest.er1 >conftest.err
5368   rm -f conftest.er1
5369   cat conftest.err >&5
5370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371   (exit $ac_status); } && {
5372          test -z "$ac_c_werror_flag" ||
5373          test ! -s conftest.err
5374        } && test -s conftest.$ac_objext; then
5375   eval "$as_ac_Header=yes"
5376 else
5377   $as_echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5379
5380         eval "$as_ac_Header=no"
5381 fi
5382
5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 fi
5385 ac_res=`eval 'as_val=${'$as_ac_Header'}
5386                  $as_echo "$as_val"'`
5387                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5388 $as_echo "$ac_res" >&6; }
5389 as_val=`eval 'as_val=${'$as_ac_Header'}
5390                  $as_echo "$as_val"'`
5391    if test "x$as_val" = x""yes; then
5392   cat >>confdefs.h <<_ACEOF
5393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5394 _ACEOF
5395
5396 fi
5397
5398 done
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420 for ac_header in zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/mman.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h
5421 do
5422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5424   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5425 $as_echo_n "checking for $ac_header... " >&6; }
5426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5427   $as_echo_n "(cached) " >&6
5428 fi
5429 ac_res=`eval 'as_val=${'$as_ac_Header'}
5430                  $as_echo "$as_val"'`
5431                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5432 $as_echo "$ac_res" >&6; }
5433 else
5434   # Is the header compilable?
5435 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5436 $as_echo_n "checking $ac_header usability... " >&6; }
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h.  */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h.  */
5443 $ac_includes_default
5444 #include <$ac_header>
5445 _ACEOF
5446 rm -f conftest.$ac_objext
5447 if { (ac_try="$ac_compile"
5448 case "(($ac_try" in
5449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450   *) ac_try_echo=$ac_try;;
5451 esac
5452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5453 $as_echo "$ac_try_echo") >&5
5454   (eval "$ac_compile") 2>conftest.er1
5455   ac_status=$?
5456   grep -v '^ *+' conftest.er1 >conftest.err
5457   rm -f conftest.er1
5458   cat conftest.err >&5
5459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); } && {
5461          test -z "$ac_c_werror_flag" ||
5462          test ! -s conftest.err
5463        } && test -s conftest.$ac_objext; then
5464   ac_header_compiler=yes
5465 else
5466   $as_echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469         ac_header_compiler=no
5470 fi
5471
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5474 $as_echo "$ac_header_compiler" >&6; }
5475
5476 # Is the header present?
5477 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5478 $as_echo_n "checking $ac_header presence... " >&6; }
5479 cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h.  */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h.  */
5485 #include <$ac_header>
5486 _ACEOF
5487 if { (ac_try="$ac_cpp conftest.$ac_ext"
5488 case "(($ac_try" in
5489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490   *) ac_try_echo=$ac_try;;
5491 esac
5492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5493 $as_echo "$ac_try_echo") >&5
5494   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5495   ac_status=$?
5496   grep -v '^ *+' conftest.er1 >conftest.err
5497   rm -f conftest.er1
5498   cat conftest.err >&5
5499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); } >/dev/null && {
5501          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5502          test ! -s conftest.err
5503        }; then
5504   ac_header_preproc=yes
5505 else
5506   $as_echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5508
5509   ac_header_preproc=no
5510 fi
5511
5512 rm -f conftest.err conftest.$ac_ext
5513 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5514 $as_echo "$ac_header_preproc" >&6; }
5515
5516 # So?  What about this header?
5517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5518   yes:no: )
5519     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5520 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5521     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5522 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5523     ac_header_preproc=yes
5524     ;;
5525   no:yes:* )
5526     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5527 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5528     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5529 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5530     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5531 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5532     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5533 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5534     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5535 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5536     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5537 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5538
5539     ;;
5540 esac
5541 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5542 $as_echo_n "checking for $ac_header... " >&6; }
5543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5544   $as_echo_n "(cached) " >&6
5545 else
5546   eval "$as_ac_Header=\$ac_header_preproc"
5547 fi
5548 ac_res=`eval 'as_val=${'$as_ac_Header'}
5549                  $as_echo "$as_val"'`
5550                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5551 $as_echo "$ac_res" >&6; }
5552
5553 fi
5554 as_val=`eval 'as_val=${'$as_ac_Header'}
5555                  $as_echo "$as_val"'`
5556    if test "x$as_val" = x""yes; then
5557   cat >>confdefs.h <<_ACEOF
5558 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5559 _ACEOF
5560
5561 fi
5562
5563 done
5564
5565
5566
5567 cat >>confdefs.h <<_ACEOF
5568 #define PACKAGE "$PACKAGE"
5569 _ACEOF
5570
5571
5572 cat >>confdefs.h <<_ACEOF
5573 #define VERSION "$VERSION"
5574 _ACEOF
5575
5576
5577
5578
5579
5580
5581
5582  { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5583 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5584 if test "${ac_cv_c_const+set}" = set; then
5585   $as_echo_n "(cached) " >&6
5586 else
5587   cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h.  */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h.  */
5593
5594 int
5595 main ()
5596 {
5597 /* FIXME: Include the comments suggested by Paul. */
5598 #ifndef __cplusplus
5599   /* Ultrix mips cc rejects this.  */
5600   typedef int charset[2];
5601   const charset cs;
5602   /* SunOS 4.1.1 cc rejects this.  */
5603   char const *const *pcpcc;
5604   char **ppc;
5605   /* NEC SVR4.0.2 mips cc rejects this.  */
5606   struct point {int x, y;};
5607   static struct point const zero = {0,0};
5608   /* AIX XL C 1.02.0.0 rejects this.
5609      It does not let you subtract one const X* pointer from another in
5610      an arm of an if-expression whose if-part is not a constant
5611      expression */
5612   const char *g = "string";
5613   pcpcc = &g + (g ? g-g : 0);
5614   /* HPUX 7.0 cc rejects these. */
5615   ++pcpcc;
5616   ppc = (char**) pcpcc;
5617   pcpcc = (char const *const *) ppc;
5618   { /* SCO 3.2v4 cc rejects this.  */
5619     char *t;
5620     char const *s = 0 ? (char *) 0 : (char const *) 0;
5621
5622     *t++ = 0;
5623     if (s) return 0;
5624   }
5625   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5626     int x[] = {25, 17};
5627     const int *foo = &x[0];
5628     ++foo;
5629   }
5630   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5631     typedef const int *iptr;
5632     iptr p = 0;
5633     ++p;
5634   }
5635   { /* AIX XL C 1.02.0.0 rejects this saying
5636        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5637     struct s { int j; const int *ap[3]; };
5638     struct s *b; b->j = 5;
5639   }
5640   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5641     const int foo = 10;
5642     if (!foo) return 0;
5643   }
5644   return !cs[0] && !zero.x;
5645 #endif
5646
5647   ;
5648   return 0;
5649 }
5650 _ACEOF
5651 rm -f conftest.$ac_objext
5652 if { (ac_try="$ac_compile"
5653 case "(($ac_try" in
5654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655   *) ac_try_echo=$ac_try;;
5656 esac
5657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5658 $as_echo "$ac_try_echo") >&5
5659   (eval "$ac_compile") 2>conftest.er1
5660   ac_status=$?
5661   grep -v '^ *+' conftest.er1 >conftest.err
5662   rm -f conftest.er1
5663   cat conftest.err >&5
5664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); } && {
5666          test -z "$ac_c_werror_flag" ||
5667          test ! -s conftest.err
5668        } && test -s conftest.$ac_objext; then
5669   ac_cv_c_const=yes
5670 else
5671   $as_echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5673
5674         ac_cv_c_const=no
5675 fi
5676
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 fi
5679 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5680 $as_echo "$ac_cv_c_const" >&6; }
5681 if test $ac_cv_c_const = no; then
5682
5683 cat >>confdefs.h <<\_ACEOF
5684 #define const /**/
5685 _ACEOF
5686
5687 fi
5688
5689  { $as_echo "$as_me:$LINENO: checking for inline" >&5
5690 $as_echo_n "checking for inline... " >&6; }
5691 if test "${ac_cv_c_inline+set}" = set; then
5692   $as_echo_n "(cached) " >&6
5693 else
5694   ac_cv_c_inline=no
5695 for ac_kw in inline __inline__ __inline; do
5696   cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h.  */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h.  */
5702 #ifndef __cplusplus
5703 typedef int foo_t;
5704 static $ac_kw foo_t static_foo () {return 0; }
5705 $ac_kw foo_t foo () {return 0; }
5706 #endif
5707
5708 _ACEOF
5709 rm -f conftest.$ac_objext
5710 if { (ac_try="$ac_compile"
5711 case "(($ac_try" in
5712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713   *) ac_try_echo=$ac_try;;
5714 esac
5715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5716 $as_echo "$ac_try_echo") >&5
5717   (eval "$ac_compile") 2>conftest.er1
5718   ac_status=$?
5719   grep -v '^ *+' conftest.er1 >conftest.err
5720   rm -f conftest.er1
5721   cat conftest.err >&5
5722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); } && {
5724          test -z "$ac_c_werror_flag" ||
5725          test ! -s conftest.err
5726        } && test -s conftest.$ac_objext; then
5727   ac_cv_c_inline=$ac_kw
5728 else
5729   $as_echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5731
5732
5733 fi
5734
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736   test "$ac_cv_c_inline" != no && break
5737 done
5738
5739 fi
5740 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5741 $as_echo "$ac_cv_c_inline" >&6; }
5742
5743
5744 case $ac_cv_c_inline in
5745   inline | yes) ;;
5746   *)
5747     case $ac_cv_c_inline in
5748       no) ac_val=;;
5749       *) ac_val=$ac_cv_c_inline;;
5750     esac
5751     cat >>confdefs.h <<_ACEOF
5752 #ifndef __cplusplus
5753 #define inline $ac_val
5754 #endif
5755 _ACEOF
5756     ;;
5757 esac
5758
5759  { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5760 $as_echo_n "checking for off_t... " >&6; }
5761 if test "${ac_cv_type_off_t+set}" = set; then
5762   $as_echo_n "(cached) " >&6
5763 else
5764   ac_cv_type_off_t=no
5765 cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h.  */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h.  */
5771 $ac_includes_default
5772 int
5773 main ()
5774 {
5775 if (sizeof (off_t))
5776        return 0;
5777   ;
5778   return 0;
5779 }
5780 _ACEOF
5781 rm -f conftest.$ac_objext
5782 if { (ac_try="$ac_compile"
5783 case "(($ac_try" in
5784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785   *) ac_try_echo=$ac_try;;
5786 esac
5787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5788 $as_echo "$ac_try_echo") >&5
5789   (eval "$ac_compile") 2>conftest.er1
5790   ac_status=$?
5791   grep -v '^ *+' conftest.er1 >conftest.err
5792   rm -f conftest.er1
5793   cat conftest.err >&5
5794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); } && {
5796          test -z "$ac_c_werror_flag" ||
5797          test ! -s conftest.err
5798        } && test -s conftest.$ac_objext; then
5799   cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h.  */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h.  */
5805 $ac_includes_default
5806 int
5807 main ()
5808 {
5809 if (sizeof ((off_t)))
5810           return 0;
5811   ;
5812   return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5817 case "(($ac_try" in
5818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819   *) ac_try_echo=$ac_try;;
5820 esac
5821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5822 $as_echo "$ac_try_echo") >&5
5823   (eval "$ac_compile") 2>conftest.er1
5824   ac_status=$?
5825   grep -v '^ *+' conftest.er1 >conftest.err
5826   rm -f conftest.er1
5827   cat conftest.err >&5
5828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } && {
5830          test -z "$ac_c_werror_flag" ||
5831          test ! -s conftest.err
5832        } && test -s conftest.$ac_objext; then
5833   :
5834 else
5835   $as_echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5837
5838         ac_cv_type_off_t=yes
5839 fi
5840
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 else
5843   $as_echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5845
5846
5847 fi
5848
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 fi
5851 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5852 $as_echo "$ac_cv_type_off_t" >&6; }
5853 if test "x$ac_cv_type_off_t" = x""yes; then
5854   :
5855 else
5856
5857 cat >>confdefs.h <<_ACEOF
5858 #define off_t long int
5859 _ACEOF
5860
5861 fi
5862
5863  { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5864 $as_echo_n "checking for size_t... " >&6; }
5865 if test "${ac_cv_type_size_t+set}" = set; then
5866   $as_echo_n "(cached) " >&6
5867 else
5868   ac_cv_type_size_t=no
5869 cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h.  */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h.  */
5875 $ac_includes_default
5876 int
5877 main ()
5878 {
5879 if (sizeof (size_t))
5880        return 0;
5881   ;
5882   return 0;
5883 }
5884 _ACEOF
5885 rm -f conftest.$ac_objext
5886 if { (ac_try="$ac_compile"
5887 case "(($ac_try" in
5888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889   *) ac_try_echo=$ac_try;;
5890 esac
5891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5892 $as_echo "$ac_try_echo") >&5
5893   (eval "$ac_compile") 2>conftest.er1
5894   ac_status=$?
5895   grep -v '^ *+' conftest.er1 >conftest.err
5896   rm -f conftest.er1
5897   cat conftest.err >&5
5898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899   (exit $ac_status); } && {
5900          test -z "$ac_c_werror_flag" ||
5901          test ! -s conftest.err
5902        } && test -s conftest.$ac_objext; then
5903   cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h.  */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h.  */
5909 $ac_includes_default
5910 int
5911 main ()
5912 {
5913 if (sizeof ((size_t)))
5914           return 0;
5915   ;
5916   return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (ac_try="$ac_compile"
5921 case "(($ac_try" in
5922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923   *) ac_try_echo=$ac_try;;
5924 esac
5925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5926 $as_echo "$ac_try_echo") >&5
5927   (eval "$ac_compile") 2>conftest.er1
5928   ac_status=$?
5929   grep -v '^ *+' conftest.er1 >conftest.err
5930   rm -f conftest.er1
5931   cat conftest.err >&5
5932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); } && {
5934          test -z "$ac_c_werror_flag" ||
5935          test ! -s conftest.err
5936        } && test -s conftest.$ac_objext; then
5937   :
5938 else
5939   $as_echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942         ac_cv_type_size_t=yes
5943 fi
5944
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 else
5947   $as_echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950
5951 fi
5952
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 fi
5955 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5956 $as_echo "$ac_cv_type_size_t" >&6; }
5957 if test "x$ac_cv_type_size_t" = x""yes; then
5958   :
5959 else
5960
5961 cat >>confdefs.h <<_ACEOF
5962 #define size_t unsigned int
5963 _ACEOF
5964
5965 fi
5966
5967  { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5968 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5969 if test "${ac_cv_struct_tm+set}" = set; then
5970   $as_echo_n "(cached) " >&6
5971 else
5972   cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h.  */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h.  */
5978 #include <sys/types.h>
5979 #include <time.h>
5980
5981 int
5982 main ()
5983 {
5984 struct tm tm;
5985                                      int *p = &tm.tm_sec;
5986                                      return !p;
5987   ;
5988   return 0;
5989 }
5990 _ACEOF
5991 rm -f conftest.$ac_objext
5992 if { (ac_try="$ac_compile"
5993 case "(($ac_try" in
5994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995   *) ac_try_echo=$ac_try;;
5996 esac
5997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5998 $as_echo "$ac_try_echo") >&5
5999   (eval "$ac_compile") 2>conftest.er1
6000   ac_status=$?
6001   grep -v '^ *+' conftest.er1 >conftest.err
6002   rm -f conftest.er1
6003   cat conftest.err >&5
6004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } && {
6006          test -z "$ac_c_werror_flag" ||
6007          test ! -s conftest.err
6008        } && test -s conftest.$ac_objext; then
6009   ac_cv_struct_tm=time.h
6010 else
6011   $as_echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014         ac_cv_struct_tm=sys/time.h
6015 fi
6016
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 fi
6019 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6020 $as_echo "$ac_cv_struct_tm" >&6; }
6021 if test $ac_cv_struct_tm = sys/time.h; then
6022
6023 cat >>confdefs.h <<\_ACEOF
6024 #define TM_IN_SYS_TIME 1
6025 _ACEOF
6026
6027 fi
6028
6029  { $as_echo "$as_me:$LINENO: checking for boolean" >&5
6030 $as_echo_n "checking for boolean... " >&6; }
6031 if test "${ac_cv_type_boolean+set}" = set; then
6032   $as_echo_n "(cached) " >&6
6033 else
6034   ac_cv_type_boolean=no
6035 cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h.  */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h.  */
6041 $ac_includes_default
6042 int
6043 main ()
6044 {
6045 if (sizeof (boolean))
6046        return 0;
6047   ;
6048   return 0;
6049 }
6050 _ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (ac_try="$ac_compile"
6053 case "(($ac_try" in
6054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055   *) ac_try_echo=$ac_try;;
6056 esac
6057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6058 $as_echo "$ac_try_echo") >&5
6059   (eval "$ac_compile") 2>conftest.er1
6060   ac_status=$?
6061   grep -v '^ *+' conftest.er1 >conftest.err
6062   rm -f conftest.er1
6063   cat conftest.err >&5
6064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); } && {
6066          test -z "$ac_c_werror_flag" ||
6067          test ! -s conftest.err
6068        } && test -s conftest.$ac_objext; then
6069   cat >conftest.$ac_ext <<_ACEOF
6070 /* confdefs.h.  */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h.  */
6075 $ac_includes_default
6076 int
6077 main ()
6078 {
6079 if (sizeof ((boolean)))
6080           return 0;
6081   ;
6082   return 0;
6083 }
6084 _ACEOF
6085 rm -f conftest.$ac_objext
6086 if { (ac_try="$ac_compile"
6087 case "(($ac_try" in
6088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089   *) ac_try_echo=$ac_try;;
6090 esac
6091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6092 $as_echo "$ac_try_echo") >&5
6093   (eval "$ac_compile") 2>conftest.er1
6094   ac_status=$?
6095   grep -v '^ *+' conftest.er1 >conftest.err
6096   rm -f conftest.er1
6097   cat conftest.err >&5
6098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); } && {
6100          test -z "$ac_c_werror_flag" ||
6101          test ! -s conftest.err
6102        } && test -s conftest.$ac_objext; then
6103   :
6104 else
6105   $as_echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6107
6108         ac_cv_type_boolean=yes
6109 fi
6110
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112 else
6113   $as_echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6115
6116
6117 fi
6118
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 fi
6121 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
6122 $as_echo "$ac_cv_type_boolean" >&6; }
6123 if test "x$ac_cv_type_boolean" = x""yes; then
6124   :
6125 else
6126
6127 cat >>confdefs.h <<_ACEOF
6128 #define boolean int
6129 _ACEOF
6130
6131 fi
6132  #needed for jpeglib
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6149 do
6150 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6151 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6152 $as_echo_n "checking for $ac_func... " >&6; }
6153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6154   $as_echo_n "(cached) " >&6
6155 else
6156   cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h.  */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h.  */
6162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6164 #define $ac_func innocuous_$ac_func
6165
6166 /* System header to define __stub macros and hopefully few prototypes,
6167     which can conflict with char $ac_func (); below.
6168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6169     <limits.h> exists even on freestanding compilers.  */
6170
6171 #ifdef __STDC__
6172 # include <limits.h>
6173 #else
6174 # include <assert.h>
6175 #endif
6176
6177 #undef $ac_func
6178
6179 /* Override any GCC internal prototype to avoid an error.
6180    Use char because int might match the return type of a GCC
6181    builtin and then its argument prototype would still apply.  */
6182 #ifdef __cplusplus
6183 extern "C"
6184 #endif
6185 char $ac_func ();
6186 /* The GNU C library defines this for functions which it implements
6187     to always fail with ENOSYS.  Some functions are actually named
6188     something starting with __ and the normal name is an alias.  */
6189 #if defined __stub_$ac_func || defined __stub___$ac_func
6190 choke me
6191 #endif
6192
6193 int
6194 main ()
6195 {
6196 return $ac_func ();
6197   ;
6198   return 0;
6199 }
6200 _ACEOF
6201 rm -f conftest.$ac_objext conftest$ac_exeext
6202 if { (ac_try="$ac_link"
6203 case "(($ac_try" in
6204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205   *) ac_try_echo=$ac_try;;
6206 esac
6207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6208 $as_echo "$ac_try_echo") >&5
6209   (eval "$ac_link") 2>conftest.er1
6210   ac_status=$?
6211   grep -v '^ *+' conftest.er1 >conftest.err
6212   rm -f conftest.er1
6213   cat conftest.err >&5
6214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); } && {
6216          test -z "$ac_c_werror_flag" ||
6217          test ! -s conftest.err
6218        } && test -s conftest$ac_exeext && {
6219          test "$cross_compiling" = yes ||
6220          $as_test_x conftest$ac_exeext
6221        }; then
6222   eval "$as_ac_var=yes"
6223 else
6224   $as_echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6226
6227         eval "$as_ac_var=no"
6228 fi
6229
6230 rm -rf conftest.dSYM
6231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6232       conftest$ac_exeext conftest.$ac_ext
6233 fi
6234 ac_res=`eval 'as_val=${'$as_ac_var'}
6235                  $as_echo "$as_val"'`
6236                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6237 $as_echo "$ac_res" >&6; }
6238 as_val=`eval 'as_val=${'$as_ac_var'}
6239                  $as_echo "$as_val"'`
6240    if test "x$as_val" = x""yes; then
6241   cat >>confdefs.h <<_ACEOF
6242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6243 _ACEOF
6244
6245 fi
6246 done
6247
6248
6249 # The cast to long int works around a bug in the HP C Compiler
6250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6252 # This bug is HP SR number 8606223364.
6253 { $as_echo "$as_me:$LINENO: checking size of signed char" >&5
6254 $as_echo_n "checking size of signed char... " >&6; }
6255 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6256   $as_echo_n "(cached) " >&6
6257 else
6258   if test "$cross_compiling" = yes; then
6259   # Depending upon the size, compute the lo and hi bounds.
6260 cat >conftest.$ac_ext <<_ACEOF
6261 /* confdefs.h.  */
6262 _ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h.  */
6266 $ac_includes_default
6267 int
6268 main ()
6269 {
6270 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6284 $as_echo "$ac_try_echo") >&5
6285   (eval "$ac_compile") 2>conftest.er1
6286   ac_status=$?
6287   grep -v '^ *+' conftest.er1 >conftest.err
6288   rm -f conftest.er1
6289   cat conftest.err >&5
6290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); } && {
6292          test -z "$ac_c_werror_flag" ||
6293          test ! -s conftest.err
6294        } && test -s conftest.$ac_objext; then
6295   ac_lo=0 ac_mid=0
6296   while :; do
6297     cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h.  */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h.  */
6303 $ac_includes_default
6304 int
6305 main ()
6306 {
6307 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6321 $as_echo "$ac_try_echo") >&5
6322   (eval "$ac_compile") 2>conftest.er1
6323   ac_status=$?
6324   grep -v '^ *+' conftest.er1 >conftest.err
6325   rm -f conftest.er1
6326   cat conftest.err >&5
6327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); } && {
6329          test -z "$ac_c_werror_flag" ||
6330          test ! -s conftest.err
6331        } && test -s conftest.$ac_objext; then
6332   ac_hi=$ac_mid; break
6333 else
6334   $as_echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6336
6337         ac_lo=`expr $ac_mid + 1`
6338                         if test $ac_lo -le $ac_mid; then
6339                           ac_lo= ac_hi=
6340                           break
6341                         fi
6342                         ac_mid=`expr 2 '*' $ac_mid + 1`
6343 fi
6344
6345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346   done
6347 else
6348   $as_echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6350
6351         cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h.  */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h.  */
6357 $ac_includes_default
6358 int
6359 main ()
6360 {
6361 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
6362 test_array [0] = 0
6363
6364   ;
6365   return 0;
6366 }
6367 _ACEOF
6368 rm -f conftest.$ac_objext
6369 if { (ac_try="$ac_compile"
6370 case "(($ac_try" in
6371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372   *) ac_try_echo=$ac_try;;
6373 esac
6374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6375 $as_echo "$ac_try_echo") >&5
6376   (eval "$ac_compile") 2>conftest.er1
6377   ac_status=$?
6378   grep -v '^ *+' conftest.er1 >conftest.err
6379   rm -f conftest.er1
6380   cat conftest.err >&5
6381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); } && {
6383          test -z "$ac_c_werror_flag" ||
6384          test ! -s conftest.err
6385        } && test -s conftest.$ac_objext; then
6386   ac_hi=-1 ac_mid=-1
6387   while :; do
6388     cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h.  */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h.  */
6394 $ac_includes_default
6395 int
6396 main ()
6397 {
6398 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
6399 test_array [0] = 0
6400
6401   ;
6402   return 0;
6403 }
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (ac_try="$ac_compile"
6407 case "(($ac_try" in
6408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409   *) ac_try_echo=$ac_try;;
6410 esac
6411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6412 $as_echo "$ac_try_echo") >&5
6413   (eval "$ac_compile") 2>conftest.er1
6414   ac_status=$?
6415   grep -v '^ *+' conftest.er1 >conftest.err
6416   rm -f conftest.er1
6417   cat conftest.err >&5
6418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } && {
6420          test -z "$ac_c_werror_flag" ||
6421          test ! -s conftest.err
6422        } && test -s conftest.$ac_objext; then
6423   ac_lo=$ac_mid; break
6424 else
6425   $as_echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6427
6428         ac_hi=`expr '(' $ac_mid ')' - 1`
6429                         if test $ac_mid -le $ac_hi; then
6430                           ac_lo= ac_hi=
6431                           break
6432                         fi
6433                         ac_mid=`expr 2 '*' $ac_mid`
6434 fi
6435
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437   done
6438 else
6439   $as_echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442         ac_lo= ac_hi=
6443 fi
6444
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446 fi
6447
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 # Binary search between lo and hi bounds.
6450 while test "x$ac_lo" != "x$ac_hi"; do
6451   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6452   cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458 $ac_includes_default
6459 int
6460 main ()
6461 {
6462 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6463 test_array [0] = 0
6464
6465   ;
6466   return 0;
6467 }
6468 _ACEOF
6469 rm -f conftest.$ac_objext
6470 if { (ac_try="$ac_compile"
6471 case "(($ac_try" in
6472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473   *) ac_try_echo=$ac_try;;
6474 esac
6475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6476 $as_echo "$ac_try_echo") >&5
6477   (eval "$ac_compile") 2>conftest.er1
6478   ac_status=$?
6479   grep -v '^ *+' conftest.er1 >conftest.err
6480   rm -f conftest.er1
6481   cat conftest.err >&5
6482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); } && {
6484          test -z "$ac_c_werror_flag" ||
6485          test ! -s conftest.err
6486        } && test -s conftest.$ac_objext; then
6487   ac_hi=$ac_mid
6488 else
6489   $as_echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6491
6492         ac_lo=`expr '(' $ac_mid ')' + 1`
6493 fi
6494
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 done
6497 case $ac_lo in
6498 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6499 '') if test "$ac_cv_type_signed_char" = yes; then
6500      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6502 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6503 See \`config.log' for more details." >&5
6504 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6505 See \`config.log' for more details." >&2;}
6506    { (exit 77); exit 77; }; }; }
6507    else
6508      ac_cv_sizeof_signed_char=0
6509    fi ;;
6510 esac
6511 else
6512   cat >conftest.$ac_ext <<_ACEOF
6513 /* confdefs.h.  */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h.  */
6518 $ac_includes_default
6519 static long int longval () { return (long int) (sizeof (signed char)); }
6520 static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
6521 #include <stdio.h>
6522 #include <stdlib.h>
6523 int
6524 main ()
6525 {
6526
6527   FILE *f = fopen ("conftest.val", "w");
6528   if (! f)
6529     return 1;
6530   if (((long int) (sizeof (signed char))) < 0)
6531     {
6532       long int i = longval ();
6533       if (i != ((long int) (sizeof (signed char))))
6534         return 1;
6535       fprintf (f, "%ld", i);
6536     }
6537   else
6538     {
6539       unsigned long int i = ulongval ();
6540       if (i != ((long int) (sizeof (signed char))))
6541         return 1;
6542       fprintf (f, "%lu", i);
6543     }
6544   /* Do not output a trailing newline, as this causes \r\n confusion
6545      on some platforms.  */
6546   return ferror (f) || fclose (f) != 0;
6547
6548   ;
6549   return 0;
6550 }
6551 _ACEOF
6552 rm -f conftest$ac_exeext
6553 if { (ac_try="$ac_link"
6554 case "(($ac_try" in
6555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556   *) ac_try_echo=$ac_try;;
6557 esac
6558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6559 $as_echo "$ac_try_echo") >&5
6560   (eval "$ac_link") 2>&5
6561   ac_status=$?
6562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6564   { (case "(($ac_try" in
6565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566   *) ac_try_echo=$ac_try;;
6567 esac
6568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6569 $as_echo "$ac_try_echo") >&5
6570   (eval "$ac_try") 2>&5
6571   ac_status=$?
6572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); }; }; then
6574   ac_cv_sizeof_signed_char=`cat conftest.val`
6575 else
6576   $as_echo "$as_me: program exited with status $ac_status" >&5
6577 $as_echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6579
6580 ( exit $ac_status )
6581 if test "$ac_cv_type_signed_char" = yes; then
6582      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6584 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6585 See \`config.log' for more details." >&5
6586 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6587 See \`config.log' for more details." >&2;}
6588    { (exit 77); exit 77; }; }; }
6589    else
6590      ac_cv_sizeof_signed_char=0
6591    fi
6592 fi
6593 rm -rf conftest.dSYM
6594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6595 fi
6596 rm -f conftest.val
6597 fi
6598 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6599 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
6600
6601
6602
6603 cat >>confdefs.h <<_ACEOF
6604 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6605 _ACEOF
6606
6607
6608 # The cast to long int works around a bug in the HP C Compiler
6609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6611 # This bug is HP SR number 8606223364.
6612 { $as_echo "$as_me:$LINENO: checking size of signed short" >&5
6613 $as_echo_n "checking size of signed short... " >&6; }
6614 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6615   $as_echo_n "(cached) " >&6
6616 else
6617   if test "$cross_compiling" = yes; then
6618   # Depending upon the size, compute the lo and hi bounds.
6619 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h.  */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h.  */
6625 $ac_includes_default
6626 int
6627 main ()
6628 {
6629 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
6630 test_array [0] = 0
6631
6632   ;
6633   return 0;
6634 }
6635 _ACEOF
6636 rm -f conftest.$ac_objext
6637 if { (ac_try="$ac_compile"
6638 case "(($ac_try" in
6639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640   *) ac_try_echo=$ac_try;;
6641 esac
6642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6643 $as_echo "$ac_try_echo") >&5
6644   (eval "$ac_compile") 2>conftest.er1
6645   ac_status=$?
6646   grep -v '^ *+' conftest.er1 >conftest.err
6647   rm -f conftest.er1
6648   cat conftest.err >&5
6649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); } && {
6651          test -z "$ac_c_werror_flag" ||
6652          test ! -s conftest.err
6653        } && test -s conftest.$ac_objext; then
6654   ac_lo=0 ac_mid=0
6655   while :; do
6656     cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h.  */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h.  */
6662 $ac_includes_default
6663 int
6664 main ()
6665 {
6666 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6667 test_array [0] = 0
6668
6669   ;
6670   return 0;
6671 }
6672 _ACEOF
6673 rm -f conftest.$ac_objext
6674 if { (ac_try="$ac_compile"
6675 case "(($ac_try" in
6676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677   *) ac_try_echo=$ac_try;;
6678 esac
6679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6680 $as_echo "$ac_try_echo") >&5
6681   (eval "$ac_compile") 2>conftest.er1
6682   ac_status=$?
6683   grep -v '^ *+' conftest.er1 >conftest.err
6684   rm -f conftest.er1
6685   cat conftest.err >&5
6686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); } && {
6688          test -z "$ac_c_werror_flag" ||
6689          test ! -s conftest.err
6690        } && test -s conftest.$ac_objext; then
6691   ac_hi=$ac_mid; break
6692 else
6693   $as_echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6695
6696         ac_lo=`expr $ac_mid + 1`
6697                         if test $ac_lo -le $ac_mid; then
6698                           ac_lo= ac_hi=
6699                           break
6700                         fi
6701                         ac_mid=`expr 2 '*' $ac_mid + 1`
6702 fi
6703
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705   done
6706 else
6707   $as_echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6709
6710         cat >conftest.$ac_ext <<_ACEOF
6711 /* confdefs.h.  */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h.  */
6716 $ac_includes_default
6717 int
6718 main ()
6719 {
6720 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
6721 test_array [0] = 0
6722
6723   ;
6724   return 0;
6725 }
6726 _ACEOF
6727 rm -f conftest.$ac_objext
6728 if { (ac_try="$ac_compile"
6729 case "(($ac_try" in
6730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731   *) ac_try_echo=$ac_try;;
6732 esac
6733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6734 $as_echo "$ac_try_echo") >&5
6735   (eval "$ac_compile") 2>conftest.er1
6736   ac_status=$?
6737   grep -v '^ *+' conftest.er1 >conftest.err
6738   rm -f conftest.er1
6739   cat conftest.err >&5
6740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); } && {
6742          test -z "$ac_c_werror_flag" ||
6743          test ! -s conftest.err
6744        } && test -s conftest.$ac_objext; then
6745   ac_hi=-1 ac_mid=-1
6746   while :; do
6747     cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h.  */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h.  */
6753 $ac_includes_default
6754 int
6755 main ()
6756 {
6757 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
6758 test_array [0] = 0
6759
6760   ;
6761   return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (ac_try="$ac_compile"
6766 case "(($ac_try" in
6767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768   *) ac_try_echo=$ac_try;;
6769 esac
6770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6771 $as_echo "$ac_try_echo") >&5
6772   (eval "$ac_compile") 2>conftest.er1
6773   ac_status=$?
6774   grep -v '^ *+' conftest.er1 >conftest.err
6775   rm -f conftest.er1
6776   cat conftest.err >&5
6777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778   (exit $ac_status); } && {
6779          test -z "$ac_c_werror_flag" ||
6780          test ! -s conftest.err
6781        } && test -s conftest.$ac_objext; then
6782   ac_lo=$ac_mid; break
6783 else
6784   $as_echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6786
6787         ac_hi=`expr '(' $ac_mid ')' - 1`
6788                         if test $ac_mid -le $ac_hi; then
6789                           ac_lo= ac_hi=
6790                           break
6791                         fi
6792                         ac_mid=`expr 2 '*' $ac_mid`
6793 fi
6794
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796   done
6797 else
6798   $as_echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6800
6801         ac_lo= ac_hi=
6802 fi
6803
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 fi
6806
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 # Binary search between lo and hi bounds.
6809 while test "x$ac_lo" != "x$ac_hi"; do
6810   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6811   cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h.  */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h.  */
6817 $ac_includes_default
6818 int
6819 main ()
6820 {
6821 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6822 test_array [0] = 0
6823
6824   ;
6825   return 0;
6826 }
6827 _ACEOF
6828 rm -f conftest.$ac_objext
6829 if { (ac_try="$ac_compile"
6830 case "(($ac_try" in
6831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832   *) ac_try_echo=$ac_try;;
6833 esac
6834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6835 $as_echo "$ac_try_echo") >&5
6836   (eval "$ac_compile") 2>conftest.er1
6837   ac_status=$?
6838   grep -v '^ *+' conftest.er1 >conftest.err
6839   rm -f conftest.er1
6840   cat conftest.err >&5
6841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842   (exit $ac_status); } && {
6843          test -z "$ac_c_werror_flag" ||
6844          test ! -s conftest.err
6845        } && test -s conftest.$ac_objext; then
6846   ac_hi=$ac_mid
6847 else
6848   $as_echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6850
6851         ac_lo=`expr '(' $ac_mid ')' + 1`
6852 fi
6853
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 done
6856 case $ac_lo in
6857 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
6858 '') if test "$ac_cv_type_signed_short" = yes; then
6859      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6861 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6862 See \`config.log' for more details." >&5
6863 $as_echo "$as_me: error: cannot compute sizeof (signed short)
6864 See \`config.log' for more details." >&2;}
6865    { (exit 77); exit 77; }; }; }
6866    else
6867      ac_cv_sizeof_signed_short=0
6868    fi ;;
6869 esac
6870 else
6871   cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h.  */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h.  */
6877 $ac_includes_default
6878 static long int longval () { return (long int) (sizeof (signed short)); }
6879 static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
6880 #include <stdio.h>
6881 #include <stdlib.h>
6882 int
6883 main ()
6884 {
6885
6886   FILE *f = fopen ("conftest.val", "w");
6887   if (! f)
6888     return 1;
6889   if (((long int) (sizeof (signed short))) < 0)
6890     {
6891       long int i = longval ();
6892       if (i != ((long int) (sizeof (signed short))))
6893         return 1;
6894       fprintf (f, "%ld", i);
6895     }
6896   else
6897     {
6898       unsigned long int i = ulongval ();
6899       if (i != ((long int) (sizeof (signed short))))
6900         return 1;
6901       fprintf (f, "%lu", i);
6902     }
6903   /* Do not output a trailing newline, as this causes \r\n confusion
6904      on some platforms.  */
6905   return ferror (f) || fclose (f) != 0;
6906
6907   ;
6908   return 0;
6909 }
6910 _ACEOF
6911 rm -f conftest$ac_exeext
6912 if { (ac_try="$ac_link"
6913 case "(($ac_try" in
6914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915   *) ac_try_echo=$ac_try;;
6916 esac
6917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6918 $as_echo "$ac_try_echo") >&5
6919   (eval "$ac_link") 2>&5
6920   ac_status=$?
6921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6923   { (case "(($ac_try" in
6924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925   *) ac_try_echo=$ac_try;;
6926 esac
6927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6928 $as_echo "$ac_try_echo") >&5
6929   (eval "$ac_try") 2>&5
6930   ac_status=$?
6931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); }; }; then
6933   ac_cv_sizeof_signed_short=`cat conftest.val`
6934 else
6935   $as_echo "$as_me: program exited with status $ac_status" >&5
6936 $as_echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6938
6939 ( exit $ac_status )
6940 if test "$ac_cv_type_signed_short" = yes; then
6941      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6943 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6944 See \`config.log' for more details." >&5
6945 $as_echo "$as_me: error: cannot compute sizeof (signed short)
6946 See \`config.log' for more details." >&2;}
6947    { (exit 77); exit 77; }; }; }
6948    else
6949      ac_cv_sizeof_signed_short=0
6950    fi
6951 fi
6952 rm -rf conftest.dSYM
6953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6954 fi
6955 rm -f conftest.val
6956 fi
6957 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
6958 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
6959
6960
6961
6962 cat >>confdefs.h <<_ACEOF
6963 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
6964 _ACEOF
6965
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 { $as_echo "$as_me:$LINENO: checking size of signed" >&5
6972 $as_echo_n "checking size of signed... " >&6; }
6973 if test "${ac_cv_sizeof_signed+set}" = set; then
6974   $as_echo_n "(cached) " >&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 int
6986 main ()
6987 {
6988 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= 0)];
6989 test_array [0] = 0
6990
6991   ;
6992   return 0;
6993 }
6994 _ACEOF
6995 rm -f conftest.$ac_objext
6996 if { (ac_try="$ac_compile"
6997 case "(($ac_try" in
6998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6999   *) ac_try_echo=$ac_try;;
7000 esac
7001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7002 $as_echo "$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   $as_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 int
7023 main ()
7024 {
7025 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7026 test_array [0] = 0
7027
7028   ;
7029   return 0;
7030 }
7031 _ACEOF
7032 rm -f conftest.$ac_objext
7033 if { (ac_try="$ac_compile"
7034 case "(($ac_try" in
7035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036   *) ac_try_echo=$ac_try;;
7037 esac
7038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7039 $as_echo "$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   $as_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   $as_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   $as_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 int
7077 main ()
7078 {
7079 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) < 0)];
7080 test_array [0] = 0
7081
7082   ;
7083   return 0;
7084 }
7085 _ACEOF
7086 rm -f conftest.$ac_objext
7087 if { (ac_try="$ac_compile"
7088 case "(($ac_try" in
7089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090   *) ac_try_echo=$ac_try;;
7091 esac
7092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7093 $as_echo "$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   $as_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 int
7114 main ()
7115 {
7116 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= $ac_mid)];
7117 test_array [0] = 0
7118
7119   ;
7120   return 0;
7121 }
7122 _ACEOF
7123 rm -f conftest.$ac_objext
7124 if { (ac_try="$ac_compile"
7125 case "(($ac_try" in
7126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127   *) ac_try_echo=$ac_try;;
7128 esac
7129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7130 $as_echo "$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   $as_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   $as_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   $as_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 int
7178 main ()
7179 {
7180 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7181 test_array [0] = 0
7182
7183   ;
7184   return 0;
7185 }
7186 _ACEOF
7187 rm -f conftest.$ac_objext
7188 if { (ac_try="$ac_compile"
7189 case "(($ac_try" in
7190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191   *) ac_try_echo=$ac_try;;
7192 esac
7193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7194 $as_echo "$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   $as_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   $as_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      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7220 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7221 See \`config.log' for more details." >&5
7222 $as_echo "$as_me: error: cannot compute sizeof (signed)
7223 See \`config.log' for more details." >&2;}
7224    { (exit 77); exit 77; }; }; }
7225    else
7226      ac_cv_sizeof_signed=0
7227    fi ;;
7228 esac
7229 else
7230   cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h.  */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h.  */
7236 $ac_includes_default
7237 static long int longval () { return (long int) (sizeof (signed)); }
7238 static unsigned long int ulongval () { return (long int) (sizeof (signed)); }
7239 #include <stdio.h>
7240 #include <stdlib.h>
7241 int
7242 main ()
7243 {
7244
7245   FILE *f = fopen ("conftest.val", "w");
7246   if (! f)
7247     return 1;
7248   if (((long int) (sizeof (signed))) < 0)
7249     {
7250       long int i = longval ();
7251       if (i != ((long int) (sizeof (signed))))
7252         return 1;
7253       fprintf (f, "%ld", i);
7254     }
7255   else
7256     {
7257       unsigned long int i = ulongval ();
7258       if (i != ((long int) (sizeof (signed))))
7259         return 1;
7260       fprintf (f, "%lu", i);
7261     }
7262   /* Do not output a trailing newline, as this causes \r\n confusion
7263      on some platforms.  */
7264   return ferror (f) || fclose (f) != 0;
7265
7266   ;
7267   return 0;
7268 }
7269 _ACEOF
7270 rm -f conftest$ac_exeext
7271 if { (ac_try="$ac_link"
7272 case "(($ac_try" in
7273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274   *) ac_try_echo=$ac_try;;
7275 esac
7276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7277 $as_echo "$ac_try_echo") >&5
7278   (eval "$ac_link") 2>&5
7279   ac_status=$?
7280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7282   { (case "(($ac_try" in
7283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284   *) ac_try_echo=$ac_try;;
7285 esac
7286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7287 $as_echo "$ac_try_echo") >&5
7288   (eval "$ac_try") 2>&5
7289   ac_status=$?
7290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291   (exit $ac_status); }; }; then
7292   ac_cv_sizeof_signed=`cat conftest.val`
7293 else
7294   $as_echo "$as_me: program exited with status $ac_status" >&5
7295 $as_echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7297
7298 ( exit $ac_status )
7299 if test "$ac_cv_type_signed" = yes; then
7300      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7302 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7303 See \`config.log' for more details." >&5
7304 $as_echo "$as_me: error: cannot compute sizeof (signed)
7305 See \`config.log' for more details." >&2;}
7306    { (exit 77); exit 77; }; }; }
7307    else
7308      ac_cv_sizeof_signed=0
7309    fi
7310 fi
7311 rm -rf conftest.dSYM
7312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7313 fi
7314 rm -f conftest.val
7315 fi
7316 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7317 $as_echo "$ac_cv_sizeof_signed" >&6; }
7318
7319
7320
7321 cat >>confdefs.h <<_ACEOF
7322 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7323 _ACEOF
7324
7325
7326 # The cast to long int works around a bug in the HP C Compiler
7327 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7328 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7329 # This bug is HP SR number 8606223364.
7330 { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
7331 $as_echo_n "checking size of signed long long... " >&6; }
7332 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7333   $as_echo_n "(cached) " >&6
7334 else
7335   if test "$cross_compiling" = yes; then
7336   # Depending upon the size, compute the lo and hi bounds.
7337 cat >conftest.$ac_ext <<_ACEOF
7338 /* confdefs.h.  */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h.  */
7343 $ac_includes_default
7344 int
7345 main ()
7346 {
7347 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
7348 test_array [0] = 0
7349
7350   ;
7351   return 0;
7352 }
7353 _ACEOF
7354 rm -f conftest.$ac_objext
7355 if { (ac_try="$ac_compile"
7356 case "(($ac_try" in
7357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358   *) ac_try_echo=$ac_try;;
7359 esac
7360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7361 $as_echo "$ac_try_echo") >&5
7362   (eval "$ac_compile") 2>conftest.er1
7363   ac_status=$?
7364   grep -v '^ *+' conftest.er1 >conftest.err
7365   rm -f conftest.er1
7366   cat conftest.err >&5
7367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368   (exit $ac_status); } && {
7369          test -z "$ac_c_werror_flag" ||
7370          test ! -s conftest.err
7371        } && test -s conftest.$ac_objext; then
7372   ac_lo=0 ac_mid=0
7373   while :; do
7374     cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h.  */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h.  */
7380 $ac_includes_default
7381 int
7382 main ()
7383 {
7384 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7385 test_array [0] = 0
7386
7387   ;
7388   return 0;
7389 }
7390 _ACEOF
7391 rm -f conftest.$ac_objext
7392 if { (ac_try="$ac_compile"
7393 case "(($ac_try" in
7394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395   *) ac_try_echo=$ac_try;;
7396 esac
7397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7398 $as_echo "$ac_try_echo") >&5
7399   (eval "$ac_compile") 2>conftest.er1
7400   ac_status=$?
7401   grep -v '^ *+' conftest.er1 >conftest.err
7402   rm -f conftest.er1
7403   cat conftest.err >&5
7404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405   (exit $ac_status); } && {
7406          test -z "$ac_c_werror_flag" ||
7407          test ! -s conftest.err
7408        } && test -s conftest.$ac_objext; then
7409   ac_hi=$ac_mid; break
7410 else
7411   $as_echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7413
7414         ac_lo=`expr $ac_mid + 1`
7415                         if test $ac_lo -le $ac_mid; then
7416                           ac_lo= ac_hi=
7417                           break
7418                         fi
7419                         ac_mid=`expr 2 '*' $ac_mid + 1`
7420 fi
7421
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423   done
7424 else
7425   $as_echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7427
7428         cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h.  */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h.  */
7434 $ac_includes_default
7435 int
7436 main ()
7437 {
7438 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
7439 test_array [0] = 0
7440
7441   ;
7442   return 0;
7443 }
7444 _ACEOF
7445 rm -f conftest.$ac_objext
7446 if { (ac_try="$ac_compile"
7447 case "(($ac_try" in
7448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449   *) ac_try_echo=$ac_try;;
7450 esac
7451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7452 $as_echo "$ac_try_echo") >&5
7453   (eval "$ac_compile") 2>conftest.er1
7454   ac_status=$?
7455   grep -v '^ *+' conftest.er1 >conftest.err
7456   rm -f conftest.er1
7457   cat conftest.err >&5
7458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); } && {
7460          test -z "$ac_c_werror_flag" ||
7461          test ! -s conftest.err
7462        } && test -s conftest.$ac_objext; then
7463   ac_hi=-1 ac_mid=-1
7464   while :; do
7465     cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h.  */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h.  */
7471 $ac_includes_default
7472 int
7473 main ()
7474 {
7475 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
7476 test_array [0] = 0
7477
7478   ;
7479   return 0;
7480 }
7481 _ACEOF
7482 rm -f conftest.$ac_objext
7483 if { (ac_try="$ac_compile"
7484 case "(($ac_try" in
7485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7486   *) ac_try_echo=$ac_try;;
7487 esac
7488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7489 $as_echo "$ac_try_echo") >&5
7490   (eval "$ac_compile") 2>conftest.er1
7491   ac_status=$?
7492   grep -v '^ *+' conftest.er1 >conftest.err
7493   rm -f conftest.er1
7494   cat conftest.err >&5
7495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496   (exit $ac_status); } && {
7497          test -z "$ac_c_werror_flag" ||
7498          test ! -s conftest.err
7499        } && test -s conftest.$ac_objext; then
7500   ac_lo=$ac_mid; break
7501 else
7502   $as_echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7504
7505         ac_hi=`expr '(' $ac_mid ')' - 1`
7506                         if test $ac_mid -le $ac_hi; then
7507                           ac_lo= ac_hi=
7508                           break
7509                         fi
7510                         ac_mid=`expr 2 '*' $ac_mid`
7511 fi
7512
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514   done
7515 else
7516   $as_echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7518
7519         ac_lo= ac_hi=
7520 fi
7521
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 fi
7524
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 # Binary search between lo and hi bounds.
7527 while test "x$ac_lo" != "x$ac_hi"; do
7528   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7529   cat >conftest.$ac_ext <<_ACEOF
7530 /* confdefs.h.  */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h.  */
7535 $ac_includes_default
7536 int
7537 main ()
7538 {
7539 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7540 test_array [0] = 0
7541
7542   ;
7543   return 0;
7544 }
7545 _ACEOF
7546 rm -f conftest.$ac_objext
7547 if { (ac_try="$ac_compile"
7548 case "(($ac_try" in
7549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550   *) ac_try_echo=$ac_try;;
7551 esac
7552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553 $as_echo "$ac_try_echo") >&5
7554   (eval "$ac_compile") 2>conftest.er1
7555   ac_status=$?
7556   grep -v '^ *+' conftest.er1 >conftest.err
7557   rm -f conftest.er1
7558   cat conftest.err >&5
7559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); } && {
7561          test -z "$ac_c_werror_flag" ||
7562          test ! -s conftest.err
7563        } && test -s conftest.$ac_objext; then
7564   ac_hi=$ac_mid
7565 else
7566   $as_echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7568
7569         ac_lo=`expr '(' $ac_mid ')' + 1`
7570 fi
7571
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573 done
7574 case $ac_lo in
7575 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7576 '') if test "$ac_cv_type_signed_long_long" = yes; then
7577      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7579 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7580 See \`config.log' for more details." >&5
7581 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7582 See \`config.log' for more details." >&2;}
7583    { (exit 77); exit 77; }; }; }
7584    else
7585      ac_cv_sizeof_signed_long_long=0
7586    fi ;;
7587 esac
7588 else
7589   cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h.  */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h.  */
7595 $ac_includes_default
7596 static long int longval () { return (long int) (sizeof (signed long long)); }
7597 static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
7598 #include <stdio.h>
7599 #include <stdlib.h>
7600 int
7601 main ()
7602 {
7603
7604   FILE *f = fopen ("conftest.val", "w");
7605   if (! f)
7606     return 1;
7607   if (((long int) (sizeof (signed long long))) < 0)
7608     {
7609       long int i = longval ();
7610       if (i != ((long int) (sizeof (signed long long))))
7611         return 1;
7612       fprintf (f, "%ld", i);
7613     }
7614   else
7615     {
7616       unsigned long int i = ulongval ();
7617       if (i != ((long int) (sizeof (signed long long))))
7618         return 1;
7619       fprintf (f, "%lu", i);
7620     }
7621   /* Do not output a trailing newline, as this causes \r\n confusion
7622      on some platforms.  */
7623   return ferror (f) || fclose (f) != 0;
7624
7625   ;
7626   return 0;
7627 }
7628 _ACEOF
7629 rm -f conftest$ac_exeext
7630 if { (ac_try="$ac_link"
7631 case "(($ac_try" in
7632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633   *) ac_try_echo=$ac_try;;
7634 esac
7635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7636 $as_echo "$ac_try_echo") >&5
7637   (eval "$ac_link") 2>&5
7638   ac_status=$?
7639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7641   { (case "(($ac_try" in
7642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643   *) ac_try_echo=$ac_try;;
7644 esac
7645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7646 $as_echo "$ac_try_echo") >&5
7647   (eval "$ac_try") 2>&5
7648   ac_status=$?
7649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); }; }; then
7651   ac_cv_sizeof_signed_long_long=`cat conftest.val`
7652 else
7653   $as_echo "$as_me: program exited with status $ac_status" >&5
7654 $as_echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7656
7657 ( exit $ac_status )
7658 if test "$ac_cv_type_signed_long_long" = yes; then
7659      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7661 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7662 See \`config.log' for more details." >&5
7663 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7664 See \`config.log' for more details." >&2;}
7665    { (exit 77); exit 77; }; }; }
7666    else
7667      ac_cv_sizeof_signed_long_long=0
7668    fi
7669 fi
7670 rm -rf conftest.dSYM
7671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7672 fi
7673 rm -f conftest.val
7674 fi
7675 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7676 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
7677
7678
7679
7680 cat >>confdefs.h <<_ACEOF
7681 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7682 _ACEOF
7683
7684
7685 # The cast to long int works around a bug in the HP C Compiler
7686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7688 # This bug is HP SR number 8606223364.
7689 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
7690 $as_echo_n "checking size of void*... " >&6; }
7691 if test "${ac_cv_sizeof_voidp+set}" = set; then
7692   $as_echo_n "(cached) " >&6
7693 else
7694   if test "$cross_compiling" = yes; then
7695   # Depending upon the size, compute the lo and hi bounds.
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h.  */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h.  */
7702 $ac_includes_default
7703 int
7704 main ()
7705 {
7706 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
7707 test_array [0] = 0
7708
7709   ;
7710   return 0;
7711 }
7712 _ACEOF
7713 rm -f conftest.$ac_objext
7714 if { (ac_try="$ac_compile"
7715 case "(($ac_try" in
7716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717   *) ac_try_echo=$ac_try;;
7718 esac
7719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7720 $as_echo "$ac_try_echo") >&5
7721   (eval "$ac_compile") 2>conftest.er1
7722   ac_status=$?
7723   grep -v '^ *+' conftest.er1 >conftest.err
7724   rm -f conftest.er1
7725   cat conftest.err >&5
7726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); } && {
7728          test -z "$ac_c_werror_flag" ||
7729          test ! -s conftest.err
7730        } && test -s conftest.$ac_objext; then
7731   ac_lo=0 ac_mid=0
7732   while :; do
7733     cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h.  */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h.  */
7739 $ac_includes_default
7740 int
7741 main ()
7742 {
7743 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7744 test_array [0] = 0
7745
7746   ;
7747   return 0;
7748 }
7749 _ACEOF
7750 rm -f conftest.$ac_objext
7751 if { (ac_try="$ac_compile"
7752 case "(($ac_try" in
7753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754   *) ac_try_echo=$ac_try;;
7755 esac
7756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7757 $as_echo "$ac_try_echo") >&5
7758   (eval "$ac_compile") 2>conftest.er1
7759   ac_status=$?
7760   grep -v '^ *+' conftest.er1 >conftest.err
7761   rm -f conftest.er1
7762   cat conftest.err >&5
7763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); } && {
7765          test -z "$ac_c_werror_flag" ||
7766          test ! -s conftest.err
7767        } && test -s conftest.$ac_objext; then
7768   ac_hi=$ac_mid; break
7769 else
7770   $as_echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7772
7773         ac_lo=`expr $ac_mid + 1`
7774                         if test $ac_lo -le $ac_mid; then
7775                           ac_lo= ac_hi=
7776                           break
7777                         fi
7778                         ac_mid=`expr 2 '*' $ac_mid + 1`
7779 fi
7780
7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782   done
7783 else
7784   $as_echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7786
7787         cat >conftest.$ac_ext <<_ACEOF
7788 /* confdefs.h.  */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h.  */
7793 $ac_includes_default
7794 int
7795 main ()
7796 {
7797 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
7798 test_array [0] = 0
7799
7800   ;
7801   return 0;
7802 }
7803 _ACEOF
7804 rm -f conftest.$ac_objext
7805 if { (ac_try="$ac_compile"
7806 case "(($ac_try" in
7807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808   *) ac_try_echo=$ac_try;;
7809 esac
7810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7811 $as_echo "$ac_try_echo") >&5
7812   (eval "$ac_compile") 2>conftest.er1
7813   ac_status=$?
7814   grep -v '^ *+' conftest.er1 >conftest.err
7815   rm -f conftest.er1
7816   cat conftest.err >&5
7817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); } && {
7819          test -z "$ac_c_werror_flag" ||
7820          test ! -s conftest.err
7821        } && test -s conftest.$ac_objext; then
7822   ac_hi=-1 ac_mid=-1
7823   while :; do
7824     cat >conftest.$ac_ext <<_ACEOF
7825 /* confdefs.h.  */
7826 _ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h.  */
7830 $ac_includes_default
7831 int
7832 main ()
7833 {
7834 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
7835 test_array [0] = 0
7836
7837   ;
7838   return 0;
7839 }
7840 _ACEOF
7841 rm -f conftest.$ac_objext
7842 if { (ac_try="$ac_compile"
7843 case "(($ac_try" in
7844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845   *) ac_try_echo=$ac_try;;
7846 esac
7847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7848 $as_echo "$ac_try_echo") >&5
7849   (eval "$ac_compile") 2>conftest.er1
7850   ac_status=$?
7851   grep -v '^ *+' conftest.er1 >conftest.err
7852   rm -f conftest.er1
7853   cat conftest.err >&5
7854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); } && {
7856          test -z "$ac_c_werror_flag" ||
7857          test ! -s conftest.err
7858        } && test -s conftest.$ac_objext; then
7859   ac_lo=$ac_mid; break
7860 else
7861   $as_echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864         ac_hi=`expr '(' $ac_mid ')' - 1`
7865                         if test $ac_mid -le $ac_hi; then
7866                           ac_lo= ac_hi=
7867                           break
7868                         fi
7869                         ac_mid=`expr 2 '*' $ac_mid`
7870 fi
7871
7872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873   done
7874 else
7875   $as_echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878         ac_lo= ac_hi=
7879 fi
7880
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882 fi
7883
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885 # Binary search between lo and hi bounds.
7886 while test "x$ac_lo" != "x$ac_hi"; do
7887   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7888   cat >conftest.$ac_ext <<_ACEOF
7889 /* confdefs.h.  */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h.  */
7894 $ac_includes_default
7895 int
7896 main ()
7897 {
7898 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7899 test_array [0] = 0
7900
7901   ;
7902   return 0;
7903 }
7904 _ACEOF
7905 rm -f conftest.$ac_objext
7906 if { (ac_try="$ac_compile"
7907 case "(($ac_try" in
7908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909   *) ac_try_echo=$ac_try;;
7910 esac
7911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7912 $as_echo "$ac_try_echo") >&5
7913   (eval "$ac_compile") 2>conftest.er1
7914   ac_status=$?
7915   grep -v '^ *+' conftest.er1 >conftest.err
7916   rm -f conftest.er1
7917   cat conftest.err >&5
7918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); } && {
7920          test -z "$ac_c_werror_flag" ||
7921          test ! -s conftest.err
7922        } && test -s conftest.$ac_objext; then
7923   ac_hi=$ac_mid
7924 else
7925   $as_echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928         ac_lo=`expr '(' $ac_mid ')' + 1`
7929 fi
7930
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932 done
7933 case $ac_lo in
7934 ?*) ac_cv_sizeof_voidp=$ac_lo;;
7935 '') if test "$ac_cv_type_voidp" = yes; then
7936      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7938 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
7939 See \`config.log' for more details." >&5
7940 $as_echo "$as_me: error: cannot compute sizeof (void*)
7941 See \`config.log' for more details." >&2;}
7942    { (exit 77); exit 77; }; }; }
7943    else
7944      ac_cv_sizeof_voidp=0
7945    fi ;;
7946 esac
7947 else
7948   cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h.  */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h.  */
7954 $ac_includes_default
7955 static long int longval () { return (long int) (sizeof (void*)); }
7956 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
7957 #include <stdio.h>
7958 #include <stdlib.h>
7959 int
7960 main ()
7961 {
7962
7963   FILE *f = fopen ("conftest.val", "w");
7964   if (! f)
7965     return 1;
7966   if (((long int) (sizeof (void*))) < 0)
7967     {
7968       long int i = longval ();
7969       if (i != ((long int) (sizeof (void*))))
7970         return 1;
7971       fprintf (f, "%ld", i);
7972     }
7973   else
7974     {
7975       unsigned long int i = ulongval ();
7976       if (i != ((long int) (sizeof (void*))))
7977         return 1;
7978       fprintf (f, "%lu", i);
7979     }
7980   /* Do not output a trailing newline, as this causes \r\n confusion
7981      on some platforms.  */
7982   return ferror (f) || fclose (f) != 0;
7983
7984   ;
7985   return 0;
7986 }
7987 _ACEOF
7988 rm -f conftest$ac_exeext
7989 if { (ac_try="$ac_link"
7990 case "(($ac_try" in
7991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992   *) ac_try_echo=$ac_try;;
7993 esac
7994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7995 $as_echo "$ac_try_echo") >&5
7996   (eval "$ac_link") 2>&5
7997   ac_status=$?
7998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8000   { (case "(($ac_try" in
8001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002   *) ac_try_echo=$ac_try;;
8003 esac
8004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8005 $as_echo "$ac_try_echo") >&5
8006   (eval "$ac_try") 2>&5
8007   ac_status=$?
8008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); }; }; then
8010   ac_cv_sizeof_voidp=`cat conftest.val`
8011 else
8012   $as_echo "$as_me: program exited with status $ac_status" >&5
8013 $as_echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016 ( exit $ac_status )
8017 if test "$ac_cv_type_voidp" = yes; then
8018      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8020 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8021 See \`config.log' for more details." >&5
8022 $as_echo "$as_me: error: cannot compute sizeof (void*)
8023 See \`config.log' for more details." >&2;}
8024    { (exit 77); exit 77; }; }; }
8025    else
8026      ac_cv_sizeof_voidp=0
8027    fi
8028 fi
8029 rm -rf conftest.dSYM
8030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8031 fi
8032 rm -f conftest.val
8033 fi
8034 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8035 $as_echo "$ac_cv_sizeof_voidp" >&6; }
8036
8037
8038
8039 cat >>confdefs.h <<_ACEOF
8040 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8041 _ACEOF
8042
8043
8044
8045
8046
8047 # Extract the first word of "freetype-config", so it can be a program name with args.
8048 set dummy freetype-config; ac_word=$2
8049 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8052   $as_echo_n "(cached) " >&6
8053 else
8054   case $FREETYPE_CONFIG in
8055   [\\/]* | ?:[\\/]*)
8056   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8057   ;;
8058   *)
8059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8061 for as_dir in $as_dummy
8062 do
8063   IFS=$as_save_IFS
8064   test -z "$as_dir" && as_dir=.
8065   for ac_exec_ext in '' $ac_executable_extensions; do
8066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8068     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8069     break 2
8070   fi
8071 done
8072 done
8073 IFS=$as_save_IFS
8074
8075   ;;
8076 esac
8077 fi
8078 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8079 if test -n "$FREETYPE_CONFIG"; then
8080   { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8081 $as_echo "$FREETYPE_CONFIG" >&6; }
8082 else
8083   { $as_echo "$as_me:$LINENO: result: no" >&5
8084 $as_echo "no" >&6; }
8085 fi
8086
8087
8088
8089 OLDCPPFLAGS="${CPPFLAGS}"
8090 OLDLIBS="${LIBS}"
8091 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8092     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8093 else if test -d /usr/include/freetype2; then
8094     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8095 else if test -d /usr/local/include/freetype2; then
8096     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8097 fi
8098 fi
8099 fi
8100
8101 if test "x${FREETYPE_CONFIG}" '=' "x";then
8102     # if we didn't find the freetype-config program, we won't
8103     # know where the libs are expected to be. So just blindly
8104     # try to link against them.
8105     { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8106 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
8107 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8108   $as_echo_n "(cached) " >&6
8109 else
8110   ac_check_lib_save_LIBS=$LIBS
8111 LIBS="-lfreetype  $LIBS"
8112 cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h.  */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h.  */
8118
8119 /* Override any GCC internal prototype to avoid an error.
8120    Use char because int might match the return type of a GCC
8121    builtin and then its argument prototype would still apply.  */
8122 #ifdef __cplusplus
8123 extern "C"
8124 #endif
8125 char FT_Init_FreeType ();
8126 int
8127 main ()
8128 {
8129 return FT_Init_FreeType ();
8130   ;
8131   return 0;
8132 }
8133 _ACEOF
8134 rm -f conftest.$ac_objext conftest$ac_exeext
8135 if { (ac_try="$ac_link"
8136 case "(($ac_try" in
8137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138   *) ac_try_echo=$ac_try;;
8139 esac
8140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8141 $as_echo "$ac_try_echo") >&5
8142   (eval "$ac_link") 2>conftest.er1
8143   ac_status=$?
8144   grep -v '^ *+' conftest.er1 >conftest.err
8145   rm -f conftest.er1
8146   cat conftest.err >&5
8147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); } && {
8149          test -z "$ac_c_werror_flag" ||
8150          test ! -s conftest.err
8151        } && test -s conftest$ac_exeext && {
8152          test "$cross_compiling" = yes ||
8153          $as_test_x conftest$ac_exeext
8154        }; then
8155   ac_cv_lib_freetype_FT_Init_FreeType=yes
8156 else
8157   $as_echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8159
8160         ac_cv_lib_freetype_FT_Init_FreeType=no
8161 fi
8162
8163 rm -rf conftest.dSYM
8164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8165       conftest$ac_exeext conftest.$ac_ext
8166 LIBS=$ac_check_lib_save_LIBS
8167 fi
8168 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8169 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8170 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
8171   HAVE_LIB_FREETYPE=1
8172 fi
8173
8174 fi
8175
8176
8177 for ac_header in ft2build.h
8178 do
8179 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8181   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8182 $as_echo_n "checking for $ac_header... " >&6; }
8183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8184   $as_echo_n "(cached) " >&6
8185 fi
8186 ac_res=`eval 'as_val=${'$as_ac_Header'}
8187                  $as_echo "$as_val"'`
8188                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8189 $as_echo "$ac_res" >&6; }
8190 else
8191   # Is the header compilable?
8192 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8193 $as_echo_n "checking $ac_header usability... " >&6; }
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h.  */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h.  */
8200 $ac_includes_default
8201 #include <$ac_header>
8202 _ACEOF
8203 rm -f conftest.$ac_objext
8204 if { (ac_try="$ac_compile"
8205 case "(($ac_try" in
8206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207   *) ac_try_echo=$ac_try;;
8208 esac
8209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8210 $as_echo "$ac_try_echo") >&5
8211   (eval "$ac_compile") 2>conftest.er1
8212   ac_status=$?
8213   grep -v '^ *+' conftest.er1 >conftest.err
8214   rm -f conftest.er1
8215   cat conftest.err >&5
8216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); } && {
8218          test -z "$ac_c_werror_flag" ||
8219          test ! -s conftest.err
8220        } && test -s conftest.$ac_objext; then
8221   ac_header_compiler=yes
8222 else
8223   $as_echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226         ac_header_compiler=no
8227 fi
8228
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8231 $as_echo "$ac_header_compiler" >&6; }
8232
8233 # Is the header present?
8234 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8235 $as_echo_n "checking $ac_header presence... " >&6; }
8236 cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h.  */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h.  */
8242 #include <$ac_header>
8243 _ACEOF
8244 if { (ac_try="$ac_cpp conftest.$ac_ext"
8245 case "(($ac_try" in
8246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247   *) ac_try_echo=$ac_try;;
8248 esac
8249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8250 $as_echo "$ac_try_echo") >&5
8251   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8252   ac_status=$?
8253   grep -v '^ *+' conftest.er1 >conftest.err
8254   rm -f conftest.er1
8255   cat conftest.err >&5
8256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); } >/dev/null && {
8258          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8259          test ! -s conftest.err
8260        }; then
8261   ac_header_preproc=yes
8262 else
8263   $as_echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8265
8266   ac_header_preproc=no
8267 fi
8268
8269 rm -f conftest.err conftest.$ac_ext
8270 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8271 $as_echo "$ac_header_preproc" >&6; }
8272
8273 # So?  What about this header?
8274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8275   yes:no: )
8276     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8277 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8278     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8279 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8280     ac_header_preproc=yes
8281     ;;
8282   no:yes:* )
8283     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8284 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8285     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8286 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8287     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8288 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8289     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8290 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8291     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8293     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8294 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8295
8296     ;;
8297 esac
8298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8299 $as_echo_n "checking for $ac_header... " >&6; }
8300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8301   $as_echo_n "(cached) " >&6
8302 else
8303   eval "$as_ac_Header=\$ac_header_preproc"
8304 fi
8305 ac_res=`eval 'as_val=${'$as_ac_Header'}
8306                  $as_echo "$as_val"'`
8307                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8308 $as_echo "$ac_res" >&6; }
8309
8310 fi
8311 as_val=`eval 'as_val=${'$as_ac_Header'}
8312                  $as_echo "$as_val"'`
8313    if test "x$as_val" = x""yes; then
8314   cat >>confdefs.h <<_ACEOF
8315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8316 _ACEOF
8317  HAVE_FT2BUILD_H=1
8318 fi
8319
8320 done
8321
8322 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8323
8324 for ac_header in freetype/freetype.h
8325 do
8326 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8328   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8329 $as_echo_n "checking for $ac_header... " >&6; }
8330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8331   $as_echo_n "(cached) " >&6
8332 fi
8333 ac_res=`eval 'as_val=${'$as_ac_Header'}
8334                  $as_echo "$as_val"'`
8335                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8336 $as_echo "$ac_res" >&6; }
8337 else
8338   # Is the header compilable?
8339 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8340 $as_echo_n "checking $ac_header usability... " >&6; }
8341 cat >conftest.$ac_ext <<_ACEOF
8342 /* confdefs.h.  */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h.  */
8347 $ac_includes_default
8348 #include <$ac_header>
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (ac_try="$ac_compile"
8352 case "(($ac_try" in
8353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354   *) ac_try_echo=$ac_try;;
8355 esac
8356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8357 $as_echo "$ac_try_echo") >&5
8358   (eval "$ac_compile") 2>conftest.er1
8359   ac_status=$?
8360   grep -v '^ *+' conftest.er1 >conftest.err
8361   rm -f conftest.er1
8362   cat conftest.err >&5
8363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } && {
8365          test -z "$ac_c_werror_flag" ||
8366          test ! -s conftest.err
8367        } && test -s conftest.$ac_objext; then
8368   ac_header_compiler=yes
8369 else
8370   $as_echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8372
8373         ac_header_compiler=no
8374 fi
8375
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8378 $as_echo "$ac_header_compiler" >&6; }
8379
8380 # Is the header present?
8381 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8382 $as_echo_n "checking $ac_header presence... " >&6; }
8383 cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h.  */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h.  */
8389 #include <$ac_header>
8390 _ACEOF
8391 if { (ac_try="$ac_cpp conftest.$ac_ext"
8392 case "(($ac_try" in
8393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394   *) ac_try_echo=$ac_try;;
8395 esac
8396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8397 $as_echo "$ac_try_echo") >&5
8398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8399   ac_status=$?
8400   grep -v '^ *+' conftest.er1 >conftest.err
8401   rm -f conftest.er1
8402   cat conftest.err >&5
8403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); } >/dev/null && {
8405          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8406          test ! -s conftest.err
8407        }; then
8408   ac_header_preproc=yes
8409 else
8410   $as_echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413   ac_header_preproc=no
8414 fi
8415
8416 rm -f conftest.err conftest.$ac_ext
8417 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8418 $as_echo "$ac_header_preproc" >&6; }
8419
8420 # So?  What about this header?
8421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8422   yes:no: )
8423     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8424 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8425     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8426 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8427     ac_header_preproc=yes
8428     ;;
8429   no:yes:* )
8430     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8431 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8432     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8433 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8434     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8435 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8436     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8437 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8438     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8439 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8440     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8441 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8442
8443     ;;
8444 esac
8445 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8446 $as_echo_n "checking for $ac_header... " >&6; }
8447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8448   $as_echo_n "(cached) " >&6
8449 else
8450   eval "$as_ac_Header=\$ac_header_preproc"
8451 fi
8452 ac_res=`eval 'as_val=${'$as_ac_Header'}
8453                  $as_echo "$as_val"'`
8454                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8455 $as_echo "$ac_res" >&6; }
8456
8457 fi
8458 as_val=`eval 'as_val=${'$as_ac_Header'}
8459                  $as_echo "$as_val"'`
8460    if test "x$as_val" = x""yes; then
8461   cat >>confdefs.h <<_ACEOF
8462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8463 _ACEOF
8464  HAVE_FREETYPE_FREETYPE_H=1
8465 fi
8466
8467 done
8468
8469 fi
8470
8471 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8472         "x${FREETYPE_CONFIG}" '!=' "x";then
8473     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8474         HAVE_FREETYPE=1
8475     fi
8476     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8477         HAVE_FREETYPE=1
8478     fi
8479 fi
8480
8481 if test "x${HAVE_FREETYPE}" = "x1"; then
8482     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8483         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8484     else
8485         LIBS="$LIBS -lfreetype"
8486     fi
8487
8488     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8489         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8490     fi
8491
8492     { $as_echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8493 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
8494
8495     cat > conftest.c << EOF
8496 $HAVE_FT2BUILD_H_DEFINE
8497
8498 #ifdef HAVE_FT2BUILD_H
8499 #include <ft2build.h>
8500 #include FT_FREETYPE_H
8501 #include FT_GLYPH_H
8502 #include FT_SIZES_H
8503 #include FT_SFNT_NAMES_H
8504 #include FT_TRUETYPE_IDS_H
8505 #include FT_OUTLINE_H
8506 #else
8507 #include <freetype/freetype.h>
8508 #include <freetype/ftglyph.h>
8509 #include <freetype/ftsizes.h>
8510 #include <freetype/ftsnames.h>
8511 #include <freetype/ttnameid.h>
8512 #include <freetype/ftoutln.h>
8513 #endif
8514
8515 int main()
8516 {
8517     FT_Library ftlibrary;
8518     FT_Face face;
8519     FT_Error error;
8520     FT_ULong charcode;
8521     FT_UInt gindex;
8522     FT_Glyph glyph;
8523     FT_BBox bbox;
8524     FT_Matrix matrix;
8525     FT_UInt i;
8526     char* name = 0;
8527     char italic, bold;
8528
8529     FT_Init_FreeType(&ftlibrary);
8530     FT_New_Face(ftlibrary, "filename", 0, &face);
8531     i = face->num_glyphs - 1;
8532     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8533     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8534     FT_Get_Postscript_Name(face);
8535     FT_Get_Char_Index(face, 33);
8536     FT_Get_First_Char(face, &i);
8537     FT_Get_Next_Char(face, 33, &i);
8538     if(FT_HAS_GLYPH_NAMES(face)) {
8539         FT_Get_Glyph_Name(face, 33, name, 127);
8540     }
8541     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8542     FT_Get_Glyph(face->glyph, &glyph);
8543     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8544     FT_Done_Glyph(glyph);
8545     FT_Done_Face(face);
8546     FT_Done_FreeType(ftlibrary);
8547     return 0;
8548 }
8549 EOF
8550
8551     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8552     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8553         { $as_echo "$as_me:$LINENO: result: yes" >&5
8554 $as_echo "yes" >&6; }
8555
8556 cat >>confdefs.h <<\_ACEOF
8557 #define HAVE_FREETYPE 1
8558 _ACEOF
8559
8560
8561 cat >>confdefs.h <<\_ACEOF
8562 #define HAVE_FREETYPE_FREETYPE_H 1
8563 _ACEOF
8564
8565
8566 cat >>confdefs.h <<\_ACEOF
8567 #define USE_FREETYPE 1
8568 _ACEOF
8569   # for ttf2tp1
8570     else
8571         echo "configure: failed program was:" >&5
8572         cat conftest.c >&5
8573         HAVE_FREETYPE=0
8574         { $as_echo "$as_me:$LINENO: result: no" >&5
8575 $as_echo "no" >&6; }
8576     fi
8577     rm -f conftest*
8578 fi
8579
8580 # if the above didn't work out, reset all changes to the compiler variables.
8581 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8582     CPPFLAGS=$OLDCPPFLAGS
8583     LIBS=$OLDLIBS
8584 fi
8585
8586
8587
8588 OLDCPPFLAGS="${CPPFLAGS}"
8589 OLDLIBS="${LIBS}"
8590
8591 if test -d /usr/include/fontconfig; then
8592     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8593 fi
8594
8595 { $as_echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8596 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
8597 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8598   $as_echo_n "(cached) " >&6
8599 else
8600   ac_check_lib_save_LIBS=$LIBS
8601 LIBS="-lfontconfig  $LIBS"
8602 cat >conftest.$ac_ext <<_ACEOF
8603 /* confdefs.h.  */
8604 _ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h.  */
8608
8609 /* Override any GCC internal prototype to avoid an error.
8610    Use char because int might match the return type of a GCC
8611    builtin and then its argument prototype would still apply.  */
8612 #ifdef __cplusplus
8613 extern "C"
8614 #endif
8615 char FcInit ();
8616 int
8617 main ()
8618 {
8619 return FcInit ();
8620   ;
8621   return 0;
8622 }
8623 _ACEOF
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (ac_try="$ac_link"
8626 case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8631 $as_echo "$ac_try_echo") >&5
8632   (eval "$ac_link") 2>conftest.er1
8633   ac_status=$?
8634   grep -v '^ *+' conftest.er1 >conftest.err
8635   rm -f conftest.er1
8636   cat conftest.err >&5
8637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } && {
8639          test -z "$ac_c_werror_flag" ||
8640          test ! -s conftest.err
8641        } && test -s conftest$ac_exeext && {
8642          test "$cross_compiling" = yes ||
8643          $as_test_x conftest$ac_exeext
8644        }; then
8645   ac_cv_lib_fontconfig_FcInit=yes
8646 else
8647   $as_echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8649
8650         ac_cv_lib_fontconfig_FcInit=no
8651 fi
8652
8653 rm -rf conftest.dSYM
8654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8655       conftest$ac_exeext conftest.$ac_ext
8656 LIBS=$ac_check_lib_save_LIBS
8657 fi
8658 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8659 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
8660 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then
8661   HAVE_LIB_FONTCONFIG=1
8662 fi
8663
8664
8665 for ac_header in fontconfig.h
8666 do
8667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8669   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8670 $as_echo_n "checking for $ac_header... " >&6; }
8671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8672   $as_echo_n "(cached) " >&6
8673 fi
8674 ac_res=`eval 'as_val=${'$as_ac_Header'}
8675                  $as_echo "$as_val"'`
8676                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8677 $as_echo "$ac_res" >&6; }
8678 else
8679   # Is the header compilable?
8680 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8681 $as_echo_n "checking $ac_header usability... " >&6; }
8682 cat >conftest.$ac_ext <<_ACEOF
8683 /* confdefs.h.  */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h.  */
8688 $ac_includes_default
8689 #include <$ac_header>
8690 _ACEOF
8691 rm -f conftest.$ac_objext
8692 if { (ac_try="$ac_compile"
8693 case "(($ac_try" in
8694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695   *) ac_try_echo=$ac_try;;
8696 esac
8697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8698 $as_echo "$ac_try_echo") >&5
8699   (eval "$ac_compile") 2>conftest.er1
8700   ac_status=$?
8701   grep -v '^ *+' conftest.er1 >conftest.err
8702   rm -f conftest.er1
8703   cat conftest.err >&5
8704   $as_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_objext; then
8709   ac_header_compiler=yes
8710 else
8711   $as_echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8713
8714         ac_header_compiler=no
8715 fi
8716
8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8719 $as_echo "$ac_header_compiler" >&6; }
8720
8721 # Is the header present?
8722 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8723 $as_echo_n "checking $ac_header presence... " >&6; }
8724 cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h.  */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h.  */
8730 #include <$ac_header>
8731 _ACEOF
8732 if { (ac_try="$ac_cpp conftest.$ac_ext"
8733 case "(($ac_try" in
8734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735   *) ac_try_echo=$ac_try;;
8736 esac
8737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8738 $as_echo "$ac_try_echo") >&5
8739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8740   ac_status=$?
8741   grep -v '^ *+' conftest.er1 >conftest.err
8742   rm -f conftest.er1
8743   cat conftest.err >&5
8744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); } >/dev/null && {
8746          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8747          test ! -s conftest.err
8748        }; then
8749   ac_header_preproc=yes
8750 else
8751   $as_echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8753
8754   ac_header_preproc=no
8755 fi
8756
8757 rm -f conftest.err conftest.$ac_ext
8758 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759 $as_echo "$ac_header_preproc" >&6; }
8760
8761 # So?  What about this header?
8762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8763   yes:no: )
8764     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8765 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8766     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8767 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8768     ac_header_preproc=yes
8769     ;;
8770   no:yes:* )
8771     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8772 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8773     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8774 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8775     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8776 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8777     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8778 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8779     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8780 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8781     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8782 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8783
8784     ;;
8785 esac
8786 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8787 $as_echo_n "checking for $ac_header... " >&6; }
8788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8789   $as_echo_n "(cached) " >&6
8790 else
8791   eval "$as_ac_Header=\$ac_header_preproc"
8792 fi
8793 ac_res=`eval 'as_val=${'$as_ac_Header'}
8794                  $as_echo "$as_val"'`
8795                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8796 $as_echo "$ac_res" >&6; }
8797
8798 fi
8799 as_val=`eval 'as_val=${'$as_ac_Header'}
8800                  $as_echo "$as_val"'`
8801    if test "x$as_val" = x""yes; then
8802   cat >>confdefs.h <<_ACEOF
8803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8804 _ACEOF
8805  HAVE_FONTCONFIG_H=1
8806 fi
8807
8808 done
8809
8810
8811 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8812 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8813     HAVE_FONTCONFIG=1
8814 fi
8815 fi
8816
8817 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8818     LIBS="$LIBS -lfontconfig"
8819 { $as_echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8820 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
8821
8822 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8823     #move freetype library to the end of libraries, otherwise fontconfig
8824     #won't compile.
8825     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8826 fi
8827
8828 cat > conftest.c << EOF
8829 #include <string.h>
8830 #include <fontconfig.h>
8831
8832 int main()
8833 {
8834     FcPattern *pattern, *match;
8835     FcResult result;
8836     FcChar8 *v;
8837     char*s1="abc",*s2="ABC";
8838     strcasecmp(s1,s2);
8839     FcInit();
8840     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8841     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8842     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8843
8844     FcConfig*c = FcConfigCreate();
8845     FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8846     FcConfigBuildFonts(c);
8847     FcConfigSetCurrent(c);
8848
8849     FcFontSet * set =  FcConfigGetFonts(c, FcSetSystem);
8850     FcFontSetDestroy(set);
8851
8852     FcConfigSubstitute(0, pattern, FcMatchPattern);
8853     FcDefaultSubstitute(pattern);
8854     match = FcFontMatch(0, pattern, &result);
8855     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8856     FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8857     FcPatternPrint(pattern);
8858     FcPatternDestroy(pattern);
8859     FcPatternDestroy(match);
8860     FcFini();
8861     return 0;
8862 }
8863 EOF
8864
8865     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8866     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8867         { $as_echo "$as_me:$LINENO: result: yes" >&5
8868 $as_echo "yes" >&6; }
8869
8870 cat >>confdefs.h <<\_ACEOF
8871 #define HAVE_FONTCONFIG 1
8872 _ACEOF
8873
8874     else
8875         echo "configure: failed program was:" >&5
8876         cat conftest.c >&5
8877         HAVE_FONTCONFIG=0
8878         { $as_echo "$as_me:$LINENO: result: no" >&5
8879 $as_echo "no" >&6; }
8880     fi
8881     rm -f conftest*
8882 fi
8883
8884 # if the above didn't work out, reset all changes to the compiler variables.
8885 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
8886     CPPFLAGS=$OLDCPPFLAGS
8887     LIBS=$OLDLIBS
8888 fi
8889
8890
8891
8892 OLDCPPFLAGS="${CPPFLAGS}"
8893 OLDLIBS="${LIBS}"
8894
8895
8896 { $as_echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
8897 $as_echo_n "checking for glBegin in -lGL... " >&6; }
8898 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
8899   $as_echo_n "(cached) " >&6
8900 else
8901   ac_check_lib_save_LIBS=$LIBS
8902 LIBS="-lGL  $LIBS"
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h.  */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h.  */
8909
8910 /* Override any GCC internal prototype to avoid an error.
8911    Use char because int might match the return type of a GCC
8912    builtin and then its argument prototype would still apply.  */
8913 #ifdef __cplusplus
8914 extern "C"
8915 #endif
8916 char glBegin ();
8917 int
8918 main ()
8919 {
8920 return glBegin ();
8921   ;
8922   return 0;
8923 }
8924 _ACEOF
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (ac_try="$ac_link"
8927 case "(($ac_try" in
8928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929   *) ac_try_echo=$ac_try;;
8930 esac
8931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8932 $as_echo "$ac_try_echo") >&5
8933   (eval "$ac_link") 2>conftest.er1
8934   ac_status=$?
8935   grep -v '^ *+' conftest.er1 >conftest.err
8936   rm -f conftest.er1
8937   cat conftest.err >&5
8938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); } && {
8940          test -z "$ac_c_werror_flag" ||
8941          test ! -s conftest.err
8942        } && test -s conftest$ac_exeext && {
8943          test "$cross_compiling" = yes ||
8944          $as_test_x conftest$ac_exeext
8945        }; then
8946   ac_cv_lib_GL_glBegin=yes
8947 else
8948   $as_echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951         ac_cv_lib_GL_glBegin=no
8952 fi
8953
8954 rm -rf conftest.dSYM
8955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8956       conftest$ac_exeext conftest.$ac_ext
8957 LIBS=$ac_check_lib_save_LIBS
8958 fi
8959 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
8960 $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
8961 if test "x$ac_cv_lib_GL_glBegin" = x""yes; then
8962   cat >>confdefs.h <<_ACEOF
8963 #define HAVE_LIBGL 1
8964 _ACEOF
8965
8966   LIBS="-lGL $LIBS"
8967
8968 fi
8969
8970
8971 { $as_echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
8972 $as_echo_n "checking for gluBeginSurface in -lGLU... " >&6; }
8973 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
8974   $as_echo_n "(cached) " >&6
8975 else
8976   ac_check_lib_save_LIBS=$LIBS
8977 LIBS="-lGLU  $LIBS"
8978 cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h.  */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h.  */
8984
8985 /* Override any GCC internal prototype to avoid an error.
8986    Use char because int might match the return type of a GCC
8987    builtin and then its argument prototype would still apply.  */
8988 #ifdef __cplusplus
8989 extern "C"
8990 #endif
8991 char gluBeginSurface ();
8992 int
8993 main ()
8994 {
8995 return gluBeginSurface ();
8996   ;
8997   return 0;
8998 }
8999 _ACEOF
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (ac_try="$ac_link"
9002 case "(($ac_try" in
9003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004   *) ac_try_echo=$ac_try;;
9005 esac
9006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9007 $as_echo "$ac_try_echo") >&5
9008   (eval "$ac_link") 2>conftest.er1
9009   ac_status=$?
9010   grep -v '^ *+' conftest.er1 >conftest.err
9011   rm -f conftest.er1
9012   cat conftest.err >&5
9013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014   (exit $ac_status); } && {
9015          test -z "$ac_c_werror_flag" ||
9016          test ! -s conftest.err
9017        } && test -s conftest$ac_exeext && {
9018          test "$cross_compiling" = yes ||
9019          $as_test_x conftest$ac_exeext
9020        }; then
9021   ac_cv_lib_GLU_gluBeginSurface=yes
9022 else
9023   $as_echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9025
9026         ac_cv_lib_GLU_gluBeginSurface=no
9027 fi
9028
9029 rm -rf conftest.dSYM
9030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9031       conftest$ac_exeext conftest.$ac_ext
9032 LIBS=$ac_check_lib_save_LIBS
9033 fi
9034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
9035 $as_echo "$ac_cv_lib_GLU_gluBeginSurface" >&6; }
9036 if test "x$ac_cv_lib_GLU_gluBeginSurface" = x""yes; then
9037   cat >>confdefs.h <<_ACEOF
9038 #define HAVE_LIBGLU 1
9039 _ACEOF
9040
9041   LIBS="-lGLU $LIBS"
9042
9043 fi
9044
9045
9046 { $as_echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
9047 $as_echo_n "checking for glutInit in -lglut... " >&6; }
9048 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
9049   $as_echo_n "(cached) " >&6
9050 else
9051   ac_check_lib_save_LIBS=$LIBS
9052 LIBS="-lglut  $LIBS"
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h.  */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h.  */
9059
9060 /* Override any GCC internal prototype to avoid an error.
9061    Use char because int might match the return type of a GCC
9062    builtin and then its argument prototype would still apply.  */
9063 #ifdef __cplusplus
9064 extern "C"
9065 #endif
9066 char glutInit ();
9067 int
9068 main ()
9069 {
9070 return glutInit ();
9071   ;
9072   return 0;
9073 }
9074 _ACEOF
9075 rm -f conftest.$ac_objext conftest$ac_exeext
9076 if { (ac_try="$ac_link"
9077 case "(($ac_try" in
9078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079   *) ac_try_echo=$ac_try;;
9080 esac
9081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9082 $as_echo "$ac_try_echo") >&5
9083   (eval "$ac_link") 2>conftest.er1
9084   ac_status=$?
9085   grep -v '^ *+' conftest.er1 >conftest.err
9086   rm -f conftest.er1
9087   cat conftest.err >&5
9088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089   (exit $ac_status); } && {
9090          test -z "$ac_c_werror_flag" ||
9091          test ! -s conftest.err
9092        } && test -s conftest$ac_exeext && {
9093          test "$cross_compiling" = yes ||
9094          $as_test_x conftest$ac_exeext
9095        }; then
9096   ac_cv_lib_glut_glutInit=yes
9097 else
9098   $as_echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9100
9101         ac_cv_lib_glut_glutInit=no
9102 fi
9103
9104 rm -rf conftest.dSYM
9105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9106       conftest$ac_exeext conftest.$ac_ext
9107 LIBS=$ac_check_lib_save_LIBS
9108 fi
9109 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
9110 $as_echo "$ac_cv_lib_glut_glutInit" >&6; }
9111 if test "x$ac_cv_lib_glut_glutInit" = x""yes; then
9112   cat >>confdefs.h <<_ACEOF
9113 #define HAVE_LIBGLUT 1
9114 _ACEOF
9115
9116   LIBS="-lglut $LIBS"
9117
9118 fi
9119
9120
9121
9122 for ac_header in GL/gl.h GL/glut.h
9123 do
9124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9126   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9127 $as_echo_n "checking for $ac_header... " >&6; }
9128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9129   $as_echo_n "(cached) " >&6
9130 fi
9131 ac_res=`eval 'as_val=${'$as_ac_Header'}
9132                  $as_echo "$as_val"'`
9133                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9134 $as_echo "$ac_res" >&6; }
9135 else
9136   # Is the header compilable?
9137 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9138 $as_echo_n "checking $ac_header usability... " >&6; }
9139 cat >conftest.$ac_ext <<_ACEOF
9140 /* confdefs.h.  */
9141 _ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h.  */
9145 $ac_includes_default
9146 #include <$ac_header>
9147 _ACEOF
9148 rm -f conftest.$ac_objext
9149 if { (ac_try="$ac_compile"
9150 case "(($ac_try" in
9151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9152   *) ac_try_echo=$ac_try;;
9153 esac
9154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9155 $as_echo "$ac_try_echo") >&5
9156   (eval "$ac_compile") 2>conftest.er1
9157   ac_status=$?
9158   grep -v '^ *+' conftest.er1 >conftest.err
9159   rm -f conftest.er1
9160   cat conftest.err >&5
9161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   (exit $ac_status); } && {
9163          test -z "$ac_c_werror_flag" ||
9164          test ! -s conftest.err
9165        } && test -s conftest.$ac_objext; then
9166   ac_header_compiler=yes
9167 else
9168   $as_echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171         ac_header_compiler=no
9172 fi
9173
9174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9175 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9176 $as_echo "$ac_header_compiler" >&6; }
9177
9178 # Is the header present?
9179 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9180 $as_echo_n "checking $ac_header presence... " >&6; }
9181 cat >conftest.$ac_ext <<_ACEOF
9182 /* confdefs.h.  */
9183 _ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h.  */
9187 #include <$ac_header>
9188 _ACEOF
9189 if { (ac_try="$ac_cpp conftest.$ac_ext"
9190 case "(($ac_try" in
9191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192   *) ac_try_echo=$ac_try;;
9193 esac
9194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9195 $as_echo "$ac_try_echo") >&5
9196   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9197   ac_status=$?
9198   grep -v '^ *+' conftest.er1 >conftest.err
9199   rm -f conftest.er1
9200   cat conftest.err >&5
9201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202   (exit $ac_status); } >/dev/null && {
9203          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9204          test ! -s conftest.err
9205        }; then
9206   ac_header_preproc=yes
9207 else
9208   $as_echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9210
9211   ac_header_preproc=no
9212 fi
9213
9214 rm -f conftest.err conftest.$ac_ext
9215 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9216 $as_echo "$ac_header_preproc" >&6; }
9217
9218 # So?  What about this header?
9219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9220   yes:no: )
9221     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9222 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9223     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9224 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9225     ac_header_preproc=yes
9226     ;;
9227   no:yes:* )
9228     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9229 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9231 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9232     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9233 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9234     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9235 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9236     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9237 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9238     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9239 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9240
9241     ;;
9242 esac
9243 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9244 $as_echo_n "checking for $ac_header... " >&6; }
9245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9246   $as_echo_n "(cached) " >&6
9247 else
9248   eval "$as_ac_Header=\$ac_header_preproc"
9249 fi
9250 ac_res=`eval 'as_val=${'$as_ac_Header'}
9251                  $as_echo "$as_val"'`
9252                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9253 $as_echo "$ac_res" >&6; }
9254
9255 fi
9256 as_val=`eval 'as_val=${'$as_ac_Header'}
9257                  $as_echo "$as_val"'`
9258    if test "x$as_val" = x""yes; then
9259   cat >>confdefs.h <<_ACEOF
9260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9261 _ACEOF
9262
9263 fi
9264
9265 done
9266
9267
9268 cat > conftest.c << EOF
9269 #include <GL/gl.h>
9270 #include <GL/glu.h>
9271 #include <GL/glut.h>
9272
9273 int main(int argc, char*argv)
9274 {
9275     glutInit(&argc, argv);
9276     glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
9277     glutInitWindowSize(320,200);
9278     glutInitWindowPosition(0,0);
9279     glutCreateWindow("main");
9280     glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
9281     glShadeModel(GL_SMOOTH);
9282     glEnable (GL_LINE_SMOOTH);
9283     glEnable (GL_POLYGON_SMOOTH);
9284     glEnable (GL_BLEND);
9285     glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
9286     glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
9287     glHint (GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
9288 }
9289 EOF
9290
9291 { $as_echo "$as_me:$LINENO: checking whether we can compile the opengl test program" >&5
9292 $as_echo_n "checking whether we can compile the opengl test program... " >&6; }
9293
9294 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9295 if { (eval echo opengl.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9296     { $as_echo "$as_me:$LINENO: result: yes" >&5
9297 $as_echo "yes" >&6; }
9298     HAVE_OPENGL=1
9299
9300 cat >>confdefs.h <<\_ACEOF
9301 #define HAVE_OPENGL 1
9302 _ACEOF
9303
9304 else
9305     echo "configure: failed program was:" >&5
9306     cat conftest.c >&5
9307     HAVE_OPENGL=
9308     { $as_echo "$as_me:$LINENO: result: no" >&5
9309 $as_echo "no" >&6; }
9310 fi
9311 rm -f conftest*
9312
9313 # if the above didn't work out, reset all changes to the compiler variables.
9314 if test "x${HAVE_OPENGL}" "!=" "x1"; then
9315     CPPFLAGS=$OLDCPPFLAGS
9316     LIBS=$OLDLIBS
9317 fi
9318
9319 if test "$HAVE_OPENGL";then
9320     DEVICE_OPENGL='devices/opengl.$(O)'
9321
9322 fi
9323
9324 lame_in_source=
9325 lame_makefile=
9326 if test "x${DISABLE_LAME}" = "xtrue"; then
9327     echo "*" Disabling lame support...
9328 else
9329     # old lame code at lib/lame
9330     if test -f lib/lame/Makefile.in; then
9331         lame_in_source='$(lame_objects)'
9332         lame_makefile="lib/lame/Makefile"
9333         CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9334
9335 cat >>confdefs.h <<\_ACEOF
9336 #define HAVE_LAME 1
9337 _ACEOF
9338
9339     else
9340         if test -d /usr/include/lame; then
9341             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9342         else
9343             if test -d /usr/local/include/lame; then
9344                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9345             fi
9346         fi
9347
9348 { $as_echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9349 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9350 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9351   $as_echo_n "(cached) " >&6
9352 else
9353   ac_check_lib_save_LIBS=$LIBS
9354 LIBS="-lmp3lame  $LIBS"
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h.  */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h.  */
9361
9362 /* Override any GCC internal prototype to avoid an error.
9363    Use char because int might match the return type of a GCC
9364    builtin and then its argument prototype would still apply.  */
9365 #ifdef __cplusplus
9366 extern "C"
9367 #endif
9368 char lame_init ();
9369 int
9370 main ()
9371 {
9372 return lame_init ();
9373   ;
9374   return 0;
9375 }
9376 _ACEOF
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (ac_try="$ac_link"
9379 case "(($ac_try" in
9380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381   *) ac_try_echo=$ac_try;;
9382 esac
9383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9384 $as_echo "$ac_try_echo") >&5
9385   (eval "$ac_link") 2>conftest.er1
9386   ac_status=$?
9387   grep -v '^ *+' conftest.er1 >conftest.err
9388   rm -f conftest.er1
9389   cat conftest.err >&5
9390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); } && {
9392          test -z "$ac_c_werror_flag" ||
9393          test ! -s conftest.err
9394        } && test -s conftest$ac_exeext && {
9395          test "$cross_compiling" = yes ||
9396          $as_test_x conftest$ac_exeext
9397        }; then
9398   ac_cv_lib_mp3lame_lame_init=yes
9399 else
9400   $as_echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9402
9403         ac_cv_lib_mp3lame_lame_init=no
9404 fi
9405
9406 rm -rf conftest.dSYM
9407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9408       conftest$ac_exeext conftest.$ac_ext
9409 LIBS=$ac_check_lib_save_LIBS
9410 fi
9411 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9412 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9413 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then
9414   cat >>confdefs.h <<_ACEOF
9415 #define HAVE_LIBMP3LAME 1
9416 _ACEOF
9417
9418   LIBS="-lmp3lame $LIBS"
9419
9420 else
9421   NO_LIBMP3LAME=1
9422 fi
9423
9424         HASLAMEHEADER=
9425
9426 for ac_header in lame.h
9427 do
9428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9430   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9431 $as_echo_n "checking for $ac_header... " >&6; }
9432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9433   $as_echo_n "(cached) " >&6
9434 fi
9435 ac_res=`eval 'as_val=${'$as_ac_Header'}
9436                  $as_echo "$as_val"'`
9437                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9438 $as_echo "$ac_res" >&6; }
9439 else
9440   # Is the header compilable?
9441 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9442 $as_echo_n "checking $ac_header usability... " >&6; }
9443 cat >conftest.$ac_ext <<_ACEOF
9444 /* confdefs.h.  */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h.  */
9449 $ac_includes_default
9450 #include <$ac_header>
9451 _ACEOF
9452 rm -f conftest.$ac_objext
9453 if { (ac_try="$ac_compile"
9454 case "(($ac_try" in
9455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456   *) ac_try_echo=$ac_try;;
9457 esac
9458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9459 $as_echo "$ac_try_echo") >&5
9460   (eval "$ac_compile") 2>conftest.er1
9461   ac_status=$?
9462   grep -v '^ *+' conftest.er1 >conftest.err
9463   rm -f conftest.er1
9464   cat conftest.err >&5
9465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); } && {
9467          test -z "$ac_c_werror_flag" ||
9468          test ! -s conftest.err
9469        } && test -s conftest.$ac_objext; then
9470   ac_header_compiler=yes
9471 else
9472   $as_echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9474
9475         ac_header_compiler=no
9476 fi
9477
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9480 $as_echo "$ac_header_compiler" >&6; }
9481
9482 # Is the header present?
9483 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9484 $as_echo_n "checking $ac_header presence... " >&6; }
9485 cat >conftest.$ac_ext <<_ACEOF
9486 /* confdefs.h.  */
9487 _ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h.  */
9491 #include <$ac_header>
9492 _ACEOF
9493 if { (ac_try="$ac_cpp conftest.$ac_ext"
9494 case "(($ac_try" in
9495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496   *) ac_try_echo=$ac_try;;
9497 esac
9498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9499 $as_echo "$ac_try_echo") >&5
9500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9501   ac_status=$?
9502   grep -v '^ *+' conftest.er1 >conftest.err
9503   rm -f conftest.er1
9504   cat conftest.err >&5
9505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); } >/dev/null && {
9507          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9508          test ! -s conftest.err
9509        }; then
9510   ac_header_preproc=yes
9511 else
9512   $as_echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9514
9515   ac_header_preproc=no
9516 fi
9517
9518 rm -f conftest.err conftest.$ac_ext
9519 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9520 $as_echo "$ac_header_preproc" >&6; }
9521
9522 # So?  What about this header?
9523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9524   yes:no: )
9525     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9526 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9527     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9528 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9529     ac_header_preproc=yes
9530     ;;
9531   no:yes:* )
9532     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9533 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9534     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9535 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9536     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9537 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9538     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9539 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9540     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9541 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9542     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9543 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9544
9545     ;;
9546 esac
9547 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9548 $as_echo_n "checking for $ac_header... " >&6; }
9549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9550   $as_echo_n "(cached) " >&6
9551 else
9552   eval "$as_ac_Header=\$ac_header_preproc"
9553 fi
9554 ac_res=`eval 'as_val=${'$as_ac_Header'}
9555                  $as_echo "$as_val"'`
9556                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9557 $as_echo "$ac_res" >&6; }
9558
9559 fi
9560 as_val=`eval 'as_val=${'$as_ac_Header'}
9561                  $as_echo "$as_val"'`
9562    if test "x$as_val" = x""yes; then
9563   cat >>confdefs.h <<_ACEOF
9564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9565 _ACEOF
9566  HASLAMEHEADER=1
9567 fi
9568
9569 done
9570
9571         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9572             cat >>confdefs.h <<\_ACEOF
9573 #define HAVE_LAME 1
9574 _ACEOF
9575
9576         fi
9577     fi
9578 fi
9579
9580
9581
9582 cat >>confdefs.h <<\_ACEOF
9583 #define INTERNAL_LIBART 1
9584 _ACEOF
9585
9586 art_in_source='$(art_objects)'
9587 splash_in_source='$(splash_objects)'
9588 xpdf_in_source='$(xpdf_objects)'
9589
9590
9591
9592
9593
9594
9595 # ------------------------------------------------------------------
9596
9597
9598 { $as_echo "$as_me:$LINENO: checking whether the filesystem normalizes file names" >&5
9599 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
9600
9601 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
9602 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9603 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
9604     { $as_echo "$as_me:$LINENO: result: yes" >&5
9605 $as_echo "yes" >&6; }
9606
9607 cat >>confdefs.h <<\_ACEOF
9608 #define LOWERCASE_UPPERCASE 1
9609 _ACEOF
9610
9611 else
9612     { $as_echo "$as_me:$LINENO: result: no" >&5
9613 $as_echo "no" >&6; }
9614 fi
9615
9616
9617
9618 for ac_prog in avifile-config
9619 do
9620   # Extract the first word of "$ac_prog", so it can be a program name with args.
9621 set dummy $ac_prog; ac_word=$2
9622 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9623 $as_echo_n "checking for $ac_word... " >&6; }
9624 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9625   $as_echo_n "(cached) " >&6
9626 else
9627   if test -n "$AVIFILE_CONFIG"; then
9628   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9629 else
9630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631 for as_dir in $PATH
9632 do
9633   IFS=$as_save_IFS
9634   test -z "$as_dir" && as_dir=.
9635   for ac_exec_ext in '' $ac_executable_extensions; do
9636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9637     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9638     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9639     break 2
9640   fi
9641 done
9642 done
9643 IFS=$as_save_IFS
9644
9645 fi
9646 fi
9647 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9648 if test -n "$AVIFILE_CONFIG"; then
9649   { $as_echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9650 $as_echo "$AVIFILE_CONFIG" >&6; }
9651 else
9652   { $as_echo "$as_me:$LINENO: result: no" >&5
9653 $as_echo "no" >&6; }
9654 fi
9655
9656
9657   test -n "$AVIFILE_CONFIG" && break
9658 done
9659
9660
9661 if test "x$AVIFILE_CONFIG" '!=' "x";then
9662     OLDCPPFLAGS="$CPPFLAGS"
9663     # temporarily add avifile paths to CPPFLAGS...
9664     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9665
9666
9667 for ac_header in avifile/version.h version.h
9668 do
9669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9671   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9672 $as_echo_n "checking for $ac_header... " >&6; }
9673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9674   $as_echo_n "(cached) " >&6
9675 fi
9676 ac_res=`eval 'as_val=${'$as_ac_Header'}
9677                  $as_echo "$as_val"'`
9678                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9679 $as_echo "$ac_res" >&6; }
9680 else
9681   # Is the header compilable?
9682 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9683 $as_echo_n "checking $ac_header usability... " >&6; }
9684 cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h.  */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h.  */
9690 $ac_includes_default
9691 #include <$ac_header>
9692 _ACEOF
9693 rm -f conftest.$ac_objext
9694 if { (ac_try="$ac_compile"
9695 case "(($ac_try" in
9696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697   *) ac_try_echo=$ac_try;;
9698 esac
9699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9700 $as_echo "$ac_try_echo") >&5
9701   (eval "$ac_compile") 2>conftest.er1
9702   ac_status=$?
9703   grep -v '^ *+' conftest.er1 >conftest.err
9704   rm -f conftest.er1
9705   cat conftest.err >&5
9706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); } && {
9708          test -z "$ac_c_werror_flag" ||
9709          test ! -s conftest.err
9710        } && test -s conftest.$ac_objext; then
9711   ac_header_compiler=yes
9712 else
9713   $as_echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9715
9716         ac_header_compiler=no
9717 fi
9718
9719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9721 $as_echo "$ac_header_compiler" >&6; }
9722
9723 # Is the header present?
9724 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9725 $as_echo_n "checking $ac_header presence... " >&6; }
9726 cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 #include <$ac_header>
9733 _ACEOF
9734 if { (ac_try="$ac_cpp conftest.$ac_ext"
9735 case "(($ac_try" in
9736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737   *) ac_try_echo=$ac_try;;
9738 esac
9739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9740 $as_echo "$ac_try_echo") >&5
9741   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9742   ac_status=$?
9743   grep -v '^ *+' conftest.er1 >conftest.err
9744   rm -f conftest.er1
9745   cat conftest.err >&5
9746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); } >/dev/null && {
9748          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9749          test ! -s conftest.err
9750        }; then
9751   ac_header_preproc=yes
9752 else
9753   $as_echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9755
9756   ac_header_preproc=no
9757 fi
9758
9759 rm -f conftest.err conftest.$ac_ext
9760 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9761 $as_echo "$ac_header_preproc" >&6; }
9762
9763 # So?  What about this header?
9764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9765   yes:no: )
9766     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9767 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9768     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9770     ac_header_preproc=yes
9771     ;;
9772   no:yes:* )
9773     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9774 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9775     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9776 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9777     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9778 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9779     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9780 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9781     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9782 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9784 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9785
9786     ;;
9787 esac
9788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9789 $as_echo_n "checking for $ac_header... " >&6; }
9790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9791   $as_echo_n "(cached) " >&6
9792 else
9793   eval "$as_ac_Header=\$ac_header_preproc"
9794 fi
9795 ac_res=`eval 'as_val=${'$as_ac_Header'}
9796                  $as_echo "$as_val"'`
9797                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9798 $as_echo "$ac_res" >&6; }
9799
9800 fi
9801 as_val=`eval 'as_val=${'$as_ac_Header'}
9802                  $as_echo "$as_val"'`
9803    if test "x$as_val" = x""yes; then
9804   cat >>confdefs.h <<_ACEOF
9805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9806 _ACEOF
9807
9808 fi
9809
9810 done
9811
9812     # ... and reset
9813     CPPFLAGS="$OLDCPPFLAGS"
9814 fi
9815
9816 { $as_echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9817 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
9818
9819 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9820     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9821 fi
9822 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9823     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9824 fi
9825
9826 cat > conftest.cpp << EOF
9827
9828 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9829 // so we have to introduce them this way
9830 $HAVE_VERSION_H_DEFINE
9831 $HAVE_AVIFILE_VERSION_H_DEFINE
9832
9833 #ifdef HAVE_VERSION_H
9834   #include <version.h>
9835 #endif
9836 #ifdef HAVE_AVIFILE_VERSION_H
9837   #include <avifile/version.h>
9838 #endif
9839
9840 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9841    #include <avifile.h>
9842    #include <aviplay.h>
9843    #include <avm_fourcc.h>
9844    #include <avm_creators.h>
9845    #include <StreamInfo.h>
9846    #define VERSION6
9847 #else
9848    #include <avifile.h>
9849    #include <aviplay.h>
9850    #include <aviutil.h>
9851    #define Width width
9852    #define Height height
9853    #define Data data
9854    #define Bpp bpp
9855 #endif
9856
9857 void test()
9858 {
9859   IAviReadFile* player;
9860   IAviReadStream* astream;
9861   IAviReadStream* vstream;
9862   player = CreateIAviReadFile(0);
9863   astream = player->GetStream(0, AviStream::Audio);
9864   vstream = player->GetStream(0, AviStream::Video);
9865   vstream -> StartStreaming();
9866   astream -> StartStreaming();
9867 #ifndef VERSION6
9868   MainAVIHeader head;
9869   player->GetFileHeader(&head);
9870   head.dwMicroSecPerFrame;
9871   head.dwTotalFrames;
9872   head.dwStreams;
9873   head.dwWidth;
9874   head.dwHeight;
9875   head.dwMicroSecPerFrame;
9876   astream->GetEndPos(),
9877   astream->GetEndTime());
9878   player->StreamCount();
9879 #else
9880   StreamInfo*audioinfo;
9881   StreamInfo*videoinfo;
9882   audioinfo = astream->GetStreamInfo();
9883   videoinfo = vstream->GetStreamInfo();
9884   videoinfo->GetVideoWidth();
9885   videoinfo->GetVideoHeight();
9886   audioinfo->GetAudioSamplesPerSec();
9887   videoinfo->GetFps();
9888 #endif
9889   CImage*img = vstream->GetFrame();
9890   img->ToRGB();
9891   img->Data();
9892   img->Bpp();
9893   img->Width();
9894   img->Height();
9895   WAVEFORMATEX wave;
9896   astream->GetAudioFormatInfo(&wave,0);
9897   uint_t a,b;
9898   astream->ReadFrames(0,0,0,a,b);
9899 }
9900 int main (int argc, char*argv)
9901 {
9902     return 0;
9903 }
9904 EOF
9905
9906 if test "x$AVIFILE_CONFIG" '!=' "x";then
9907     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9908     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9909     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9910     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9911       { $as_echo "$as_me:$LINENO: result: yes" >&5
9912 $as_echo "yes" >&6; }
9913       AVIFILE=true
9914       export AVIFILE
9915
9916 cat >>confdefs.h <<\_ACEOF
9917 #define AVIFILE true
9918 _ACEOF
9919
9920     else
9921       echo "configure: failed program was:" >&5
9922       cat conftest.cpp >&5
9923       { $as_echo "$as_me:$LINENO: result: no" >&5
9924 $as_echo "no" >&6; }
9925     fi
9926 else
9927     { $as_echo "$as_me:$LINENO: result: no" >&5
9928 $as_echo "no" >&6; }
9929 fi
9930 rm -f conftest*
9931
9932 if test "x${AVIFILE}" = "xtrue"; then
9933     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9934     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9935
9936 cat >>confdefs.h <<\_ACEOF
9937 #define HAVE_AVIFILE 1
9938 _ACEOF
9939
9940 fi
9941
9942 if test "x${WIN32}" != "x"; then
9943     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9944     #if test "x${AVIFIL32}" != "x"; then
9945     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9946     #fi
9947     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9948     AVIFIL32=true
9949 fi
9950
9951
9952
9953 # ------------------------------------------------------------------
9954
9955 if test "x${UNCOMPRESS}" = "xgzip"; then
9956
9957 cat >>confdefs.h <<\_ACEOF
9958 #define USE_GZIP 1
9959 _ACEOF
9960
9961 fi
9962
9963
9964 # ------------------------------------------------------------------
9965
9966
9967 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
9968 $as_echo_n "checking for Python.h... " >&6; }
9969
9970 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9971     PY_VERSION=unknown
9972 else
9973     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9974         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9975     fi
9976     # iterate through version 2.2 to 2.6
9977     for v in 2 3 4 5 6; do
9978         # Linux
9979         if test -f "/usr/include/python2.$v/Python.h";then
9980             PY_VERSION=2.$v
9981             PYTHON_LIB="-lpython$PY_VERSION"
9982             if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9983                 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9984                 HAVE_PYTHON_IMAGING_LIB=1
9985             else
9986                 PYTHON_LIB2="$PYTHON_LIB"
9987             fi
9988             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9989         # Mac OS X
9990         elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9991             PY_VERSION=2.$v
9992             PYTHON_LIB="-framework Python"
9993             if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
9994                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9995                 HAVE_PYTHON_IMAGING_LIB=1
9996             else
9997                 PYTHON_LIB2="$PYTHON_LIB"
9998             fi
9999             PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
10000         # Mac OS X [Fink]:
10001         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
10002                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
10003                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
10004                   ")" \
10005                -a -f "/sw/include/python2.$v/Python.h"; then
10006             PY_VERSION=2.$v
10007             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10008             if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
10009                 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10010                 HAVE_PYTHON_IMAGING_LIB=1
10011             else
10012                 PYTHON_LIB2="$PYTHON_LIB"
10013             fi
10014             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
10015         fi
10016     done
10017 fi
10018
10019 if test "x$PY_VERSION" "!=" "x"; then
10020     { $as_echo "$as_me:$LINENO: result: $PY_VERSION" >&5
10021 $as_echo "$PY_VERSION" >&6; }
10022     export PYTHON_INCLUDES PYTHON_LIB
10023
10024
10025     { $as_echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
10026 $as_echo_n "checking whether we can compile the python test program... " >&6; }
10027
10028     cat > conftest.c << EOF
10029 #include <Python.h>
10030
10031 int main()
10032 {
10033     int ret;
10034     ret = Py_Main(0, 0);
10035     int x; // check also for gcc 2.95.x incompatibilities
10036     return ret;
10037 }
10038 EOF
10039
10040     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
10041     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10042         { $as_echo "$as_me:$LINENO: result: yes" >&5
10043 $as_echo "yes" >&6; }
10044         PYTHON_OK=yes
10045     else
10046         echo "configure: failed program was:" >&5
10047         cat conftest.c >&5
10048         { $as_echo "$as_me:$LINENO: result: no" >&5
10049 $as_echo "no" >&6; }
10050     fi
10051     rm -f conftest*
10052     if test "x$PYTHON_OK" = "xyes";then
10053         { $as_echo "$as_me:$LINENO: checking for Python-Imaging" >&5
10054 $as_echo_n "checking for Python-Imaging... " >&6; }
10055     cat > conftest.c << EOF
10056 #include <Python.h>
10057 #include <Imaging.h>
10058
10059 int main()
10060 {
10061     Py_Main(0, 0);
10062     return 0;
10063 }
10064 EOF
10065         if test "$HAVE_PYTHON_IMAGING_LIB"; then
10066             ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
10067             if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10068                 PYTHON_LIB="${PYTHON_LIB2}"
10069
10070 cat >>confdefs.h <<\_ACEOF
10071 #define HAVE_PYTHON_IMAGING 1
10072 _ACEOF
10073
10074                 HAVE_PYTHON_IMAGING=yes
10075                 export HAVE_PYTHON_IMAGING
10076
10077                 { $as_echo "$as_me:$LINENO: result: yes" >&5
10078 $as_echo "yes" >&6; }
10079             else
10080                 echo "configure: failed program was:" >&5
10081                 cat conftest.c >&5
10082                 { $as_echo "$as_me:$LINENO: result: no" >&5
10083 $as_echo "no" >&6; }
10084             fi
10085         else
10086             echo "(didn't find the Python-Imaging libraries)" >&5
10087             { $as_echo "$as_me:$LINENO: result: no" >&5
10088 $as_echo "no" >&6; }
10089         fi
10090     fi
10091     rm -f conftest*
10092 else
10093     { $as_echo "$as_me:$LINENO: result: nope" >&5
10094 $as_echo "nope" >&6; }
10095 fi
10096
10097
10098 if test "x$PYTHON_OK" '!=' "xyes";then
10099     echo all install uninstall clean: > lib/python/Makefile
10100     # fail silently- the most users won't have any need for the
10101     # python interface anyway
10102 else
10103     pythonrfxswf="lib/python/Makefile"
10104 fi
10105
10106 # ------------------------------------------------------------------
10107
10108 { $as_echo "$as_me:$LINENO: checking for missing libraries" >&5
10109 $as_echo_n "checking for missing libraries... " >&6; }
10110
10111 if test "x$ZLIBMISSING" = "xtrue";then
10112     MISSINGLIBS="${MISSINGLIBS} zlib"
10113     DISABLEPNG2SWF=true
10114     PARTIAL=true
10115 fi
10116 if test "x$JPEGLIBMISSING" = "xtrue";then
10117     MISSINGLIBS="${MISSINGLIBS} jpeglib"
10118     DISABLEPDF2SWF=true
10119     DISABLEJPEG2SWF=true
10120     PARTIAL=true
10121 fi
10122 #if test "x$T1LIBMISSING" = "xtrue";then
10123 #    MISSINGLIBS="${MISSINGLIBS} t1lib"
10124 #fi
10125 if test "x$UNGIFMISSING" = "xtrue";then
10126     DISABLEGIF2SWF=true
10127     MISSINGLIBS="${MISSINGLIBS} ungif"
10128     PARTIAL=true
10129 fi
10130
10131 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
10132     DISABLEPDF2SWF=true;
10133     DISABLEJPEG2SWF=true;
10134     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10135     PARTIAL=true
10136 fi
10137 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10138     DISABLEPDF2SWF=true;
10139     MISSINGLIBS="${MISSINGLIBS} freetype"
10140     PARTIAL=true
10141 fi
10142 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10143 #    MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10144 #fi
10145 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10146     DISABLEGIF2SWF=true
10147     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10148     PARTIAL=true
10149 fi
10150 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10151     DISABLEPNG2SWF=true;
10152     MISSINGLIBS="${MISSINGLIBS} zlib.h"
10153     PARTIAL=true
10154 fi
10155 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10156 #    MISSINGLIBS="${MISSINGLIBS} avifile"
10157 #fi
10158
10159 { $as_echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10160 $as_echo "${MISSINGLIBS}" >&6; }
10161
10162 # ------------------------------------------------------------------
10163
10164 if test "x${MISSINGLIBS}" '!=' "x"; then
10165   echo "***************************************************"
10166   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10167 fi
10168
10169 avi2swf="avi2swf/Makefile"
10170 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10171  #don't whine, avi2swf is outdated anyway
10172  #echo "* Disabling avi2swf tool..."
10173  echo all install uninstall clean: > avi2swf/Makefile
10174  avi2swf=
10175 fi
10176
10177 pdf2swf_makefile="lib/pdf/Makefile"
10178 PDF2SWF='pdf2swf$(E)'
10179 LIBPDF='libpdf$(A)'
10180
10181 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10182   echo "* Disabling pdf2swf tool..."
10183   rm -f lib/pdf/Makefile
10184   echo all install uninstall clean libpdf: > lib/pdf/Makefile
10185   pdf2swf_makefile=""
10186   PDF2SWF=
10187   LIBPDF=
10188 fi
10189
10190
10191
10192 if test "x${ZLIBMISSING}" = "xtrue"; then
10193   echo
10194   echo "* Warning! Without zlib, you will not be able to read"
10195   echo "* or write compressed Flash MX files!"
10196 fi
10197
10198 JPEG2SWF='jpeg2swf$(E)'
10199 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10200   echo "* Disabling jpeg2swf tool..."
10201   JPEG2SWF=
10202 fi
10203 export JPEG2SWF
10204
10205
10206 GIF2SWF='gif2swf$(E)'
10207 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10208   echo "* Disabling gif2swf tool..."
10209   GIF2SWF=
10210 fi
10211 export GIF2SWF
10212
10213
10214 PNG2SWF='png2swf$(E)'
10215 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10216   echo "* Disabling png2swf tool..."
10217   PNG2SWF=
10218 fi
10219 export PNG2SWF
10220
10221
10222 if test "x${MISSINGLIBS}" '!=' "x"; then
10223   if test "x${PARTIAL}" '=' "x"; then
10224     echo "* (never mind)"
10225   fi
10226   echo "***************************************************"
10227 fi
10228
10229 # ------------------------------------------------------------------
10230
10231
10232
10233
10234
10235
10236
10237 if test -f "release.in"; then release_in="./release"; fi
10238 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10239 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/readers/Makefile"
10240 ac_config_files="$ac_config_files ${FILES}"
10241
10242 cat >confcache <<\_ACEOF
10243 # This file is a shell script that caches the results of configure
10244 # tests run on this system so they can be shared between configure
10245 # scripts and configure runs, see configure's option --config-cache.
10246 # It is not useful on other systems.  If it contains results you don't
10247 # want to keep, you may remove or edit it.
10248 #
10249 # config.status only pays attention to the cache file if you give it
10250 # the --recheck option to rerun configure.
10251 #
10252 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10253 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10254 # following values.
10255
10256 _ACEOF
10257
10258 # The following way of writing the cache mishandles newlines in values,
10259 # but we know of no workaround that is simple, portable, and efficient.
10260 # So, we kill variables containing newlines.
10261 # Ultrix sh set writes to stderr and can't be redirected directly,
10262 # and sets the high bit in the cache file unless we assign to the vars.
10263 (
10264   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10265     eval ac_val=\$$ac_var
10266     case $ac_val in #(
10267     *${as_nl}*)
10268       case $ac_var in #(
10269       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10270 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10271       esac
10272       case $ac_var in #(
10273       _ | IFS | as_nl) ;; #(
10274       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10275       *) $as_unset $ac_var ;;
10276       esac ;;
10277     esac
10278   done
10279
10280   (set) 2>&1 |
10281     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10282     *${as_nl}ac_space=\ *)
10283       # `set' does not quote correctly, so add quotes (double-quote
10284       # substitution turns \\\\ into \\, and sed turns \\ into \).
10285       sed -n \
10286         "s/'/'\\\\''/g;
10287           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10288       ;; #(
10289     *)
10290       # `set' quotes correctly as required by POSIX, so do not add quotes.
10291       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10292       ;;
10293     esac |
10294     sort
10295 ) |
10296   sed '
10297      /^ac_cv_env_/b end
10298      t clear
10299      :clear
10300      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10301      t end
10302      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10303      :end' >>confcache
10304 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10305   if test -w "$cache_file"; then
10306     test "x$cache_file" != "x/dev/null" &&
10307       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10308 $as_echo "$as_me: updating cache $cache_file" >&6;}
10309     cat confcache >$cache_file
10310   else
10311     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10312 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10313   fi
10314 fi
10315 rm -f confcache
10316
10317 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10318 # Let make expand exec_prefix.
10319 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10320
10321 DEFS=-DHAVE_CONFIG_H
10322
10323 ac_libobjs=
10324 ac_ltlibobjs=
10325 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10326   # 1. Remove the extension, and $U if already installed.
10327   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10328   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10329   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10330   #    will be set to the directory where LIBOBJS objects are built.
10331   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10332   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10333 done
10334 LIBOBJS=$ac_libobjs
10335
10336 LTLIBOBJS=$ac_ltlibobjs
10337
10338
10339
10340 : ${CONFIG_STATUS=./config.status}
10341 ac_write_fail=0
10342 ac_clean_files_save=$ac_clean_files
10343 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10344 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10345 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10346 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10347 #! $SHELL
10348 # Generated by $as_me.
10349 # Run this file to recreate the current configuration.
10350 # Compiler output produced by configure, useful for debugging
10351 # configure, is in config.log if it exists.
10352
10353 debug=false
10354 ac_cs_recheck=false
10355 ac_cs_silent=false
10356 SHELL=\${CONFIG_SHELL-$SHELL}
10357 _ACEOF
10358
10359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10360 ## --------------------- ##
10361 ## M4sh Initialization.  ##
10362 ## --------------------- ##
10363
10364 # Be more Bourne compatible
10365 DUALCASE=1; export DUALCASE # for MKS sh
10366 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10367   emulate sh
10368   NULLCMD=:
10369   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10370   # is contrary to our usage.  Disable this feature.
10371   alias -g '${1+"$@"}'='"$@"'
10372   setopt NO_GLOB_SUBST
10373 else
10374   case `(set -o) 2>/dev/null` in
10375   *posix*) set -o posix ;;
10376 esac
10377
10378 fi
10379
10380
10381
10382
10383 # PATH needs CR
10384 # Avoid depending upon Character Ranges.
10385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10388 as_cr_digits='0123456789'
10389 as_cr_alnum=$as_cr_Letters$as_cr_digits
10390
10391 as_nl='
10392 '
10393 export as_nl
10394 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10395 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10396 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10397 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10398 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10399   as_echo='printf %s\n'
10400   as_echo_n='printf %s'
10401 else
10402   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10403     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10404     as_echo_n='/usr/ucb/echo -n'
10405   else
10406     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10407     as_echo_n_body='eval
10408       arg=$1;
10409       case $arg in
10410       *"$as_nl"*)
10411         expr "X$arg" : "X\\(.*\\)$as_nl";
10412         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10413       esac;
10414       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10415     '
10416     export as_echo_n_body
10417     as_echo_n='sh -c $as_echo_n_body as_echo'
10418   fi
10419   export as_echo_body
10420   as_echo='sh -c $as_echo_body as_echo'
10421 fi
10422
10423 # The user is always right.
10424 if test "${PATH_SEPARATOR+set}" != set; then
10425   PATH_SEPARATOR=:
10426   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10427     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10428       PATH_SEPARATOR=';'
10429   }
10430 fi
10431
10432 # Support unset when possible.
10433 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10434   as_unset=unset
10435 else
10436   as_unset=false
10437 fi
10438
10439
10440 # IFS
10441 # We need space, tab and new line, in precisely that order.  Quoting is
10442 # there to prevent editors from complaining about space-tab.
10443 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10444 # splitting by setting IFS to empty value.)
10445 IFS=" ""        $as_nl"
10446
10447 # Find who we are.  Look in the path if we contain no directory separator.
10448 case $0 in
10449   *[\\/]* ) as_myself=$0 ;;
10450   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10452 do
10453   IFS=$as_save_IFS
10454   test -z "$as_dir" && as_dir=.
10455   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10456 done
10457 IFS=$as_save_IFS
10458
10459      ;;
10460 esac
10461 # We did not find ourselves, most probably we were run as `sh COMMAND'
10462 # in which case we are not to be found in the path.
10463 if test "x$as_myself" = x; then
10464   as_myself=$0
10465 fi
10466 if test ! -f "$as_myself"; then
10467   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10468   { (exit 1); exit 1; }
10469 fi
10470
10471 # Work around bugs in pre-3.0 UWIN ksh.
10472 for as_var in ENV MAIL MAILPATH
10473 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10474 done
10475 PS1='$ '
10476 PS2='> '
10477 PS4='+ '
10478
10479 # NLS nuisances.
10480 LC_ALL=C
10481 export LC_ALL
10482 LANGUAGE=C
10483 export LANGUAGE
10484
10485 # Required to use basename.
10486 if expr a : '\(a\)' >/dev/null 2>&1 &&
10487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10488   as_expr=expr
10489 else
10490   as_expr=false
10491 fi
10492
10493 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10494   as_basename=basename
10495 else
10496   as_basename=false
10497 fi
10498
10499
10500 # Name of the executable.
10501 as_me=`$as_basename -- "$0" ||
10502 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10503          X"$0" : 'X\(//\)$' \| \
10504          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10505 $as_echo X/"$0" |
10506     sed '/^.*\/\([^/][^/]*\)\/*$/{
10507             s//\1/
10508             q
10509           }
10510           /^X\/\(\/\/\)$/{
10511             s//\1/
10512             q
10513           }
10514           /^X\/\(\/\).*/{
10515             s//\1/
10516             q
10517           }
10518           s/.*/./; q'`
10519
10520 # CDPATH.
10521 $as_unset CDPATH
10522
10523
10524
10525   as_lineno_1=$LINENO
10526   as_lineno_2=$LINENO
10527   test "x$as_lineno_1" != "x$as_lineno_2" &&
10528   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10529
10530   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10531   # uniformly replaced by the line number.  The first 'sed' inserts a
10532   # line-number line after each line using $LINENO; the second 'sed'
10533   # does the real work.  The second script uses 'N' to pair each
10534   # line-number line with the line containing $LINENO, and appends
10535   # trailing '-' during substitution so that $LINENO is not a special
10536   # case at line end.
10537   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10538   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10539   # E. McMahon (1931-1989) for sed's syntax.  :-)
10540   sed -n '
10541     p
10542     /[$]LINENO/=
10543   ' <$as_myself |
10544     sed '
10545       s/[$]LINENO.*/&-/
10546       t lineno
10547       b
10548       :lineno
10549       N
10550       :loop
10551       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10552       t loop
10553       s/-\n.*//
10554     ' >$as_me.lineno &&
10555   chmod +x "$as_me.lineno" ||
10556     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10557    { (exit 1); exit 1; }; }
10558
10559   # Don't try to exec as it changes $[0], causing all sort of problems
10560   # (the dirname of $[0] is not the place where we might find the
10561   # original and so on.  Autoconf is especially sensitive to this).
10562   . "./$as_me.lineno"
10563   # Exit status is that of the last command.
10564   exit
10565 }
10566
10567
10568 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10569   as_dirname=dirname
10570 else
10571   as_dirname=false
10572 fi
10573
10574 ECHO_C= ECHO_N= ECHO_T=
10575 case `echo -n x` in
10576 -n*)
10577   case `echo 'x\c'` in
10578   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10579   *)   ECHO_C='\c';;
10580   esac;;
10581 *)
10582   ECHO_N='-n';;
10583 esac
10584 if expr a : '\(a\)' >/dev/null 2>&1 &&
10585    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10586   as_expr=expr
10587 else
10588   as_expr=false
10589 fi
10590
10591 rm -f conf$$ conf$$.exe conf$$.file
10592 if test -d conf$$.dir; then
10593   rm -f conf$$.dir/conf$$.file
10594 else
10595   rm -f conf$$.dir
10596   mkdir conf$$.dir 2>/dev/null
10597 fi
10598 if (echo >conf$$.file) 2>/dev/null; then
10599   if ln -s conf$$.file conf$$ 2>/dev/null; then
10600     as_ln_s='ln -s'
10601     # ... but there are two gotchas:
10602     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10603     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10604     # In both cases, we have to default to `cp -p'.
10605     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10606       as_ln_s='cp -p'
10607   elif ln conf$$.file conf$$ 2>/dev/null; then
10608     as_ln_s=ln
10609   else
10610     as_ln_s='cp -p'
10611   fi
10612 else
10613   as_ln_s='cp -p'
10614 fi
10615 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10616 rmdir conf$$.dir 2>/dev/null
10617
10618 if mkdir -p . 2>/dev/null; then
10619   as_mkdir_p=:
10620 else
10621   test -d ./-p && rmdir ./-p
10622   as_mkdir_p=false
10623 fi
10624
10625 if test -x / >/dev/null 2>&1; then
10626   as_test_x='test -x'
10627 else
10628   if ls -dL / >/dev/null 2>&1; then
10629     as_ls_L_option=L
10630   else
10631     as_ls_L_option=
10632   fi
10633   as_test_x='
10634     eval sh -c '\''
10635       if test -d "$1"; then
10636         test -d "$1/.";
10637       else
10638         case $1 in
10639         -*)set "./$1";;
10640         esac;
10641         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10642         ???[sx]*):;;*)false;;esac;fi
10643     '\'' sh
10644   '
10645 fi
10646 as_executable_p=$as_test_x
10647
10648 # Sed expression to map a string onto a valid CPP name.
10649 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10650
10651 # Sed expression to map a string onto a valid variable name.
10652 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10653
10654
10655 exec 6>&1
10656
10657 # Save the log message, to keep $[0] and so on meaningful, and to
10658 # report actual input values of CONFIG_FILES etc. instead of their
10659 # values after options handling.
10660 ac_log="
10661 This file was extended by $as_me, which was
10662 generated by GNU Autoconf 2.63.  Invocation command line was
10663
10664   CONFIG_FILES    = $CONFIG_FILES
10665   CONFIG_HEADERS  = $CONFIG_HEADERS
10666   CONFIG_LINKS    = $CONFIG_LINKS
10667   CONFIG_COMMANDS = $CONFIG_COMMANDS
10668   $ $0 $@
10669
10670 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10671 "
10672
10673 _ACEOF
10674
10675 case $ac_config_files in *"
10676 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10677 esac
10678
10679 case $ac_config_headers in *"
10680 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10681 esac
10682
10683
10684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10685 # Files that config.status was made for.
10686 config_files="$ac_config_files"
10687 config_headers="$ac_config_headers"
10688
10689 _ACEOF
10690
10691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10692 ac_cs_usage="\
10693 \`$as_me' instantiates files from templates according to the
10694 current configuration.
10695
10696 Usage: $0 [OPTION]... [FILE]...
10697
10698   -h, --help       print this help, then exit
10699   -V, --version    print version number and configuration settings, then exit
10700   -q, --quiet, --silent
10701                    do not print progress messages
10702   -d, --debug      don't remove temporary files
10703       --recheck    update $as_me by reconfiguring in the same conditions
10704       --file=FILE[:TEMPLATE]
10705                    instantiate the configuration file FILE
10706       --header=FILE[:TEMPLATE]
10707                    instantiate the configuration header FILE
10708
10709 Configuration files:
10710 $config_files
10711
10712 Configuration headers:
10713 $config_headers
10714
10715 Report bugs to <bug-autoconf@gnu.org>."
10716
10717 _ACEOF
10718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10719 ac_cs_version="\\
10720 config.status
10721 configured by $0, generated by GNU Autoconf 2.63,
10722   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10723
10724 Copyright (C) 2008 Free Software Foundation, Inc.
10725 This config.status script is free software; the Free Software Foundation
10726 gives unlimited permission to copy, distribute and modify it."
10727
10728 ac_pwd='$ac_pwd'
10729 srcdir='$srcdir'
10730 INSTALL='$INSTALL'
10731 test -n "\$AWK" || AWK=awk
10732 _ACEOF
10733
10734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10735 # The default lists apply if the user does not specify any file.
10736 ac_need_defaults=:
10737 while test $# != 0
10738 do
10739   case $1 in
10740   --*=*)
10741     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10742     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10743     ac_shift=:
10744     ;;
10745   *)
10746     ac_option=$1
10747     ac_optarg=$2
10748     ac_shift=shift
10749     ;;
10750   esac
10751
10752   case $ac_option in
10753   # Handling of the options.
10754   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10755     ac_cs_recheck=: ;;
10756   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10757     $as_echo "$ac_cs_version"; exit ;;
10758   --debug | --debu | --deb | --de | --d | -d )
10759     debug=: ;;
10760   --file | --fil | --fi | --f )
10761     $ac_shift
10762     case $ac_optarg in
10763     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10764     esac
10765     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10766     ac_need_defaults=false;;
10767   --header | --heade | --head | --hea )
10768     $ac_shift
10769     case $ac_optarg in
10770     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10771     esac
10772     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10773     ac_need_defaults=false;;
10774   --he | --h)
10775     # Conflict between --help and --header
10776     { $as_echo "$as_me: error: ambiguous option: $1
10777 Try \`$0 --help' for more information." >&2
10778    { (exit 1); exit 1; }; };;
10779   --help | --hel | -h )
10780     $as_echo "$ac_cs_usage"; exit ;;
10781   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10782   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10783     ac_cs_silent=: ;;
10784
10785   # This is an error.
10786   -*) { $as_echo "$as_me: error: unrecognized option: $1
10787 Try \`$0 --help' for more information." >&2
10788    { (exit 1); exit 1; }; } ;;
10789
10790   *) ac_config_targets="$ac_config_targets $1"
10791      ac_need_defaults=false ;;
10792
10793   esac
10794   shift
10795 done
10796
10797 ac_configure_extra_args=
10798
10799 if $ac_cs_silent; then
10800   exec 6>/dev/null
10801   ac_configure_extra_args="$ac_configure_extra_args --silent"
10802 fi
10803
10804 _ACEOF
10805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10806 if \$ac_cs_recheck; then
10807   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10808   shift
10809   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10810   CONFIG_SHELL='$SHELL'
10811   export CONFIG_SHELL
10812   exec "\$@"
10813 fi
10814
10815 _ACEOF
10816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10817 exec 5>>config.log
10818 {
10819   echo
10820   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10821 ## Running $as_me. ##
10822 _ASBOX
10823   $as_echo "$ac_log"
10824 } >&5
10825
10826 _ACEOF
10827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10828 _ACEOF
10829
10830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10831
10832 # Handling of arguments.
10833 for ac_config_target in $ac_config_targets
10834 do
10835   case $ac_config_target in
10836     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10837     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10838
10839   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10840 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10841    { (exit 1); exit 1; }; };;
10842   esac
10843 done
10844
10845
10846 # If the user did not use the arguments to specify the items to instantiate,
10847 # then the envvar interface is used.  Set only those that are not.
10848 # We use the long form for the default assignment because of an extremely
10849 # bizarre bug on SunOS 4.1.3.
10850 if $ac_need_defaults; then
10851   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10852   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10853 fi
10854
10855 # Have a temporary directory for convenience.  Make it in the build tree
10856 # simply because there is no reason against having it here, and in addition,
10857 # creating and moving files from /tmp can sometimes cause problems.
10858 # Hook for its removal unless debugging.
10859 # Note that there is a small window in which the directory will not be cleaned:
10860 # after its creation but before its name has been assigned to `$tmp'.
10861 $debug ||
10862 {
10863   tmp=
10864   trap 'exit_status=$?
10865   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10866 ' 0
10867   trap '{ (exit 1); exit 1; }' 1 2 13 15
10868 }
10869 # Create a (secure) tmp directory for tmp files.
10870
10871 {
10872   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10873   test -n "$tmp" && test -d "$tmp"
10874 }  ||
10875 {
10876   tmp=./conf$$-$RANDOM
10877   (umask 077 && mkdir "$tmp")
10878 } ||
10879 {
10880    $as_echo "$as_me: cannot create a temporary directory in ." >&2
10881    { (exit 1); exit 1; }
10882 }
10883
10884 # Set up the scripts for CONFIG_FILES section.
10885 # No need to generate them if there are no CONFIG_FILES.
10886 # This happens for instance with `./config.status config.h'.
10887 if test -n "$CONFIG_FILES"; then
10888
10889
10890 ac_cr='\r'
10891 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10892 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10893   ac_cs_awk_cr='\\r'
10894 else
10895   ac_cs_awk_cr=$ac_cr
10896 fi
10897
10898 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10899 _ACEOF
10900
10901
10902 {
10903   echo "cat >conf$$subs.awk <<_ACEOF" &&
10904   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10905   echo "_ACEOF"
10906 } >conf$$subs.sh ||
10907   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10908 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10909    { (exit 1); exit 1; }; }
10910 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10911 ac_delim='%!_!# '
10912 for ac_last_try in false false false false false :; do
10913   . ./conf$$subs.sh ||
10914     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10915 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10916    { (exit 1); exit 1; }; }
10917
10918   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10919   if test $ac_delim_n = $ac_delim_num; then
10920     break
10921   elif $ac_last_try; then
10922     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10923 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10924    { (exit 1); exit 1; }; }
10925   else
10926     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10927   fi
10928 done
10929 rm -f conf$$subs.sh
10930
10931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10932 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10933 _ACEOF
10934 sed -n '
10935 h
10936 s/^/S["/; s/!.*/"]=/
10937 p
10938 g
10939 s/^[^!]*!//
10940 :repl
10941 t repl
10942 s/'"$ac_delim"'$//
10943 t delim
10944 :nl
10945 h
10946 s/\(.\{148\}\).*/\1/
10947 t more1
10948 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10949 p
10950 n
10951 b repl
10952 :more1
10953 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10954 p
10955 g
10956 s/.\{148\}//
10957 t nl
10958 :delim
10959 h
10960 s/\(.\{148\}\).*/\1/
10961 t more2
10962 s/["\\]/\\&/g; s/^/"/; s/$/"/
10963 p
10964 b
10965 :more2
10966 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10967 p
10968 g
10969 s/.\{148\}//
10970 t delim
10971 ' <conf$$subs.awk | sed '
10972 /^[^""]/{
10973   N
10974   s/\n//
10975 }
10976 ' >>$CONFIG_STATUS || ac_write_fail=1
10977 rm -f conf$$subs.awk
10978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10979 _ACAWK
10980 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10981   for (key in S) S_is_set[key] = 1
10982   FS = "\a"
10983
10984 }
10985 {
10986   line = $ 0
10987   nfields = split(line, field, "@")
10988   substed = 0
10989   len = length(field[1])
10990   for (i = 2; i < nfields; i++) {
10991     key = field[i]
10992     keylen = length(key)
10993     if (S_is_set[key]) {
10994       value = S[key]
10995       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10996       len += length(value) + length(field[++i])
10997       substed = 1
10998     } else
10999       len += 1 + keylen
11000   }
11001
11002   print line
11003 }
11004
11005 _ACAWK
11006 _ACEOF
11007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11008 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11009   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11010 else
11011   cat
11012 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11013   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11014 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11015    { (exit 1); exit 1; }; }
11016 _ACEOF
11017
11018 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11019 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11020 # trailing colons and then remove the whole line if VPATH becomes empty
11021 # (actually we leave an empty line to preserve line numbers).
11022 if test "x$srcdir" = x.; then
11023   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11024 s/:*\$(srcdir):*/:/
11025 s/:*\${srcdir}:*/:/
11026 s/:*@srcdir@:*/:/
11027 s/^\([^=]*=[     ]*\):*/\1/
11028 s/:*$//
11029 s/^[^=]*=[       ]*$//
11030 }'
11031 fi
11032
11033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11034 fi # test -n "$CONFIG_FILES"
11035
11036 # Set up the scripts for CONFIG_HEADERS section.
11037 # No need to generate them if there are no CONFIG_HEADERS.
11038 # This happens for instance with `./config.status Makefile'.
11039 if test -n "$CONFIG_HEADERS"; then
11040 cat >"$tmp/defines.awk" <<\_ACAWK ||
11041 BEGIN {
11042 _ACEOF
11043
11044 # Transform confdefs.h into an awk script `defines.awk', embedded as
11045 # here-document in config.status, that substitutes the proper values into
11046 # config.h.in to produce config.h.
11047
11048 # Create a delimiter string that does not exist in confdefs.h, to ease
11049 # handling of long lines.
11050 ac_delim='%!_!# '
11051 for ac_last_try in false false :; do
11052   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11053   if test -z "$ac_t"; then
11054     break
11055   elif $ac_last_try; then
11056     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11057 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11058    { (exit 1); exit 1; }; }
11059   else
11060     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11061   fi
11062 done
11063
11064 # For the awk script, D is an array of macro values keyed by name,
11065 # likewise P contains macro parameters if any.  Preserve backslash
11066 # newline sequences.
11067
11068 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11069 sed -n '
11070 s/.\{148\}/&'"$ac_delim"'/g
11071 t rset
11072 :rset
11073 s/^[     ]*#[    ]*define[       ][      ]*/ /
11074 t def
11075 d
11076 :def
11077 s/\\$//
11078 t bsnl
11079 s/["\\]/\\&/g
11080 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11081 D["\1"]=" \3"/p
11082 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
11083 d
11084 :bsnl
11085 s/["\\]/\\&/g
11086 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11087 D["\1"]=" \3\\\\\\n"\\/p
11088 t cont
11089 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11090 t cont
11091 d
11092 :cont
11093 n
11094 s/.\{148\}/&'"$ac_delim"'/g
11095 t clear
11096 :clear
11097 s/\\$//
11098 t bsnlc
11099 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11100 d
11101 :bsnlc
11102 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11103 b cont
11104 ' <confdefs.h | sed '
11105 s/'"$ac_delim"'/"\\\
11106 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11107
11108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11109   for (key in D) D_is_set[key] = 1
11110   FS = "\a"
11111 }
11112 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11113   line = \$ 0
11114   split(line, arg, " ")
11115   if (arg[1] == "#") {
11116     defundef = arg[2]
11117     mac1 = arg[3]
11118   } else {
11119     defundef = substr(arg[1], 2)
11120     mac1 = arg[2]
11121   }
11122   split(mac1, mac2, "(") #)
11123   macro = mac2[1]
11124   prefix = substr(line, 1, index(line, defundef) - 1)
11125   if (D_is_set[macro]) {
11126     # Preserve the white space surrounding the "#".
11127     print prefix "define", macro P[macro] D[macro]
11128     next
11129   } else {
11130     # Replace #undef with comments.  This is necessary, for example,
11131     # in the case of _POSIX_SOURCE, which is predefined and required
11132     # on some systems where configure will not decide to define it.
11133     if (defundef == "undef") {
11134       print "/*", prefix defundef, macro, "*/"
11135       next
11136     }
11137   }
11138 }
11139 { print }
11140 _ACAWK
11141 _ACEOF
11142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11143   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11144 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11145    { (exit 1); exit 1; }; }
11146 fi # test -n "$CONFIG_HEADERS"
11147
11148
11149 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
11150 shift
11151 for ac_tag
11152 do
11153   case $ac_tag in
11154   :[FHLC]) ac_mode=$ac_tag; continue;;
11155   esac
11156   case $ac_mode$ac_tag in
11157   :[FHL]*:*);;
11158   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11159 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11160    { (exit 1); exit 1; }; };;
11161   :[FH]-) ac_tag=-:-;;
11162   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11163   esac
11164   ac_save_IFS=$IFS
11165   IFS=:
11166   set x $ac_tag
11167   IFS=$ac_save_IFS
11168   shift
11169   ac_file=$1
11170   shift
11171
11172   case $ac_mode in
11173   :L) ac_source=$1;;
11174   :[FH])
11175     ac_file_inputs=
11176     for ac_f
11177     do
11178       case $ac_f in
11179       -) ac_f="$tmp/stdin";;
11180       *) # Look for the file first in the build tree, then in the source tree
11181          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11182          # because $ac_f cannot contain `:'.
11183          test -f "$ac_f" ||
11184            case $ac_f in
11185            [\\/$]*) false;;
11186            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11187            esac ||
11188            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11189 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11190    { (exit 1); exit 1; }; };;
11191       esac
11192       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11193       ac_file_inputs="$ac_file_inputs '$ac_f'"
11194     done
11195
11196     # Let's still pretend it is `configure' which instantiates (i.e., don't
11197     # use $as_me), people would be surprised to read:
11198     #    /* config.h.  Generated by config.status.  */
11199     configure_input='Generated from '`
11200           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11201         `' by configure.'
11202     if test x"$ac_file" != x-; then
11203       configure_input="$ac_file.  $configure_input"
11204       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11205 $as_echo "$as_me: creating $ac_file" >&6;}
11206     fi
11207     # Neutralize special characters interpreted by sed in replacement strings.
11208     case $configure_input in #(
11209     *\&* | *\|* | *\\* )
11210        ac_sed_conf_input=`$as_echo "$configure_input" |
11211        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11212     *) ac_sed_conf_input=$configure_input;;
11213     esac
11214
11215     case $ac_tag in
11216     *:-:* | *:-) cat >"$tmp/stdin" \
11217       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11218 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11219    { (exit 1); exit 1; }; } ;;
11220     esac
11221     ;;
11222   esac
11223
11224   ac_dir=`$as_dirname -- "$ac_file" ||
11225 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11226          X"$ac_file" : 'X\(//\)[^/]' \| \
11227          X"$ac_file" : 'X\(//\)$' \| \
11228          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11229 $as_echo X"$ac_file" |
11230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11231             s//\1/
11232             q
11233           }
11234           /^X\(\/\/\)[^/].*/{
11235             s//\1/
11236             q
11237           }
11238           /^X\(\/\/\)$/{
11239             s//\1/
11240             q
11241           }
11242           /^X\(\/\).*/{
11243             s//\1/
11244             q
11245           }
11246           s/.*/./; q'`
11247   { as_dir="$ac_dir"
11248   case $as_dir in #(
11249   -*) as_dir=./$as_dir;;
11250   esac
11251   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11252     as_dirs=
11253     while :; do
11254       case $as_dir in #(
11255       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11256       *) as_qdir=$as_dir;;
11257       esac
11258       as_dirs="'$as_qdir' $as_dirs"
11259       as_dir=`$as_dirname -- "$as_dir" ||
11260 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11261          X"$as_dir" : 'X\(//\)[^/]' \| \
11262          X"$as_dir" : 'X\(//\)$' \| \
11263          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11264 $as_echo X"$as_dir" |
11265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11266             s//\1/
11267             q
11268           }
11269           /^X\(\/\/\)[^/].*/{
11270             s//\1/
11271             q
11272           }
11273           /^X\(\/\/\)$/{
11274             s//\1/
11275             q
11276           }
11277           /^X\(\/\).*/{
11278             s//\1/
11279             q
11280           }
11281           s/.*/./; q'`
11282       test -d "$as_dir" && break
11283     done
11284     test -z "$as_dirs" || eval "mkdir $as_dirs"
11285   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11286 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11287    { (exit 1); exit 1; }; }; }
11288   ac_builddir=.
11289
11290 case "$ac_dir" in
11291 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11292 *)
11293   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11294   # A ".." for each directory in $ac_dir_suffix.
11295   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11296   case $ac_top_builddir_sub in
11297   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11298   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11299   esac ;;
11300 esac
11301 ac_abs_top_builddir=$ac_pwd
11302 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11303 # for backward compatibility:
11304 ac_top_builddir=$ac_top_build_prefix
11305
11306 case $srcdir in
11307   .)  # We are building in place.
11308     ac_srcdir=.
11309     ac_top_srcdir=$ac_top_builddir_sub
11310     ac_abs_top_srcdir=$ac_pwd ;;
11311   [\\/]* | ?:[\\/]* )  # Absolute name.
11312     ac_srcdir=$srcdir$ac_dir_suffix;
11313     ac_top_srcdir=$srcdir
11314     ac_abs_top_srcdir=$srcdir ;;
11315   *) # Relative name.
11316     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11317     ac_top_srcdir=$ac_top_build_prefix$srcdir
11318     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11319 esac
11320 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11321
11322
11323   case $ac_mode in
11324   :F)
11325   #
11326   # CONFIG_FILE
11327   #
11328
11329   case $INSTALL in
11330   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11331   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11332   esac
11333 _ACEOF
11334
11335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11336 # If the template does not know about datarootdir, expand it.
11337 # FIXME: This hack should be removed a few years after 2.60.
11338 ac_datarootdir_hack=; ac_datarootdir_seen=
11339
11340 ac_sed_dataroot='
11341 /datarootdir/ {
11342   p
11343   q
11344 }
11345 /@datadir@/p
11346 /@docdir@/p
11347 /@infodir@/p
11348 /@localedir@/p
11349 /@mandir@/p
11350 '
11351 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11352 *datarootdir*) ac_datarootdir_seen=yes;;
11353 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11354   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11355 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11356 _ACEOF
11357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11358   ac_datarootdir_hack='
11359   s&@datadir@&$datadir&g
11360   s&@docdir@&$docdir&g
11361   s&@infodir@&$infodir&g
11362   s&@localedir@&$localedir&g
11363   s&@mandir@&$mandir&g
11364     s&\\\${datarootdir}&$datarootdir&g' ;;
11365 esac
11366 _ACEOF
11367
11368 # Neutralize VPATH when `$srcdir' = `.'.
11369 # Shell code in configure.ac might set extrasub.
11370 # FIXME: do we really want to maintain this feature?
11371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11372 ac_sed_extra="$ac_vpsub
11373 $extrasub
11374 _ACEOF
11375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11376 :t
11377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11378 s|@configure_input@|$ac_sed_conf_input|;t t
11379 s&@top_builddir@&$ac_top_builddir_sub&;t t
11380 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11381 s&@srcdir@&$ac_srcdir&;t t
11382 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11383 s&@top_srcdir@&$ac_top_srcdir&;t t
11384 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11385 s&@builddir@&$ac_builddir&;t t
11386 s&@abs_builddir@&$ac_abs_builddir&;t t
11387 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11388 s&@INSTALL@&$ac_INSTALL&;t t
11389 $ac_datarootdir_hack
11390 "
11391 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11392   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11393 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11394    { (exit 1); exit 1; }; }
11395
11396 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11397   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11398   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11399   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11400 which seems to be undefined.  Please make sure it is defined." >&5
11401 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11402 which seems to be undefined.  Please make sure it is defined." >&2;}
11403
11404   rm -f "$tmp/stdin"
11405   case $ac_file in
11406   -) cat "$tmp/out" && rm -f "$tmp/out";;
11407   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11408   esac \
11409   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11410 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11411    { (exit 1); exit 1; }; }
11412  ;;
11413   :H)
11414   #
11415   # CONFIG_HEADER
11416   #
11417   if test x"$ac_file" != x-; then
11418     {
11419       $as_echo "/* $configure_input  */" \
11420       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11421     } >"$tmp/config.h" \
11422       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11423 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11424    { (exit 1); exit 1; }; }
11425     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11426       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11427 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11428     else
11429       rm -f "$ac_file"
11430       mv "$tmp/config.h" "$ac_file" \
11431         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11432 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11433    { (exit 1); exit 1; }; }
11434     fi
11435   else
11436     $as_echo "/* $configure_input  */" \
11437       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11438       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11439 $as_echo "$as_me: error: could not create -" >&2;}
11440    { (exit 1); exit 1; }; }
11441   fi
11442  ;;
11443
11444
11445   esac
11446
11447 done # for ac_tag
11448
11449
11450 { (exit 0); exit 0; }
11451 _ACEOF
11452 chmod +x $CONFIG_STATUS
11453 ac_clean_files=$ac_clean_files_save
11454
11455 test $ac_write_fail = 0 ||
11456   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11457 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11458    { (exit 1); exit 1; }; }
11459
11460
11461 # configure is writing to config.log, and then calls config.status.
11462 # config.status does its own redirection, appending to config.log.
11463 # Unfortunately, on DOS this fails, as config.log is still kept open
11464 # by configure, so config.status won't be able to write to it; its
11465 # output is simply discarded.  So we exec the FD to /dev/null,
11466 # effectively closing config.log, so it can be properly (re)opened and
11467 # appended to by config.status.  When coming back to configure, we
11468 # need to make the FD available again.
11469 if test "$no_create" != yes; then
11470   ac_cs_success=:
11471   ac_config_status_args=
11472   test "$silent" = yes &&
11473     ac_config_status_args="$ac_config_status_args --quiet"
11474   exec 5>/dev/null
11475   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11476   exec 5>>config.log
11477   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11478   # would make configure fail if this is the last instruction.
11479   $ac_cs_success || { (exit 1); exit 1; }
11480 fi
11481 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11482   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11483 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11484 fi
11485
11486
11487
11488 #
11489 # On development trees, create snapshots of config.status
11490 #
11491 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11492     if test "x${MINGW}" = "xyes"; then
11493         echo cp config.status config.status.win32
11494         cp config.status config.status.win32
11495     else
11496         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
11497             echo cp config.status config.status.linux
11498             cp config.status config.status.linux
11499         fi
11500         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
11501             echo cp config.status config.status.debug
11502             cp config.status config.status.debug
11503         fi
11504         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
11505             echo cp config.status config.status.optimize
11506             cp config.status config.status.optimize
11507         fi
11508     fi
11509 fi