fixed xpdf memory overflow
[swftools.git] / configure
blob4ca02585c73e34d866528f19c81e2697e2ec3aca
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
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 ## --------------------- ##
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
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
40 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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
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"
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
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
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
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; }
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='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
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
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
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/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
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
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
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
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
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
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
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
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
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
352 _ASEOF
353 }; then
354 break
359 done
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+"$@"}
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; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
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.
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" || {
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 '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
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; }; }
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
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
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;;
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
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
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'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
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
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=
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
564 as_executable_p=$as_test_x
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'"
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'"
574 exec 7<&0 </dev/null 6>&1
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`
582 # Initializations.
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}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
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"
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 PNG2SWF
641 GIF2SWF
642 JPEG2SWF
643 PDF2PDF
644 DEVICE_PDF
645 LIBPDF
646 PDF2SWF
647 HAVE_PYTHON_IMAGING
648 PYTHON_INCLUDES
649 PYTHON_LIB
650 USE_GZIP
651 VIDEO_CFLAGS
652 VIDEO_LIBS
653 AVIFILE_CONFIG
654 splash_in_source
655 xpdf_in_source
656 lame_in_source
657 DEVICE_OPENGL
658 FREETYPE_CONFIG
659 HAVE_UNISTD_H
660 VERSION
661 PACKAGE
662 EGREP
663 GREP
664 SYSTEM_BACKTICKS
665 WORDS_BIGENDIAN
666 target_os
667 target_vendor
668 target_cpu
669 target
670 STRIP
671 CXXLIBS
672 SLEXT
674 AREXT
675 UNCOMPRESS
676 LN_S
677 INSTALL_DATA
678 INSTALL_SCRIPT
679 INSTALL_PROGRAM
680 SET_MAKE
681 RANLIB
683 ac_ct_CXX
684 CXXFLAGS
686 OBJEXT
687 EXEEXT
688 ac_ct_CC
689 CPPFLAGS
690 LDFLAGS
691 CFLAGS
693 SHARED
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files=''
740 ac_user_opts='
741 enable_option_checking
742 enable_checkmem
743 enable_debug
744 enable_profiling
745 enable_warnings
746 enable_optimizations
747 enable_lame
749 ac_precious_vars='build_alias
750 host_alias
751 target_alias
753 CFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
758 CXXFLAGS
760 CPP'
763 # Initialize some variables set by options.
764 ac_init_help=
765 ac_init_version=false
766 ac_unrecognized_opts=
767 ac_unrecognized_sep=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
770 cache_file=/dev/null
771 exec_prefix=NONE
772 no_create=
773 no_recursion=
774 prefix=NONE
775 program_prefix=NONE
776 program_suffix=NONE
777 program_transform_name=s,x,x,
778 silent=
779 site=
780 srcdir=
781 verbose=
782 x_includes=NONE
783 x_libraries=NONE
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE}'
802 infodir='${datarootdir}/info'
803 htmldir='${docdir}'
804 dvidir='${docdir}'
805 pdfdir='${docdir}'
806 psdir='${docdir}'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
811 ac_prev=
812 ac_dashdash=
813 for ac_option
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
827 # Accept the important Cygnus configure options, so we can diagnose typos.
829 case $ac_dashdash$ac_option in
831 ac_dashdash=yes ;;
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
850 --config-cache | -C)
851 cache_file=config.cache ;;
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
870 { (exit 1); exit 1; }; }
871 ac_useropt_orig=$ac_useropt
872 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873 case $ac_user_opts in
875 "enable_$ac_useropt"
876 "*) ;;
877 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878 ac_unrecognized_sep=', ';;
879 esac
880 eval enable_$ac_useropt=no ;;
882 -docdir | --docdir | --docdi | --doc | --do)
883 ac_prev=docdir ;;
884 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885 docdir=$ac_optarg ;;
887 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888 ac_prev=dvidir ;;
889 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890 dvidir=$ac_optarg ;;
892 -enable-* | --enable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
897 { (exit 1); exit 1; }; }
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=\$ac_optarg ;;
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1097 -with-* | --with-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1102 { (exit 1); exit 1; }; }
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1107 "with_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=\$ac_optarg ;;
1114 -without-* | --without-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1119 { (exit 1); exit 1; }; }
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=no ;;
1131 --x)
1132 # Obsolete; use --with-x.
1133 with_x=yes ;;
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1149 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1150 Try \`$0 --help' for more information." >&2
1151 { (exit 1); exit 1; }; }
1154 *=*)
1155 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1158 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1159 { (exit 1); exit 1; }; }
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1171 esac
1172 done
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1177 { (exit 1); exit 1; }; }
1180 if test -n "$ac_unrecognized_opts"; then
1181 case $enable_option_checking in
1182 no) ;;
1183 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1184 { (exit 1); exit 1; }; } ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1208 { (exit 1); exit 1; }; }
1209 done
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1214 build=$build_alias
1215 host=$host_alias
1216 target=$target_alias
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220 if test "x$build_alias" = x; then
1221 cross_compiling=maybe
1222 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1223 If a cross compiler is detected then cross compile mode will be used." >&2
1224 elif test "x$build_alias" != "x$host_alias"; then
1225 cross_compiling=yes
1229 ac_tool_prefix=
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232 test "$silent" = yes && exec 6>/dev/null
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1239 { (exit 1); exit 1; }; }
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1242 { (exit 1); exit 1; }; }
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 s//\1/
1259 /^X\(\/\/\)[^/].*/{
1260 s//\1/
1263 /^X\(\/\/\)$/{
1264 s//\1/
1267 /^X\(\/\).*/{
1268 s//\1/
1271 s/.*/./; q'`
1272 srcdir=$ac_confdir
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 srcdir=..
1276 else
1277 ac_srcdir_defaulted=no
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1282 { (exit 1); exit 1; }; }
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 ac_abs_confdir=`(
1286 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1287 { (exit 1); exit 1; }; }
1288 pwd)`
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 srcdir=.
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1296 case $srcdir in
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 esac
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 done
1307 # Report the --help message.
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1312 cat <<_ACEOF
1313 \`configure' configures this package to adapt to many kinds of systems.
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1320 Defaults for the options are specified in brackets.
1322 Configuration:
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 [PREFIX]
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1344 For better control, use the options below.
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1366 _ACEOF
1368 cat <<\_ACEOF
1370 Program names:
1371 --program-prefix=PREFIX prepend PREFIX to installed program names
1372 --program-suffix=SUFFIX append SUFFIX to installed program names
1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1375 System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1379 _ACEOF
1382 if test -n "$ac_init_help"; then
1384 cat <<\_ACEOF
1386 Optional Features:
1387 --disable-option-checking ignore unrecognized --enable/--with options
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-checkmem turn on ccmalloc debugging
1391 --enable-debug turn on debugging
1392 --enable-profiling turn on profiling
1393 --enable-warnings turn on compiler warnings
1394 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1395 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1397 Some influential environment variables:
1398 CC C compiler command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1401 nonstandard directory <lib dir>
1402 LIBS libraries to pass to the linker, e.g. -l<library>
1403 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1404 you have headers in a nonstandard directory <include dir>
1405 CXX C++ compiler command
1406 CXXFLAGS C++ compiler flags
1407 CPP C preprocessor
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1412 _ACEOF
1413 ac_status=$?
1416 if test "$ac_init_help" = "recursive"; then
1417 # If there are subdirs, report their specific --help.
1418 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419 test -d "$ac_dir" ||
1420 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1421 continue
1422 ac_builddir=.
1424 case "$ac_dir" in
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1428 # A ".." for each directory in $ac_dir_suffix.
1429 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1430 case $ac_top_builddir_sub in
1431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433 esac ;;
1434 esac
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1440 case $srcdir in
1441 .) # We are building in place.
1442 ac_srcdir=.
1443 ac_top_srcdir=$ac_top_builddir_sub
1444 ac_abs_top_srcdir=$ac_pwd ;;
1445 [\\/]* | ?:[\\/]* ) # Absolute name.
1446 ac_srcdir=$srcdir$ac_dir_suffix;
1447 ac_top_srcdir=$srcdir
1448 ac_abs_top_srcdir=$srcdir ;;
1449 *) # Relative name.
1450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451 ac_top_srcdir=$ac_top_build_prefix$srcdir
1452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1453 esac
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456 cd "$ac_dir" || { ac_status=$?; continue; }
1457 # Check for guested configure.
1458 if test -f "$ac_srcdir/configure.gnu"; then
1459 echo &&
1460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461 elif test -f "$ac_srcdir/configure"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure" --help=recursive
1464 else
1465 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466 fi || ac_status=$?
1467 cd "$ac_pwd" || { ac_status=$?; break; }
1468 done
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1473 cat <<\_ACEOF
1474 configure
1475 generated by GNU Autoconf 2.63
1477 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1478 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1481 _ACEOF
1482 exit
1484 cat >config.log <<_ACEOF
1485 This file contains any messages produced by compilers while
1486 running configure, to aid debugging if configure makes a mistake.
1488 It was created by $as_me, which was
1489 generated by GNU Autoconf 2.63. Invocation command line was
1491 $ $0 $@
1493 _ACEOF
1494 exec 5>>config.log
1496 cat <<_ASUNAME
1497 ## --------- ##
1498 ## Platform. ##
1499 ## --------- ##
1501 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1502 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1503 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1504 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1505 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1507 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1508 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1510 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1511 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1512 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1513 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1514 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1515 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1516 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1518 _ASUNAME
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 for as_dir in $PATH
1523 IFS=$as_save_IFS
1524 test -z "$as_dir" && as_dir=.
1525 $as_echo "PATH: $as_dir"
1526 done
1527 IFS=$as_save_IFS
1529 } >&5
1531 cat >&5 <<_ACEOF
1534 ## ----------- ##
1535 ## Core tests. ##
1536 ## ----------- ##
1538 _ACEOF
1541 # Keep a trace of the command line.
1542 # Strip out --no-create and --no-recursion so they do not pile up.
1543 # Strip out --silent because we don't want to record it for future runs.
1544 # Also quote any args containing shell meta-characters.
1545 # Make two passes to allow for proper duplicate-argument suppression.
1546 ac_configure_args=
1547 ac_configure_args0=
1548 ac_configure_args1=
1549 ac_must_keep_next=false
1550 for ac_pass in 1 2
1552 for ac_arg
1554 case $ac_arg in
1555 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1557 | -silent | --silent | --silen | --sile | --sil)
1558 continue ;;
1559 *\'*)
1560 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1561 esac
1562 case $ac_pass in
1563 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1565 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1566 if test $ac_must_keep_next = true; then
1567 ac_must_keep_next=false # Got value, back to normal.
1568 else
1569 case $ac_arg in
1570 *=* | --config-cache | -C | -disable-* | --disable-* \
1571 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1572 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1573 | -with-* | --with-* | -without-* | --without-* | --x)
1574 case "$ac_configure_args0 " in
1575 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1576 esac
1578 -* ) ac_must_keep_next=true ;;
1579 esac
1581 ac_configure_args="$ac_configure_args '$ac_arg'"
1583 esac
1584 done
1585 done
1586 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1587 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1589 # When interrupted or exit'd, cleanup temporary files, and complete
1590 # config.log. We remove comments because anyway the quotes in there
1591 # would cause problems or look ugly.
1592 # WARNING: Use '\'' to represent an apostrophe within the trap.
1593 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1594 trap 'exit_status=$?
1595 # Save into config.log some information that might help in debugging.
1597 echo
1599 cat <<\_ASBOX
1600 ## ---------------- ##
1601 ## Cache variables. ##
1602 ## ---------------- ##
1603 _ASBOX
1604 echo
1605 # The following way of writing the cache mishandles newlines in values,
1607 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1608 eval ac_val=\$$ac_var
1609 case $ac_val in #(
1610 *${as_nl}*)
1611 case $ac_var in #(
1612 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1613 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1614 esac
1615 case $ac_var in #(
1616 _ | IFS | as_nl) ;; #(
1617 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1618 *) $as_unset $ac_var ;;
1619 esac ;;
1620 esac
1621 done
1622 (set) 2>&1 |
1623 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1624 *${as_nl}ac_space=\ *)
1625 sed -n \
1626 "s/'\''/'\''\\\\'\'''\''/g;
1627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1628 ;; #(
1630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1632 esac |
1633 sort
1635 echo
1637 cat <<\_ASBOX
1638 ## ----------------- ##
1639 ## Output variables. ##
1640 ## ----------------- ##
1641 _ASBOX
1642 echo
1643 for ac_var in $ac_subst_vars
1645 eval ac_val=\$$ac_var
1646 case $ac_val in
1647 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648 esac
1649 $as_echo "$ac_var='\''$ac_val'\''"
1650 done | sort
1651 echo
1653 if test -n "$ac_subst_files"; then
1654 cat <<\_ASBOX
1655 ## ------------------- ##
1656 ## File substitutions. ##
1657 ## ------------------- ##
1658 _ASBOX
1659 echo
1660 for ac_var in $ac_subst_files
1662 eval ac_val=\$$ac_var
1663 case $ac_val in
1664 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1665 esac
1666 $as_echo "$ac_var='\''$ac_val'\''"
1667 done | sort
1668 echo
1671 if test -s confdefs.h; then
1672 cat <<\_ASBOX
1673 ## ----------- ##
1674 ## confdefs.h. ##
1675 ## ----------- ##
1676 _ASBOX
1677 echo
1678 cat confdefs.h
1679 echo
1681 test "$ac_signal" != 0 &&
1682 $as_echo "$as_me: caught signal $ac_signal"
1683 $as_echo "$as_me: exit $exit_status"
1684 } >&5
1685 rm -f core *.core core.conftest.* &&
1686 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1687 exit $exit_status
1689 for ac_signal in 1 2 13 15; do
1690 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1691 done
1692 ac_signal=0
1694 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1695 rm -f -r conftest* confdefs.h
1697 # Predefined preprocessor variables.
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_NAME "$PACKAGE_NAME"
1701 _ACEOF
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1706 _ACEOF
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1711 _ACEOF
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_STRING "$PACKAGE_STRING"
1716 _ACEOF
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1721 _ACEOF
1724 # Let the site file select an alternate cache file if it wants to.
1725 # Prefer an explicitly selected file to automatically selected ones.
1726 ac_site_file1=NONE
1727 ac_site_file2=NONE
1728 if test -n "$CONFIG_SITE"; then
1729 ac_site_file1=$CONFIG_SITE
1730 elif test "x$prefix" != xNONE; then
1731 ac_site_file1=$prefix/share/config.site
1732 ac_site_file2=$prefix/etc/config.site
1733 else
1734 ac_site_file1=$ac_default_prefix/share/config.site
1735 ac_site_file2=$ac_default_prefix/etc/config.site
1737 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1739 test "x$ac_site_file" = xNONE && continue
1740 if test -r "$ac_site_file"; then
1741 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1742 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1743 sed 's/^/| /' "$ac_site_file" >&5
1744 . "$ac_site_file"
1746 done
1748 if test -r "$cache_file"; then
1749 # Some versions of bash will fail to source /dev/null (special
1750 # files actually), so we avoid doing that.
1751 if test -f "$cache_file"; then
1752 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1753 $as_echo "$as_me: loading cache $cache_file" >&6;}
1754 case $cache_file in
1755 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1756 *) . "./$cache_file";;
1757 esac
1759 else
1760 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1761 $as_echo "$as_me: creating cache $cache_file" >&6;}
1762 >$cache_file
1765 # Check that the precious variables saved in the cache have kept the same
1766 # value.
1767 ac_cache_corrupted=false
1768 for ac_var in $ac_precious_vars; do
1769 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1770 eval ac_new_set=\$ac_env_${ac_var}_set
1771 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1772 eval ac_new_val=\$ac_env_${ac_var}_value
1773 case $ac_old_set,$ac_new_set in
1774 set,)
1775 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1776 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1778 ,set)
1779 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1780 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1781 ac_cache_corrupted=: ;;
1782 ,);;
1784 if test "x$ac_old_val" != "x$ac_new_val"; then
1785 # differences in whitespace do not lead to failure.
1786 ac_old_val_w=`echo x $ac_old_val`
1787 ac_new_val_w=`echo x $ac_new_val`
1788 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1789 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1790 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1791 ac_cache_corrupted=:
1792 else
1793 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1794 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1795 eval $ac_var=\$ac_old_val
1797 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1798 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1799 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1800 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1801 fi;;
1802 esac
1803 # Pass precious variables to config.status.
1804 if test "$ac_new_set" = set; then
1805 case $ac_new_val in
1806 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1807 *) ac_arg=$ac_var=$ac_new_val ;;
1808 esac
1809 case " $ac_configure_args " in
1810 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1811 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1812 esac
1814 done
1815 if $ac_cache_corrupted; then
1816 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1818 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1819 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1820 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1821 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1822 { (exit 1); exit 1; }; }
1841 ac_ext=c
1842 ac_cpp='$CPP $CPPFLAGS'
1843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1850 # ------------------- option parsing -------------------------------
1852 DEBUG=
1853 CHECKMEM=
1854 PROFILING=
1855 ENABLE_WARNINGS=
1856 OPTIMIZE=
1857 DISABLE_LAME=
1859 # Check whether --enable-checkmem was given.
1860 if test "${enable_checkmem+set}" = set; then
1861 enableval=$enable_checkmem; CHECKMEM=true
1864 # Check whether --enable-debug was given.
1865 if test "${enable_debug+set}" = set; then
1866 enableval=$enable_debug; DEBUG=true
1869 # Check whether --enable-profiling was given.
1870 if test "${enable_profiling+set}" = set; then
1871 enableval=$enable_profiling; PROFILING=true
1874 # Check whether --enable-warnings was given.
1875 if test "${enable_warnings+set}" = set; then
1876 enableval=$enable_warnings; ENABLE_WARNINGS=true
1879 # Check whether --enable-optimizations was given.
1880 if test "${enable_optimizations+set}" = set; then
1881 enableval=$enable_optimizations; OPTIMIZE=true
1884 # Check whether --enable-lame was given.
1885 if test "${enable_lame+set}" = set; then
1886 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1887 DISABLE_LAME=yes
1889 else
1890 DISABLE_LAME=
1894 PACKAGE=swftools
1895 VERSION=2009-08-12-1514
1897 # ------------------------------------------------------------------
1899 if test "x${srcdir}" != "x."; then
1900 echo "--srcdir is not supported"
1901 exit 1
1904 WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings -Wformat"
1905 if test "x$ENABLE_WARNINGS" '!=' "x";then
1906 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
1909 if test "x$CHECKMEM" '!=' "x";then
1910 DEBUG=yes
1912 if test "x$PROFILING" '!=' "x";then
1913 DEBUG=yes
1915 if test "x$DEBUG" '!=' "x";then
1916 if test "x$PROFILING" = "x";then
1917 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1918 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1919 LDFLAGS="-g $LDFLAGS"
1920 else
1921 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1922 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1923 LDFLAGS="-g -pg $LDFLAGS"
1925 else if test "x$OPTIMIZE" '!=' "x"; then
1926 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1927 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1928 else
1929 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1930 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1934 CFLAGS="-fPIC $CFLAGS"
1935 CXXFLAGS="-fPIC $CFLAGS"
1937 #OLDGCC=1
1938 #if test "x$OLDGCC" '!=' "x";then
1939 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1940 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1941 # CFLAGS="$CFLAGS -ansi -pendantic"
1942 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1945 export PACKAGE VERSION CFLAGS CXXFLAGS
1948 ac_aux_dir=
1949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1950 if test -f "$ac_dir/install-sh"; then
1951 ac_aux_dir=$ac_dir
1952 ac_install_sh="$ac_aux_dir/install-sh -c"
1953 break
1954 elif test -f "$ac_dir/install.sh"; then
1955 ac_aux_dir=$ac_dir
1956 ac_install_sh="$ac_aux_dir/install.sh -c"
1957 break
1958 elif test -f "$ac_dir/shtool"; then
1959 ac_aux_dir=$ac_dir
1960 ac_install_sh="$ac_aux_dir/shtool install -c"
1961 break
1963 done
1964 if test -z "$ac_aux_dir"; then
1965 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1966 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1967 { (exit 1); exit 1; }; }
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979 # Make sure we can run config.sub.
1980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1981 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1982 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1983 { (exit 1); exit 1; }; }
1985 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1986 $as_echo_n "checking build system type... " >&6; }
1987 if test "${ac_cv_build+set}" = set; then
1988 $as_echo_n "(cached) " >&6
1989 else
1990 ac_build_alias=$build_alias
1991 test "x$ac_build_alias" = x &&
1992 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1993 test "x$ac_build_alias" = x &&
1994 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1995 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1996 { (exit 1); exit 1; }; }
1997 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1998 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1999 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2000 { (exit 1); exit 1; }; }
2003 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2004 $as_echo "$ac_cv_build" >&6; }
2005 case $ac_cv_build in
2006 *-*-*) ;;
2007 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2008 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2009 { (exit 1); exit 1; }; };;
2010 esac
2011 build=$ac_cv_build
2012 ac_save_IFS=$IFS; IFS='-'
2013 set x $ac_cv_build
2014 shift
2015 build_cpu=$1
2016 build_vendor=$2
2017 shift; shift
2018 # Remember, the first character of IFS is used to create $*,
2019 # except with old shells:
2020 build_os=$*
2021 IFS=$ac_save_IFS
2022 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2025 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2026 $as_echo_n "checking host system type... " >&6; }
2027 if test "${ac_cv_host+set}" = set; then
2028 $as_echo_n "(cached) " >&6
2029 else
2030 if test "x$host_alias" = x; then
2031 ac_cv_host=$ac_cv_build
2032 else
2033 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2034 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2035 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2040 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2041 $as_echo "$ac_cv_host" >&6; }
2042 case $ac_cv_host in
2043 *-*-*) ;;
2044 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2045 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2046 { (exit 1); exit 1; }; };;
2047 esac
2048 host=$ac_cv_host
2049 ac_save_IFS=$IFS; IFS='-'
2050 set x $ac_cv_host
2051 shift
2052 host_cpu=$1
2053 host_vendor=$2
2054 shift; shift
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2057 host_os=$*
2058 IFS=$ac_save_IFS
2059 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2063 SHARED="-shared"
2064 MACOSX=
2065 case $host_os in
2066 *darwin* )
2067 MACOSX=yes
2068 CFLAGS="$CFLAGS"
2069 CXXFLAGS="$CXXFLAGS -fno-rtti"
2070 SHARED="-bundle"
2071 if test -d /opt/local/include && test -d /opt/local/lib; then
2072 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2073 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2075 # Use fink packages if available.
2076 #if test -d /sw/include && test -d /sw/lib; then
2077 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2078 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2081 esac
2085 ac_ext=c
2086 ac_cpp='$CPP $CPPFLAGS'
2087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090 if test -n "$ac_tool_prefix"; then
2091 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2092 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 $as_echo_n "checking for $ac_word... " >&6; }
2095 if test "${ac_cv_prog_CC+set}" = set; then
2096 $as_echo_n "(cached) " >&6
2097 else
2098 if test -n "$CC"; then
2099 ac_cv_prog_CC="$CC" # Let the user override the test.
2100 else
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2104 IFS=$as_save_IFS
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 break 2
2112 done
2113 done
2114 IFS=$as_save_IFS
2118 CC=$ac_cv_prog_CC
2119 if test -n "$CC"; then
2120 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2121 $as_echo "$CC" >&6; }
2122 else
2123 { $as_echo "$as_me:$LINENO: result: no" >&5
2124 $as_echo "no" >&6; }
2129 if test -z "$ac_cv_prog_CC"; then
2130 ac_ct_CC=$CC
2131 # Extract the first word of "gcc", so it can be a program name with args.
2132 set dummy gcc; ac_word=$2
2133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 $as_echo_n "checking for $ac_word... " >&6; }
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136 $as_echo_n "(cached) " >&6
2137 else
2138 if test -n "$ac_ct_CC"; then
2139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2148 ac_cv_prog_ac_ct_CC="gcc"
2149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2152 done
2153 done
2154 IFS=$as_save_IFS
2158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2159 if test -n "$ac_ct_CC"; then
2160 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2161 $as_echo "$ac_ct_CC" >&6; }
2162 else
2163 { $as_echo "$as_me:$LINENO: result: no" >&5
2164 $as_echo "no" >&6; }
2167 if test "x$ac_ct_CC" = x; then
2168 CC=""
2169 else
2170 case $cross_compiling:$ac_tool_warned in
2171 yes:)
2172 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2174 ac_tool_warned=yes ;;
2175 esac
2176 CC=$ac_ct_CC
2178 else
2179 CC="$ac_cv_prog_CC"
2182 if test -z "$CC"; then
2183 if test -n "$ac_tool_prefix"; then
2184 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2185 set dummy ${ac_tool_prefix}cc; ac_word=$2
2186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 $as_echo_n "checking for $ac_word... " >&6; }
2188 if test "${ac_cv_prog_CC+set}" = set; then
2189 $as_echo_n "(cached) " >&6
2190 else
2191 if test -n "$CC"; then
2192 ac_cv_prog_CC="$CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201 ac_cv_prog_CC="${ac_tool_prefix}cc"
2202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2205 done
2206 done
2207 IFS=$as_save_IFS
2211 CC=$ac_cv_prog_CC
2212 if test -n "$CC"; then
2213 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2214 $as_echo "$CC" >&6; }
2215 else
2216 { $as_echo "$as_me:$LINENO: result: no" >&5
2217 $as_echo "no" >&6; }
2223 if test -z "$CC"; then
2224 # Extract the first word of "cc", so it can be a program name with args.
2225 set dummy cc; ac_word=$2
2226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 $as_echo_n "checking for $ac_word... " >&6; }
2228 if test "${ac_cv_prog_CC+set}" = set; then
2229 $as_echo_n "(cached) " >&6
2230 else
2231 if test -n "$CC"; then
2232 ac_cv_prog_CC="$CC" # Let the user override the test.
2233 else
2234 ac_prog_rejected=no
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2243 ac_prog_rejected=yes
2244 continue
2246 ac_cv_prog_CC="cc"
2247 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 break 2
2250 done
2251 done
2252 IFS=$as_save_IFS
2254 if test $ac_prog_rejected = yes; then
2255 # We found a bogon in the path, so make sure we never use it.
2256 set dummy $ac_cv_prog_CC
2257 shift
2258 if test $# != 0; then
2259 # We chose a different compiler from the bogus one.
2260 # However, it has the same basename, so the bogon will be chosen
2261 # first if we set CC to just the basename; use the full file name.
2262 shift
2263 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2268 CC=$ac_cv_prog_CC
2269 if test -n "$CC"; then
2270 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2271 $as_echo "$CC" >&6; }
2272 else
2273 { $as_echo "$as_me:$LINENO: result: no" >&5
2274 $as_echo "no" >&6; }
2279 if test -z "$CC"; then
2280 if test -n "$ac_tool_prefix"; then
2281 for ac_prog in cl.exe
2283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 $as_echo_n "checking for $ac_word... " >&6; }
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 $as_echo_n "(cached) " >&6
2289 else
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2304 done
2305 done
2306 IFS=$as_save_IFS
2310 CC=$ac_cv_prog_CC
2311 if test -n "$CC"; then
2312 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2313 $as_echo "$CC" >&6; }
2314 else
2315 { $as_echo "$as_me:$LINENO: result: no" >&5
2316 $as_echo "no" >&6; }
2320 test -n "$CC" && break
2321 done
2323 if test -z "$CC"; then
2324 ac_ct_CC=$CC
2325 for ac_prog in cl.exe
2327 # Extract the first word of "$ac_prog", so it can be a program name with args.
2328 set dummy $ac_prog; ac_word=$2
2329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 $as_echo_n "checking for $ac_word... " >&6; }
2331 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2332 $as_echo_n "(cached) " >&6
2333 else
2334 if test -n "$ac_ct_CC"; then
2335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2336 else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 ac_cv_prog_ac_ct_CC="$ac_prog"
2345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 break 2
2348 done
2349 done
2350 IFS=$as_save_IFS
2354 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2355 if test -n "$ac_ct_CC"; then
2356 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2357 $as_echo "$ac_ct_CC" >&6; }
2358 else
2359 { $as_echo "$as_me:$LINENO: result: no" >&5
2360 $as_echo "no" >&6; }
2364 test -n "$ac_ct_CC" && break
2365 done
2367 if test "x$ac_ct_CC" = x; then
2368 CC=""
2369 else
2370 case $cross_compiling:$ac_tool_warned in
2371 yes:)
2372 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2374 ac_tool_warned=yes ;;
2375 esac
2376 CC=$ac_ct_CC
2383 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2386 See \`config.log' for more details." >&5
2387 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2388 See \`config.log' for more details." >&2;}
2389 { (exit 1); exit 1; }; }; }
2391 # Provide some information about the compiler.
2392 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2393 set X $ac_compile
2394 ac_compiler=$2
2395 { (ac_try="$ac_compiler --version >&5"
2396 case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2399 esac
2400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2401 $as_echo "$ac_try_echo") >&5
2402 (eval "$ac_compiler --version >&5") 2>&5
2403 ac_status=$?
2404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }
2406 { (ac_try="$ac_compiler -v >&5"
2407 case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2410 esac
2411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2412 $as_echo "$ac_try_echo") >&5
2413 (eval "$ac_compiler -v >&5") 2>&5
2414 ac_status=$?
2415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }
2417 { (ac_try="$ac_compiler -V >&5"
2418 case "(($ac_try" in
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2421 esac
2422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2423 $as_echo "$ac_try_echo") >&5
2424 (eval "$ac_compiler -V >&5") 2>&5
2425 ac_status=$?
2426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2437 main ()
2441 return 0;
2443 _ACEOF
2444 ac_clean_files_save=$ac_clean_files
2445 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2446 # Try to create an executable without -o first, disregard a.out.
2447 # It will help us diagnose broken compilers, and finding out an intuition
2448 # of exeext.
2449 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2450 $as_echo_n "checking for C compiler default output file name... " >&6; }
2451 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2453 # The possible output files:
2454 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2456 ac_rmfiles=
2457 for ac_file in $ac_files
2459 case $ac_file in
2460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2461 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2462 esac
2463 done
2464 rm -f $ac_rmfiles
2466 if { (ac_try="$ac_link_default"
2467 case "(($ac_try" in
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2470 esac
2471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2472 $as_echo "$ac_try_echo") >&5
2473 (eval "$ac_link_default") 2>&5
2474 ac_status=$?
2475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; then
2477 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2478 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2479 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2480 # so that the user can short-circuit this test for compilers unknown to
2481 # Autoconf.
2482 for ac_file in $ac_files ''
2484 test -f "$ac_file" || continue
2485 case $ac_file in
2486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2488 [ab].out )
2489 # We found the default executable, but exeext='' is most
2490 # certainly right.
2491 break;;
2492 *.* )
2493 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2494 then :; else
2495 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2497 # We set ac_cv_exeext here because the later test for it is not
2498 # safe: cross compilers may not add the suffix if given an `-o'
2499 # argument, so we may need to know it at that point already.
2500 # Even if this section looks crufty: it has the advantage of
2501 # actually working.
2502 break;;
2504 break;;
2505 esac
2506 done
2507 test "$ac_cv_exeext" = no && ac_cv_exeext=
2509 else
2510 ac_file=''
2513 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2514 $as_echo "$ac_file" >&6; }
2515 if test -z "$ac_file"; then
2516 $as_echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2519 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2522 See \`config.log' for more details." >&5
2523 $as_echo "$as_me: error: C compiler cannot create executables
2524 See \`config.log' for more details." >&2;}
2525 { (exit 77); exit 77; }; }; }
2528 ac_exeext=$ac_cv_exeext
2530 # Check that the compiler produces executables we can run. If not, either
2531 # the compiler is broken, or we cross compile.
2532 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2533 $as_echo_n "checking whether the C compiler works... " >&6; }
2534 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2535 # If not cross compiling, check that we can run a simple program.
2536 if test "$cross_compiling" != yes; then
2537 if { ac_try='./$ac_file'
2538 { (case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2541 esac
2542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2543 $as_echo "$ac_try_echo") >&5
2544 (eval "$ac_try") 2>&5
2545 ac_status=$?
2546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 cross_compiling=no
2549 else
2550 if test "$cross_compiling" = maybe; then
2551 cross_compiling=yes
2552 else
2553 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2556 If you meant to cross compile, use \`--host'.
2557 See \`config.log' for more details." >&5
2558 $as_echo "$as_me: error: cannot run C compiled programs.
2559 If you meant to cross compile, use \`--host'.
2560 See \`config.log' for more details." >&2;}
2561 { (exit 1); exit 1; }; }; }
2565 { $as_echo "$as_me:$LINENO: result: yes" >&5
2566 $as_echo "yes" >&6; }
2568 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2569 ac_clean_files=$ac_clean_files_save
2570 # Check that the compiler produces executables we can run. If not, either
2571 # the compiler is broken, or we cross compile.
2572 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2573 $as_echo_n "checking whether we are cross compiling... " >&6; }
2574 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2575 $as_echo "$cross_compiling" >&6; }
2577 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2578 $as_echo_n "checking for suffix of executables... " >&6; }
2579 if { (ac_try="$ac_link"
2580 case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2583 esac
2584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2585 $as_echo "$ac_try_echo") >&5
2586 (eval "$ac_link") 2>&5
2587 ac_status=$?
2588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; then
2590 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2591 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2592 # work properly (i.e., refer to `conftest.exe'), while it won't with
2593 # `rm'.
2594 for ac_file in conftest.exe conftest conftest.*; do
2595 test -f "$ac_file" || continue
2596 case $ac_file in
2597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2598 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2599 break;;
2600 * ) break;;
2601 esac
2602 done
2603 else
2604 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2607 See \`config.log' for more details." >&5
2608 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2609 See \`config.log' for more details." >&2;}
2610 { (exit 1); exit 1; }; }; }
2613 rm -f conftest$ac_cv_exeext
2614 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2615 $as_echo "$ac_cv_exeext" >&6; }
2617 rm -f conftest.$ac_ext
2618 EXEEXT=$ac_cv_exeext
2619 ac_exeext=$EXEEXT
2620 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2621 $as_echo_n "checking for suffix of object files... " >&6; }
2622 if test "${ac_cv_objext+set}" = set; then
2623 $as_echo_n "(cached) " >&6
2624 else
2625 cat >conftest.$ac_ext <<_ACEOF
2626 /* confdefs.h. */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2633 main ()
2637 return 0;
2639 _ACEOF
2640 rm -f conftest.o conftest.obj
2641 if { (ac_try="$ac_compile"
2642 case "(($ac_try" in
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2645 esac
2646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2647 $as_echo "$ac_try_echo") >&5
2648 (eval "$ac_compile") 2>&5
2649 ac_status=$?
2650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; then
2652 for ac_file in conftest.o conftest.obj conftest.*; do
2653 test -f "$ac_file" || continue;
2654 case $ac_file in
2655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2657 break;;
2658 esac
2659 done
2660 else
2661 $as_echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2664 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2667 See \`config.log' for more details." >&5
2668 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2669 See \`config.log' for more details." >&2;}
2670 { (exit 1); exit 1; }; }; }
2673 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2675 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2676 $as_echo "$ac_cv_objext" >&6; }
2677 OBJEXT=$ac_cv_objext
2678 ac_objext=$OBJEXT
2679 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2680 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2681 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2682 $as_echo_n "(cached) " >&6
2683 else
2684 cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h. */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2692 main ()
2694 #ifndef __GNUC__
2695 choke me
2696 #endif
2699 return 0;
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (ac_try="$ac_compile"
2704 case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707 esac
2708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2709 $as_echo "$ac_try_echo") >&5
2710 (eval "$ac_compile") 2>conftest.er1
2711 ac_status=$?
2712 grep -v '^ *+' conftest.er1 >conftest.err
2713 rm -f conftest.er1
2714 cat conftest.err >&5
2715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } && {
2717 test -z "$ac_c_werror_flag" ||
2718 test ! -s conftest.err
2719 } && test -s conftest.$ac_objext; then
2720 ac_compiler_gnu=yes
2721 else
2722 $as_echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2725 ac_compiler_gnu=no
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2732 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2733 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2734 if test $ac_compiler_gnu = yes; then
2735 GCC=yes
2736 else
2737 GCC=
2739 ac_test_CFLAGS=${CFLAGS+set}
2740 ac_save_CFLAGS=$CFLAGS
2741 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2742 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2743 if test "${ac_cv_prog_cc_g+set}" = set; then
2744 $as_echo_n "(cached) " >&6
2745 else
2746 ac_save_c_werror_flag=$ac_c_werror_flag
2747 ac_c_werror_flag=yes
2748 ac_cv_prog_cc_g=no
2749 CFLAGS="-g"
2750 cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h. */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2758 main ()
2762 return 0;
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (ac_try="$ac_compile"
2767 case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770 esac
2771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2772 $as_echo "$ac_try_echo") >&5
2773 (eval "$ac_compile") 2>conftest.er1
2774 ac_status=$?
2775 grep -v '^ *+' conftest.er1 >conftest.err
2776 rm -f conftest.er1
2777 cat conftest.err >&5
2778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } && {
2780 test -z "$ac_c_werror_flag" ||
2781 test ! -s conftest.err
2782 } && test -s conftest.$ac_objext; then
2783 ac_cv_prog_cc_g=yes
2784 else
2785 $as_echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2788 CFLAGS=""
2789 cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h. */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2797 main ()
2801 return 0;
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (ac_try="$ac_compile"
2806 case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809 esac
2810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2811 $as_echo "$ac_try_echo") >&5
2812 (eval "$ac_compile") 2>conftest.er1
2813 ac_status=$?
2814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
2817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } && {
2819 test -z "$ac_c_werror_flag" ||
2820 test ! -s conftest.err
2821 } && test -s conftest.$ac_objext; then
2823 else
2824 $as_echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2827 ac_c_werror_flag=$ac_save_c_werror_flag
2828 CFLAGS="-g"
2829 cat >conftest.$ac_ext <<_ACEOF
2830 /* confdefs.h. */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2837 main ()
2841 return 0;
2843 _ACEOF
2844 rm -f conftest.$ac_objext
2845 if { (ac_try="$ac_compile"
2846 case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2849 esac
2850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2851 $as_echo "$ac_try_echo") >&5
2852 (eval "$ac_compile") 2>conftest.er1
2853 ac_status=$?
2854 grep -v '^ *+' conftest.er1 >conftest.err
2855 rm -f conftest.er1
2856 cat conftest.err >&5
2857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } && {
2859 test -z "$ac_c_werror_flag" ||
2860 test ! -s conftest.err
2861 } && test -s conftest.$ac_objext; then
2862 ac_cv_prog_cc_g=yes
2863 else
2864 $as_echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2877 ac_c_werror_flag=$ac_save_c_werror_flag
2879 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2880 $as_echo "$ac_cv_prog_cc_g" >&6; }
2881 if test "$ac_test_CFLAGS" = set; then
2882 CFLAGS=$ac_save_CFLAGS
2883 elif test $ac_cv_prog_cc_g = yes; then
2884 if test "$GCC" = yes; then
2885 CFLAGS="-g -O2"
2886 else
2887 CFLAGS="-g"
2889 else
2890 if test "$GCC" = yes; then
2891 CFLAGS="-O2"
2892 else
2893 CFLAGS=
2896 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2897 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2898 if test "${ac_cv_prog_cc_c89+set}" = set; then
2899 $as_echo_n "(cached) " >&6
2900 else
2901 ac_cv_prog_cc_c89=no
2902 ac_save_CC=$CC
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2909 #include <stdarg.h>
2910 #include <stdio.h>
2911 #include <sys/types.h>
2912 #include <sys/stat.h>
2913 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2914 struct buf { int x; };
2915 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2916 static char *e (p, i)
2917 char **p;
2918 int i;
2920 return p[i];
2922 static char *f (char * (*g) (char **, int), char **p, ...)
2924 char *s;
2925 va_list v;
2926 va_start (v,p);
2927 s = g (p, va_arg (v,int));
2928 va_end (v);
2929 return s;
2932 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2933 function prototypes and stuff, but not '\xHH' hex character constants.
2934 These don't provoke an error unfortunately, instead are silently treated
2935 as 'x'. The following induces an error, until -std is added to get
2936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2937 array size at least. It's necessary to write '\x00'==0 to get something
2938 that's true only with -std. */
2939 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2941 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2942 inside strings and character constants. */
2943 #define FOO(x) 'x'
2944 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2946 int test (int i, double x);
2947 struct s1 {int (*f) (int a);};
2948 struct s2 {int (*f) (double a);};
2949 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2950 int argc;
2951 char **argv;
2953 main ()
2955 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2957 return 0;
2959 _ACEOF
2960 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2963 CC="$ac_save_CC $ac_arg"
2964 rm -f conftest.$ac_objext
2965 if { (ac_try="$ac_compile"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2971 $as_echo "$ac_try_echo") >&5
2972 (eval "$ac_compile") 2>conftest.er1
2973 ac_status=$?
2974 grep -v '^ *+' conftest.er1 >conftest.err
2975 rm -f conftest.er1
2976 cat conftest.err >&5
2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } && {
2979 test -z "$ac_c_werror_flag" ||
2980 test ! -s conftest.err
2981 } && test -s conftest.$ac_objext; then
2982 ac_cv_prog_cc_c89=$ac_arg
2983 else
2984 $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2990 rm -f core conftest.err conftest.$ac_objext
2991 test "x$ac_cv_prog_cc_c89" != "xno" && break
2992 done
2993 rm -f conftest.$ac_ext
2994 CC=$ac_save_CC
2997 # AC_CACHE_VAL
2998 case "x$ac_cv_prog_cc_c89" in
3000 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3001 $as_echo "none needed" >&6; } ;;
3002 xno)
3003 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3004 $as_echo "unsupported" >&6; } ;;
3006 CC="$CC $ac_cv_prog_cc_c89"
3007 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3008 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3009 esac
3012 ac_ext=c
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 ac_ext=cpp
3019 ac_cpp='$CXXCPP $CPPFLAGS'
3020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3023 if test -z "$CXX"; then
3024 if test -n "$CCC"; then
3025 CXX=$CCC
3026 else
3027 if test -n "$ac_tool_prefix"; then
3028 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CXX+set}" = set; then
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$CXX"; then
3038 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3051 done
3052 done
3053 IFS=$as_save_IFS
3057 CXX=$ac_cv_prog_CXX
3058 if test -n "$CXX"; then
3059 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3060 $as_echo "$CXX" >&6; }
3061 else
3062 { $as_echo "$as_me:$LINENO: result: no" >&5
3063 $as_echo "no" >&6; }
3067 test -n "$CXX" && break
3068 done
3070 if test -z "$CXX"; then
3071 ac_ct_CXX=$CXX
3072 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test -n "$ac_ct_CXX"; then
3082 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_ac_ct_CXX="$ac_prog"
3092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3095 done
3096 done
3097 IFS=$as_save_IFS
3101 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3102 if test -n "$ac_ct_CXX"; then
3103 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3104 $as_echo "$ac_ct_CXX" >&6; }
3105 else
3106 { $as_echo "$as_me:$LINENO: result: no" >&5
3107 $as_echo "no" >&6; }
3111 test -n "$ac_ct_CXX" && break
3112 done
3114 if test "x$ac_ct_CXX" = x; then
3115 CXX="g++"
3116 else
3117 case $cross_compiling:$ac_tool_warned in
3118 yes:)
3119 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121 ac_tool_warned=yes ;;
3122 esac
3123 CXX=$ac_ct_CXX
3129 # Provide some information about the compiler.
3130 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3131 set X $ac_compile
3132 ac_compiler=$2
3133 { (ac_try="$ac_compiler --version >&5"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3139 $as_echo "$ac_try_echo") >&5
3140 (eval "$ac_compiler --version >&5") 2>&5
3141 ac_status=$?
3142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }
3144 { (ac_try="$ac_compiler -v >&5"
3145 case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3150 $as_echo "$ac_try_echo") >&5
3151 (eval "$ac_compiler -v >&5") 2>&5
3152 ac_status=$?
3153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }
3155 { (ac_try="$ac_compiler -V >&5"
3156 case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3161 $as_echo "$ac_try_echo") >&5
3162 (eval "$ac_compiler -V >&5") 2>&5
3163 ac_status=$?
3164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }
3167 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3168 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3169 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3170 $as_echo_n "(cached) " >&6
3171 else
3172 cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h. */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3180 main ()
3182 #ifndef __GNUC__
3183 choke me
3184 #endif
3187 return 0;
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3192 case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3197 $as_echo "$ac_try_echo") >&5
3198 (eval "$ac_compile") 2>conftest.er1
3199 ac_status=$?
3200 grep -v '^ *+' conftest.er1 >conftest.err
3201 rm -f conftest.er1
3202 cat conftest.err >&5
3203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } && {
3205 test -z "$ac_cxx_werror_flag" ||
3206 test ! -s conftest.err
3207 } && test -s conftest.$ac_objext; then
3208 ac_compiler_gnu=yes
3209 else
3210 $as_echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3213 ac_compiler_gnu=no
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3220 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3221 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3222 if test $ac_compiler_gnu = yes; then
3223 GXX=yes
3224 else
3225 GXX=
3227 ac_test_CXXFLAGS=${CXXFLAGS+set}
3228 ac_save_CXXFLAGS=$CXXFLAGS
3229 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3230 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3231 if test "${ac_cv_prog_cxx_g+set}" = set; then
3232 $as_echo_n "(cached) " >&6
3233 else
3234 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3235 ac_cxx_werror_flag=yes
3236 ac_cv_prog_cxx_g=no
3237 CXXFLAGS="-g"
3238 cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h. */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3246 main ()
3250 return 0;
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3255 case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261 (eval "$ac_compile") 2>conftest.er1
3262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } && {
3268 test -z "$ac_cxx_werror_flag" ||
3269 test ! -s conftest.err
3270 } && test -s conftest.$ac_objext; then
3271 ac_cv_prog_cxx_g=yes
3272 else
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 CXXFLAGS=""
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h. */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3285 main ()
3289 return 0;
3291 _ACEOF
3292 rm -f conftest.$ac_objext
3293 if { (ac_try="$ac_compile"
3294 case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297 esac
3298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3299 $as_echo "$ac_try_echo") >&5
3300 (eval "$ac_compile") 2>conftest.er1
3301 ac_status=$?
3302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } && {
3307 test -z "$ac_cxx_werror_flag" ||
3308 test ! -s conftest.err
3309 } && test -s conftest.$ac_objext; then
3311 else
3312 $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3316 CXXFLAGS="-g"
3317 cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h. */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3325 main ()
3329 return 0;
3331 _ACEOF
3332 rm -f conftest.$ac_objext
3333 if { (ac_try="$ac_compile"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3339 $as_echo "$ac_try_echo") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } && {
3347 test -z "$ac_cxx_werror_flag" ||
3348 test ! -s conftest.err
3349 } && test -s conftest.$ac_objext; then
3350 ac_cv_prog_cxx_g=yes
3351 else
3352 $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3367 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3368 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3369 if test "$ac_test_CXXFLAGS" = set; then
3370 CXXFLAGS=$ac_save_CXXFLAGS
3371 elif test $ac_cv_prog_cxx_g = yes; then
3372 if test "$GXX" = yes; then
3373 CXXFLAGS="-g -O2"
3374 else
3375 CXXFLAGS="-g"
3377 else
3378 if test "$GXX" = yes; then
3379 CXXFLAGS="-O2"
3380 else
3381 CXXFLAGS=
3384 ac_ext=c
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3394 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3396 cat > conftest.c << EOF
3397 #include <stdlib.h>
3398 #include <stdio.h>
3400 int main (int argc, char*argv)
3402 int a,b;
3403 b=3;
3404 int c;
3405 c=4;
3406 return 0;
3410 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3411 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3412 { $as_echo "$as_me:$LINENO: result: yes" >&5
3413 $as_echo "yes" >&6; }
3414 GCC_IS_OK=true
3415 export GCC_IS_OK
3416 else
3417 echo "configure: failed program was:" >&5
3418 cat conftest.c >&5
3419 { $as_echo "$as_me:$LINENO: result: no" >&5
3420 $as_echo "no" >&6; }
3422 rm -f conftest*
3425 if test "x$GCC_IS_OK" '=' "x";then
3426 echo "***************************************************"
3427 echo "* Your gcc is too old to compile this!"
3428 echo "* "
3429 echo "* The last version compileable by this compiler is "
3430 echo "* swftools 0.7.0, which you can download from "
3431 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3432 echo "* ."
3433 echo "* Newer versions require at least gcc 3.0.0 "
3434 echo "***************************************************"
3435 exit 1
3438 if test "x$CHECKMEM" '!=' "x";then
3439 CC="ccmalloc $CC"
3440 CXX="ccmalloc $CXX"
3441 #echo running again
3442 #unset ac_cv_prog_CC
3443 #unset ac_cv_prog_CXX
3444 #AC_PROG_CC
3445 #AC_PROG_CXX
3447 ac_ext=c
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3453 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3454 # On Suns, sometimes $CPP names a directory.
3455 if test -n "$CPP" && test -d "$CPP"; then
3456 CPP=
3458 if test -z "$CPP"; then
3459 if test "${ac_cv_prog_CPP+set}" = set; then
3460 $as_echo_n "(cached) " >&6
3461 else
3462 # Double quotes because CPP needs to be expanded
3463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3465 ac_preproc_ok=false
3466 for ac_c_preproc_warn_flag in '' yes
3468 # Use a header file that comes with gcc, so configuring glibc
3469 # with a fresh cross-compiler works.
3470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3471 # <limits.h> exists even on freestanding compilers.
3472 # On the NeXT, cc -E runs the code through the compiler's parser,
3473 # not just through cpp. "Syntax error" is here to catch this case.
3474 cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h. */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #ifdef __STDC__
3481 # include <limits.h>
3482 #else
3483 # include <assert.h>
3484 #endif
3485 Syntax error
3486 _ACEOF
3487 if { (ac_try="$ac_cpp conftest.$ac_ext"
3488 case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3493 $as_echo "$ac_try_echo") >&5
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } >/dev/null && {
3501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3502 test ! -s conftest.err
3503 }; then
3505 else
3506 $as_echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 # Broken: fails on valid input.
3510 continue
3513 rm -f conftest.err conftest.$ac_ext
3515 # OK, works on sane cases. Now check whether nonexistent headers
3516 # can be detected and how.
3517 cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h. */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #include <ac_nonexistent.h>
3524 _ACEOF
3525 if { (ac_try="$ac_cpp conftest.$ac_ext"
3526 case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3531 $as_echo "$ac_try_echo") >&5
3532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev/null && {
3539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 }; then
3542 # Broken: success on invalid input.
3543 continue
3544 else
3545 $as_echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 # Passes both tests.
3549 ac_preproc_ok=:
3550 break
3553 rm -f conftest.err conftest.$ac_ext
3555 done
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3559 break
3562 done
3563 ac_cv_prog_CPP=$CPP
3566 CPP=$ac_cv_prog_CPP
3567 else
3568 ac_cv_prog_CPP=$CPP
3570 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3571 $as_echo "$CPP" >&6; }
3572 ac_preproc_ok=false
3573 for ac_c_preproc_warn_flag in '' yes
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
3581 cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h. */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 #ifdef __STDC__
3588 # include <limits.h>
3589 #else
3590 # include <assert.h>
3591 #endif
3592 Syntax error
3593 _ACEOF
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3600 $as_echo "$ac_try_echo") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null && {
3608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3610 }; then
3612 else
3613 $as_echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 # Broken: fails on valid input.
3617 continue
3620 rm -f conftest.err conftest.$ac_ext
3622 # OK, works on sane cases. Now check whether nonexistent headers
3623 # can be detected and how.
3624 cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h. */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 #include <ac_nonexistent.h>
3631 _ACEOF
3632 if { (ac_try="$ac_cpp conftest.$ac_ext"
3633 case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3638 $as_echo "$ac_try_echo") >&5
3639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } >/dev/null && {
3646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3647 test ! -s conftest.err
3648 }; then
3649 # Broken: success on invalid input.
3650 continue
3651 else
3652 $as_echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 # Passes both tests.
3656 ac_preproc_ok=:
3657 break
3660 rm -f conftest.err conftest.$ac_ext
3662 done
3663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3664 rm -f conftest.err conftest.$ac_ext
3665 if $ac_preproc_ok; then
3667 else
3668 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3671 See \`config.log' for more details." >&5
3672 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3673 See \`config.log' for more details." >&2;}
3674 { (exit 1); exit 1; }; }; }
3677 ac_ext=c
3678 ac_cpp='$CPP $CPPFLAGS'
3679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684 if test -n "$ac_tool_prefix"; then
3685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_RANLIB+set}" = set; then
3690 $as_echo_n "(cached) " >&6
3691 else
3692 if test -n "$RANLIB"; then
3693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3694 else
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 break 2
3706 done
3707 done
3708 IFS=$as_save_IFS
3712 RANLIB=$ac_cv_prog_RANLIB
3713 if test -n "$RANLIB"; then
3714 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3715 $as_echo "$RANLIB" >&6; }
3716 else
3717 { $as_echo "$as_me:$LINENO: result: no" >&5
3718 $as_echo "no" >&6; }
3723 if test -z "$ac_cv_prog_RANLIB"; then
3724 ac_ct_RANLIB=$RANLIB
3725 # Extract the first word of "ranlib", so it can be a program name with args.
3726 set dummy ranlib; ac_word=$2
3727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3728 $as_echo_n "checking for $ac_word... " >&6; }
3729 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3730 $as_echo_n "(cached) " >&6
3731 else
3732 if test -n "$ac_ct_RANLIB"; then
3733 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_ac_ct_RANLIB="ranlib"
3743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3746 done
3747 done
3748 IFS=$as_save_IFS
3752 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3753 if test -n "$ac_ct_RANLIB"; then
3754 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3755 $as_echo "$ac_ct_RANLIB" >&6; }
3756 else
3757 { $as_echo "$as_me:$LINENO: result: no" >&5
3758 $as_echo "no" >&6; }
3761 if test "x$ac_ct_RANLIB" = x; then
3762 RANLIB=":"
3763 else
3764 case $cross_compiling:$ac_tool_warned in
3765 yes:)
3766 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3768 ac_tool_warned=yes ;;
3769 esac
3770 RANLIB=$ac_ct_RANLIB
3772 else
3773 RANLIB="$ac_cv_prog_RANLIB"
3776 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3777 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3778 set x ${MAKE-make}
3779 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3780 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3781 $as_echo_n "(cached) " >&6
3782 else
3783 cat >conftest.make <<\_ACEOF
3784 SHELL = /bin/sh
3785 all:
3786 @echo '@@@%%%=$(MAKE)=@@@%%%'
3787 _ACEOF
3788 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3789 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3790 *@@@%%%=?*=@@@%%%*)
3791 eval ac_cv_prog_make_${ac_make}_set=yes;;
3793 eval ac_cv_prog_make_${ac_make}_set=no;;
3794 esac
3795 rm -f conftest.make
3797 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3798 { $as_echo "$as_me:$LINENO: result: yes" >&5
3799 $as_echo "yes" >&6; }
3800 SET_MAKE=
3801 else
3802 { $as_echo "$as_me:$LINENO: result: no" >&5
3803 $as_echo "no" >&6; }
3804 SET_MAKE="MAKE=${MAKE-make}"
3807 # Find a good install program. We prefer a C program (faster),
3808 # so one script is as good as another. But avoid the broken or
3809 # incompatible versions:
3810 # SysV /etc/install, /usr/sbin/install
3811 # SunOS /usr/etc/install
3812 # IRIX /sbin/install
3813 # AIX /bin/install
3814 # AmigaOS /C/install, which installs bootblocks on floppy discs
3815 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3816 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3817 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3818 # OS/2's system install, which has a completely different semantic
3819 # ./install, which can be erroneously created by make from ./install.sh.
3820 # Reject install programs that cannot install multiple files.
3821 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3822 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3823 if test -z "$INSTALL"; then
3824 if test "${ac_cv_path_install+set}" = set; then
3825 $as_echo_n "(cached) " >&6
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 # Account for people who put trailing slashes in PATH elements.
3833 case $as_dir/ in
3834 ./ | .// | /cC/* | \
3835 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3836 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3837 /usr/ucb/* ) ;;
3839 # OSF1 and SCO ODT 3.0 have their own names for install.
3840 # Don't use installbsd from OSF since it installs stuff as root
3841 # by default.
3842 for ac_prog in ginstall scoinst install; do
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3845 if test $ac_prog = install &&
3846 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3847 # AIX install. It has an incompatible calling convention.
3849 elif test $ac_prog = install &&
3850 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3851 # program-specific install script used by HP pwplus--don't use.
3853 else
3854 rm -rf conftest.one conftest.two conftest.dir
3855 echo one > conftest.one
3856 echo two > conftest.two
3857 mkdir conftest.dir
3858 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3859 test -s conftest.one && test -s conftest.two &&
3860 test -s conftest.dir/conftest.one &&
3861 test -s conftest.dir/conftest.two
3862 then
3863 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3864 break 3
3868 done
3869 done
3871 esac
3873 done
3874 IFS=$as_save_IFS
3876 rm -rf conftest.one conftest.two conftest.dir
3879 if test "${ac_cv_path_install+set}" = set; then
3880 INSTALL=$ac_cv_path_install
3881 else
3882 # As a last resort, use the slow shell script. Don't cache a
3883 # value for INSTALL within a source directory, because that will
3884 # break other packages using the cache if that directory is
3885 # removed, or if the value is a relative name.
3886 INSTALL=$ac_install_sh
3889 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3890 $as_echo "$INSTALL" >&6; }
3892 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3893 # It thinks the first close brace ends the variable substitution.
3894 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3896 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3898 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3900 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3901 $as_echo_n "checking whether ln -s works... " >&6; }
3902 LN_S=$as_ln_s
3903 if test "$LN_S" = "ln -s"; then
3904 { $as_echo "$as_me:$LINENO: result: yes" >&5
3905 $as_echo "yes" >&6; }
3906 else
3907 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3908 $as_echo "no, using $LN_S" >&6; }
3911 for ac_prog in gzip uncompress compress
3913 # Extract the first word of "$ac_prog", so it can be a program name with args.
3914 set dummy $ac_prog; ac_word=$2
3915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3916 $as_echo_n "checking for $ac_word... " >&6; }
3917 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3918 $as_echo_n "(cached) " >&6
3919 else
3920 if test -n "$UNCOMPRESS"; then
3921 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3930 ac_cv_prog_UNCOMPRESS="$ac_prog"
3931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3934 done
3935 done
3936 IFS=$as_save_IFS
3940 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3941 if test -n "$UNCOMPRESS"; then
3942 { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3943 $as_echo "$UNCOMPRESS" >&6; }
3944 else
3945 { $as_echo "$as_me:$LINENO: result: no" >&5
3946 $as_echo "no" >&6; }
3950 test -n "$UNCOMPRESS" && break
3951 done
3955 OBJEXT="o"
3956 AREXT=".a"
3957 CXXLIBS="-lstdc++"
3961 if test "x$EXEEXT" = "x.exe";then
3962 OBJEXT="obj"
3963 AREXT=".lib"
3964 CXXLIBS=""
3970 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3971 $as_echo_n "checking host system type... " >&6; }
3972 if test "${ac_cv_host+set}" = set; then
3973 $as_echo_n "(cached) " >&6
3974 else
3975 if test "x$host_alias" = x; then
3976 ac_cv_host=$ac_cv_build
3977 else
3978 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3979 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3980 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3981 { (exit 1); exit 1; }; }
3985 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3986 $as_echo "$ac_cv_host" >&6; }
3987 case $ac_cv_host in
3988 *-*-*) ;;
3989 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3990 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3991 { (exit 1); exit 1; }; };;
3992 esac
3993 host=$ac_cv_host
3994 ac_save_IFS=$IFS; IFS='-'
3995 set x $ac_cv_host
3996 shift
3997 host_cpu=$1
3998 host_vendor=$2
3999 shift; shift
4000 # Remember, the first character of IFS is used to create $*,
4001 # except with old shells:
4002 host_os=$*
4003 IFS=$ac_save_IFS
4004 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4009 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4010 $as_echo_n "checking for target system... " >&6; }
4011 CYGWIN=
4012 MINGW=
4013 case $host_os in
4014 *cygwin* ) CYGWIN=yes;;
4015 *mingw* ) MINGW=yes;;
4016 esac
4018 AR=ar
4019 if test "x$MINGW" = "xyes"; then
4020 #fix for the debian distribution of mingw
4021 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4022 AR="/usr/i586-mingw32msvc/bin/ar"
4024 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4025 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4027 #fix for the gentoo distribution of mingw
4028 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4029 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4031 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4032 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4034 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4035 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4041 if test "x${CYGWIN}" = "xyes"; then
4043 cat >>confdefs.h <<\_ACEOF
4044 #define CYGWIN 1
4045 _ACEOF
4047 { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4048 $as_echo "cygwin" >&6; }
4049 else
4050 if test "x${MINGW}" = "xyes"; then
4052 cat >>confdefs.h <<\_ACEOF
4053 #define MINGW 1
4054 _ACEOF
4056 WIN32=1
4058 cat >>confdefs.h <<\_ACEOF
4059 #define WIN32 1
4060 _ACEOF
4062 LIBS="$LIBS -lws2_32 -lgdi32"
4063 { $as_echo "$as_me:$LINENO: result: mingw" >&5
4064 $as_echo "mingw" >&6; }
4065 else
4066 LINUX=1
4067 export LINUX
4069 cat >>confdefs.h <<\_ACEOF
4070 #define LINUX 1
4071 _ACEOF
4073 { $as_echo "$as_me:$LINENO: result: " >&5
4074 $as_echo "" >&6; }
4079 SLEXT="so"
4080 if test "x${MINGW}" != "xyes"; then
4081 # no mingW
4083 cat >>confdefs.h <<\_ACEOF
4084 #define O_BINARY 0
4085 _ACEOF
4087 else
4088 # mingW
4089 SLEXT="dll"
4090 CXXLIBS=""
4092 export SLEXT
4096 # The following tries to make use of includes and libraries in
4097 # /usr/local, too. Notice: A -I/usr/local/include might break
4098 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4099 # especially on systems which link /usr/local to /usr, so it has yet
4100 # to be seen how useful this is.
4101 if test -d /usr/local/lib; then
4102 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4104 if test -d /usr/local/include; then
4105 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4106 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4107 echo > /dev/null
4109 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4110 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4111 # and $prefix/include, which should be included in our search paths for libraries
4112 # and includes.
4113 LDFLAGS="$LDFLAGS -L${libdir}"
4114 CPPFLAGS="$CPPFLAGS -I${includedir}"
4115 # TODO- test whether gcc still works after this
4118 #Mac OS:
4119 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4122 # this must be done after (I believe) AC_PROG_MAKE_SET
4123 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4124 if test "$MACOSX";then
4125 STRIP=dsymutil
4126 else
4127 STRIP="@echo debug enabled, not stripping "
4129 export STRIP
4135 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4136 $as_echo_n "checking for sin in -lm... " >&6; }
4137 if test "${ac_cv_lib_m_sin+set}" = set; then
4138 $as_echo_n "(cached) " >&6
4139 else
4140 ac_check_lib_save_LIBS=$LIBS
4141 LIBS="-lm $LIBS"
4142 cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h. */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4149 /* Override any GCC internal prototype to avoid an error.
4150 Use char because int might match the return type of a GCC
4151 builtin and then its argument prototype would still apply. */
4152 #ifdef __cplusplus
4153 extern "C"
4154 #endif
4155 char sin ();
4157 main ()
4159 return sin ();
4161 return 0;
4163 _ACEOF
4164 rm -f conftest.$ac_objext conftest$ac_exeext
4165 if { (ac_try="$ac_link"
4166 case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4169 esac
4170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4171 $as_echo "$ac_try_echo") >&5
4172 (eval "$ac_link") 2>conftest.er1
4173 ac_status=$?
4174 grep -v '^ *+' conftest.er1 >conftest.err
4175 rm -f conftest.er1
4176 cat conftest.err >&5
4177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } && {
4179 test -z "$ac_c_werror_flag" ||
4180 test ! -s conftest.err
4181 } && test -s conftest$ac_exeext && {
4182 test "$cross_compiling" = yes ||
4183 $as_test_x conftest$ac_exeext
4184 }; then
4185 ac_cv_lib_m_sin=yes
4186 else
4187 $as_echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 ac_cv_lib_m_sin=no
4193 rm -rf conftest.dSYM
4194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4195 conftest$ac_exeext conftest.$ac_ext
4196 LIBS=$ac_check_lib_save_LIBS
4198 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4199 $as_echo "$ac_cv_lib_m_sin" >&6; }
4200 if test "x$ac_cv_lib_m_sin" = x""yes; then
4201 cat >>confdefs.h <<_ACEOF
4202 #define HAVE_LIBM 1
4203 _ACEOF
4205 LIBS="-lm $LIBS"
4207 else
4208 echo "Error: Math library not found.";
4209 exit;
4214 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4215 $as_echo_n "checking for deflate in -lz... " >&6; }
4216 if test "${ac_cv_lib_z_deflate+set}" = set; then
4217 $as_echo_n "(cached) " >&6
4218 else
4219 ac_check_lib_save_LIBS=$LIBS
4220 LIBS="-lz $LIBS"
4221 cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h. */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4228 /* Override any GCC internal prototype to avoid an error.
4229 Use char because int might match the return type of a GCC
4230 builtin and then its argument prototype would still apply. */
4231 #ifdef __cplusplus
4232 extern "C"
4233 #endif
4234 char deflate ();
4236 main ()
4238 return deflate ();
4240 return 0;
4242 _ACEOF
4243 rm -f conftest.$ac_objext conftest$ac_exeext
4244 if { (ac_try="$ac_link"
4245 case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4250 $as_echo "$ac_try_echo") >&5
4251 (eval "$ac_link") 2>conftest.er1
4252 ac_status=$?
4253 grep -v '^ *+' conftest.er1 >conftest.err
4254 rm -f conftest.er1
4255 cat conftest.err >&5
4256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } && {
4258 test -z "$ac_c_werror_flag" ||
4259 test ! -s conftest.err
4260 } && test -s conftest$ac_exeext && {
4261 test "$cross_compiling" = yes ||
4262 $as_test_x conftest$ac_exeext
4263 }; then
4264 ac_cv_lib_z_deflate=yes
4265 else
4266 $as_echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4269 ac_cv_lib_z_deflate=no
4272 rm -rf conftest.dSYM
4273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4274 conftest$ac_exeext conftest.$ac_ext
4275 LIBS=$ac_check_lib_save_LIBS
4277 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4278 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4279 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4280 cat >>confdefs.h <<_ACEOF
4281 #define HAVE_LIBZ 1
4282 _ACEOF
4284 LIBS="-lz $LIBS"
4286 else
4287 ZLIBMISSING=true
4291 if test "x$ZLIBMISSING" = "xtrue";then
4292 echo
4293 echo "ERROR:"
4294 echo "You need zlib to compile swftools"
4295 echo
4296 exit
4300 { $as_echo "$as_me:$LINENO: checking for PDF_open_file in -lpdf" >&5
4301 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4302 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then
4303 $as_echo_n "(cached) " >&6
4304 else
4305 ac_check_lib_save_LIBS=$LIBS
4306 LIBS="-lpdf $LIBS"
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4314 /* Override any GCC internal prototype to avoid an error.
4315 Use char because int might match the return type of a GCC
4316 builtin and then its argument prototype would still apply. */
4317 #ifdef __cplusplus
4318 extern "C"
4319 #endif
4320 char PDF_open_file ();
4322 main ()
4324 return PDF_open_file ();
4326 return 0;
4328 _ACEOF
4329 rm -f conftest.$ac_objext conftest$ac_exeext
4330 if { (ac_try="$ac_link"
4331 case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4336 $as_echo "$ac_try_echo") >&5
4337 (eval "$ac_link") 2>conftest.er1
4338 ac_status=$?
4339 grep -v '^ *+' conftest.er1 >conftest.err
4340 rm -f conftest.er1
4341 cat conftest.err >&5
4342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && {
4344 test -z "$ac_c_werror_flag" ||
4345 test ! -s conftest.err
4346 } && test -s conftest$ac_exeext && {
4347 test "$cross_compiling" = yes ||
4348 $as_test_x conftest$ac_exeext
4349 }; then
4350 ac_cv_lib_pdf_PDF_open_file=yes
4351 else
4352 $as_echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4355 ac_cv_lib_pdf_PDF_open_file=no
4358 rm -rf conftest.dSYM
4359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4360 conftest$ac_exeext conftest.$ac_ext
4361 LIBS=$ac_check_lib_save_LIBS
4363 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4364 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4365 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then
4366 cat >>confdefs.h <<_ACEOF
4367 #define HAVE_LIBPDF 1
4368 _ACEOF
4370 LIBS="-lpdf $LIBS"
4372 else
4373 PDFLIBMISSING=true
4377 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4378 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4379 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4380 $as_echo_n "(cached) " >&6
4381 else
4382 ac_check_lib_save_LIBS=$LIBS
4383 LIBS="-ljpeg $LIBS"
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h. */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4391 /* Override any GCC internal prototype to avoid an error.
4392 Use char because int might match the return type of a GCC
4393 builtin and then its argument prototype would still apply. */
4394 #ifdef __cplusplus
4395 extern "C"
4396 #endif
4397 char jpeg_write_raw_data ();
4399 main ()
4401 return jpeg_write_raw_data ();
4403 return 0;
4405 _ACEOF
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (ac_try="$ac_link"
4408 case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4411 esac
4412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4413 $as_echo "$ac_try_echo") >&5
4414 (eval "$ac_link") 2>conftest.er1
4415 ac_status=$?
4416 grep -v '^ *+' conftest.er1 >conftest.err
4417 rm -f conftest.er1
4418 cat conftest.err >&5
4419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } && {
4421 test -z "$ac_c_werror_flag" ||
4422 test ! -s conftest.err
4423 } && test -s conftest$ac_exeext && {
4424 test "$cross_compiling" = yes ||
4425 $as_test_x conftest$ac_exeext
4426 }; then
4427 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4428 else
4429 $as_echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4435 rm -rf conftest.dSYM
4436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4437 conftest$ac_exeext conftest.$ac_ext
4438 LIBS=$ac_check_lib_save_LIBS
4440 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4441 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4442 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
4443 cat >>confdefs.h <<_ACEOF
4444 #define HAVE_LIBJPEG 1
4445 _ACEOF
4447 LIBS="-ljpeg $LIBS"
4449 else
4450 JPEGLIBMISSING=true
4454 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4455 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4456 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4457 $as_echo_n "(cached) " >&6
4458 else
4459 ac_check_lib_save_LIBS=$LIBS
4460 LIBS="-lungif $LIBS"
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h. */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4468 /* Override any GCC internal prototype to avoid an error.
4469 Use char because int might match the return type of a GCC
4470 builtin and then its argument prototype would still apply. */
4471 #ifdef __cplusplus
4472 extern "C"
4473 #endif
4474 char DGifOpen ();
4476 main ()
4478 return DGifOpen ();
4480 return 0;
4482 _ACEOF
4483 rm -f conftest.$ac_objext conftest$ac_exeext
4484 if { (ac_try="$ac_link"
4485 case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4490 $as_echo "$ac_try_echo") >&5
4491 (eval "$ac_link") 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } && {
4498 test -z "$ac_c_werror_flag" ||
4499 test ! -s conftest.err
4500 } && test -s conftest$ac_exeext && {
4501 test "$cross_compiling" = yes ||
4502 $as_test_x conftest$ac_exeext
4503 }; then
4504 ac_cv_lib_ungif_DGifOpen=yes
4505 else
4506 $as_echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 ac_cv_lib_ungif_DGifOpen=no
4512 rm -rf conftest.dSYM
4513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4514 conftest$ac_exeext conftest.$ac_ext
4515 LIBS=$ac_check_lib_save_LIBS
4517 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4518 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4519 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then
4520 cat >>confdefs.h <<_ACEOF
4521 #define HAVE_LIBUNGIF 1
4522 _ACEOF
4524 LIBS="-lungif $LIBS"
4526 else
4527 UNGIFMISSING=true
4530 if test "$UNGIFMISSING";then
4531 UNGIFMISSING=
4533 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4534 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4535 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4536 $as_echo_n "(cached) " >&6
4537 else
4538 ac_check_lib_save_LIBS=$LIBS
4539 LIBS="-lgif $LIBS"
4540 cat >conftest.$ac_ext <<_ACEOF
4541 /* confdefs.h. */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4547 /* Override any GCC internal prototype to avoid an error.
4548 Use char because int might match the return type of a GCC
4549 builtin and then its argument prototype would still apply. */
4550 #ifdef __cplusplus
4551 extern "C"
4552 #endif
4553 char DGifOpen ();
4555 main ()
4557 return DGifOpen ();
4559 return 0;
4561 _ACEOF
4562 rm -f conftest.$ac_objext conftest$ac_exeext
4563 if { (ac_try="$ac_link"
4564 case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4569 $as_echo "$ac_try_echo") >&5
4570 (eval "$ac_link") 2>conftest.er1
4571 ac_status=$?
4572 grep -v '^ *+' conftest.er1 >conftest.err
4573 rm -f conftest.er1
4574 cat conftest.err >&5
4575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } && {
4577 test -z "$ac_c_werror_flag" ||
4578 test ! -s conftest.err
4579 } && test -s conftest$ac_exeext && {
4580 test "$cross_compiling" = yes ||
4581 $as_test_x conftest$ac_exeext
4582 }; then
4583 ac_cv_lib_gif_DGifOpen=yes
4584 else
4585 $as_echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 ac_cv_lib_gif_DGifOpen=no
4591 rm -rf conftest.dSYM
4592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4593 conftest$ac_exeext conftest.$ac_ext
4594 LIBS=$ac_check_lib_save_LIBS
4596 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4597 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4598 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then
4599 cat >>confdefs.h <<_ACEOF
4600 #define HAVE_LIBGIF 1
4601 _ACEOF
4603 LIBS="-lgif $LIBS"
4605 else
4606 UNGIFMISSING=true
4611 { $as_echo "$as_me:$LINENO: checking for zzip_dir_fdopen in -lzzip" >&5
4612 $as_echo_n "checking for zzip_dir_fdopen in -lzzip... " >&6; }
4613 if test "${ac_cv_lib_zzip_zzip_dir_fdopen+set}" = set; then
4614 $as_echo_n "(cached) " >&6
4615 else
4616 ac_check_lib_save_LIBS=$LIBS
4617 LIBS="-lzzip $LIBS"
4618 cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h. */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4625 /* Override any GCC internal prototype to avoid an error.
4626 Use char because int might match the return type of a GCC
4627 builtin and then its argument prototype would still apply. */
4628 #ifdef __cplusplus
4629 extern "C"
4630 #endif
4631 char zzip_dir_fdopen ();
4633 main ()
4635 return zzip_dir_fdopen ();
4637 return 0;
4639 _ACEOF
4640 rm -f conftest.$ac_objext conftest$ac_exeext
4641 if { (ac_try="$ac_link"
4642 case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4647 $as_echo "$ac_try_echo") >&5
4648 (eval "$ac_link") 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && {
4655 test -z "$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4657 } && test -s conftest$ac_exeext && {
4658 test "$cross_compiling" = yes ||
4659 $as_test_x conftest$ac_exeext
4660 }; then
4661 ac_cv_lib_zzip_zzip_dir_fdopen=yes
4662 else
4663 $as_echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 ac_cv_lib_zzip_zzip_dir_fdopen=no
4669 rm -rf conftest.dSYM
4670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4671 conftest$ac_exeext conftest.$ac_ext
4672 LIBS=$ac_check_lib_save_LIBS
4674 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_zzip_zzip_dir_fdopen" >&5
4675 $as_echo "$ac_cv_lib_zzip_zzip_dir_fdopen" >&6; }
4676 if test "x$ac_cv_lib_zzip_zzip_dir_fdopen" = x""yes; then
4677 cat >>confdefs.h <<_ACEOF
4678 #define HAVE_LIBZZIP 1
4679 _ACEOF
4681 LIBS="-lzzip $LIBS"
4683 else
4684 ZZIPMISSING=true
4689 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4690 $as_echo_n "checking for byte order... " >&6; }
4691 if test "$cross_compiling" = yes; then
4692 CROSSCOMPILE=1
4693 else
4694 cat >conftest.$ac_ext <<_ACEOF
4695 /* confdefs.h. */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4701 int main (int argc, char *argv[])
4703 int i = 1;
4704 return *(char*)&i;
4707 _ACEOF
4708 rm -f conftest$ac_exeext
4709 if { (ac_try="$ac_link"
4710 case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713 esac
4714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4715 $as_echo "$ac_try_echo") >&5
4716 (eval "$ac_link") 2>&5
4717 ac_status=$?
4718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4720 { (case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723 esac
4724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4725 $as_echo "$ac_try_echo") >&5
4726 (eval "$ac_try") 2>&5
4727 ac_status=$?
4728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 BIGENDIAN=1
4731 else
4732 $as_echo "$as_me: program exited with status $ac_status" >&5
4733 $as_echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4736 ( exit $ac_status )
4737 LITTLEENDIAN=1
4739 rm -rf conftest.dSYM
4740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4744 export CROSSCOMPILE
4746 if test "x${CROSSCOMPILE}" = "x1"; then
4747 { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4748 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4749 { $as_echo "$as_me:$LINENO: checking target system type" >&5
4750 $as_echo_n "checking target system type... " >&6; }
4751 if test "${ac_cv_target+set}" = set; then
4752 $as_echo_n "(cached) " >&6
4753 else
4754 if test "x$target_alias" = x; then
4755 ac_cv_target=$ac_cv_host
4756 else
4757 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4758 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4759 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4760 { (exit 1); exit 1; }; }
4764 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4765 $as_echo "$ac_cv_target" >&6; }
4766 case $ac_cv_target in
4767 *-*-*) ;;
4768 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4769 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4770 { (exit 1); exit 1; }; };;
4771 esac
4772 target=$ac_cv_target
4773 ac_save_IFS=$IFS; IFS='-'
4774 set x $ac_cv_target
4775 shift
4776 target_cpu=$1
4777 target_vendor=$2
4778 shift; shift
4779 # Remember, the first character of IFS is used to create $*,
4780 # except with old shells:
4781 target_os=$*
4782 IFS=$ac_save_IFS
4783 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4786 # The aliases save the names the user supplied, while $host etc.
4787 # will get canonicalized.
4788 test -n "$target_alias" &&
4789 test "$program_prefix$program_suffix$program_transform_name" = \
4790 NONENONEs,x,x, &&
4791 program_prefix=${target_alias}-
4792 { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4793 $as_echo_n "checking for byte order, try 2... " >&6; }
4794 case "${target}" in
4795 *86* | *-pc-* )
4796 LITTLEENDIAN=1
4798 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4799 BIGENDIAN=1
4801 esac
4804 export LITTLEENDIAN
4805 if test "x${LITTLEENDIAN}" = "x1"; then
4806 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4807 $as_echo "little endian" >&6; }
4808 BYTEORDERCHECKOK=1
4810 export BIGENDIAN
4811 if test "x${BIGENDIAN}" = "x1"; then
4812 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4813 $as_echo "big endian" >&6; }
4814 BYTEORDERCHECKOK=1
4815 WORDS_BIGENDIAN=1
4816 export WORDS_BIGENDIAN
4818 cat >>confdefs.h <<\_ACEOF
4819 #define WORDS_BIGENDIAN 1
4820 _ACEOF
4823 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4824 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4825 $as_echo "unknown" >&6; }
4826 echo Byte order could not determined.
4827 exit 1
4832 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4833 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4834 if test "$cross_compiling" = yes; then
4835 CROSSCOMPILE=1
4836 else
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 #include "stdlib.h"
4845 int main (int argc, char*argv[])
4847 return system("test `touch config.tmp2`");
4850 _ACEOF
4851 rm -f conftest$ac_exeext
4852 if { (ac_try="$ac_link"
4853 case "(($ac_try" in
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4856 esac
4857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4858 $as_echo "$ac_try_echo") >&5
4859 (eval "$ac_link") 2>&5
4860 ac_status=$?
4861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4863 { (case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866 esac
4867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4868 $as_echo "$ac_try_echo") >&5
4869 (eval "$ac_try") 2>&5
4870 ac_status=$?
4871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; }; then
4873 OK=OK
4874 else
4875 $as_echo "$as_me: program exited with status $ac_status" >&5
4876 $as_echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4880 rm -rf conftest.dSYM
4881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4886 if test "x${OK}" = "xOK";then
4887 test -f config.tmp2 || OK=
4890 if test "x${CROSSCOMPILE}" = "x1";then
4891 OK=no;
4893 if test "x${OK}" = "xOK";then
4894 rm -f config.tmp2
4895 { $as_echo "$as_me:$LINENO: result: yes" >&5
4896 $as_echo "yes" >&6; }
4897 SYSTEM_BACKTICKS=1
4898 export SYSTEM_BACKTICKS
4900 cat >>confdefs.h <<\_ACEOF
4901 #define SYSTEM_BACKTICKS 1
4902 _ACEOF
4904 else
4905 { $as_echo "$as_me:$LINENO: result: no" >&5
4906 $as_echo "no" >&6; }
4911 test "$program_prefix" != NONE &&
4912 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4913 # Use a double $ so make ignores it.
4914 test "$program_suffix" != NONE &&
4915 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4916 # Double any \ or $.
4917 # By default was `s,x,x', remove it if useless.
4918 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4919 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4922 ac_config_headers="$ac_config_headers config.h"
4929 ac_header_dirent=no
4930 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4931 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4932 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4933 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4935 $as_echo_n "(cached) " >&6
4936 else
4937 cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h. */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4943 #include <sys/types.h>
4944 #include <$ac_hdr>
4947 main ()
4949 if ((DIR *) 0)
4950 return 0;
4952 return 0;
4954 _ACEOF
4955 rm -f conftest.$ac_objext
4956 if { (ac_try="$ac_compile"
4957 case "(($ac_try" in
4958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959 *) ac_try_echo=$ac_try;;
4960 esac
4961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4962 $as_echo "$ac_try_echo") >&5
4963 (eval "$ac_compile") 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } && {
4970 test -z "$ac_c_werror_flag" ||
4971 test ! -s conftest.err
4972 } && test -s conftest.$ac_objext; then
4973 eval "$as_ac_Header=yes"
4974 else
4975 $as_echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 eval "$as_ac_Header=no"
4981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 ac_res=`eval 'as_val=${'$as_ac_Header'}
4984 $as_echo "$as_val"'`
4985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4986 $as_echo "$ac_res" >&6; }
4987 as_val=`eval 'as_val=${'$as_ac_Header'}
4988 $as_echo "$as_val"'`
4989 if test "x$as_val" = x""yes; then
4990 cat >>confdefs.h <<_ACEOF
4991 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4992 _ACEOF
4994 ac_header_dirent=$ac_hdr; break
4997 done
4998 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4999 if test $ac_header_dirent = dirent.h; then
5000 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5001 $as_echo_n "checking for library containing opendir... " >&6; }
5002 if test "${ac_cv_search_opendir+set}" = set; then
5003 $as_echo_n "(cached) " >&6
5004 else
5005 ac_func_search_save_LIBS=$LIBS
5006 cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h. */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5013 /* Override any GCC internal prototype to avoid an error.
5014 Use char because int might match the return type of a GCC
5015 builtin and then its argument prototype would still apply. */
5016 #ifdef __cplusplus
5017 extern "C"
5018 #endif
5019 char opendir ();
5021 main ()
5023 return opendir ();
5025 return 0;
5027 _ACEOF
5028 for ac_lib in '' dir; do
5029 if test -z "$ac_lib"; then
5030 ac_res="none required"
5031 else
5032 ac_res=-l$ac_lib
5033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5035 rm -f conftest.$ac_objext conftest$ac_exeext
5036 if { (ac_try="$ac_link"
5037 case "(($ac_try" in
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5040 esac
5041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5042 $as_echo "$ac_try_echo") >&5
5043 (eval "$ac_link") 2>conftest.er1
5044 ac_status=$?
5045 grep -v '^ *+' conftest.er1 >conftest.err
5046 rm -f conftest.er1
5047 cat conftest.err >&5
5048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } && {
5050 test -z "$ac_c_werror_flag" ||
5051 test ! -s conftest.err
5052 } && test -s conftest$ac_exeext && {
5053 test "$cross_compiling" = yes ||
5054 $as_test_x conftest$ac_exeext
5055 }; then
5056 ac_cv_search_opendir=$ac_res
5057 else
5058 $as_echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5064 rm -rf conftest.dSYM
5065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5066 conftest$ac_exeext
5067 if test "${ac_cv_search_opendir+set}" = set; then
5068 break
5070 done
5071 if test "${ac_cv_search_opendir+set}" = set; then
5073 else
5074 ac_cv_search_opendir=no
5076 rm conftest.$ac_ext
5077 LIBS=$ac_func_search_save_LIBS
5079 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5080 $as_echo "$ac_cv_search_opendir" >&6; }
5081 ac_res=$ac_cv_search_opendir
5082 if test "$ac_res" != no; then
5083 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5087 else
5088 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5089 $as_echo_n "checking for library containing opendir... " >&6; }
5090 if test "${ac_cv_search_opendir+set}" = set; then
5091 $as_echo_n "(cached) " >&6
5092 else
5093 ac_func_search_save_LIBS=$LIBS
5094 cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h. */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5101 /* Override any GCC internal prototype to avoid an error.
5102 Use char because int might match the return type of a GCC
5103 builtin and then its argument prototype would still apply. */
5104 #ifdef __cplusplus
5105 extern "C"
5106 #endif
5107 char opendir ();
5109 main ()
5111 return opendir ();
5113 return 0;
5115 _ACEOF
5116 for ac_lib in '' x; do
5117 if test -z "$ac_lib"; then
5118 ac_res="none required"
5119 else
5120 ac_res=-l$ac_lib
5121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5123 rm -f conftest.$ac_objext conftest$ac_exeext
5124 if { (ac_try="$ac_link"
5125 case "(($ac_try" in
5126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127 *) ac_try_echo=$ac_try;;
5128 esac
5129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5130 $as_echo "$ac_try_echo") >&5
5131 (eval "$ac_link") 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } && {
5138 test -z "$ac_c_werror_flag" ||
5139 test ! -s conftest.err
5140 } && test -s conftest$ac_exeext && {
5141 test "$cross_compiling" = yes ||
5142 $as_test_x conftest$ac_exeext
5143 }; then
5144 ac_cv_search_opendir=$ac_res
5145 else
5146 $as_echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5152 rm -rf conftest.dSYM
5153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5154 conftest$ac_exeext
5155 if test "${ac_cv_search_opendir+set}" = set; then
5156 break
5158 done
5159 if test "${ac_cv_search_opendir+set}" = set; then
5161 else
5162 ac_cv_search_opendir=no
5164 rm conftest.$ac_ext
5165 LIBS=$ac_func_search_save_LIBS
5167 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5168 $as_echo "$ac_cv_search_opendir" >&6; }
5169 ac_res=$ac_cv_search_opendir
5170 if test "$ac_res" != no; then
5171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5178 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5179 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5180 if test "${ac_cv_path_GREP+set}" = set; then
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if test -z "$GREP"; then
5184 ac_path_GREP_found=false
5185 # Loop through the user's path and test for each of PROGNAME-LIST
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_prog in grep ggrep; do
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5194 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5195 # Check for GNU ac_path_GREP and select it if it is found.
5196 # Check for GNU $ac_path_GREP
5197 case `"$ac_path_GREP" --version 2>&1` in
5198 *GNU*)
5199 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5201 ac_count=0
5202 $as_echo_n 0123456789 >"conftest.in"
5203 while :
5205 cat "conftest.in" "conftest.in" >"conftest.tmp"
5206 mv "conftest.tmp" "conftest.in"
5207 cp "conftest.in" "conftest.nl"
5208 $as_echo 'GREP' >> "conftest.nl"
5209 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5211 ac_count=`expr $ac_count + 1`
5212 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5213 # Best one so far, save it but keep looking for a better one
5214 ac_cv_path_GREP="$ac_path_GREP"
5215 ac_path_GREP_max=$ac_count
5217 # 10*(2^10) chars as input seems more than enough
5218 test $ac_count -gt 10 && break
5219 done
5220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5221 esac
5223 $ac_path_GREP_found && break 3
5224 done
5225 done
5226 done
5227 IFS=$as_save_IFS
5228 if test -z "$ac_cv_path_GREP"; then
5229 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5230 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5231 { (exit 1); exit 1; }; }
5233 else
5234 ac_cv_path_GREP=$GREP
5238 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5239 $as_echo "$ac_cv_path_GREP" >&6; }
5240 GREP="$ac_cv_path_GREP"
5243 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5244 $as_echo_n "checking for egrep... " >&6; }
5245 if test "${ac_cv_path_EGREP+set}" = set; then
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5249 then ac_cv_path_EGREP="$GREP -E"
5250 else
5251 if test -z "$EGREP"; then
5252 ac_path_EGREP_found=false
5253 # Loop through the user's path and test for each of PROGNAME-LIST
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_prog in egrep; do
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5262 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5263 # Check for GNU ac_path_EGREP and select it if it is found.
5264 # Check for GNU $ac_path_EGREP
5265 case `"$ac_path_EGREP" --version 2>&1` in
5266 *GNU*)
5267 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5269 ac_count=0
5270 $as_echo_n 0123456789 >"conftest.in"
5271 while :
5273 cat "conftest.in" "conftest.in" >"conftest.tmp"
5274 mv "conftest.tmp" "conftest.in"
5275 cp "conftest.in" "conftest.nl"
5276 $as_echo 'EGREP' >> "conftest.nl"
5277 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5279 ac_count=`expr $ac_count + 1`
5280 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5281 # Best one so far, save it but keep looking for a better one
5282 ac_cv_path_EGREP="$ac_path_EGREP"
5283 ac_path_EGREP_max=$ac_count
5285 # 10*(2^10) chars as input seems more than enough
5286 test $ac_count -gt 10 && break
5287 done
5288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5289 esac
5291 $ac_path_EGREP_found && break 3
5292 done
5293 done
5294 done
5295 IFS=$as_save_IFS
5296 if test -z "$ac_cv_path_EGREP"; then
5297 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5298 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5299 { (exit 1); exit 1; }; }
5301 else
5302 ac_cv_path_EGREP=$EGREP
5307 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5308 $as_echo "$ac_cv_path_EGREP" >&6; }
5309 EGREP="$ac_cv_path_EGREP"
5312 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5313 $as_echo_n "checking for ANSI C header files... " >&6; }
5314 if test "${ac_cv_header_stdc+set}" = set; then
5315 $as_echo_n "(cached) " >&6
5316 else
5317 cat >conftest.$ac_ext <<_ACEOF
5318 /* confdefs.h. */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5323 #include <stdlib.h>
5324 #include <stdarg.h>
5325 #include <string.h>
5326 #include <float.h>
5329 main ()
5333 return 0;
5335 _ACEOF
5336 rm -f conftest.$ac_objext
5337 if { (ac_try="$ac_compile"
5338 case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341 esac
5342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5343 $as_echo "$ac_try_echo") >&5
5344 (eval "$ac_compile") 2>conftest.er1
5345 ac_status=$?
5346 grep -v '^ *+' conftest.er1 >conftest.err
5347 rm -f conftest.er1
5348 cat conftest.err >&5
5349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } && {
5351 test -z "$ac_c_werror_flag" ||
5352 test ! -s conftest.err
5353 } && test -s conftest.$ac_objext; then
5354 ac_cv_header_stdc=yes
5355 else
5356 $as_echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 ac_cv_header_stdc=no
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 if test $ac_cv_header_stdc = yes; then
5365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5366 cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h. */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 #include <string.h>
5374 _ACEOF
5375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5376 $EGREP "memchr" >/dev/null 2>&1; then
5378 else
5379 ac_cv_header_stdc=no
5381 rm -f conftest*
5385 if test $ac_cv_header_stdc = yes; then
5386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5387 cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h. */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5393 #include <stdlib.h>
5395 _ACEOF
5396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5397 $EGREP "free" >/dev/null 2>&1; then
5399 else
5400 ac_cv_header_stdc=no
5402 rm -f conftest*
5406 if test $ac_cv_header_stdc = yes; then
5407 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5408 if test "$cross_compiling" = yes; then
5410 else
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h. */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 #include <ctype.h>
5418 #include <stdlib.h>
5419 #if ((' ' & 0x0FF) == 0x020)
5420 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5421 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5422 #else
5423 # define ISLOWER(c) \
5424 (('a' <= (c) && (c) <= 'i') \
5425 || ('j' <= (c) && (c) <= 'r') \
5426 || ('s' <= (c) && (c) <= 'z'))
5427 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5428 #endif
5430 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5432 main ()
5434 int i;
5435 for (i = 0; i < 256; i++)
5436 if (XOR (islower (i), ISLOWER (i))
5437 || toupper (i) != TOUPPER (i))
5438 return 2;
5439 return 0;
5441 _ACEOF
5442 rm -f conftest$ac_exeext
5443 if { (ac_try="$ac_link"
5444 case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447 esac
5448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5449 $as_echo "$ac_try_echo") >&5
5450 (eval "$ac_link") 2>&5
5451 ac_status=$?
5452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5454 { (case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5457 esac
5458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5459 $as_echo "$ac_try_echo") >&5
5460 (eval "$ac_try") 2>&5
5461 ac_status=$?
5462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; }; then
5465 else
5466 $as_echo "$as_me: program exited with status $ac_status" >&5
5467 $as_echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5470 ( exit $ac_status )
5471 ac_cv_header_stdc=no
5473 rm -rf conftest.dSYM
5474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5480 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5481 $as_echo "$ac_cv_header_stdc" >&6; }
5482 if test $ac_cv_header_stdc = yes; then
5484 cat >>confdefs.h <<\_ACEOF
5485 #define STDC_HEADERS 1
5486 _ACEOF
5491 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5501 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5502 inttypes.h stdint.h unistd.h
5504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5505 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5506 $as_echo_n "checking for $ac_header... " >&6; }
5507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5508 $as_echo_n "(cached) " >&6
5509 else
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 $ac_includes_default
5518 #include <$ac_header>
5519 _ACEOF
5520 rm -f conftest.$ac_objext
5521 if { (ac_try="$ac_compile"
5522 case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525 esac
5526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5527 $as_echo "$ac_try_echo") >&5
5528 (eval "$ac_compile") 2>conftest.er1
5529 ac_status=$?
5530 grep -v '^ *+' conftest.er1 >conftest.err
5531 rm -f conftest.er1
5532 cat conftest.err >&5
5533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && {
5535 test -z "$ac_c_werror_flag" ||
5536 test ! -s conftest.err
5537 } && test -s conftest.$ac_objext; then
5538 eval "$as_ac_Header=yes"
5539 else
5540 $as_echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 eval "$as_ac_Header=no"
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 as_val=`eval 'as_val=${'$as_ac_Header'}
5553 $as_echo "$as_val"'`
5554 if test "x$as_val" = x""yes; then
5555 cat >>confdefs.h <<_ACEOF
5556 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5557 _ACEOF
5561 done
5585 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 pdflib.h zzip/lib.h
5587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5589 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5590 $as_echo_n "checking for $ac_header... " >&6; }
5591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5592 $as_echo_n "(cached) " >&6
5594 ac_res=`eval 'as_val=${'$as_ac_Header'}
5595 $as_echo "$as_val"'`
5596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5597 $as_echo "$ac_res" >&6; }
5598 else
5599 # Is the header compilable?
5600 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5601 $as_echo_n "checking $ac_header usability... " >&6; }
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h. */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5608 $ac_includes_default
5609 #include <$ac_header>
5610 _ACEOF
5611 rm -f conftest.$ac_objext
5612 if { (ac_try="$ac_compile"
5613 case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5616 esac
5617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5618 $as_echo "$ac_try_echo") >&5
5619 (eval "$ac_compile") 2>conftest.er1
5620 ac_status=$?
5621 grep -v '^ *+' conftest.er1 >conftest.err
5622 rm -f conftest.er1
5623 cat conftest.err >&5
5624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } && {
5626 test -z "$ac_c_werror_flag" ||
5627 test ! -s conftest.err
5628 } && test -s conftest.$ac_objext; then
5629 ac_header_compiler=yes
5630 else
5631 $as_echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5634 ac_header_compiler=no
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5639 $as_echo "$ac_header_compiler" >&6; }
5641 # Is the header present?
5642 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5643 $as_echo_n "checking $ac_header presence... " >&6; }
5644 cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h. */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 #include <$ac_header>
5651 _ACEOF
5652 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
5666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5668 }; then
5669 ac_header_preproc=yes
5670 else
5671 $as_echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 ac_header_preproc=no
5677 rm -f conftest.err conftest.$ac_ext
5678 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5679 $as_echo "$ac_header_preproc" >&6; }
5681 # So? What about this header?
5682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5683 yes:no: )
5684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5685 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5687 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5688 ac_header_preproc=yes
5690 no:yes:* )
5691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5692 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5694 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5696 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5698 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5700 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5702 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5705 esac
5706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5707 $as_echo_n "checking for $ac_header... " >&6; }
5708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5709 $as_echo_n "(cached) " >&6
5710 else
5711 eval "$as_ac_Header=\$ac_header_preproc"
5713 ac_res=`eval 'as_val=${'$as_ac_Header'}
5714 $as_echo "$as_val"'`
5715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5716 $as_echo "$ac_res" >&6; }
5719 as_val=`eval 'as_val=${'$as_ac_Header'}
5720 $as_echo "$as_val"'`
5721 if test "x$as_val" = x""yes; then
5722 cat >>confdefs.h <<_ACEOF
5723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5724 _ACEOF
5728 done
5732 cat >>confdefs.h <<_ACEOF
5733 #define PACKAGE "$PACKAGE"
5734 _ACEOF
5737 cat >>confdefs.h <<_ACEOF
5738 #define VERSION "$VERSION"
5739 _ACEOF
5747 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5748 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5749 if test "${ac_cv_c_const+set}" = set; then
5750 $as_echo_n "(cached) " >&6
5751 else
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h. */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5760 main ()
5762 /* FIXME: Include the comments suggested by Paul. */
5763 #ifndef __cplusplus
5764 /* Ultrix mips cc rejects this. */
5765 typedef int charset[2];
5766 const charset cs;
5767 /* SunOS 4.1.1 cc rejects this. */
5768 char const *const *pcpcc;
5769 char **ppc;
5770 /* NEC SVR4.0.2 mips cc rejects this. */
5771 struct point {int x, y;};
5772 static struct point const zero = {0,0};
5773 /* AIX XL C 1.02.0.0 rejects this.
5774 It does not let you subtract one const X* pointer from another in
5775 an arm of an if-expression whose if-part is not a constant
5776 expression */
5777 const char *g = "string";
5778 pcpcc = &g + (g ? g-g : 0);
5779 /* HPUX 7.0 cc rejects these. */
5780 ++pcpcc;
5781 ppc = (char**) pcpcc;
5782 pcpcc = (char const *const *) ppc;
5783 { /* SCO 3.2v4 cc rejects this. */
5784 char *t;
5785 char const *s = 0 ? (char *) 0 : (char const *) 0;
5787 *t++ = 0;
5788 if (s) return 0;
5790 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5791 int x[] = {25, 17};
5792 const int *foo = &x[0];
5793 ++foo;
5795 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5796 typedef const int *iptr;
5797 iptr p = 0;
5798 ++p;
5800 { /* AIX XL C 1.02.0.0 rejects this saying
5801 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5802 struct s { int j; const int *ap[3]; };
5803 struct s *b; b->j = 5;
5805 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5806 const int foo = 10;
5807 if (!foo) return 0;
5809 return !cs[0] && !zero.x;
5810 #endif
5813 return 0;
5815 _ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5818 case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821 esac
5822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5823 $as_echo "$ac_try_echo") >&5
5824 (eval "$ac_compile") 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } && {
5831 test -z "$ac_c_werror_flag" ||
5832 test ! -s conftest.err
5833 } && test -s conftest.$ac_objext; then
5834 ac_cv_c_const=yes
5835 else
5836 $as_echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5839 ac_cv_c_const=no
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5845 $as_echo "$ac_cv_c_const" >&6; }
5846 if test $ac_cv_c_const = no; then
5848 cat >>confdefs.h <<\_ACEOF
5849 #define const /**/
5850 _ACEOF
5854 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5855 $as_echo_n "checking for inline... " >&6; }
5856 if test "${ac_cv_c_inline+set}" = set; then
5857 $as_echo_n "(cached) " >&6
5858 else
5859 ac_cv_c_inline=no
5860 for ac_kw in inline __inline__ __inline; do
5861 cat >conftest.$ac_ext <<_ACEOF
5862 /* confdefs.h. */
5863 _ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 #ifndef __cplusplus
5868 typedef int foo_t;
5869 static $ac_kw foo_t static_foo () {return 0; }
5870 $ac_kw foo_t foo () {return 0; }
5871 #endif
5873 _ACEOF
5874 rm -f conftest.$ac_objext
5875 if { (ac_try="$ac_compile"
5876 case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879 esac
5880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5881 $as_echo "$ac_try_echo") >&5
5882 (eval "$ac_compile") 2>conftest.er1
5883 ac_status=$?
5884 grep -v '^ *+' conftest.er1 >conftest.err
5885 rm -f conftest.er1
5886 cat conftest.err >&5
5887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } && {
5889 test -z "$ac_c_werror_flag" ||
5890 test ! -s conftest.err
5891 } && test -s conftest.$ac_objext; then
5892 ac_cv_c_inline=$ac_kw
5893 else
5894 $as_echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 test "$ac_cv_c_inline" != no && break
5902 done
5905 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5906 $as_echo "$ac_cv_c_inline" >&6; }
5909 case $ac_cv_c_inline in
5910 inline | yes) ;;
5912 case $ac_cv_c_inline in
5913 no) ac_val=;;
5914 *) ac_val=$ac_cv_c_inline;;
5915 esac
5916 cat >>confdefs.h <<_ACEOF
5917 #ifndef __cplusplus
5918 #define inline $ac_val
5919 #endif
5920 _ACEOF
5922 esac
5924 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5925 $as_echo_n "checking for off_t... " >&6; }
5926 if test "${ac_cv_type_off_t+set}" = set; then
5927 $as_echo_n "(cached) " >&6
5928 else
5929 ac_cv_type_off_t=no
5930 cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h. */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 $ac_includes_default
5938 main ()
5940 if (sizeof (off_t))
5941 return 0;
5943 return 0;
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5948 case "(($ac_try" in
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5951 esac
5952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5953 $as_echo "$ac_try_echo") >&5
5954 (eval "$ac_compile") 2>conftest.er1
5955 ac_status=$?
5956 grep -v '^ *+' conftest.er1 >conftest.err
5957 rm -f conftest.er1
5958 cat conftest.err >&5
5959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && {
5961 test -z "$ac_c_werror_flag" ||
5962 test ! -s conftest.err
5963 } && test -s conftest.$ac_objext; then
5964 cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h. */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5970 $ac_includes_default
5972 main ()
5974 if (sizeof ((off_t)))
5975 return 0;
5977 return 0;
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (ac_try="$ac_compile"
5982 case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985 esac
5986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5987 $as_echo "$ac_try_echo") >&5
5988 (eval "$ac_compile") 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } && {
5995 test -z "$ac_c_werror_flag" ||
5996 test ! -s conftest.err
5997 } && test -s conftest.$ac_objext; then
5999 else
6000 $as_echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6003 ac_cv_type_off_t=yes
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 else
6008 $as_echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6017 $as_echo "$ac_cv_type_off_t" >&6; }
6018 if test "x$ac_cv_type_off_t" = x""yes; then
6020 else
6022 cat >>confdefs.h <<_ACEOF
6023 #define off_t long int
6024 _ACEOF
6028 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6029 $as_echo_n "checking for size_t... " >&6; }
6030 if test "${ac_cv_type_size_t+set}" = set; then
6031 $as_echo_n "(cached) " >&6
6032 else
6033 ac_cv_type_size_t=no
6034 cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h. */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 $ac_includes_default
6042 main ()
6044 if (sizeof (size_t))
6045 return 0;
6047 return 0;
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6052 case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055 esac
6056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6057 $as_echo "$ac_try_echo") >&5
6058 (eval "$ac_compile") 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && {
6065 test -z "$ac_c_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest.$ac_objext; then
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h. */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 $ac_includes_default
6076 main ()
6078 if (sizeof ((size_t)))
6079 return 0;
6081 return 0;
6083 _ACEOF
6084 rm -f conftest.$ac_objext
6085 if { (ac_try="$ac_compile"
6086 case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089 esac
6090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6091 $as_echo "$ac_try_echo") >&5
6092 (eval "$ac_compile") 2>conftest.er1
6093 ac_status=$?
6094 grep -v '^ *+' conftest.er1 >conftest.err
6095 rm -f conftest.er1
6096 cat conftest.err >&5
6097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } && {
6099 test -z "$ac_c_werror_flag" ||
6100 test ! -s conftest.err
6101 } && test -s conftest.$ac_objext; then
6103 else
6104 $as_echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6107 ac_cv_type_size_t=yes
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 else
6112 $as_echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6121 $as_echo "$ac_cv_type_size_t" >&6; }
6122 if test "x$ac_cv_type_size_t" = x""yes; then
6124 else
6126 cat >>confdefs.h <<_ACEOF
6127 #define size_t unsigned int
6128 _ACEOF
6132 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6133 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6134 if test "${ac_cv_struct_tm+set}" = set; then
6135 $as_echo_n "(cached) " >&6
6136 else
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h. */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 #include <sys/types.h>
6144 #include <time.h>
6147 main ()
6149 struct tm tm;
6150 int *p = &tm.tm_sec;
6151 return !p;
6153 return 0;
6155 _ACEOF
6156 rm -f conftest.$ac_objext
6157 if { (ac_try="$ac_compile"
6158 case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161 esac
6162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6163 $as_echo "$ac_try_echo") >&5
6164 (eval "$ac_compile") 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } && {
6171 test -z "$ac_c_werror_flag" ||
6172 test ! -s conftest.err
6173 } && test -s conftest.$ac_objext; then
6174 ac_cv_struct_tm=time.h
6175 else
6176 $as_echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6179 ac_cv_struct_tm=sys/time.h
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6185 $as_echo "$ac_cv_struct_tm" >&6; }
6186 if test $ac_cv_struct_tm = sys/time.h; then
6188 cat >>confdefs.h <<\_ACEOF
6189 #define TM_IN_SYS_TIME 1
6190 _ACEOF
6194 { $as_echo "$as_me:$LINENO: checking for boolean" >&5
6195 $as_echo_n "checking for boolean... " >&6; }
6196 if test "${ac_cv_type_boolean+set}" = set; then
6197 $as_echo_n "(cached) " >&6
6198 else
6199 ac_cv_type_boolean=no
6200 cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h. */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206 $ac_includes_default
6208 main ()
6210 if (sizeof (boolean))
6211 return 0;
6213 return 0;
6215 _ACEOF
6216 rm -f conftest.$ac_objext
6217 if { (ac_try="$ac_compile"
6218 case "(($ac_try" in
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6221 esac
6222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6223 $as_echo "$ac_try_echo") >&5
6224 (eval "$ac_compile") 2>conftest.er1
6225 ac_status=$?
6226 grep -v '^ *+' conftest.er1 >conftest.err
6227 rm -f conftest.er1
6228 cat conftest.err >&5
6229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } && {
6231 test -z "$ac_c_werror_flag" ||
6232 test ! -s conftest.err
6233 } && test -s conftest.$ac_objext; then
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6242 main ()
6244 if (sizeof ((boolean)))
6245 return 0;
6247 return 0;
6249 _ACEOF
6250 rm -f conftest.$ac_objext
6251 if { (ac_try="$ac_compile"
6252 case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255 esac
6256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6257 $as_echo "$ac_try_echo") >&5
6258 (eval "$ac_compile") 2>conftest.er1
6259 ac_status=$?
6260 grep -v '^ *+' conftest.er1 >conftest.err
6261 rm -f conftest.er1
6262 cat conftest.err >&5
6263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && {
6265 test -z "$ac_c_werror_flag" ||
6266 test ! -s conftest.err
6267 } && test -s conftest.$ac_objext; then
6269 else
6270 $as_echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6273 ac_cv_type_boolean=yes
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 else
6278 $as_echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
6287 $as_echo "$ac_cv_type_boolean" >&6; }
6288 if test "x$ac_cv_type_boolean" = x""yes; then
6290 else
6292 cat >>confdefs.h <<_ACEOF
6293 #define boolean int
6294 _ACEOF
6297 #needed for jpeglib
6313 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6316 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6317 $as_echo_n "checking for $ac_func... " >&6; }
6318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6319 $as_echo_n "(cached) " >&6
6320 else
6321 cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h. */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6329 #define $ac_func innocuous_$ac_func
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char $ac_func (); below.
6333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6334 <limits.h> exists even on freestanding compilers. */
6336 #ifdef __STDC__
6337 # include <limits.h>
6338 #else
6339 # include <assert.h>
6340 #endif
6342 #undef $ac_func
6344 /* Override any GCC internal prototype to avoid an error.
6345 Use char because int might match the return type of a GCC
6346 builtin and then its argument prototype would still apply. */
6347 #ifdef __cplusplus
6348 extern "C"
6349 #endif
6350 char $ac_func ();
6351 /* The GNU C library defines this for functions which it implements
6352 to always fail with ENOSYS. Some functions are actually named
6353 something starting with __ and the normal name is an alias. */
6354 #if defined __stub_$ac_func || defined __stub___$ac_func
6355 choke me
6356 #endif
6359 main ()
6361 return $ac_func ();
6363 return 0;
6365 _ACEOF
6366 rm -f conftest.$ac_objext conftest$ac_exeext
6367 if { (ac_try="$ac_link"
6368 case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371 esac
6372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6373 $as_echo "$ac_try_echo") >&5
6374 (eval "$ac_link") 2>conftest.er1
6375 ac_status=$?
6376 grep -v '^ *+' conftest.er1 >conftest.err
6377 rm -f conftest.er1
6378 cat conftest.err >&5
6379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } && {
6381 test -z "$ac_c_werror_flag" ||
6382 test ! -s conftest.err
6383 } && test -s conftest$ac_exeext && {
6384 test "$cross_compiling" = yes ||
6385 $as_test_x conftest$ac_exeext
6386 }; then
6387 eval "$as_ac_var=yes"
6388 else
6389 $as_echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6392 eval "$as_ac_var=no"
6395 rm -rf conftest.dSYM
6396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6397 conftest$ac_exeext conftest.$ac_ext
6399 ac_res=`eval 'as_val=${'$as_ac_var'}
6400 $as_echo "$as_val"'`
6401 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6402 $as_echo "$ac_res" >&6; }
6403 as_val=`eval 'as_val=${'$as_ac_var'}
6404 $as_echo "$as_val"'`
6405 if test "x$as_val" = x""yes; then
6406 cat >>confdefs.h <<_ACEOF
6407 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6408 _ACEOF
6411 done
6414 # The cast to long int works around a bug in the HP C Compiler
6415 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6416 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6417 # This bug is HP SR number 8606223364.
6418 { $as_echo "$as_me:$LINENO: checking size of signed char" >&5
6419 $as_echo_n "checking size of signed char... " >&6; }
6420 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6421 $as_echo_n "(cached) " >&6
6422 else
6423 if test "$cross_compiling" = yes; then
6424 # Depending upon the size, compute the lo and hi bounds.
6425 cat >conftest.$ac_ext <<_ACEOF
6426 /* confdefs.h. */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 $ac_includes_default
6433 main ()
6435 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 0)];
6436 test_array [0] = 0
6439 return 0;
6441 _ACEOF
6442 rm -f conftest.$ac_objext
6443 if { (ac_try="$ac_compile"
6444 case "(($ac_try" in
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447 esac
6448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6449 $as_echo "$ac_try_echo") >&5
6450 (eval "$ac_compile") 2>conftest.er1
6451 ac_status=$?
6452 grep -v '^ *+' conftest.er1 >conftest.err
6453 rm -f conftest.er1
6454 cat conftest.err >&5
6455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } && {
6457 test -z "$ac_c_werror_flag" ||
6458 test ! -s conftest.err
6459 } && test -s conftest.$ac_objext; then
6460 ac_lo=0 ac_mid=0
6461 while :; do
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 $ac_includes_default
6470 main ()
6472 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6473 test_array [0] = 0
6476 return 0;
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (ac_try="$ac_compile"
6481 case "(($ac_try" in
6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6484 esac
6485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6486 $as_echo "$ac_try_echo") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 ac_hi=$ac_mid; break
6498 else
6499 $as_echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 ac_lo=`expr $ac_mid + 1`
6503 if test $ac_lo -le $ac_mid; then
6504 ac_lo= ac_hi=
6505 break
6507 ac_mid=`expr 2 '*' $ac_mid + 1`
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 done
6512 else
6513 $as_echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6516 cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 $ac_includes_default
6524 main ()
6526 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
6527 test_array [0] = 0
6530 return 0;
6532 _ACEOF
6533 rm -f conftest.$ac_objext
6534 if { (ac_try="$ac_compile"
6535 case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538 esac
6539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6540 $as_echo "$ac_try_echo") >&5
6541 (eval "$ac_compile") 2>conftest.er1
6542 ac_status=$?
6543 grep -v '^ *+' conftest.er1 >conftest.err
6544 rm -f conftest.er1
6545 cat conftest.err >&5
6546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } && {
6548 test -z "$ac_c_werror_flag" ||
6549 test ! -s conftest.err
6550 } && test -s conftest.$ac_objext; then
6551 ac_hi=-1 ac_mid=-1
6552 while :; do
6553 cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h. */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 $ac_includes_default
6561 main ()
6563 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
6564 test_array [0] = 0
6567 return 0;
6569 _ACEOF
6570 rm -f conftest.$ac_objext
6571 if { (ac_try="$ac_compile"
6572 case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575 esac
6576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6577 $as_echo "$ac_try_echo") >&5
6578 (eval "$ac_compile") 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } && {
6585 test -z "$ac_c_werror_flag" ||
6586 test ! -s conftest.err
6587 } && test -s conftest.$ac_objext; then
6588 ac_lo=$ac_mid; break
6589 else
6590 $as_echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6593 ac_hi=`expr '(' $ac_mid ')' - 1`
6594 if test $ac_mid -le $ac_hi; then
6595 ac_lo= ac_hi=
6596 break
6598 ac_mid=`expr 2 '*' $ac_mid`
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 done
6603 else
6604 $as_echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_lo= ac_hi=
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 # Binary search between lo and hi bounds.
6615 while test "x$ac_lo" != "x$ac_hi"; do
6616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6617 cat >conftest.$ac_ext <<_ACEOF
6618 /* confdefs.h. */
6619 _ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6623 $ac_includes_default
6625 main ()
6627 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6628 test_array [0] = 0
6631 return 0;
6633 _ACEOF
6634 rm -f conftest.$ac_objext
6635 if { (ac_try="$ac_compile"
6636 case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6639 esac
6640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6641 $as_echo "$ac_try_echo") >&5
6642 (eval "$ac_compile") 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } && {
6649 test -z "$ac_c_werror_flag" ||
6650 test ! -s conftest.err
6651 } && test -s conftest.$ac_objext; then
6652 ac_hi=$ac_mid
6653 else
6654 $as_echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6657 ac_lo=`expr '(' $ac_mid ')' + 1`
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 done
6662 case $ac_lo in
6663 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6664 '') if test "$ac_cv_type_signed_char" = yes; then
6665 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6667 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6668 See \`config.log' for more details." >&5
6669 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6670 See \`config.log' for more details." >&2;}
6671 { (exit 77); exit 77; }; }; }
6672 else
6673 ac_cv_sizeof_signed_char=0
6674 fi ;;
6675 esac
6676 else
6677 cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h. */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6683 $ac_includes_default
6684 static long int longval () { return (long int) (sizeof (signed char)); }
6685 static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
6686 #include <stdio.h>
6687 #include <stdlib.h>
6689 main ()
6692 FILE *f = fopen ("conftest.val", "w");
6693 if (! f)
6694 return 1;
6695 if (((long int) (sizeof (signed char))) < 0)
6697 long int i = longval ();
6698 if (i != ((long int) (sizeof (signed char))))
6699 return 1;
6700 fprintf (f, "%ld", i);
6702 else
6704 unsigned long int i = ulongval ();
6705 if (i != ((long int) (sizeof (signed char))))
6706 return 1;
6707 fprintf (f, "%lu", i);
6709 /* Do not output a trailing newline, as this causes \r\n confusion
6710 on some platforms. */
6711 return ferror (f) || fclose (f) != 0;
6714 return 0;
6716 _ACEOF
6717 rm -f conftest$ac_exeext
6718 if { (ac_try="$ac_link"
6719 case "(($ac_try" in
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6722 esac
6723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6724 $as_echo "$ac_try_echo") >&5
6725 (eval "$ac_link") 2>&5
6726 ac_status=$?
6727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
6736 ac_status=$?
6737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_cv_sizeof_signed_char=`cat conftest.val`
6740 else
6741 $as_echo "$as_me: program exited with status $ac_status" >&5
6742 $as_echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 ( exit $ac_status )
6746 if test "$ac_cv_type_signed_char" = yes; then
6747 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6749 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6750 See \`config.log' for more details." >&5
6751 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6752 See \`config.log' for more details." >&2;}
6753 { (exit 77); exit 77; }; }; }
6754 else
6755 ac_cv_sizeof_signed_char=0
6758 rm -rf conftest.dSYM
6759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6761 rm -f conftest.val
6763 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6764 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
6768 cat >>confdefs.h <<_ACEOF
6769 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6770 _ACEOF
6773 # The cast to long int works around a bug in the HP C Compiler
6774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6776 # This bug is HP SR number 8606223364.
6777 { $as_echo "$as_me:$LINENO: checking size of signed short" >&5
6778 $as_echo_n "checking size of signed short... " >&6; }
6779 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6780 $as_echo_n "(cached) " >&6
6781 else
6782 if test "$cross_compiling" = yes; then
6783 # Depending upon the size, compute the lo and hi bounds.
6784 cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h. */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 $ac_includes_default
6792 main ()
6794 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
6795 test_array [0] = 0
6798 return 0;
6800 _ACEOF
6801 rm -f conftest.$ac_objext
6802 if { (ac_try="$ac_compile"
6803 case "(($ac_try" in
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6806 esac
6807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6808 $as_echo "$ac_try_echo") >&5
6809 (eval "$ac_compile") 2>conftest.er1
6810 ac_status=$?
6811 grep -v '^ *+' conftest.er1 >conftest.err
6812 rm -f conftest.er1
6813 cat conftest.err >&5
6814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } && {
6816 test -z "$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6818 } && test -s conftest.$ac_objext; then
6819 ac_lo=0 ac_mid=0
6820 while :; do
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h. */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 $ac_includes_default
6829 main ()
6831 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6832 test_array [0] = 0
6835 return 0;
6837 _ACEOF
6838 rm -f conftest.$ac_objext
6839 if { (ac_try="$ac_compile"
6840 case "(($ac_try" in
6841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6842 *) ac_try_echo=$ac_try;;
6843 esac
6844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6845 $as_echo "$ac_try_echo") >&5
6846 (eval "$ac_compile") 2>conftest.er1
6847 ac_status=$?
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
6851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } && {
6853 test -z "$ac_c_werror_flag" ||
6854 test ! -s conftest.err
6855 } && test -s conftest.$ac_objext; then
6856 ac_hi=$ac_mid; break
6857 else
6858 $as_echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6861 ac_lo=`expr $ac_mid + 1`
6862 if test $ac_lo -le $ac_mid; then
6863 ac_lo= ac_hi=
6864 break
6866 ac_mid=`expr 2 '*' $ac_mid + 1`
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870 done
6871 else
6872 $as_echo "$as_me: failed program was:" >&5
6873 sed 's/^/| /' conftest.$ac_ext >&5
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 $ac_includes_default
6883 main ()
6885 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
6886 test_array [0] = 0
6889 return 0;
6891 _ACEOF
6892 rm -f conftest.$ac_objext
6893 if { (ac_try="$ac_compile"
6894 case "(($ac_try" in
6895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6896 *) ac_try_echo=$ac_try;;
6897 esac
6898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6899 $as_echo "$ac_try_echo") >&5
6900 (eval "$ac_compile") 2>conftest.er1
6901 ac_status=$?
6902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
6905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } && {
6907 test -z "$ac_c_werror_flag" ||
6908 test ! -s conftest.err
6909 } && test -s conftest.$ac_objext; then
6910 ac_hi=-1 ac_mid=-1
6911 while :; do
6912 cat >conftest.$ac_ext <<_ACEOF
6913 /* confdefs.h. */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 $ac_includes_default
6920 main ()
6922 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
6923 test_array [0] = 0
6926 return 0;
6928 _ACEOF
6929 rm -f conftest.$ac_objext
6930 if { (ac_try="$ac_compile"
6931 case "(($ac_try" in
6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6934 esac
6935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6936 $as_echo "$ac_try_echo") >&5
6937 (eval "$ac_compile") 2>conftest.er1
6938 ac_status=$?
6939 grep -v '^ *+' conftest.er1 >conftest.err
6940 rm -f conftest.er1
6941 cat conftest.err >&5
6942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } && {
6944 test -z "$ac_c_werror_flag" ||
6945 test ! -s conftest.err
6946 } && test -s conftest.$ac_objext; then
6947 ac_lo=$ac_mid; break
6948 else
6949 $as_echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 ac_hi=`expr '(' $ac_mid ')' - 1`
6953 if test $ac_mid -le $ac_hi; then
6954 ac_lo= ac_hi=
6955 break
6957 ac_mid=`expr 2 '*' $ac_mid`
6960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 done
6962 else
6963 $as_echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 ac_lo= ac_hi=
6969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 # Binary search between lo and hi bounds.
6974 while test "x$ac_lo" != "x$ac_hi"; do
6975 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6976 cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h. */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6982 $ac_includes_default
6984 main ()
6986 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6987 test_array [0] = 0
6990 return 0;
6992 _ACEOF
6993 rm -f conftest.$ac_objext
6994 if { (ac_try="$ac_compile"
6995 case "(($ac_try" in
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6998 esac
6999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7000 $as_echo "$ac_try_echo") >&5
7001 (eval "$ac_compile") 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest.$ac_objext; then
7011 ac_hi=$ac_mid
7012 else
7013 $as_echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 ac_lo=`expr '(' $ac_mid ')' + 1`
7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7020 done
7021 case $ac_lo in
7022 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
7023 '') if test "$ac_cv_type_signed_short" = yes; then
7024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7026 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7027 See \`config.log' for more details." >&5
7028 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7029 See \`config.log' for more details." >&2;}
7030 { (exit 77); exit 77; }; }; }
7031 else
7032 ac_cv_sizeof_signed_short=0
7033 fi ;;
7034 esac
7035 else
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h. */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 $ac_includes_default
7043 static long int longval () { return (long int) (sizeof (signed short)); }
7044 static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
7045 #include <stdio.h>
7046 #include <stdlib.h>
7048 main ()
7051 FILE *f = fopen ("conftest.val", "w");
7052 if (! f)
7053 return 1;
7054 if (((long int) (sizeof (signed short))) < 0)
7056 long int i = longval ();
7057 if (i != ((long int) (sizeof (signed short))))
7058 return 1;
7059 fprintf (f, "%ld", i);
7061 else
7063 unsigned long int i = ulongval ();
7064 if (i != ((long int) (sizeof (signed short))))
7065 return 1;
7066 fprintf (f, "%lu", i);
7068 /* Do not output a trailing newline, as this causes \r\n confusion
7069 on some platforms. */
7070 return ferror (f) || fclose (f) != 0;
7073 return 0;
7075 _ACEOF
7076 rm -f conftest$ac_exeext
7077 if { (ac_try="$ac_link"
7078 case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7081 esac
7082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7083 $as_echo "$ac_try_echo") >&5
7084 (eval "$ac_link") 2>&5
7085 ac_status=$?
7086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
7095 ac_status=$?
7096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_cv_sizeof_signed_short=`cat conftest.val`
7099 else
7100 $as_echo "$as_me: program exited with status $ac_status" >&5
7101 $as_echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7104 ( exit $ac_status )
7105 if test "$ac_cv_type_signed_short" = yes; then
7106 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7108 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7109 See \`config.log' for more details." >&5
7110 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7111 See \`config.log' for more details." >&2;}
7112 { (exit 77); exit 77; }; }; }
7113 else
7114 ac_cv_sizeof_signed_short=0
7117 rm -rf conftest.dSYM
7118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7120 rm -f conftest.val
7122 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
7123 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
7127 cat >>confdefs.h <<_ACEOF
7128 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
7129 _ACEOF
7132 # The cast to long int works around a bug in the HP C Compiler
7133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7135 # This bug is HP SR number 8606223364.
7136 { $as_echo "$as_me:$LINENO: checking size of signed" >&5
7137 $as_echo_n "checking size of signed... " >&6; }
7138 if test "${ac_cv_sizeof_signed+set}" = set; then
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test "$cross_compiling" = yes; then
7142 # Depending upon the size, compute the lo and hi bounds.
7143 cat >conftest.$ac_ext <<_ACEOF
7144 /* confdefs.h. */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7149 $ac_includes_default
7151 main ()
7153 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= 0)];
7154 test_array [0] = 0
7157 return 0;
7159 _ACEOF
7160 rm -f conftest.$ac_objext
7161 if { (ac_try="$ac_compile"
7162 case "(($ac_try" in
7163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7164 *) ac_try_echo=$ac_try;;
7165 esac
7166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7167 $as_echo "$ac_try_echo") >&5
7168 (eval "$ac_compile") 2>conftest.er1
7169 ac_status=$?
7170 grep -v '^ *+' conftest.er1 >conftest.err
7171 rm -f conftest.er1
7172 cat conftest.err >&5
7173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } && {
7175 test -z "$ac_c_werror_flag" ||
7176 test ! -s conftest.err
7177 } && test -s conftest.$ac_objext; then
7178 ac_lo=0 ac_mid=0
7179 while :; do
7180 cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h. */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 $ac_includes_default
7188 main ()
7190 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7191 test_array [0] = 0
7194 return 0;
7196 _ACEOF
7197 rm -f conftest.$ac_objext
7198 if { (ac_try="$ac_compile"
7199 case "(($ac_try" in
7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 *) ac_try_echo=$ac_try;;
7202 esac
7203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7204 $as_echo "$ac_try_echo") >&5
7205 (eval "$ac_compile") 2>conftest.er1
7206 ac_status=$?
7207 grep -v '^ *+' conftest.er1 >conftest.err
7208 rm -f conftest.er1
7209 cat conftest.err >&5
7210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } && {
7212 test -z "$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7214 } && test -s conftest.$ac_objext; then
7215 ac_hi=$ac_mid; break
7216 else
7217 $as_echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7220 ac_lo=`expr $ac_mid + 1`
7221 if test $ac_lo -le $ac_mid; then
7222 ac_lo= ac_hi=
7223 break
7225 ac_mid=`expr 2 '*' $ac_mid + 1`
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 done
7230 else
7231 $as_echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7234 cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h. */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7242 main ()
7244 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) < 0)];
7245 test_array [0] = 0
7248 return 0;
7250 _ACEOF
7251 rm -f conftest.$ac_objext
7252 if { (ac_try="$ac_compile"
7253 case "(($ac_try" in
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7256 esac
7257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7258 $as_echo "$ac_try_echo") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7260 ac_status=$?
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7269 ac_hi=-1 ac_mid=-1
7270 while :; do
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 $ac_includes_default
7279 main ()
7281 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= $ac_mid)];
7282 test_array [0] = 0
7285 return 0;
7287 _ACEOF
7288 rm -f conftest.$ac_objext
7289 if { (ac_try="$ac_compile"
7290 case "(($ac_try" in
7291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7293 esac
7294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7295 $as_echo "$ac_try_echo") >&5
7296 (eval "$ac_compile") 2>conftest.er1
7297 ac_status=$?
7298 grep -v '^ *+' conftest.er1 >conftest.err
7299 rm -f conftest.er1
7300 cat conftest.err >&5
7301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } && {
7303 test -z "$ac_c_werror_flag" ||
7304 test ! -s conftest.err
7305 } && test -s conftest.$ac_objext; then
7306 ac_lo=$ac_mid; break
7307 else
7308 $as_echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7311 ac_hi=`expr '(' $ac_mid ')' - 1`
7312 if test $ac_mid -le $ac_hi; then
7313 ac_lo= ac_hi=
7314 break
7316 ac_mid=`expr 2 '*' $ac_mid`
7319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320 done
7321 else
7322 $as_echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7325 ac_lo= ac_hi=
7328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 # Binary search between lo and hi bounds.
7333 while test "x$ac_lo" != "x$ac_hi"; do
7334 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7335 cat >conftest.$ac_ext <<_ACEOF
7336 /* confdefs.h. */
7337 _ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h. */
7341 $ac_includes_default
7343 main ()
7345 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7346 test_array [0] = 0
7349 return 0;
7351 _ACEOF
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7354 case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357 esac
7358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7359 $as_echo "$ac_try_echo") >&5
7360 (eval "$ac_compile") 2>conftest.er1
7361 ac_status=$?
7362 grep -v '^ *+' conftest.er1 >conftest.err
7363 rm -f conftest.er1
7364 cat conftest.err >&5
7365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && {
7367 test -z "$ac_c_werror_flag" ||
7368 test ! -s conftest.err
7369 } && test -s conftest.$ac_objext; then
7370 ac_hi=$ac_mid
7371 else
7372 $as_echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7375 ac_lo=`expr '(' $ac_mid ')' + 1`
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 done
7380 case $ac_lo in
7381 ?*) ac_cv_sizeof_signed=$ac_lo;;
7382 '') if test "$ac_cv_type_signed" = yes; then
7383 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7385 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7386 See \`config.log' for more details." >&5
7387 $as_echo "$as_me: error: cannot compute sizeof (signed)
7388 See \`config.log' for more details." >&2;}
7389 { (exit 77); exit 77; }; }; }
7390 else
7391 ac_cv_sizeof_signed=0
7392 fi ;;
7393 esac
7394 else
7395 cat >conftest.$ac_ext <<_ACEOF
7396 /* confdefs.h. */
7397 _ACEOF
7398 cat confdefs.h >>conftest.$ac_ext
7399 cat >>conftest.$ac_ext <<_ACEOF
7400 /* end confdefs.h. */
7401 $ac_includes_default
7402 static long int longval () { return (long int) (sizeof (signed)); }
7403 static unsigned long int ulongval () { return (long int) (sizeof (signed)); }
7404 #include <stdio.h>
7405 #include <stdlib.h>
7407 main ()
7410 FILE *f = fopen ("conftest.val", "w");
7411 if (! f)
7412 return 1;
7413 if (((long int) (sizeof (signed))) < 0)
7415 long int i = longval ();
7416 if (i != ((long int) (sizeof (signed))))
7417 return 1;
7418 fprintf (f, "%ld", i);
7420 else
7422 unsigned long int i = ulongval ();
7423 if (i != ((long int) (sizeof (signed))))
7424 return 1;
7425 fprintf (f, "%lu", i);
7427 /* Do not output a trailing newline, as this causes \r\n confusion
7428 on some platforms. */
7429 return ferror (f) || fclose (f) != 0;
7432 return 0;
7434 _ACEOF
7435 rm -f conftest$ac_exeext
7436 if { (ac_try="$ac_link"
7437 case "(($ac_try" in
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7440 esac
7441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7442 $as_echo "$ac_try_echo") >&5
7443 (eval "$ac_link") 2>&5
7444 ac_status=$?
7445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
7454 ac_status=$?
7455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 ac_cv_sizeof_signed=`cat conftest.val`
7458 else
7459 $as_echo "$as_me: program exited with status $ac_status" >&5
7460 $as_echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7463 ( exit $ac_status )
7464 if test "$ac_cv_type_signed" = yes; then
7465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7467 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7468 See \`config.log' for more details." >&5
7469 $as_echo "$as_me: error: cannot compute sizeof (signed)
7470 See \`config.log' for more details." >&2;}
7471 { (exit 77); exit 77; }; }; }
7472 else
7473 ac_cv_sizeof_signed=0
7476 rm -rf conftest.dSYM
7477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7479 rm -f conftest.val
7481 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7482 $as_echo "$ac_cv_sizeof_signed" >&6; }
7486 cat >>confdefs.h <<_ACEOF
7487 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7488 _ACEOF
7491 # The cast to long int works around a bug in the HP C Compiler
7492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7494 # This bug is HP SR number 8606223364.
7495 { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
7496 $as_echo_n "checking size of signed long long... " >&6; }
7497 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7498 $as_echo_n "(cached) " >&6
7499 else
7500 if test "$cross_compiling" = yes; then
7501 # Depending upon the size, compute the lo and hi bounds.
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h. */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 $ac_includes_default
7510 main ()
7512 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
7513 test_array [0] = 0
7516 return 0;
7518 _ACEOF
7519 rm -f conftest.$ac_objext
7520 if { (ac_try="$ac_compile"
7521 case "(($ac_try" in
7522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523 *) ac_try_echo=$ac_try;;
7524 esac
7525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7526 $as_echo "$ac_try_echo") >&5
7527 (eval "$ac_compile") 2>conftest.er1
7528 ac_status=$?
7529 grep -v '^ *+' conftest.er1 >conftest.err
7530 rm -f conftest.er1
7531 cat conftest.err >&5
7532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && {
7534 test -z "$ac_c_werror_flag" ||
7535 test ! -s conftest.err
7536 } && test -s conftest.$ac_objext; then
7537 ac_lo=0 ac_mid=0
7538 while :; do
7539 cat >conftest.$ac_ext <<_ACEOF
7540 /* confdefs.h. */
7541 _ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 $ac_includes_default
7547 main ()
7549 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7550 test_array [0] = 0
7553 return 0;
7555 _ACEOF
7556 rm -f conftest.$ac_objext
7557 if { (ac_try="$ac_compile"
7558 case "(($ac_try" in
7559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560 *) ac_try_echo=$ac_try;;
7561 esac
7562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7563 $as_echo "$ac_try_echo") >&5
7564 (eval "$ac_compile") 2>conftest.er1
7565 ac_status=$?
7566 grep -v '^ *+' conftest.er1 >conftest.err
7567 rm -f conftest.er1
7568 cat conftest.err >&5
7569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } && {
7571 test -z "$ac_c_werror_flag" ||
7572 test ! -s conftest.err
7573 } && test -s conftest.$ac_objext; then
7574 ac_hi=$ac_mid; break
7575 else
7576 $as_echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7579 ac_lo=`expr $ac_mid + 1`
7580 if test $ac_lo -le $ac_mid; then
7581 ac_lo= ac_hi=
7582 break
7584 ac_mid=`expr 2 '*' $ac_mid + 1`
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 done
7589 else
7590 $as_echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 cat >conftest.$ac_ext <<_ACEOF
7594 /* confdefs.h. */
7595 _ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 $ac_includes_default
7601 main ()
7603 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
7604 test_array [0] = 0
7607 return 0;
7609 _ACEOF
7610 rm -f conftest.$ac_objext
7611 if { (ac_try="$ac_compile"
7612 case "(($ac_try" in
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7615 esac
7616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7617 $as_echo "$ac_try_echo") >&5
7618 (eval "$ac_compile") 2>conftest.er1
7619 ac_status=$?
7620 grep -v '^ *+' conftest.er1 >conftest.err
7621 rm -f conftest.er1
7622 cat conftest.err >&5
7623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } && {
7625 test -z "$ac_c_werror_flag" ||
7626 test ! -s conftest.err
7627 } && test -s conftest.$ac_objext; then
7628 ac_hi=-1 ac_mid=-1
7629 while :; do
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 $ac_includes_default
7638 main ()
7640 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
7641 test_array [0] = 0
7644 return 0;
7646 _ACEOF
7647 rm -f conftest.$ac_objext
7648 if { (ac_try="$ac_compile"
7649 case "(($ac_try" in
7650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7652 esac
7653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7654 $as_echo "$ac_try_echo") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7665 ac_lo=$ac_mid; break
7666 else
7667 $as_echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 ac_hi=`expr '(' $ac_mid ')' - 1`
7671 if test $ac_mid -le $ac_hi; then
7672 ac_lo= ac_hi=
7673 break
7675 ac_mid=`expr 2 '*' $ac_mid`
7678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7679 done
7680 else
7681 $as_echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_lo= ac_hi=
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 # Binary search between lo and hi bounds.
7692 while test "x$ac_lo" != "x$ac_hi"; do
7693 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7694 cat >conftest.$ac_ext <<_ACEOF
7695 /* confdefs.h. */
7696 _ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h. */
7700 $ac_includes_default
7702 main ()
7704 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7705 test_array [0] = 0
7708 return 0;
7710 _ACEOF
7711 rm -f conftest.$ac_objext
7712 if { (ac_try="$ac_compile"
7713 case "(($ac_try" in
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7716 esac
7717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7718 $as_echo "$ac_try_echo") >&5
7719 (eval "$ac_compile") 2>conftest.er1
7720 ac_status=$?
7721 grep -v '^ *+' conftest.er1 >conftest.err
7722 rm -f conftest.er1
7723 cat conftest.err >&5
7724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } && {
7726 test -z "$ac_c_werror_flag" ||
7727 test ! -s conftest.err
7728 } && test -s conftest.$ac_objext; then
7729 ac_hi=$ac_mid
7730 else
7731 $as_echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7734 ac_lo=`expr '(' $ac_mid ')' + 1`
7737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738 done
7739 case $ac_lo in
7740 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7741 '') if test "$ac_cv_type_signed_long_long" = yes; then
7742 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7744 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7745 See \`config.log' for more details." >&5
7746 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7747 See \`config.log' for more details." >&2;}
7748 { (exit 77); exit 77; }; }; }
7749 else
7750 ac_cv_sizeof_signed_long_long=0
7751 fi ;;
7752 esac
7753 else
7754 cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h. */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7760 $ac_includes_default
7761 static long int longval () { return (long int) (sizeof (signed long long)); }
7762 static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
7763 #include <stdio.h>
7764 #include <stdlib.h>
7766 main ()
7769 FILE *f = fopen ("conftest.val", "w");
7770 if (! f)
7771 return 1;
7772 if (((long int) (sizeof (signed long long))) < 0)
7774 long int i = longval ();
7775 if (i != ((long int) (sizeof (signed long long))))
7776 return 1;
7777 fprintf (f, "%ld", i);
7779 else
7781 unsigned long int i = ulongval ();
7782 if (i != ((long int) (sizeof (signed long long))))
7783 return 1;
7784 fprintf (f, "%lu", i);
7786 /* Do not output a trailing newline, as this causes \r\n confusion
7787 on some platforms. */
7788 return ferror (f) || fclose (f) != 0;
7791 return 0;
7793 _ACEOF
7794 rm -f conftest$ac_exeext
7795 if { (ac_try="$ac_link"
7796 case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7799 esac
7800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7801 $as_echo "$ac_try_echo") >&5
7802 (eval "$ac_link") 2>&5
7803 ac_status=$?
7804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
7813 ac_status=$?
7814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; }; then
7816 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7817 else
7818 $as_echo "$as_me: program exited with status $ac_status" >&5
7819 $as_echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7822 ( exit $ac_status )
7823 if test "$ac_cv_type_signed_long_long" = yes; then
7824 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7826 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7827 See \`config.log' for more details." >&5
7828 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7829 See \`config.log' for more details." >&2;}
7830 { (exit 77); exit 77; }; }; }
7831 else
7832 ac_cv_sizeof_signed_long_long=0
7835 rm -rf conftest.dSYM
7836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7838 rm -f conftest.val
7840 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7841 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
7845 cat >>confdefs.h <<_ACEOF
7846 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7847 _ACEOF
7850 # The cast to long int works around a bug in the HP C Compiler
7851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7853 # This bug is HP SR number 8606223364.
7854 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
7855 $as_echo_n "checking size of void*... " >&6; }
7856 if test "${ac_cv_sizeof_voidp+set}" = set; then
7857 $as_echo_n "(cached) " >&6
7858 else
7859 if test "$cross_compiling" = yes; then
7860 # Depending upon the size, compute the lo and hi bounds.
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 $ac_includes_default
7869 main ()
7871 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
7872 test_array [0] = 0
7875 return 0;
7877 _ACEOF
7878 rm -f conftest.$ac_objext
7879 if { (ac_try="$ac_compile"
7880 case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883 esac
7884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7885 $as_echo "$ac_try_echo") >&5
7886 (eval "$ac_compile") 2>conftest.er1
7887 ac_status=$?
7888 grep -v '^ *+' conftest.er1 >conftest.err
7889 rm -f conftest.er1
7890 cat conftest.err >&5
7891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } && {
7893 test -z "$ac_c_werror_flag" ||
7894 test ! -s conftest.err
7895 } && test -s conftest.$ac_objext; then
7896 ac_lo=0 ac_mid=0
7897 while :; do
7898 cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h. */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 $ac_includes_default
7906 main ()
7908 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7909 test_array [0] = 0
7912 return 0;
7914 _ACEOF
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7917 case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7920 esac
7921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7922 $as_echo "$ac_try_echo") >&5
7923 (eval "$ac_compile") 2>conftest.er1
7924 ac_status=$?
7925 grep -v '^ *+' conftest.er1 >conftest.err
7926 rm -f conftest.er1
7927 cat conftest.err >&5
7928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && {
7930 test -z "$ac_c_werror_flag" ||
7931 test ! -s conftest.err
7932 } && test -s conftest.$ac_objext; then
7933 ac_hi=$ac_mid; break
7934 else
7935 $as_echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7938 ac_lo=`expr $ac_mid + 1`
7939 if test $ac_lo -le $ac_mid; then
7940 ac_lo= ac_hi=
7941 break
7943 ac_mid=`expr 2 '*' $ac_mid + 1`
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947 done
7948 else
7949 $as_echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7952 cat >conftest.$ac_ext <<_ACEOF
7953 /* confdefs.h. */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7958 $ac_includes_default
7960 main ()
7962 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
7963 test_array [0] = 0
7966 return 0;
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (ac_try="$ac_compile"
7971 case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7974 esac
7975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7976 $as_echo "$ac_try_echo") >&5
7977 (eval "$ac_compile") 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.$ac_objext; then
7987 ac_hi=-1 ac_mid=-1
7988 while :; do
7989 cat >conftest.$ac_ext <<_ACEOF
7990 /* confdefs.h. */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
7995 $ac_includes_default
7997 main ()
7999 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
8000 test_array [0] = 0
8003 return 0;
8005 _ACEOF
8006 rm -f conftest.$ac_objext
8007 if { (ac_try="$ac_compile"
8008 case "(($ac_try" in
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8011 esac
8012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8013 $as_echo "$ac_try_echo") >&5
8014 (eval "$ac_compile") 2>conftest.er1
8015 ac_status=$?
8016 grep -v '^ *+' conftest.er1 >conftest.err
8017 rm -f conftest.er1
8018 cat conftest.err >&5
8019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } && {
8021 test -z "$ac_c_werror_flag" ||
8022 test ! -s conftest.err
8023 } && test -s conftest.$ac_objext; then
8024 ac_lo=$ac_mid; break
8025 else
8026 $as_echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8029 ac_hi=`expr '(' $ac_mid ')' - 1`
8030 if test $ac_mid -le $ac_hi; then
8031 ac_lo= ac_hi=
8032 break
8034 ac_mid=`expr 2 '*' $ac_mid`
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 done
8039 else
8040 $as_echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8043 ac_lo= ac_hi=
8046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8050 # Binary search between lo and hi bounds.
8051 while test "x$ac_lo" != "x$ac_hi"; do
8052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8053 cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h. */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 $ac_includes_default
8061 main ()
8063 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
8064 test_array [0] = 0
8067 return 0;
8069 _ACEOF
8070 rm -f conftest.$ac_objext
8071 if { (ac_try="$ac_compile"
8072 case "(($ac_try" in
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8075 esac
8076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8077 $as_echo "$ac_try_echo") >&5
8078 (eval "$ac_compile") 2>conftest.er1
8079 ac_status=$?
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } && {
8085 test -z "$ac_c_werror_flag" ||
8086 test ! -s conftest.err
8087 } && test -s conftest.$ac_objext; then
8088 ac_hi=$ac_mid
8089 else
8090 $as_echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8093 ac_lo=`expr '(' $ac_mid ')' + 1`
8096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 done
8098 case $ac_lo in
8099 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8100 '') if test "$ac_cv_type_voidp" = yes; then
8101 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8103 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8104 See \`config.log' for more details." >&5
8105 $as_echo "$as_me: error: cannot compute sizeof (void*)
8106 See \`config.log' for more details." >&2;}
8107 { (exit 77); exit 77; }; }; }
8108 else
8109 ac_cv_sizeof_voidp=0
8110 fi ;;
8111 esac
8112 else
8113 cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h. */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 $ac_includes_default
8120 static long int longval () { return (long int) (sizeof (void*)); }
8121 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
8122 #include <stdio.h>
8123 #include <stdlib.h>
8125 main ()
8128 FILE *f = fopen ("conftest.val", "w");
8129 if (! f)
8130 return 1;
8131 if (((long int) (sizeof (void*))) < 0)
8133 long int i = longval ();
8134 if (i != ((long int) (sizeof (void*))))
8135 return 1;
8136 fprintf (f, "%ld", i);
8138 else
8140 unsigned long int i = ulongval ();
8141 if (i != ((long int) (sizeof (void*))))
8142 return 1;
8143 fprintf (f, "%lu", i);
8145 /* Do not output a trailing newline, as this causes \r\n confusion
8146 on some platforms. */
8147 return ferror (f) || fclose (f) != 0;
8150 return 0;
8152 _ACEOF
8153 rm -f conftest$ac_exeext
8154 if { (ac_try="$ac_link"
8155 case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158 esac
8159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8160 $as_echo "$ac_try_echo") >&5
8161 (eval "$ac_link") 2>&5
8162 ac_status=$?
8163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8165 { (case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8168 esac
8169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8170 $as_echo "$ac_try_echo") >&5
8171 (eval "$ac_try") 2>&5
8172 ac_status=$?
8173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; }; then
8175 ac_cv_sizeof_voidp=`cat conftest.val`
8176 else
8177 $as_echo "$as_me: program exited with status $ac_status" >&5
8178 $as_echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 ( exit $ac_status )
8182 if test "$ac_cv_type_voidp" = yes; then
8183 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8185 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8186 See \`config.log' for more details." >&5
8187 $as_echo "$as_me: error: cannot compute sizeof (void*)
8188 See \`config.log' for more details." >&2;}
8189 { (exit 77); exit 77; }; }; }
8190 else
8191 ac_cv_sizeof_voidp=0
8194 rm -rf conftest.dSYM
8195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8197 rm -f conftest.val
8199 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8200 $as_echo "$ac_cv_sizeof_voidp" >&6; }
8204 cat >>confdefs.h <<_ACEOF
8205 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8206 _ACEOF
8212 # Extract the first word of "freetype-config", so it can be a program name with args.
8213 set dummy freetype-config; ac_word=$2
8214 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8215 $as_echo_n "checking for $ac_word... " >&6; }
8216 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8217 $as_echo_n "(cached) " >&6
8218 else
8219 case $FREETYPE_CONFIG in
8220 [\\/]* | ?:[\\/]*)
8221 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8226 for as_dir in $as_dummy
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8236 done
8237 done
8238 IFS=$as_save_IFS
8241 esac
8243 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8244 if test -n "$FREETYPE_CONFIG"; then
8245 { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8246 $as_echo "$FREETYPE_CONFIG" >&6; }
8247 else
8248 { $as_echo "$as_me:$LINENO: result: no" >&5
8249 $as_echo "no" >&6; }
8254 OLDCPPFLAGS="${CPPFLAGS}"
8255 OLDLIBS="${LIBS}"
8256 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8257 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8258 else if test -d /usr/include/freetype2; then
8259 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8260 else if test -d /usr/local/include/freetype2; then
8261 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8266 if test "x${FREETYPE_CONFIG}" '=' "x";then
8267 # if we didn't find the freetype-config program, we won't
8268 # know where the libs are expected to be. So just blindly
8269 # try to link against them.
8270 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8271 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
8272 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8273 $as_echo_n "(cached) " >&6
8274 else
8275 ac_check_lib_save_LIBS=$LIBS
8276 LIBS="-lfreetype $LIBS"
8277 cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h. */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8284 /* Override any GCC internal prototype to avoid an error.
8285 Use char because int might match the return type of a GCC
8286 builtin and then its argument prototype would still apply. */
8287 #ifdef __cplusplus
8288 extern "C"
8289 #endif
8290 char FT_Init_FreeType ();
8292 main ()
8294 return FT_Init_FreeType ();
8296 return 0;
8298 _ACEOF
8299 rm -f conftest.$ac_objext conftest$ac_exeext
8300 if { (ac_try="$ac_link"
8301 case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8304 esac
8305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8306 $as_echo "$ac_try_echo") >&5
8307 (eval "$ac_link") 2>conftest.er1
8308 ac_status=$?
8309 grep -v '^ *+' conftest.er1 >conftest.err
8310 rm -f conftest.er1
8311 cat conftest.err >&5
8312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } && {
8314 test -z "$ac_c_werror_flag" ||
8315 test ! -s conftest.err
8316 } && test -s conftest$ac_exeext && {
8317 test "$cross_compiling" = yes ||
8318 $as_test_x conftest$ac_exeext
8319 }; then
8320 ac_cv_lib_freetype_FT_Init_FreeType=yes
8321 else
8322 $as_echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8325 ac_cv_lib_freetype_FT_Init_FreeType=no
8328 rm -rf conftest.dSYM
8329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8330 conftest$ac_exeext conftest.$ac_ext
8331 LIBS=$ac_check_lib_save_LIBS
8333 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8334 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8335 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
8336 HAVE_LIB_FREETYPE=1
8342 for ac_header in ft2build.h
8344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8347 $as_echo_n "checking for $ac_header... " >&6; }
8348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8349 $as_echo_n "(cached) " >&6
8351 ac_res=`eval 'as_val=${'$as_ac_Header'}
8352 $as_echo "$as_val"'`
8353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8354 $as_echo "$ac_res" >&6; }
8355 else
8356 # Is the header compilable?
8357 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8358 $as_echo_n "checking $ac_header usability... " >&6; }
8359 cat >conftest.$ac_ext <<_ACEOF
8360 /* confdefs.h. */
8361 _ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365 $ac_includes_default
8366 #include <$ac_header>
8367 _ACEOF
8368 rm -f conftest.$ac_objext
8369 if { (ac_try="$ac_compile"
8370 case "(($ac_try" in
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8373 esac
8374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8375 $as_echo "$ac_try_echo") >&5
8376 (eval "$ac_compile") 2>conftest.er1
8377 ac_status=$?
8378 grep -v '^ *+' conftest.er1 >conftest.err
8379 rm -f conftest.er1
8380 cat conftest.err >&5
8381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } && {
8383 test -z "$ac_c_werror_flag" ||
8384 test ! -s conftest.err
8385 } && test -s conftest.$ac_objext; then
8386 ac_header_compiler=yes
8387 else
8388 $as_echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8391 ac_header_compiler=no
8394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8396 $as_echo "$ac_header_compiler" >&6; }
8398 # Is the header present?
8399 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8400 $as_echo_n "checking $ac_header presence... " >&6; }
8401 cat >conftest.$ac_ext <<_ACEOF
8402 /* confdefs.h. */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 #include <$ac_header>
8408 _ACEOF
8409 if { (ac_try="$ac_cpp conftest.$ac_ext"
8410 case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8413 esac
8414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8415 $as_echo "$ac_try_echo") >&5
8416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } >/dev/null && {
8423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8424 test ! -s conftest.err
8425 }; then
8426 ac_header_preproc=yes
8427 else
8428 $as_echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8431 ac_header_preproc=no
8434 rm -f conftest.err conftest.$ac_ext
8435 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8436 $as_echo "$ac_header_preproc" >&6; }
8438 # So? What about this header?
8439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8440 yes:no: )
8441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8442 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8444 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8445 ac_header_preproc=yes
8447 no:yes:* )
8448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8449 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8451 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8453 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8455 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8457 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8459 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8462 esac
8463 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8464 $as_echo_n "checking for $ac_header... " >&6; }
8465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8466 $as_echo_n "(cached) " >&6
8467 else
8468 eval "$as_ac_Header=\$ac_header_preproc"
8470 ac_res=`eval 'as_val=${'$as_ac_Header'}
8471 $as_echo "$as_val"'`
8472 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8473 $as_echo "$ac_res" >&6; }
8476 as_val=`eval 'as_val=${'$as_ac_Header'}
8477 $as_echo "$as_val"'`
8478 if test "x$as_val" = x""yes; then
8479 cat >>confdefs.h <<_ACEOF
8480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8481 _ACEOF
8482 HAVE_FT2BUILD_H=1
8485 done
8487 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8489 for ac_header in freetype/freetype.h
8491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8493 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8494 $as_echo_n "checking for $ac_header... " >&6; }
8495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8496 $as_echo_n "(cached) " >&6
8498 ac_res=`eval 'as_val=${'$as_ac_Header'}
8499 $as_echo "$as_val"'`
8500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8501 $as_echo "$ac_res" >&6; }
8502 else
8503 # Is the header compilable?
8504 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8505 $as_echo_n "checking $ac_header usability... " >&6; }
8506 cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h. */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 $ac_includes_default
8513 #include <$ac_header>
8514 _ACEOF
8515 rm -f conftest.$ac_objext
8516 if { (ac_try="$ac_compile"
8517 case "(($ac_try" in
8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8520 esac
8521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8522 $as_echo "$ac_try_echo") >&5
8523 (eval "$ac_compile") 2>conftest.er1
8524 ac_status=$?
8525 grep -v '^ *+' conftest.er1 >conftest.err
8526 rm -f conftest.er1
8527 cat conftest.err >&5
8528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } && {
8530 test -z "$ac_c_werror_flag" ||
8531 test ! -s conftest.err
8532 } && test -s conftest.$ac_objext; then
8533 ac_header_compiler=yes
8534 else
8535 $as_echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8538 ac_header_compiler=no
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8543 $as_echo "$ac_header_compiler" >&6; }
8545 # Is the header present?
8546 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8547 $as_echo_n "checking $ac_header presence... " >&6; }
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h. */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 #include <$ac_header>
8555 _ACEOF
8556 if { (ac_try="$ac_cpp conftest.$ac_ext"
8557 case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8560 esac
8561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8562 $as_echo "$ac_try_echo") >&5
8563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8564 ac_status=$?
8565 grep -v '^ *+' conftest.er1 >conftest.err
8566 rm -f conftest.er1
8567 cat conftest.err >&5
8568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } >/dev/null && {
8570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8571 test ! -s conftest.err
8572 }; then
8573 ac_header_preproc=yes
8574 else
8575 $as_echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8578 ac_header_preproc=no
8581 rm -f conftest.err conftest.$ac_ext
8582 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8583 $as_echo "$ac_header_preproc" >&6; }
8585 # So? What about this header?
8586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8587 yes:no: )
8588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8589 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8591 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8592 ac_header_preproc=yes
8594 no:yes:* )
8595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8596 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8598 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8600 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8602 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8604 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8606 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8609 esac
8610 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8611 $as_echo_n "checking for $ac_header... " >&6; }
8612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8613 $as_echo_n "(cached) " >&6
8614 else
8615 eval "$as_ac_Header=\$ac_header_preproc"
8617 ac_res=`eval 'as_val=${'$as_ac_Header'}
8618 $as_echo "$as_val"'`
8619 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8620 $as_echo "$ac_res" >&6; }
8623 as_val=`eval 'as_val=${'$as_ac_Header'}
8624 $as_echo "$as_val"'`
8625 if test "x$as_val" = x""yes; then
8626 cat >>confdefs.h <<_ACEOF
8627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8628 _ACEOF
8629 HAVE_FREETYPE_FREETYPE_H=1
8632 done
8636 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8637 "x${FREETYPE_CONFIG}" '!=' "x";then
8638 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8639 HAVE_FREETYPE=1
8641 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8642 HAVE_FREETYPE=1
8646 if test "x${HAVE_FREETYPE}" = "x1"; then
8647 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8648 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8649 else
8650 LIBS="$LIBS -lfreetype"
8653 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8654 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8657 { $as_echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8658 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
8660 cat > conftest.c << EOF
8661 $HAVE_FT2BUILD_H_DEFINE
8663 #ifdef HAVE_FT2BUILD_H
8664 #include <ft2build.h>
8665 #include FT_FREETYPE_H
8666 #include FT_GLYPH_H
8667 #include FT_SIZES_H
8668 #include FT_SFNT_NAMES_H
8669 #include FT_TRUETYPE_IDS_H
8670 #include FT_OUTLINE_H
8671 #else
8672 #include <freetype/freetype.h>
8673 #include <freetype/ftglyph.h>
8674 #include <freetype/ftsizes.h>
8675 #include <freetype/ftsnames.h>
8676 #include <freetype/ttnameid.h>
8677 #include <freetype/ftoutln.h>
8678 #endif
8680 int main()
8682 FT_Library ftlibrary;
8683 FT_Face face;
8684 FT_Error error;
8685 FT_ULong charcode;
8686 FT_UInt gindex;
8687 FT_Glyph glyph;
8688 FT_BBox bbox;
8689 FT_Matrix matrix;
8690 FT_UInt i;
8691 char* name = 0;
8692 char italic, bold;
8694 FT_Init_FreeType(&ftlibrary);
8695 FT_New_Face(ftlibrary, "filename", 0, &face);
8696 i = face->num_glyphs - 1;
8697 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8698 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8699 FT_Get_Postscript_Name(face);
8700 FT_Get_Char_Index(face, 33);
8701 FT_Get_First_Char(face, &i);
8702 FT_Get_Next_Char(face, 33, &i);
8703 if(FT_HAS_GLYPH_NAMES(face)) {
8704 FT_Get_Glyph_Name(face, 33, name, 127);
8706 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8707 FT_Get_Glyph(face->glyph, &glyph);
8708 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8709 FT_Done_Glyph(glyph);
8710 FT_Done_Face(face);
8711 FT_Done_FreeType(ftlibrary);
8712 return 0;
8716 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8717 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8718 { $as_echo "$as_me:$LINENO: result: yes" >&5
8719 $as_echo "yes" >&6; }
8721 cat >>confdefs.h <<\_ACEOF
8722 #define HAVE_FREETYPE 1
8723 _ACEOF
8726 cat >>confdefs.h <<\_ACEOF
8727 #define HAVE_FREETYPE_FREETYPE_H 1
8728 _ACEOF
8731 cat >>confdefs.h <<\_ACEOF
8732 #define USE_FREETYPE 1
8733 _ACEOF
8734 # for ttf2tp1
8735 else
8736 echo "configure: failed program was:" >&5
8737 cat conftest.c >&5
8738 HAVE_FREETYPE=0
8739 { $as_echo "$as_me:$LINENO: result: no" >&5
8740 $as_echo "no" >&6; }
8742 rm -f conftest*
8745 # if the above didn't work out, reset all changes to the compiler variables.
8746 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8747 CPPFLAGS=$OLDCPPFLAGS
8748 LIBS=$OLDLIBS
8753 OLDCPPFLAGS="${CPPFLAGS}"
8754 OLDLIBS="${LIBS}"
8756 if test -d /usr/include/fontconfig; then
8757 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8760 { $as_echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8761 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
8762 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8763 $as_echo_n "(cached) " >&6
8764 else
8765 ac_check_lib_save_LIBS=$LIBS
8766 LIBS="-lfontconfig $LIBS"
8767 cat >conftest.$ac_ext <<_ACEOF
8768 /* confdefs.h. */
8769 _ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8774 /* Override any GCC internal prototype to avoid an error.
8775 Use char because int might match the return type of a GCC
8776 builtin and then its argument prototype would still apply. */
8777 #ifdef __cplusplus
8778 extern "C"
8779 #endif
8780 char FcInit ();
8782 main ()
8784 return FcInit ();
8786 return 0;
8788 _ACEOF
8789 rm -f conftest.$ac_objext conftest$ac_exeext
8790 if { (ac_try="$ac_link"
8791 case "(($ac_try" in
8792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8794 esac
8795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8796 $as_echo "$ac_try_echo") >&5
8797 (eval "$ac_link") 2>conftest.er1
8798 ac_status=$?
8799 grep -v '^ *+' conftest.er1 >conftest.err
8800 rm -f conftest.er1
8801 cat conftest.err >&5
8802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } && {
8804 test -z "$ac_c_werror_flag" ||
8805 test ! -s conftest.err
8806 } && test -s conftest$ac_exeext && {
8807 test "$cross_compiling" = yes ||
8808 $as_test_x conftest$ac_exeext
8809 }; then
8810 ac_cv_lib_fontconfig_FcInit=yes
8811 else
8812 $as_echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8815 ac_cv_lib_fontconfig_FcInit=no
8818 rm -rf conftest.dSYM
8819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8820 conftest$ac_exeext conftest.$ac_ext
8821 LIBS=$ac_check_lib_save_LIBS
8823 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8824 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
8825 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then
8826 HAVE_LIB_FONTCONFIG=1
8830 for ac_header in fontconfig.h
8832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8834 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8835 $as_echo_n "checking for $ac_header... " >&6; }
8836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8837 $as_echo_n "(cached) " >&6
8839 ac_res=`eval 'as_val=${'$as_ac_Header'}
8840 $as_echo "$as_val"'`
8841 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8842 $as_echo "$ac_res" >&6; }
8843 else
8844 # Is the header compilable?
8845 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8846 $as_echo_n "checking $ac_header usability... " >&6; }
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h. */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8853 $ac_includes_default
8854 #include <$ac_header>
8855 _ACEOF
8856 rm -f conftest.$ac_objext
8857 if { (ac_try="$ac_compile"
8858 case "(($ac_try" in
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8861 esac
8862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8863 $as_echo "$ac_try_echo") >&5
8864 (eval "$ac_compile") 2>conftest.er1
8865 ac_status=$?
8866 grep -v '^ *+' conftest.er1 >conftest.err
8867 rm -f conftest.er1
8868 cat conftest.err >&5
8869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } && {
8871 test -z "$ac_c_werror_flag" ||
8872 test ! -s conftest.err
8873 } && test -s conftest.$ac_objext; then
8874 ac_header_compiler=yes
8875 else
8876 $as_echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_header_compiler=no
8882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8883 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8884 $as_echo "$ac_header_compiler" >&6; }
8886 # Is the header present?
8887 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8888 $as_echo_n "checking $ac_header presence... " >&6; }
8889 cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h. */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8895 #include <$ac_header>
8896 _ACEOF
8897 if { (ac_try="$ac_cpp conftest.$ac_ext"
8898 case "(($ac_try" in
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8901 esac
8902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8903 $as_echo "$ac_try_echo") >&5
8904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8905 ac_status=$?
8906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
8909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } >/dev/null && {
8911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8912 test ! -s conftest.err
8913 }; then
8914 ac_header_preproc=yes
8915 else
8916 $as_echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 ac_header_preproc=no
8922 rm -f conftest.err conftest.$ac_ext
8923 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8924 $as_echo "$ac_header_preproc" >&6; }
8926 # So? What about this header?
8927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8928 yes:no: )
8929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8930 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8933 ac_header_preproc=yes
8935 no:yes:* )
8936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8937 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8939 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8941 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8943 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8945 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8947 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8950 esac
8951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8952 $as_echo_n "checking for $ac_header... " >&6; }
8953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8954 $as_echo_n "(cached) " >&6
8955 else
8956 eval "$as_ac_Header=\$ac_header_preproc"
8958 ac_res=`eval 'as_val=${'$as_ac_Header'}
8959 $as_echo "$as_val"'`
8960 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8961 $as_echo "$ac_res" >&6; }
8964 as_val=`eval 'as_val=${'$as_ac_Header'}
8965 $as_echo "$as_val"'`
8966 if test "x$as_val" = x""yes; then
8967 cat >>confdefs.h <<_ACEOF
8968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8969 _ACEOF
8970 HAVE_FONTCONFIG_H=1
8973 done
8976 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8977 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8978 HAVE_FONTCONFIG=1
8982 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8983 LIBS="$LIBS -lfontconfig"
8984 { $as_echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8985 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
8987 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8988 #move freetype library to the end of libraries, otherwise fontconfig
8989 #won't compile.
8990 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8993 cat > conftest.c << EOF
8994 #include <string.h>
8995 #include <fontconfig.h>
8997 int main()
8999 FcPattern *pattern, *match;
9000 FcResult result;
9001 FcChar8 *v;
9002 char*s1="abc",*s2="ABC";
9003 strcasecmp(s1,s2);
9004 FcInit();
9005 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
9006 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
9007 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
9009 FcConfig*c = FcConfigCreate();
9010 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
9011 FcConfigBuildFonts(c);
9012 FcConfigSetCurrent(c);
9014 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
9015 FcFontSetDestroy(set);
9017 FcConfigSubstitute(0, pattern, FcMatchPattern);
9018 FcDefaultSubstitute(pattern);
9019 match = FcFontMatch(0, pattern, &result);
9020 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
9021 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
9022 FcPatternPrint(pattern);
9023 FcPatternDestroy(pattern);
9024 FcPatternDestroy(match);
9025 FcFini();
9026 return 0;
9030 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9031 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9032 { $as_echo "$as_me:$LINENO: result: yes" >&5
9033 $as_echo "yes" >&6; }
9035 cat >>confdefs.h <<\_ACEOF
9036 #define HAVE_FONTCONFIG 1
9037 _ACEOF
9039 else
9040 echo "configure: failed program was:" >&5
9041 cat conftest.c >&5
9042 HAVE_FONTCONFIG=0
9043 { $as_echo "$as_me:$LINENO: result: no" >&5
9044 $as_echo "no" >&6; }
9046 rm -f conftest*
9049 # if the above didn't work out, reset all changes to the compiler variables.
9050 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
9051 CPPFLAGS=$OLDCPPFLAGS
9052 LIBS=$OLDLIBS
9057 OLDCPPFLAGS="${CPPFLAGS}"
9058 OLDLIBS="${LIBS}"
9060 { $as_echo "$as_me:$LINENO: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
9061 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
9062 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then
9063 $as_echo_n "(cached) " >&6
9064 else
9065 ac_check_lib_save_LIBS=$LIBS
9066 LIBS="-lfftw3 $LIBS"
9067 cat >conftest.$ac_ext <<_ACEOF
9068 /* confdefs.h. */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9074 /* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
9077 #ifdef __cplusplus
9078 extern "C"
9079 #endif
9080 char fftw_plan_dft_r2c_2d ();
9082 main ()
9084 return fftw_plan_dft_r2c_2d ();
9086 return 0;
9088 _ACEOF
9089 rm -f conftest.$ac_objext conftest$ac_exeext
9090 if { (ac_try="$ac_link"
9091 case "(($ac_try" in
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9094 esac
9095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9096 $as_echo "$ac_try_echo") >&5
9097 (eval "$ac_link") 2>conftest.er1
9098 ac_status=$?
9099 grep -v '^ *+' conftest.er1 >conftest.err
9100 rm -f conftest.er1
9101 cat conftest.err >&5
9102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } && {
9104 test -z "$ac_c_werror_flag" ||
9105 test ! -s conftest.err
9106 } && test -s conftest$ac_exeext && {
9107 test "$cross_compiling" = yes ||
9108 $as_test_x conftest$ac_exeext
9109 }; then
9110 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
9111 else
9112 $as_echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9115 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
9118 rm -rf conftest.dSYM
9119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9120 conftest$ac_exeext conftest.$ac_ext
9121 LIBS=$ac_check_lib_save_LIBS
9123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
9124 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
9125 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then
9126 HAVE_LIBFFTW3=1
9130 for ac_header in fftw3.h
9132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9134 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9135 $as_echo_n "checking for $ac_header... " >&6; }
9136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9137 $as_echo_n "(cached) " >&6
9139 ac_res=`eval 'as_val=${'$as_ac_Header'}
9140 $as_echo "$as_val"'`
9141 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9142 $as_echo "$ac_res" >&6; }
9143 else
9144 # Is the header compilable?
9145 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9146 $as_echo_n "checking $ac_header usability... " >&6; }
9147 cat >conftest.$ac_ext <<_ACEOF
9148 /* confdefs.h. */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 $ac_includes_default
9154 #include <$ac_header>
9155 _ACEOF
9156 rm -f conftest.$ac_objext
9157 if { (ac_try="$ac_compile"
9158 case "(($ac_try" in
9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9161 esac
9162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9163 $as_echo "$ac_try_echo") >&5
9164 (eval "$ac_compile") 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } && {
9171 test -z "$ac_c_werror_flag" ||
9172 test ! -s conftest.err
9173 } && test -s conftest.$ac_objext; then
9174 ac_header_compiler=yes
9175 else
9176 $as_echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9179 ac_header_compiler=no
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9184 $as_echo "$ac_header_compiler" >&6; }
9186 # Is the header present?
9187 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9188 $as_echo_n "checking $ac_header presence... " >&6; }
9189 cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h. */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195 #include <$ac_header>
9196 _ACEOF
9197 if { (ac_try="$ac_cpp conftest.$ac_ext"
9198 case "(($ac_try" in
9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9201 esac
9202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9203 $as_echo "$ac_try_echo") >&5
9204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9205 ac_status=$?
9206 grep -v '^ *+' conftest.er1 >conftest.err
9207 rm -f conftest.er1
9208 cat conftest.err >&5
9209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } >/dev/null && {
9211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9212 test ! -s conftest.err
9213 }; then
9214 ac_header_preproc=yes
9215 else
9216 $as_echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 ac_header_preproc=no
9222 rm -f conftest.err conftest.$ac_ext
9223 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9224 $as_echo "$ac_header_preproc" >&6; }
9226 # So? What about this header?
9227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9228 yes:no: )
9229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9230 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9232 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9233 ac_header_preproc=yes
9235 no:yes:* )
9236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9237 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9239 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9241 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9243 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9245 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9247 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9250 esac
9251 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9252 $as_echo_n "checking for $ac_header... " >&6; }
9253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9254 $as_echo_n "(cached) " >&6
9255 else
9256 eval "$as_ac_Header=\$ac_header_preproc"
9258 ac_res=`eval 'as_val=${'$as_ac_Header'}
9259 $as_echo "$as_val"'`
9260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9261 $as_echo "$ac_res" >&6; }
9264 as_val=`eval 'as_val=${'$as_ac_Header'}
9265 $as_echo "$as_val"'`
9266 if test "x$as_val" = x""yes; then
9267 cat >>confdefs.h <<_ACEOF
9268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9269 _ACEOF
9270 HAVE_FFTW3_H=1
9273 done
9276 if test "x${HAVE_LIBFFTW3}" != "x";then
9277 if test "x${HAVE_FFTW3_H}" != "x";then
9278 HAVE_FFTW3=1
9282 if test "x${HAVE_FFTW3}" = "x1"; then
9283 LIBS="$LIBS -lfftw3"
9284 { $as_echo "$as_me:$LINENO: checking whether we can compile the fftw3 test program" >&5
9285 $as_echo_n "checking whether we can compile the fftw3 test program... " >&6; }
9287 cat > conftest.c << EOF
9288 #include <fftw3.h>
9290 int main()
9292 char*data = 0;
9293 fftw_plan plan = fftw_plan_dft_2d(600, 800, (fftw_complex*)data, (fftw_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
9294 plan = fftw_plan_dft_r2c_2d(600, 800, (double*)data, (fftw_complex*)data, FFTW_ESTIMATE);
9295 plan = fftw_plan_dft_c2r_2d(600, 800, (fftw_complex*)data, (double*)data, FFTW_ESTIMATE);
9296 fftw_execute(plan);
9297 fftw_destroy_plan(plan);
9301 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9302 if { (eval echo fftw3.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9303 { $as_echo "$as_me:$LINENO: result: yes" >&5
9304 $as_echo "yes" >&6; }
9306 cat >>confdefs.h <<\_ACEOF
9307 #define HAVE_FFTW3 1
9308 _ACEOF
9310 else
9311 echo "configure: failed program was:" >&5
9312 cat conftest.c >&5
9313 HAVE_FFTW3=0
9314 { $as_echo "$as_me:$LINENO: result: no" >&5
9315 $as_echo "no" >&6; }
9317 rm -f conftest*
9320 # if the above didn't work out, reset all changes to the compiler variables.
9321 if test "x${HAVE_FFTW3}" "!=" "x1"; then
9322 CPPFLAGS=$OLDCPPFLAGS
9323 LIBS=$OLDLIBS
9327 # RFX_CHECK_OPENGL
9328 # if test "$HAVE_OPENGL";then
9329 # DEVICE_OPENGL='devices/opengl.$(O)'
9330 # AC_SUBST(DEVICE_OPENGL)
9331 # fi
9334 lame_in_source=
9335 lame_makefile=
9336 if test "x${DISABLE_LAME}" = "xtrue"; then
9337 echo "*" Disabling lame support...
9338 else
9339 # old lame code at lib/lame
9340 if test -f lib/lame/Makefile.in; then
9341 lame_in_source='$(lame_objects)'
9342 lame_makefile="lib/lame/Makefile"
9343 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9345 cat >>confdefs.h <<\_ACEOF
9346 #define HAVE_LAME 1
9347 _ACEOF
9349 else
9350 if test -d /usr/include/lame; then
9351 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9352 else
9353 if test -d /usr/local/include/lame; then
9354 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9358 { $as_echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9359 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9360 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9361 $as_echo_n "(cached) " >&6
9362 else
9363 ac_check_lib_save_LIBS=$LIBS
9364 LIBS="-lmp3lame $LIBS"
9365 cat >conftest.$ac_ext <<_ACEOF
9366 /* confdefs.h. */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9372 /* Override any GCC internal prototype to avoid an error.
9373 Use char because int might match the return type of a GCC
9374 builtin and then its argument prototype would still apply. */
9375 #ifdef __cplusplus
9376 extern "C"
9377 #endif
9378 char lame_init ();
9380 main ()
9382 return lame_init ();
9384 return 0;
9386 _ACEOF
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (ac_try="$ac_link"
9389 case "(($ac_try" in
9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9392 esac
9393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9394 $as_echo "$ac_try_echo") >&5
9395 (eval "$ac_link") 2>conftest.er1
9396 ac_status=$?
9397 grep -v '^ *+' conftest.er1 >conftest.err
9398 rm -f conftest.er1
9399 cat conftest.err >&5
9400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } && {
9402 test -z "$ac_c_werror_flag" ||
9403 test ! -s conftest.err
9404 } && test -s conftest$ac_exeext && {
9405 test "$cross_compiling" = yes ||
9406 $as_test_x conftest$ac_exeext
9407 }; then
9408 ac_cv_lib_mp3lame_lame_init=yes
9409 else
9410 $as_echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ac_cv_lib_mp3lame_lame_init=no
9416 rm -rf conftest.dSYM
9417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418 conftest$ac_exeext conftest.$ac_ext
9419 LIBS=$ac_check_lib_save_LIBS
9421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9422 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9423 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then
9424 cat >>confdefs.h <<_ACEOF
9425 #define HAVE_LIBMP3LAME 1
9426 _ACEOF
9428 LIBS="-lmp3lame $LIBS"
9430 else
9431 NO_LIBMP3LAME=1
9434 HASLAMEHEADER=
9436 for ac_header in lame.h
9438 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9440 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9441 $as_echo_n "checking for $ac_header... " >&6; }
9442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9443 $as_echo_n "(cached) " >&6
9445 ac_res=`eval 'as_val=${'$as_ac_Header'}
9446 $as_echo "$as_val"'`
9447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9448 $as_echo "$ac_res" >&6; }
9449 else
9450 # Is the header compilable?
9451 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9452 $as_echo_n "checking $ac_header usability... " >&6; }
9453 cat >conftest.$ac_ext <<_ACEOF
9454 /* confdefs.h. */
9455 _ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h. */
9459 $ac_includes_default
9460 #include <$ac_header>
9461 _ACEOF
9462 rm -f conftest.$ac_objext
9463 if { (ac_try="$ac_compile"
9464 case "(($ac_try" in
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9467 esac
9468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9469 $as_echo "$ac_try_echo") >&5
9470 (eval "$ac_compile") 2>conftest.er1
9471 ac_status=$?
9472 grep -v '^ *+' conftest.er1 >conftest.err
9473 rm -f conftest.er1
9474 cat conftest.err >&5
9475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } && {
9477 test -z "$ac_c_werror_flag" ||
9478 test ! -s conftest.err
9479 } && test -s conftest.$ac_objext; then
9480 ac_header_compiler=yes
9481 else
9482 $as_echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9485 ac_header_compiler=no
9488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9489 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9490 $as_echo "$ac_header_compiler" >&6; }
9492 # Is the header present?
9493 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9494 $as_echo_n "checking $ac_header presence... " >&6; }
9495 cat >conftest.$ac_ext <<_ACEOF
9496 /* confdefs.h. */
9497 _ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h. */
9501 #include <$ac_header>
9502 _ACEOF
9503 if { (ac_try="$ac_cpp conftest.$ac_ext"
9504 case "(($ac_try" in
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9507 esac
9508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9509 $as_echo "$ac_try_echo") >&5
9510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9511 ac_status=$?
9512 grep -v '^ *+' conftest.er1 >conftest.err
9513 rm -f conftest.er1
9514 cat conftest.err >&5
9515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } >/dev/null && {
9517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9518 test ! -s conftest.err
9519 }; then
9520 ac_header_preproc=yes
9521 else
9522 $as_echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9525 ac_header_preproc=no
9528 rm -f conftest.err conftest.$ac_ext
9529 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9530 $as_echo "$ac_header_preproc" >&6; }
9532 # So? What about this header?
9533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9534 yes:no: )
9535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9536 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9538 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9539 ac_header_preproc=yes
9541 no:yes:* )
9542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9543 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9545 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9547 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9549 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9551 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9553 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9556 esac
9557 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9558 $as_echo_n "checking for $ac_header... " >&6; }
9559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9560 $as_echo_n "(cached) " >&6
9561 else
9562 eval "$as_ac_Header=\$ac_header_preproc"
9564 ac_res=`eval 'as_val=${'$as_ac_Header'}
9565 $as_echo "$as_val"'`
9566 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9567 $as_echo "$ac_res" >&6; }
9570 as_val=`eval 'as_val=${'$as_ac_Header'}
9571 $as_echo "$as_val"'`
9572 if test "x$as_val" = x""yes; then
9573 cat >>confdefs.h <<_ACEOF
9574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9575 _ACEOF
9576 HASLAMEHEADER=1
9579 done
9581 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9582 cat >>confdefs.h <<\_ACEOF
9583 #define HAVE_LAME 1
9584 _ACEOF
9591 splash_in_source='$(splash_objects)'
9592 xpdf_in_source='$(xpdf_objects)'
9598 # ------------------------------------------------------------------
9601 { $as_echo "$as_me:$LINENO: checking whether the filesystem normalizes file names" >&5
9602 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
9604 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
9605 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9606 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
9607 { $as_echo "$as_me:$LINENO: result: yes" >&5
9608 $as_echo "yes" >&6; }
9610 cat >>confdefs.h <<\_ACEOF
9611 #define LOWERCASE_UPPERCASE 1
9612 _ACEOF
9614 else
9615 { $as_echo "$as_me:$LINENO: result: no" >&5
9616 $as_echo "no" >&6; }
9619 rm -f __abcdefghijklmnopqrstuvwxyz.txt
9620 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9624 for ac_prog in avifile-config
9626 # Extract the first word of "$ac_prog", so it can be a program name with args.
9627 set dummy $ac_prog; ac_word=$2
9628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9631 $as_echo_n "(cached) " >&6
9632 else
9633 if test -n "$AVIFILE_CONFIG"; then
9634 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9635 else
9636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637 for as_dir in $PATH
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9643 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 break 2
9647 done
9648 done
9649 IFS=$as_save_IFS
9653 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9654 if test -n "$AVIFILE_CONFIG"; then
9655 { $as_echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9656 $as_echo "$AVIFILE_CONFIG" >&6; }
9657 else
9658 { $as_echo "$as_me:$LINENO: result: no" >&5
9659 $as_echo "no" >&6; }
9663 test -n "$AVIFILE_CONFIG" && break
9664 done
9667 if test "x$AVIFILE_CONFIG" '!=' "x";then
9668 OLDCPPFLAGS="$CPPFLAGS"
9669 # temporarily add avifile paths to CPPFLAGS...
9670 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9673 for ac_header in avifile/version.h version.h
9675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9677 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9678 $as_echo_n "checking for $ac_header... " >&6; }
9679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9680 $as_echo_n "(cached) " >&6
9682 ac_res=`eval 'as_val=${'$as_ac_Header'}
9683 $as_echo "$as_val"'`
9684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9685 $as_echo "$ac_res" >&6; }
9686 else
9687 # Is the header compilable?
9688 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9689 $as_echo_n "checking $ac_header usability... " >&6; }
9690 cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h. */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 $ac_includes_default
9697 #include <$ac_header>
9698 _ACEOF
9699 rm -f conftest.$ac_objext
9700 if { (ac_try="$ac_compile"
9701 case "(($ac_try" in
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9704 esac
9705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9706 $as_echo "$ac_try_echo") >&5
9707 (eval "$ac_compile") 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } && {
9714 test -z "$ac_c_werror_flag" ||
9715 test ! -s conftest.err
9716 } && test -s conftest.$ac_objext; then
9717 ac_header_compiler=yes
9718 else
9719 $as_echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 ac_header_compiler=no
9725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9727 $as_echo "$ac_header_compiler" >&6; }
9729 # Is the header present?
9730 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9731 $as_echo_n "checking $ac_header presence... " >&6; }
9732 cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h. */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738 #include <$ac_header>
9739 _ACEOF
9740 if { (ac_try="$ac_cpp conftest.$ac_ext"
9741 case "(($ac_try" in
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9744 esac
9745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9746 $as_echo "$ac_try_echo") >&5
9747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9748 ac_status=$?
9749 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1
9751 cat conftest.err >&5
9752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } >/dev/null && {
9754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9755 test ! -s conftest.err
9756 }; then
9757 ac_header_preproc=yes
9758 else
9759 $as_echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9762 ac_header_preproc=no
9765 rm -f conftest.err conftest.$ac_ext
9766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9767 $as_echo "$ac_header_preproc" >&6; }
9769 # So? What about this header?
9770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9771 yes:no: )
9772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9773 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9776 ac_header_preproc=yes
9778 no:yes:* )
9779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9780 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9782 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9784 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9786 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9790 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9793 esac
9794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9795 $as_echo_n "checking for $ac_header... " >&6; }
9796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9797 $as_echo_n "(cached) " >&6
9798 else
9799 eval "$as_ac_Header=\$ac_header_preproc"
9801 ac_res=`eval 'as_val=${'$as_ac_Header'}
9802 $as_echo "$as_val"'`
9803 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9804 $as_echo "$ac_res" >&6; }
9807 as_val=`eval 'as_val=${'$as_ac_Header'}
9808 $as_echo "$as_val"'`
9809 if test "x$as_val" = x""yes; then
9810 cat >>confdefs.h <<_ACEOF
9811 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9812 _ACEOF
9816 done
9818 # ... and reset
9819 CPPFLAGS="$OLDCPPFLAGS"
9822 { $as_echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9823 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
9825 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9826 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9828 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9829 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9832 cat > conftest.cpp << EOF
9834 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9835 // so we have to introduce them this way
9836 $HAVE_VERSION_H_DEFINE
9837 $HAVE_AVIFILE_VERSION_H_DEFINE
9839 #ifdef HAVE_VERSION_H
9840 #include <version.h>
9841 #endif
9842 #ifdef HAVE_AVIFILE_VERSION_H
9843 #include <avifile/version.h>
9844 #endif
9846 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9847 #include <avifile.h>
9848 #include <aviplay.h>
9849 #include <avm_fourcc.h>
9850 #include <avm_creators.h>
9851 #include <StreamInfo.h>
9852 #define VERSION6
9853 #else
9854 #include <avifile.h>
9855 #include <aviplay.h>
9856 #include <aviutil.h>
9857 #define Width width
9858 #define Height height
9859 #define Data data
9860 #define Bpp bpp
9861 #endif
9863 void test()
9865 IAviReadFile* player;
9866 IAviReadStream* astream;
9867 IAviReadStream* vstream;
9868 player = CreateIAviReadFile(0);
9869 astream = player->GetStream(0, AviStream::Audio);
9870 vstream = player->GetStream(0, AviStream::Video);
9871 vstream -> StartStreaming();
9872 astream -> StartStreaming();
9873 #ifndef VERSION6
9874 MainAVIHeader head;
9875 player->GetFileHeader(&head);
9876 head.dwMicroSecPerFrame;
9877 head.dwTotalFrames;
9878 head.dwStreams;
9879 head.dwWidth;
9880 head.dwHeight;
9881 head.dwMicroSecPerFrame;
9882 astream->GetEndPos(),
9883 astream->GetEndTime());
9884 player->StreamCount();
9885 #else
9886 StreamInfo*audioinfo;
9887 StreamInfo*videoinfo;
9888 audioinfo = astream->GetStreamInfo();
9889 videoinfo = vstream->GetStreamInfo();
9890 videoinfo->GetVideoWidth();
9891 videoinfo->GetVideoHeight();
9892 audioinfo->GetAudioSamplesPerSec();
9893 videoinfo->GetFps();
9894 #endif
9895 CImage*img = vstream->GetFrame();
9896 img->ToRGB();
9897 img->Data();
9898 img->Bpp();
9899 img->Width();
9900 img->Height();
9901 WAVEFORMATEX wave;
9902 astream->GetAudioFormatInfo(&wave,0);
9903 uint_t a,b;
9904 astream->ReadFrames(0,0,0,a,b);
9906 int main (int argc, char*argv)
9908 return 0;
9912 if test "x$AVIFILE_CONFIG" '!=' "x";then
9913 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9914 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9915 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9916 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9917 { $as_echo "$as_me:$LINENO: result: yes" >&5
9918 $as_echo "yes" >&6; }
9919 AVIFILE=true
9920 export AVIFILE
9922 cat >>confdefs.h <<\_ACEOF
9923 #define AVIFILE true
9924 _ACEOF
9926 else
9927 echo "configure: failed program was:" >&5
9928 cat conftest.cpp >&5
9929 { $as_echo "$as_me:$LINENO: result: no" >&5
9930 $as_echo "no" >&6; }
9932 else
9933 { $as_echo "$as_me:$LINENO: result: no" >&5
9934 $as_echo "no" >&6; }
9936 rm -f conftest*
9938 if test "x${AVIFILE}" = "xtrue"; then
9939 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9940 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_AVIFILE 1
9944 _ACEOF
9948 if test "x${WIN32}" != "x"; then
9949 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9950 #if test "x${AVIFIL32}" != "x"; then
9951 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9953 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9954 AVIFIL32=true
9959 # ------------------------------------------------------------------
9961 if test "x${UNCOMPRESS}" = "xgzip"; then
9963 cat >>confdefs.h <<\_ACEOF
9964 #define USE_GZIP 1
9965 _ACEOF
9970 # ------------------------------------------------------------------
9973 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
9974 $as_echo_n "checking for Python.h... " >&6; }
9976 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9977 PY_VERSION=unknown
9978 else
9979 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9980 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9982 # iterate through version 2.2 to 2.6
9983 for v in 2 3 4 5 6; do
9984 # Linux
9985 if test -f "/usr/include/python2.$v/Python.h";then
9986 PY_VERSION=2.$v
9987 PYTHON_LIB="-lpython$PY_VERSION"
9988 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9989 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9990 HAVE_PYTHON_IMAGING_LIB=1
9991 else
9992 PYTHON_LIB2="$PYTHON_LIB"
9994 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9995 # Mac OS X
9996 elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9997 PY_VERSION=2.$v
9998 PYTHON_LIB="-framework Python"
9999 if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
10000 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
10001 HAVE_PYTHON_IMAGING_LIB=1
10002 else
10003 PYTHON_LIB2="$PYTHON_LIB"
10005 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
10006 # Mac OS X [Fink]:
10007 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
10008 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
10009 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
10010 ")" \
10011 -a -f "/sw/include/python2.$v/Python.h"; then
10012 PY_VERSION=2.$v
10013 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10014 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
10015 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10016 HAVE_PYTHON_IMAGING_LIB=1
10017 else
10018 PYTHON_LIB2="$PYTHON_LIB"
10020 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
10022 done
10025 if test "x$PY_VERSION" "!=" "x"; then
10026 { $as_echo "$as_me:$LINENO: result: $PY_VERSION" >&5
10027 $as_echo "$PY_VERSION" >&6; }
10028 export PYTHON_INCLUDES PYTHON_LIB
10031 { $as_echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
10032 $as_echo_n "checking whether we can compile the python test program... " >&6; }
10034 cat > conftest.c << EOF
10035 #include <Python.h>
10037 int main()
10039 int ret;
10040 ret = Py_Main(0, 0);
10041 int x; // check also for gcc 2.95.x incompatibilities
10042 return ret;
10046 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
10047 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10048 { $as_echo "$as_me:$LINENO: result: yes" >&5
10049 $as_echo "yes" >&6; }
10050 PYTHON_OK=yes
10051 else
10052 echo "configure: failed program was:" >&5
10053 cat conftest.c >&5
10054 { $as_echo "$as_me:$LINENO: result: no" >&5
10055 $as_echo "no" >&6; }
10057 rm -f conftest*
10058 if test "x$PYTHON_OK" = "xyes";then
10059 { $as_echo "$as_me:$LINENO: checking for Python-Imaging" >&5
10060 $as_echo_n "checking for Python-Imaging... " >&6; }
10061 cat > conftest.c << EOF
10062 #include <Python.h>
10063 #include <Imaging.h>
10065 int main()
10067 Py_Main(0, 0);
10068 return 0;
10071 if test "$HAVE_PYTHON_IMAGING_LIB"; then
10072 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
10073 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10074 PYTHON_LIB="${PYTHON_LIB2}"
10076 cat >>confdefs.h <<\_ACEOF
10077 #define HAVE_PYTHON_IMAGING 1
10078 _ACEOF
10080 HAVE_PYTHON_IMAGING=yes
10081 export HAVE_PYTHON_IMAGING
10083 { $as_echo "$as_me:$LINENO: result: yes" >&5
10084 $as_echo "yes" >&6; }
10085 else
10086 echo "configure: failed program was:" >&5
10087 cat conftest.c >&5
10088 { $as_echo "$as_me:$LINENO: result: no" >&5
10089 $as_echo "no" >&6; }
10091 else
10092 echo "(didn't find the Python-Imaging libraries)" >&5
10093 { $as_echo "$as_me:$LINENO: result: no" >&5
10094 $as_echo "no" >&6; }
10097 rm -f conftest*
10098 else
10099 { $as_echo "$as_me:$LINENO: result: nope" >&5
10100 $as_echo "nope" >&6; }
10104 if test "x$PYTHON_OK" '!=' "xyes";then
10105 echo all install uninstall clean: > lib/python/Makefile
10106 # fail silently- the most users won't have any need for the
10107 # python interface anyway
10108 else
10109 pythonrfxswf="lib/python/Makefile"
10112 # ------------------------------------------------------------------
10114 { $as_echo "$as_me:$LINENO: checking for missing libraries" >&5
10115 $as_echo_n "checking for missing libraries... " >&6; }
10117 if test "x$ZLIBMISSING" = "xtrue";then
10118 MISSINGLIBS="${MISSINGLIBS} zlib"
10119 DISABLEPNG2SWF=true
10120 PARTIAL=true
10122 if test "x$JPEGLIBMISSING" = "xtrue";then
10123 MISSINGLIBS="${MISSINGLIBS} jpeglib"
10124 DISABLEPDF2SWF=true
10125 DISABLEJPEG2SWF=true
10126 PARTIAL=true
10128 if test "x$PDFLIBMISSING" = "xtrue";then
10129 DISABLEPDF2PDF=true;
10131 #if test "x$T1LIBMISSING" = "xtrue";then
10132 # MISSINGLIBS="${MISSINGLIBS} t1lib"
10134 if test "x$UNGIFMISSING" = "xtrue";then
10135 DISABLEGIF2SWF=true
10136 MISSINGLIBS="${MISSINGLIBS} ungif"
10137 PARTIAL=true
10140 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
10141 DISABLEPDF2PDF=true;
10143 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
10144 DISABLEPDF2SWF=true;
10145 DISABLEJPEG2SWF=true;
10146 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10147 PARTIAL=true
10149 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10150 DISABLEPDF2SWF=true;
10151 MISSINGLIBS="${MISSINGLIBS} freetype"
10152 PARTIAL=true
10154 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10155 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10157 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10158 DISABLEGIF2SWF=true
10159 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10160 PARTIAL=true
10162 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10163 DISABLEPNG2SWF=true;
10164 MISSINGLIBS="${MISSINGLIBS} zlib.h"
10165 PARTIAL=true
10167 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10168 # MISSINGLIBS="${MISSINGLIBS} avifile"
10171 { $as_echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10172 $as_echo "${MISSINGLIBS}" >&6; }
10174 # ------------------------------------------------------------------
10176 if test "x${MISSINGLIBS}" '!=' "x"; then
10177 echo "***************************************************"
10178 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10181 avi2swf="avi2swf/Makefile"
10182 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10183 #don't whine, avi2swf is outdated anyway
10184 #echo "* Disabling avi2swf tool..."
10185 echo all install uninstall clean: > avi2swf/Makefile
10186 avi2swf=
10189 pdf2swf_makefile="lib/pdf/Makefile"
10190 PDF2SWF='pdf2swf$(E)'
10191 LIBPDF='libpdf$(A)'
10193 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10194 echo "* Disabling pdf2swf tool..."
10195 rm -f lib/pdf/Makefile
10196 echo all install uninstall clean libpdf libgfxpdf: > lib/pdf/Makefile
10197 pdf2swf_makefile=""
10198 PDF2SWF=
10199 LIBPDF=
10204 PDF2PDF='pdf2pdf$(E)'
10205 DEVICE_PDF='devices/pdf.$(O)'
10206 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
10207 #echo "* Disabling pdf2pdf tool..."
10208 PDF2PDF=
10209 DEVICE_PDF=
10214 if test "x${ZLIBMISSING}" = "xtrue"; then
10215 echo
10216 echo "* Warning! Without zlib, you will not be able to read"
10217 echo "* or write compressed Flash MX files!"
10220 JPEG2SWF='jpeg2swf$(E)'
10221 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10222 echo "* Disabling jpeg2swf tool..."
10223 JPEG2SWF=
10225 export JPEG2SWF
10228 GIF2SWF='gif2swf$(E)'
10229 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10230 echo "* Disabling gif2swf tool..."
10231 GIF2SWF=
10233 export GIF2SWF
10236 PNG2SWF='png2swf$(E)'
10237 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10238 echo "* Disabling png2swf tool..."
10239 PNG2SWF=
10241 export PNG2SWF
10244 if test "x${MISSINGLIBS}" '!=' "x"; then
10245 if test "x${PARTIAL}" '=' "x"; then
10246 echo "* (never mind)"
10248 echo "***************************************************"
10251 # ------------------------------------------------------------------
10259 if test -f "release.in"; then release_in="./release"; fi
10260 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10261 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"
10262 ac_config_files="$ac_config_files ${FILES}"
10264 cat >confcache <<\_ACEOF
10265 # This file is a shell script that caches the results of configure
10266 # tests run on this system so they can be shared between configure
10267 # scripts and configure runs, see configure's option --config-cache.
10268 # It is not useful on other systems. If it contains results you don't
10269 # want to keep, you may remove or edit it.
10271 # config.status only pays attention to the cache file if you give it
10272 # the --recheck option to rerun configure.
10274 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10275 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10276 # following values.
10278 _ACEOF
10280 # The following way of writing the cache mishandles newlines in values,
10281 # but we know of no workaround that is simple, portable, and efficient.
10282 # So, we kill variables containing newlines.
10283 # Ultrix sh set writes to stderr and can't be redirected directly,
10284 # and sets the high bit in the cache file unless we assign to the vars.
10286 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10287 eval ac_val=\$$ac_var
10288 case $ac_val in #(
10289 *${as_nl}*)
10290 case $ac_var in #(
10291 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10292 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10293 esac
10294 case $ac_var in #(
10295 _ | IFS | as_nl) ;; #(
10296 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10297 *) $as_unset $ac_var ;;
10298 esac ;;
10299 esac
10300 done
10302 (set) 2>&1 |
10303 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10304 *${as_nl}ac_space=\ *)
10305 # `set' does not quote correctly, so add quotes (double-quote
10306 # substitution turns \\\\ into \\, and sed turns \\ into \).
10307 sed -n \
10308 "s/'/'\\\\''/g;
10309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10310 ;; #(
10312 # `set' quotes correctly as required by POSIX, so do not add quotes.
10313 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10315 esac |
10316 sort
10318 sed '
10319 /^ac_cv_env_/b end
10320 t clear
10321 :clear
10322 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10323 t end
10324 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10325 :end' >>confcache
10326 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10327 if test -w "$cache_file"; then
10328 test "x$cache_file" != "x/dev/null" &&
10329 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10330 $as_echo "$as_me: updating cache $cache_file" >&6;}
10331 cat confcache >$cache_file
10332 else
10333 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10334 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10337 rm -f confcache
10339 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10340 # Let make expand exec_prefix.
10341 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10343 DEFS=-DHAVE_CONFIG_H
10345 ac_libobjs=
10346 ac_ltlibobjs=
10347 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10348 # 1. Remove the extension, and $U if already installed.
10349 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10350 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10351 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10352 # will be set to the directory where LIBOBJS objects are built.
10353 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10354 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10355 done
10356 LIBOBJS=$ac_libobjs
10358 LTLIBOBJS=$ac_ltlibobjs
10362 : ${CONFIG_STATUS=./config.status}
10363 ac_write_fail=0
10364 ac_clean_files_save=$ac_clean_files
10365 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10366 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10367 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10368 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10369 #! $SHELL
10370 # Generated by $as_me.
10371 # Run this file to recreate the current configuration.
10372 # Compiler output produced by configure, useful for debugging
10373 # configure, is in config.log if it exists.
10375 debug=false
10376 ac_cs_recheck=false
10377 ac_cs_silent=false
10378 SHELL=\${CONFIG_SHELL-$SHELL}
10379 _ACEOF
10381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10382 ## --------------------- ##
10383 ## M4sh Initialization. ##
10384 ## --------------------- ##
10386 # Be more Bourne compatible
10387 DUALCASE=1; export DUALCASE # for MKS sh
10388 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10389 emulate sh
10390 NULLCMD=:
10391 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10392 # is contrary to our usage. Disable this feature.
10393 alias -g '${1+"$@"}'='"$@"'
10394 setopt NO_GLOB_SUBST
10395 else
10396 case `(set -o) 2>/dev/null` in
10397 *posix*) set -o posix ;;
10398 esac
10405 # PATH needs CR
10406 # Avoid depending upon Character Ranges.
10407 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10408 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10409 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10410 as_cr_digits='0123456789'
10411 as_cr_alnum=$as_cr_Letters$as_cr_digits
10413 as_nl='
10415 export as_nl
10416 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10417 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10418 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10419 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10420 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10421 as_echo='printf %s\n'
10422 as_echo_n='printf %s'
10423 else
10424 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10425 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10426 as_echo_n='/usr/ucb/echo -n'
10427 else
10428 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10429 as_echo_n_body='eval
10430 arg=$1;
10431 case $arg in
10432 *"$as_nl"*)
10433 expr "X$arg" : "X\\(.*\\)$as_nl";
10434 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10435 esac;
10436 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10438 export as_echo_n_body
10439 as_echo_n='sh -c $as_echo_n_body as_echo'
10441 export as_echo_body
10442 as_echo='sh -c $as_echo_body as_echo'
10445 # The user is always right.
10446 if test "${PATH_SEPARATOR+set}" != set; then
10447 PATH_SEPARATOR=:
10448 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10449 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10450 PATH_SEPARATOR=';'
10454 # Support unset when possible.
10455 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10456 as_unset=unset
10457 else
10458 as_unset=false
10462 # IFS
10463 # We need space, tab and new line, in precisely that order. Quoting is
10464 # there to prevent editors from complaining about space-tab.
10465 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10466 # splitting by setting IFS to empty value.)
10467 IFS=" "" $as_nl"
10469 # Find who we are. Look in the path if we contain no directory separator.
10470 case $0 in
10471 *[\\/]* ) as_myself=$0 ;;
10472 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in $PATH
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10478 done
10479 IFS=$as_save_IFS
10482 esac
10483 # We did not find ourselves, most probably we were run as `sh COMMAND'
10484 # in which case we are not to be found in the path.
10485 if test "x$as_myself" = x; then
10486 as_myself=$0
10488 if test ! -f "$as_myself"; then
10489 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10490 { (exit 1); exit 1; }
10493 # Work around bugs in pre-3.0 UWIN ksh.
10494 for as_var in ENV MAIL MAILPATH
10495 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10496 done
10497 PS1='$ '
10498 PS2='> '
10499 PS4='+ '
10501 # NLS nuisances.
10502 LC_ALL=C
10503 export LC_ALL
10504 LANGUAGE=C
10505 export LANGUAGE
10507 # Required to use basename.
10508 if expr a : '\(a\)' >/dev/null 2>&1 &&
10509 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10510 as_expr=expr
10511 else
10512 as_expr=false
10515 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10516 as_basename=basename
10517 else
10518 as_basename=false
10522 # Name of the executable.
10523 as_me=`$as_basename -- "$0" ||
10524 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10525 X"$0" : 'X\(//\)$' \| \
10526 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10527 $as_echo X/"$0" |
10528 sed '/^.*\/\([^/][^/]*\)\/*$/{
10529 s//\1/
10532 /^X\/\(\/\/\)$/{
10533 s//\1/
10536 /^X\/\(\/\).*/{
10537 s//\1/
10540 s/.*/./; q'`
10542 # CDPATH.
10543 $as_unset CDPATH
10547 as_lineno_1=$LINENO
10548 as_lineno_2=$LINENO
10549 test "x$as_lineno_1" != "x$as_lineno_2" &&
10550 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10552 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10553 # uniformly replaced by the line number. The first 'sed' inserts a
10554 # line-number line after each line using $LINENO; the second 'sed'
10555 # does the real work. The second script uses 'N' to pair each
10556 # line-number line with the line containing $LINENO, and appends
10557 # trailing '-' during substitution so that $LINENO is not a special
10558 # case at line end.
10559 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10560 # scripts with optimization help from Paolo Bonzini. Blame Lee
10561 # E. McMahon (1931-1989) for sed's syntax. :-)
10562 sed -n '
10564 /[$]LINENO/=
10565 ' <$as_myself |
10566 sed '
10567 s/[$]LINENO.*/&-/
10568 t lineno
10570 :lineno
10572 :loop
10573 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10574 t loop
10575 s/-\n.*//
10576 ' >$as_me.lineno &&
10577 chmod +x "$as_me.lineno" ||
10578 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10579 { (exit 1); exit 1; }; }
10581 # Don't try to exec as it changes $[0], causing all sort of problems
10582 # (the dirname of $[0] is not the place where we might find the
10583 # original and so on. Autoconf is especially sensitive to this).
10584 . "./$as_me.lineno"
10585 # Exit status is that of the last command.
10586 exit
10590 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10591 as_dirname=dirname
10592 else
10593 as_dirname=false
10596 ECHO_C= ECHO_N= ECHO_T=
10597 case `echo -n x` in
10598 -n*)
10599 case `echo 'x\c'` in
10600 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10601 *) ECHO_C='\c';;
10602 esac;;
10604 ECHO_N='-n';;
10605 esac
10606 if expr a : '\(a\)' >/dev/null 2>&1 &&
10607 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10608 as_expr=expr
10609 else
10610 as_expr=false
10613 rm -f conf$$ conf$$.exe conf$$.file
10614 if test -d conf$$.dir; then
10615 rm -f conf$$.dir/conf$$.file
10616 else
10617 rm -f conf$$.dir
10618 mkdir conf$$.dir 2>/dev/null
10620 if (echo >conf$$.file) 2>/dev/null; then
10621 if ln -s conf$$.file conf$$ 2>/dev/null; then
10622 as_ln_s='ln -s'
10623 # ... but there are two gotchas:
10624 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10625 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10626 # In both cases, we have to default to `cp -p'.
10627 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10628 as_ln_s='cp -p'
10629 elif ln conf$$.file conf$$ 2>/dev/null; then
10630 as_ln_s=ln
10631 else
10632 as_ln_s='cp -p'
10634 else
10635 as_ln_s='cp -p'
10637 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10638 rmdir conf$$.dir 2>/dev/null
10640 if mkdir -p . 2>/dev/null; then
10641 as_mkdir_p=:
10642 else
10643 test -d ./-p && rmdir ./-p
10644 as_mkdir_p=false
10647 if test -x / >/dev/null 2>&1; then
10648 as_test_x='test -x'
10649 else
10650 if ls -dL / >/dev/null 2>&1; then
10651 as_ls_L_option=L
10652 else
10653 as_ls_L_option=
10655 as_test_x='
10656 eval sh -c '\''
10657 if test -d "$1"; then
10658 test -d "$1/.";
10659 else
10660 case $1 in
10661 -*)set "./$1";;
10662 esac;
10663 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10664 ???[sx]*):;;*)false;;esac;fi
10665 '\'' sh
10668 as_executable_p=$as_test_x
10670 # Sed expression to map a string onto a valid CPP name.
10671 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10673 # Sed expression to map a string onto a valid variable name.
10674 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10677 exec 6>&1
10679 # Save the log message, to keep $[0] and so on meaningful, and to
10680 # report actual input values of CONFIG_FILES etc. instead of their
10681 # values after options handling.
10682 ac_log="
10683 This file was extended by $as_me, which was
10684 generated by GNU Autoconf 2.63. Invocation command line was
10686 CONFIG_FILES = $CONFIG_FILES
10687 CONFIG_HEADERS = $CONFIG_HEADERS
10688 CONFIG_LINKS = $CONFIG_LINKS
10689 CONFIG_COMMANDS = $CONFIG_COMMANDS
10690 $ $0 $@
10692 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10695 _ACEOF
10697 case $ac_config_files in *"
10698 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10699 esac
10701 case $ac_config_headers in *"
10702 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10703 esac
10706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10707 # Files that config.status was made for.
10708 config_files="$ac_config_files"
10709 config_headers="$ac_config_headers"
10711 _ACEOF
10713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10714 ac_cs_usage="\
10715 \`$as_me' instantiates files from templates according to the
10716 current configuration.
10718 Usage: $0 [OPTION]... [FILE]...
10720 -h, --help print this help, then exit
10721 -V, --version print version number and configuration settings, then exit
10722 -q, --quiet, --silent
10723 do not print progress messages
10724 -d, --debug don't remove temporary files
10725 --recheck update $as_me by reconfiguring in the same conditions
10726 --file=FILE[:TEMPLATE]
10727 instantiate the configuration file FILE
10728 --header=FILE[:TEMPLATE]
10729 instantiate the configuration header FILE
10731 Configuration files:
10732 $config_files
10734 Configuration headers:
10735 $config_headers
10737 Report bugs to <bug-autoconf@gnu.org>."
10739 _ACEOF
10740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10741 ac_cs_version="\\
10742 config.status
10743 configured by $0, generated by GNU Autoconf 2.63,
10744 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10746 Copyright (C) 2008 Free Software Foundation, Inc.
10747 This config.status script is free software; the Free Software Foundation
10748 gives unlimited permission to copy, distribute and modify it."
10750 ac_pwd='$ac_pwd'
10751 srcdir='$srcdir'
10752 INSTALL='$INSTALL'
10753 test -n "\$AWK" || AWK=awk
10754 _ACEOF
10756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10757 # The default lists apply if the user does not specify any file.
10758 ac_need_defaults=:
10759 while test $# != 0
10761 case $1 in
10762 --*=*)
10763 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10764 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10765 ac_shift=:
10768 ac_option=$1
10769 ac_optarg=$2
10770 ac_shift=shift
10772 esac
10774 case $ac_option in
10775 # Handling of the options.
10776 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10777 ac_cs_recheck=: ;;
10778 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10779 $as_echo "$ac_cs_version"; exit ;;
10780 --debug | --debu | --deb | --de | --d | -d )
10781 debug=: ;;
10782 --file | --fil | --fi | --f )
10783 $ac_shift
10784 case $ac_optarg in
10785 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10786 esac
10787 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10788 ac_need_defaults=false;;
10789 --header | --heade | --head | --hea )
10790 $ac_shift
10791 case $ac_optarg in
10792 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10793 esac
10794 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10795 ac_need_defaults=false;;
10796 --he | --h)
10797 # Conflict between --help and --header
10798 { $as_echo "$as_me: error: ambiguous option: $1
10799 Try \`$0 --help' for more information." >&2
10800 { (exit 1); exit 1; }; };;
10801 --help | --hel | -h )
10802 $as_echo "$ac_cs_usage"; exit ;;
10803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10804 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10805 ac_cs_silent=: ;;
10807 # This is an error.
10808 -*) { $as_echo "$as_me: error: unrecognized option: $1
10809 Try \`$0 --help' for more information." >&2
10810 { (exit 1); exit 1; }; } ;;
10812 *) ac_config_targets="$ac_config_targets $1"
10813 ac_need_defaults=false ;;
10815 esac
10816 shift
10817 done
10819 ac_configure_extra_args=
10821 if $ac_cs_silent; then
10822 exec 6>/dev/null
10823 ac_configure_extra_args="$ac_configure_extra_args --silent"
10826 _ACEOF
10827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10828 if \$ac_cs_recheck; then
10829 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10830 shift
10831 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10832 CONFIG_SHELL='$SHELL'
10833 export CONFIG_SHELL
10834 exec "\$@"
10837 _ACEOF
10838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10839 exec 5>>config.log
10841 echo
10842 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10843 ## Running $as_me. ##
10844 _ASBOX
10845 $as_echo "$ac_log"
10846 } >&5
10848 _ACEOF
10849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10850 _ACEOF
10852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10854 # Handling of arguments.
10855 for ac_config_target in $ac_config_targets
10857 case $ac_config_target in
10858 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10859 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10861 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10862 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10863 { (exit 1); exit 1; }; };;
10864 esac
10865 done
10868 # If the user did not use the arguments to specify the items to instantiate,
10869 # then the envvar interface is used. Set only those that are not.
10870 # We use the long form for the default assignment because of an extremely
10871 # bizarre bug on SunOS 4.1.3.
10872 if $ac_need_defaults; then
10873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10874 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10877 # Have a temporary directory for convenience. Make it in the build tree
10878 # simply because there is no reason against having it here, and in addition,
10879 # creating and moving files from /tmp can sometimes cause problems.
10880 # Hook for its removal unless debugging.
10881 # Note that there is a small window in which the directory will not be cleaned:
10882 # after its creation but before its name has been assigned to `$tmp'.
10883 $debug ||
10885 tmp=
10886 trap 'exit_status=$?
10887 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10889 trap '{ (exit 1); exit 1; }' 1 2 13 15
10891 # Create a (secure) tmp directory for tmp files.
10894 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10895 test -n "$tmp" && test -d "$tmp"
10896 } ||
10898 tmp=./conf$$-$RANDOM
10899 (umask 077 && mkdir "$tmp")
10900 } ||
10902 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10903 { (exit 1); exit 1; }
10906 # Set up the scripts for CONFIG_FILES section.
10907 # No need to generate them if there are no CONFIG_FILES.
10908 # This happens for instance with `./config.status config.h'.
10909 if test -n "$CONFIG_FILES"; then
10912 ac_cr=' '
10913 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10914 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10915 ac_cs_awk_cr='\\r'
10916 else
10917 ac_cs_awk_cr=$ac_cr
10920 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10921 _ACEOF
10925 echo "cat >conf$$subs.awk <<_ACEOF" &&
10926 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10927 echo "_ACEOF"
10928 } >conf$$subs.sh ||
10929 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10930 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10931 { (exit 1); exit 1; }; }
10932 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10933 ac_delim='%!_!# '
10934 for ac_last_try in false false false false false :; do
10935 . ./conf$$subs.sh ||
10936 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10937 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10938 { (exit 1); exit 1; }; }
10940 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10941 if test $ac_delim_n = $ac_delim_num; then
10942 break
10943 elif $ac_last_try; then
10944 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10945 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10946 { (exit 1); exit 1; }; }
10947 else
10948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10950 done
10951 rm -f conf$$subs.sh
10953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10954 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10955 _ACEOF
10956 sed -n '
10958 s/^/S["/; s/!.*/"]=/
10961 s/^[^!]*!//
10962 :repl
10963 t repl
10964 s/'"$ac_delim"'$//
10965 t delim
10968 s/\(.\{148\}\).*/\1/
10969 t more1
10970 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10973 b repl
10974 :more1
10975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10978 s/.\{148\}//
10979 t nl
10980 :delim
10982 s/\(.\{148\}\).*/\1/
10983 t more2
10984 s/["\\]/\\&/g; s/^/"/; s/$/"/
10987 :more2
10988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10991 s/.\{148\}//
10992 t delim
10993 ' <conf$$subs.awk | sed '
10994 /^[^""]/{
10996 s/\n//
10998 ' >>$CONFIG_STATUS || ac_write_fail=1
10999 rm -f conf$$subs.awk
11000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11001 _ACAWK
11002 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11003 for (key in S) S_is_set[key] = 1
11004 FS = "\a"
11008 line = $ 0
11009 nfields = split(line, field, "@")
11010 substed = 0
11011 len = length(field[1])
11012 for (i = 2; i < nfields; i++) {
11013 key = field[i]
11014 keylen = length(key)
11015 if (S_is_set[key]) {
11016 value = S[key]
11017 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11018 len += length(value) + length(field[++i])
11019 substed = 1
11020 } else
11021 len += 1 + keylen
11024 print line
11027 _ACAWK
11028 _ACEOF
11029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11030 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11031 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11032 else
11034 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11035 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11036 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11037 { (exit 1); exit 1; }; }
11038 _ACEOF
11040 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11041 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11042 # trailing colons and then remove the whole line if VPATH becomes empty
11043 # (actually we leave an empty line to preserve line numbers).
11044 if test "x$srcdir" = x.; then
11045 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11046 s/:*\$(srcdir):*/:/
11047 s/:*\${srcdir}:*/:/
11048 s/:*@srcdir@:*/:/
11049 s/^\([^=]*=[ ]*\):*/\1/
11050 s/:*$//
11051 s/^[^=]*=[ ]*$//
11055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11056 fi # test -n "$CONFIG_FILES"
11058 # Set up the scripts for CONFIG_HEADERS section.
11059 # No need to generate them if there are no CONFIG_HEADERS.
11060 # This happens for instance with `./config.status Makefile'.
11061 if test -n "$CONFIG_HEADERS"; then
11062 cat >"$tmp/defines.awk" <<\_ACAWK ||
11063 BEGIN {
11064 _ACEOF
11066 # Transform confdefs.h into an awk script `defines.awk', embedded as
11067 # here-document in config.status, that substitutes the proper values into
11068 # config.h.in to produce config.h.
11070 # Create a delimiter string that does not exist in confdefs.h, to ease
11071 # handling of long lines.
11072 ac_delim='%!_!# '
11073 for ac_last_try in false false :; do
11074 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11075 if test -z "$ac_t"; then
11076 break
11077 elif $ac_last_try; then
11078 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11079 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11080 { (exit 1); exit 1; }; }
11081 else
11082 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11084 done
11086 # For the awk script, D is an array of macro values keyed by name,
11087 # likewise P contains macro parameters if any. Preserve backslash
11088 # newline sequences.
11090 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11091 sed -n '
11092 s/.\{148\}/&'"$ac_delim"'/g
11093 t rset
11094 :rset
11095 s/^[ ]*#[ ]*define[ ][ ]*/ /
11096 t def
11098 :def
11099 s/\\$//
11100 t bsnl
11101 s/["\\]/\\&/g
11102 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11103 D["\1"]=" \3"/p
11104 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11106 :bsnl
11107 s/["\\]/\\&/g
11108 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11109 D["\1"]=" \3\\\\\\n"\\/p
11110 t cont
11111 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11112 t cont
11114 :cont
11116 s/.\{148\}/&'"$ac_delim"'/g
11117 t clear
11118 :clear
11119 s/\\$//
11120 t bsnlc
11121 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11123 :bsnlc
11124 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11125 b cont
11126 ' <confdefs.h | sed '
11127 s/'"$ac_delim"'/"\\\
11128 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11131 for (key in D) D_is_set[key] = 1
11132 FS = "\a"
11134 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11135 line = \$ 0
11136 split(line, arg, " ")
11137 if (arg[1] == "#") {
11138 defundef = arg[2]
11139 mac1 = arg[3]
11140 } else {
11141 defundef = substr(arg[1], 2)
11142 mac1 = arg[2]
11144 split(mac1, mac2, "(") #)
11145 macro = mac2[1]
11146 prefix = substr(line, 1, index(line, defundef) - 1)
11147 if (D_is_set[macro]) {
11148 # Preserve the white space surrounding the "#".
11149 print prefix "define", macro P[macro] D[macro]
11150 next
11151 } else {
11152 # Replace #undef with comments. This is necessary, for example,
11153 # in the case of _POSIX_SOURCE, which is predefined and required
11154 # on some systems where configure will not decide to define it.
11155 if (defundef == "undef") {
11156 print "/*", prefix defundef, macro, "*/"
11157 next
11161 { print }
11162 _ACAWK
11163 _ACEOF
11164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11165 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11166 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11167 { (exit 1); exit 1; }; }
11168 fi # test -n "$CONFIG_HEADERS"
11171 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11172 shift
11173 for ac_tag
11175 case $ac_tag in
11176 :[FHLC]) ac_mode=$ac_tag; continue;;
11177 esac
11178 case $ac_mode$ac_tag in
11179 :[FHL]*:*);;
11180 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11181 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11182 { (exit 1); exit 1; }; };;
11183 :[FH]-) ac_tag=-:-;;
11184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11185 esac
11186 ac_save_IFS=$IFS
11187 IFS=:
11188 set x $ac_tag
11189 IFS=$ac_save_IFS
11190 shift
11191 ac_file=$1
11192 shift
11194 case $ac_mode in
11195 :L) ac_source=$1;;
11196 :[FH])
11197 ac_file_inputs=
11198 for ac_f
11200 case $ac_f in
11201 -) ac_f="$tmp/stdin";;
11202 *) # Look for the file first in the build tree, then in the source tree
11203 # (if the path is not absolute). The absolute path cannot be DOS-style,
11204 # because $ac_f cannot contain `:'.
11205 test -f "$ac_f" ||
11206 case $ac_f in
11207 [\\/$]*) false;;
11208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11209 esac ||
11210 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11211 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11212 { (exit 1); exit 1; }; };;
11213 esac
11214 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11215 ac_file_inputs="$ac_file_inputs '$ac_f'"
11216 done
11218 # Let's still pretend it is `configure' which instantiates (i.e., don't
11219 # use $as_me), people would be surprised to read:
11220 # /* config.h. Generated by config.status. */
11221 configure_input='Generated from '`
11222 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11223 `' by configure.'
11224 if test x"$ac_file" != x-; then
11225 configure_input="$ac_file. $configure_input"
11226 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11227 $as_echo "$as_me: creating $ac_file" >&6;}
11229 # Neutralize special characters interpreted by sed in replacement strings.
11230 case $configure_input in #(
11231 *\&* | *\|* | *\\* )
11232 ac_sed_conf_input=`$as_echo "$configure_input" |
11233 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11234 *) ac_sed_conf_input=$configure_input;;
11235 esac
11237 case $ac_tag in
11238 *:-:* | *:-) cat >"$tmp/stdin" \
11239 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11240 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11241 { (exit 1); exit 1; }; } ;;
11242 esac
11244 esac
11246 ac_dir=`$as_dirname -- "$ac_file" ||
11247 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11248 X"$ac_file" : 'X\(//\)[^/]' \| \
11249 X"$ac_file" : 'X\(//\)$' \| \
11250 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11251 $as_echo X"$ac_file" |
11252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11253 s//\1/
11256 /^X\(\/\/\)[^/].*/{
11257 s//\1/
11260 /^X\(\/\/\)$/{
11261 s//\1/
11264 /^X\(\/\).*/{
11265 s//\1/
11268 s/.*/./; q'`
11269 { as_dir="$ac_dir"
11270 case $as_dir in #(
11271 -*) as_dir=./$as_dir;;
11272 esac
11273 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11274 as_dirs=
11275 while :; do
11276 case $as_dir in #(
11277 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11278 *) as_qdir=$as_dir;;
11279 esac
11280 as_dirs="'$as_qdir' $as_dirs"
11281 as_dir=`$as_dirname -- "$as_dir" ||
11282 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11283 X"$as_dir" : 'X\(//\)[^/]' \| \
11284 X"$as_dir" : 'X\(//\)$' \| \
11285 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11286 $as_echo X"$as_dir" |
11287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11288 s//\1/
11291 /^X\(\/\/\)[^/].*/{
11292 s//\1/
11295 /^X\(\/\/\)$/{
11296 s//\1/
11299 /^X\(\/\).*/{
11300 s//\1/
11303 s/.*/./; q'`
11304 test -d "$as_dir" && break
11305 done
11306 test -z "$as_dirs" || eval "mkdir $as_dirs"
11307 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11308 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11309 { (exit 1); exit 1; }; }; }
11310 ac_builddir=.
11312 case "$ac_dir" in
11313 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11315 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11316 # A ".." for each directory in $ac_dir_suffix.
11317 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11318 case $ac_top_builddir_sub in
11319 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11320 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11321 esac ;;
11322 esac
11323 ac_abs_top_builddir=$ac_pwd
11324 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11325 # for backward compatibility:
11326 ac_top_builddir=$ac_top_build_prefix
11328 case $srcdir in
11329 .) # We are building in place.
11330 ac_srcdir=.
11331 ac_top_srcdir=$ac_top_builddir_sub
11332 ac_abs_top_srcdir=$ac_pwd ;;
11333 [\\/]* | ?:[\\/]* ) # Absolute name.
11334 ac_srcdir=$srcdir$ac_dir_suffix;
11335 ac_top_srcdir=$srcdir
11336 ac_abs_top_srcdir=$srcdir ;;
11337 *) # Relative name.
11338 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11339 ac_top_srcdir=$ac_top_build_prefix$srcdir
11340 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11341 esac
11342 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11345 case $ac_mode in
11348 # CONFIG_FILE
11351 case $INSTALL in
11352 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11353 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11354 esac
11355 _ACEOF
11357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11358 # If the template does not know about datarootdir, expand it.
11359 # FIXME: This hack should be removed a few years after 2.60.
11360 ac_datarootdir_hack=; ac_datarootdir_seen=
11362 ac_sed_dataroot='
11363 /datarootdir/ {
11367 /@datadir@/p
11368 /@docdir@/p
11369 /@infodir@/p
11370 /@localedir@/p
11371 /@mandir@/p
11373 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11374 *datarootdir*) ac_datarootdir_seen=yes;;
11375 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11376 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11377 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11378 _ACEOF
11379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11380 ac_datarootdir_hack='
11381 s&@datadir@&$datadir&g
11382 s&@docdir@&$docdir&g
11383 s&@infodir@&$infodir&g
11384 s&@localedir@&$localedir&g
11385 s&@mandir@&$mandir&g
11386 s&\\\${datarootdir}&$datarootdir&g' ;;
11387 esac
11388 _ACEOF
11390 # Neutralize VPATH when `$srcdir' = `.'.
11391 # Shell code in configure.ac might set extrasub.
11392 # FIXME: do we really want to maintain this feature?
11393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11394 ac_sed_extra="$ac_vpsub
11395 $extrasub
11396 _ACEOF
11397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11400 s|@configure_input@|$ac_sed_conf_input|;t t
11401 s&@top_builddir@&$ac_top_builddir_sub&;t t
11402 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11403 s&@srcdir@&$ac_srcdir&;t t
11404 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11405 s&@top_srcdir@&$ac_top_srcdir&;t t
11406 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11407 s&@builddir@&$ac_builddir&;t t
11408 s&@abs_builddir@&$ac_abs_builddir&;t t
11409 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11410 s&@INSTALL@&$ac_INSTALL&;t t
11411 $ac_datarootdir_hack
11413 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11414 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11415 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11416 { (exit 1); exit 1; }; }
11418 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11419 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11420 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11421 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11422 which seems to be undefined. Please make sure it is defined." >&5
11423 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11424 which seems to be undefined. Please make sure it is defined." >&2;}
11426 rm -f "$tmp/stdin"
11427 case $ac_file in
11428 -) cat "$tmp/out" && rm -f "$tmp/out";;
11429 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11430 esac \
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; }; }
11437 # CONFIG_HEADER
11439 if test x"$ac_file" != x-; then
11441 $as_echo "/* $configure_input */" \
11442 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11443 } >"$tmp/config.h" \
11444 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11445 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11446 { (exit 1); exit 1; }; }
11447 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11448 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11449 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11450 else
11451 rm -f "$ac_file"
11452 mv "$tmp/config.h" "$ac_file" \
11453 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11454 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11455 { (exit 1); exit 1; }; }
11457 else
11458 $as_echo "/* $configure_input */" \
11459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11460 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11461 $as_echo "$as_me: error: could not create -" >&2;}
11462 { (exit 1); exit 1; }; }
11467 esac
11469 done # for ac_tag
11472 { (exit 0); exit 0; }
11473 _ACEOF
11474 chmod +x $CONFIG_STATUS
11475 ac_clean_files=$ac_clean_files_save
11477 test $ac_write_fail = 0 ||
11478 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11479 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11480 { (exit 1); exit 1; }; }
11483 # configure is writing to config.log, and then calls config.status.
11484 # config.status does its own redirection, appending to config.log.
11485 # Unfortunately, on DOS this fails, as config.log is still kept open
11486 # by configure, so config.status won't be able to write to it; its
11487 # output is simply discarded. So we exec the FD to /dev/null,
11488 # effectively closing config.log, so it can be properly (re)opened and
11489 # appended to by config.status. When coming back to configure, we
11490 # need to make the FD available again.
11491 if test "$no_create" != yes; then
11492 ac_cs_success=:
11493 ac_config_status_args=
11494 test "$silent" = yes &&
11495 ac_config_status_args="$ac_config_status_args --quiet"
11496 exec 5>/dev/null
11497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11498 exec 5>>config.log
11499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11500 # would make configure fail if this is the last instruction.
11501 $ac_cs_success || { (exit 1); exit 1; }
11503 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11504 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11505 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11511 # On development trees, create snapshots of config.status
11513 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11514 if test "x${MINGW}" = "xyes"; then
11515 echo cp config.status config.status.win32
11516 cp config.status config.status.win32
11517 else
11518 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
11519 echo cp config.status config.status.linux
11520 cp config.status config.status.linux
11522 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
11523 echo cp config.status config.status.debug
11524 cp config.status config.status.debug
11526 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
11527 echo cp config.status config.status.optimize
11528 cp config.status config.status.optimize