2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
557 ac_unique_file
="src/"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_subst_vars
='LTLIBOBJS
694 program_transform_name
707 enable_option_checking
716 ac_precious_vars
='build_alias
731 # Initialize some variables set by options.
733 ac_init_version
=false
734 ac_unrecognized_opts
=
736 # The variables have the same names as the options, with
737 # dashes changed to underlines.
745 program_transform_name
=s
,x
,x
,
753 # Installation directory options.
754 # These are left unexpanded so users can "make install exec_prefix=/foo"
755 # and all the variables that are supposed to be based on exec_prefix
756 # by default will actually change.
757 # Use braces instead of parens because sh, perl, etc. also accept them.
758 # (The list follows the same order as the GNU Coding Standards.)
759 bindir
='${exec_prefix}/bin'
760 sbindir
='${exec_prefix}/sbin'
761 libexecdir
='${exec_prefix}/libexec'
762 datarootdir
='${prefix}/share'
763 datadir
='${datarootdir}'
764 sysconfdir
='${prefix}/etc'
765 sharedstatedir
='${prefix}/com'
766 localstatedir
='${prefix}/var'
767 includedir
='${prefix}/include'
768 oldincludedir
='/usr/include'
769 docdir
='${datarootdir}/doc/${PACKAGE}'
770 infodir
='${datarootdir}/info'
775 libdir
='${exec_prefix}/lib'
776 localedir
='${datarootdir}/locale'
777 mandir
='${datarootdir}/man'
783 # If the previous option needs an argument, assign it.
784 if test -n "$ac_prev"; then
785 eval $ac_prev=\
$ac_option
791 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
795 # Accept the important Cygnus configure options, so we can diagnose typos.
797 case $ac_dashdash$ac_option in
801 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
803 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
806 -build |
--build |
--buil |
--bui |
--bu)
807 ac_prev
=build_alias
;;
808 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
809 build_alias
=$ac_optarg ;;
811 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
812 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
813 ac_prev
=cache_file
;;
814 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
815 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
816 cache_file
=$ac_optarg ;;
819 cache_file
=config.cache
;;
821 -datadir |
--datadir |
--datadi |
--datad)
823 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
824 datadir
=$ac_optarg ;;
826 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
827 |
--dataroo |
--dataro |
--datar)
828 ac_prev
=datarootdir
;;
829 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
830 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
831 datarootdir
=$ac_optarg ;;
833 -disable-* |
--disable-*)
834 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
837 as_fn_error
"invalid feature name: $ac_useropt"
838 ac_useropt_orig
=$ac_useropt
839 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
840 case $ac_user_opts in
844 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
845 ac_unrecognized_sep
=', ';;
847 eval enable_
$ac_useropt=no
;;
849 -docdir |
--docdir |
--docdi |
--doc |
--do)
851 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
854 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
856 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
859 -enable-* |
--enable-*)
860 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
863 as_fn_error
"invalid feature name: $ac_useropt"
864 ac_useropt_orig
=$ac_useropt
865 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
870 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
871 ac_unrecognized_sep
=', ';;
873 eval enable_
$ac_useropt=\
$ac_optarg ;;
875 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
876 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
877 |
--exec |
--exe |
--ex)
878 ac_prev
=exec_prefix
;;
879 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
880 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
881 |
--exec=* |
--exe=* |
--ex=*)
882 exec_prefix
=$ac_optarg ;;
884 -gas |
--gas |
--ga |
--g)
885 # Obsolete; use --with-gas.
888 -help |
--help |
--hel |
--he |
-h)
890 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
891 ac_init_help
=recursive
;;
892 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
893 ac_init_help
=short
;;
895 -host |
--host |
--hos |
--ho)
896 ac_prev
=host_alias
;;
897 -host=* |
--host=* |
--hos=* |
--ho=*)
898 host_alias
=$ac_optarg ;;
900 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
902 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
904 htmldir
=$ac_optarg ;;
906 -includedir |
--includedir |
--includedi |
--included |
--include \
907 |
--includ |
--inclu |
--incl |
--inc)
908 ac_prev
=includedir
;;
909 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
910 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
911 includedir
=$ac_optarg ;;
913 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
915 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
916 infodir
=$ac_optarg ;;
918 -libdir |
--libdir |
--libdi |
--libd)
920 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
923 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
924 |
--libexe |
--libex |
--libe)
925 ac_prev
=libexecdir
;;
926 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
927 |
--libexe=* |
--libex=* |
--libe=*)
928 libexecdir
=$ac_optarg ;;
930 -localedir |
--localedir |
--localedi |
--localed |
--locale)
932 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
933 localedir
=$ac_optarg ;;
935 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
936 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
937 ac_prev
=localstatedir
;;
938 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
939 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
940 localstatedir
=$ac_optarg ;;
942 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
944 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
948 # Obsolete; use --without-fp.
951 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
952 |
--no-cr |
--no-c |
-n)
955 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
956 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
959 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
960 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
961 |
--oldin |
--oldi |
--old |
--ol |
--o)
962 ac_prev
=oldincludedir
;;
963 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
964 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
965 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
966 oldincludedir
=$ac_optarg ;;
968 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
970 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
973 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
974 |
--program-pre |
--program-pr |
--program-p)
975 ac_prev
=program_prefix
;;
976 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
977 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
978 program_prefix
=$ac_optarg ;;
980 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
981 |
--program-suf |
--program-su |
--program-s)
982 ac_prev
=program_suffix
;;
983 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
984 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
985 program_suffix
=$ac_optarg ;;
987 -program-transform-name |
--program-transform-name \
988 |
--program-transform-nam |
--program-transform-na \
989 |
--program-transform-n |
--program-transform- \
990 |
--program-transform |
--program-transfor \
991 |
--program-transfo |
--program-transf \
992 |
--program-trans |
--program-tran \
993 |
--progr-tra |
--program-tr |
--program-t)
994 ac_prev
=program_transform_name
;;
995 -program-transform-name=* |
--program-transform-name=* \
996 |
--program-transform-nam=* |
--program-transform-na=* \
997 |
--program-transform-n=* |
--program-transform-=* \
998 |
--program-transform=* |
--program-transfor=* \
999 |
--program-transfo=* |
--program-transf=* \
1000 |
--program-trans=* |
--program-tran=* \
1001 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1002 program_transform_name
=$ac_optarg ;;
1004 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1006 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1007 pdfdir
=$ac_optarg ;;
1009 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1011 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1014 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1015 |
-silent |
--silent |
--silen |
--sile |
--sil)
1018 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1020 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1022 sbindir
=$ac_optarg ;;
1024 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1025 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1026 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1028 ac_prev
=sharedstatedir
;;
1029 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1030 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1031 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1033 sharedstatedir
=$ac_optarg ;;
1035 -site |
--site |
--sit)
1037 -site=* |
--site=* |
--sit=*)
1040 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1042 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1043 srcdir
=$ac_optarg ;;
1045 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1046 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1047 ac_prev
=sysconfdir
;;
1048 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1049 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1050 sysconfdir
=$ac_optarg ;;
1052 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1053 ac_prev
=target_alias
;;
1054 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1055 target_alias
=$ac_optarg ;;
1057 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1060 -version |
--version |
--versio |
--versi |
--vers |
-V)
1061 ac_init_version
=: ;;
1064 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1067 as_fn_error
"invalid package name: $ac_useropt"
1068 ac_useropt_orig
=$ac_useropt
1069 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1074 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1075 ac_unrecognized_sep
=', ';;
1077 eval with_
$ac_useropt=\
$ac_optarg ;;
1079 -without-* |
--without-*)
1080 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1083 as_fn_error
"invalid package name: $ac_useropt"
1084 ac_useropt_orig
=$ac_useropt
1085 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1090 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1091 ac_unrecognized_sep
=', ';;
1093 eval with_
$ac_useropt=no
;;
1096 # Obsolete; use --with-x.
1099 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1100 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1101 ac_prev
=x_includes
;;
1102 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1103 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1104 x_includes
=$ac_optarg ;;
1106 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1107 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1108 ac_prev
=x_libraries
;;
1109 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1110 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1111 x_libraries
=$ac_optarg ;;
1113 -*) as_fn_error
"unrecognized option: \`$ac_option'
1114 Try \`$0 --help' for more information."
1118 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1119 # Reject names that are not valid shell variable names.
1120 case $ac_envvar in #(
1121 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1122 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1124 eval $ac_envvar=\
$ac_optarg
1125 export $ac_envvar ;;
1128 # FIXME: should be removed in autoconf 3.0.
1129 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1130 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1131 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1132 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1138 if test -n "$ac_prev"; then
1139 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1140 as_fn_error
"missing argument to $ac_option"
1143 if test -n "$ac_unrecognized_opts"; then
1144 case $enable_option_checking in
1146 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1147 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1151 # Check all directory arguments for consistency.
1152 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1153 datadir sysconfdir sharedstatedir localstatedir includedir \
1154 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1155 libdir localedir mandir
1157 eval ac_val
=\$
$ac_var
1158 # Remove trailing slashes.
1161 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1162 eval $ac_var=\
$ac_val;;
1164 # Be sure to have absolute directory names.
1166 [\\/$
]* | ?
:[\\/]* ) continue;;
1167 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1169 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1172 # There might be people who depend on the old broken behavior: `$host'
1173 # used to hold the argument of --host etc.
1174 # FIXME: To remove some day.
1177 target
=$target_alias
1179 # FIXME: To remove some day.
1180 if test "x$host_alias" != x
; then
1181 if test "x$build_alias" = x
; then
1182 cross_compiling
=maybe
1183 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1184 If a cross compiler is detected then cross compile mode will be used." >&2
1185 elif test "x$build_alias" != "x$host_alias"; then
1191 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1193 test "$silent" = yes && exec 6>/dev
/null
1196 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1197 ac_ls_di
=`ls -di .` &&
1198 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1199 as_fn_error
"working directory cannot be determined"
1200 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1201 as_fn_error
"pwd does not report name of working directory"
1204 # Find the source files, if location was not specified.
1205 if test -z "$srcdir"; then
1206 ac_srcdir_defaulted
=yes
1207 # Try the directory containing this script, then the parent directory.
1208 ac_confdir
=`$as_dirname -- "$as_myself" ||
1209 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1210 X"$as_myself" : 'X\(//\)[^/]' \| \
1211 X"$as_myself" : 'X\(//\)$' \| \
1212 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1213 $as_echo X"$as_myself" |
1214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232 if test ! -r "$srcdir/$ac_unique_file"; then
1236 ac_srcdir_defaulted
=no
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1239 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1240 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1242 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1244 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1246 # When building in place, set srcdir=.
1247 if test "$ac_abs_confdir" = "$ac_pwd"; then
1250 # Remove unnecessary trailing slashes from srcdir.
1251 # Double slashes in file names in object file debugging info
1252 # mess up M-x gdb in Emacs.
1254 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1256 for ac_var
in $ac_precious_vars; do
1257 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1258 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1259 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1260 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1264 # Report the --help message.
1266 if test "$ac_init_help" = "long"; then
1267 # Omit some internal or obsolete options to make the list less imposing.
1268 # This message is too long to be a string in the A/UX 3.1 sh.
1270 \`configure' configures this package to adapt to many kinds of systems.
1272 Usage: $0 [OPTION]... [VAR=VALUE]...
1274 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1275 VAR=VALUE. See below for descriptions of some of the useful variables.
1277 Defaults for the options are specified in brackets.
1280 -h, --help display this help and exit
1281 --help=short display options specific to this package
1282 --help=recursive display the short help of all the included packages
1283 -V, --version display version information and exit
1284 -q, --quiet, --silent do not print \`checking...' messages
1285 --cache-file=FILE cache test results in FILE [disabled]
1286 -C, --config-cache alias for \`--cache-file=config.cache'
1287 -n, --no-create do not create output files
1288 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1290 Installation directories:
1291 --prefix=PREFIX install architecture-independent files in PREFIX
1292 [$ac_default_prefix]
1293 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1296 By default, \`make install' will install all the files in
1297 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1298 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1299 for instance \`--prefix=\$HOME'.
1301 For better control, use the options below.
1303 Fine tuning of the installation directories:
1304 --bindir=DIR user executables [EPREFIX/bin]
1305 --sbindir=DIR system admin executables [EPREFIX/sbin]
1306 --libexecdir=DIR program executables [EPREFIX/libexec]
1307 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1308 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1309 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1310 --libdir=DIR object code libraries [EPREFIX/lib]
1311 --includedir=DIR C header files [PREFIX/include]
1312 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1313 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1314 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1315 --infodir=DIR info documentation [DATAROOTDIR/info]
1316 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1317 --mandir=DIR man documentation [DATAROOTDIR/man]
1318 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1319 --htmldir=DIR html documentation [DOCDIR]
1320 --dvidir=DIR dvi documentation [DOCDIR]
1321 --pdfdir=DIR pdf documentation [DOCDIR]
1322 --psdir=DIR ps documentation [DOCDIR]
1328 --program-prefix=PREFIX prepend PREFIX to installed program names
1329 --program-suffix=SUFFIX append SUFFIX to installed program names
1330 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1333 --build=BUILD configure
for building on BUILD
[guessed
]
1334 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1335 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1339 if test -n "$ac_init_help"; then
1344 --disable-option-checking ignore unrecognized
--enable/--with options
1345 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1346 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1347 --enable-checkmem turn on ccmalloc debugging
1348 --enable-debug turn on debugging
1349 --enable-profiling turn on profiling
1350 --enable-warnings turn on compiler warnings
1351 --enable-optimizations turn on compiler optimizations
(recommended
for avi2swf
)
1352 --enable-poppler link againist libpoppler
1353 --disable-lame "don't compile any L.A.M.E. mp3 encoding code in"
1355 Some influential environment variables
:
1356 CC C compiler
command
1357 CFLAGS C compiler flags
1358 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1359 nonstandard directory
<lib dir
>
1360 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1361 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1362 you have headers
in a nonstandard directory
<include dir
>
1363 CXX C
++ compiler
command
1364 CXXFLAGS C
++ compiler flags
1366 CXXCPP C
++ preprocessor
1368 Use these variables to override the choices made by
`configure' or to help
1369 it to find libraries and programs with nonstandard names/locations.
1371 Report bugs to the package provider.
1376 if test "$ac_init_help" = "recursive"; then
1377 # If there are subdirs, report their specific --help.
1378 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1379 test -d "$ac_dir" ||
1380 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1385 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1388 # A ".." for each directory in $ac_dir_suffix.
1389 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1390 case $ac_top_builddir_sub in
1391 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1395 ac_abs_top_builddir=$ac_pwd
1396 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1397 # for backward compatibility:
1398 ac_top_builddir=$ac_top_build_prefix
1401 .) # We are building in place.
1403 ac_top_srcdir=$ac_top_builddir_sub
1404 ac_abs_top_srcdir=$ac_pwd ;;
1405 [\\/]* | ?:[\\/]* ) # Absolute name.
1406 ac_srcdir=$srcdir$ac_dir_suffix;
1407 ac_top_srcdir=$srcdir
1408 ac_abs_top_srcdir=$srcdir ;;
1410 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1411 ac_top_srcdir=$ac_top_build_prefix$srcdir
1412 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416 cd "$ac_dir" || { ac_status=$?; continue; }
1417 # Check for guested configure.
1418 if test -f "$ac_srcdir/configure.gnu"; then
1420 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1421 elif test -f "$ac_srcdir/configure"; then
1423 $SHELL "$ac_srcdir/configure" --help=recursive
1425 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 cd "$ac_pwd" || { ac_status=$?; break; }
1431 test -n "$ac_init_help" && exit $ac_status
1432 if $ac_init_version; then
1435 generated by GNU Autoconf 2.65
1437 Copyright (C) 2009 Free Software Foundation, Inc.
1438 This configure script is free software; the Free Software Foundation
1439 gives unlimited permission to copy, distribute and modify it.
1444 ## ------------------------ ##
1445 ## Autoconf initialization. ##
1446 ## ------------------------ ##
1448 # ac_fn_c_try_compile LINENO
1449 # --------------------------
1450 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1451 ac_fn_c_try_compile ()
1453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1454 rm -f conftest.$ac_objext
1455 if { { ac_try="$ac_compile"
1457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1458 *) ac_try_echo
=$ac_try;;
1460 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1461 $as_echo "$ac_try_echo"; } >&5
1462 (eval "$ac_compile") 2>conftest.err
1464 if test -s conftest.err
; then
1465 grep -v '^ *+' conftest.err
>conftest.er1
1466 cat conftest.er1
>&5
1467 mv -f conftest.er1 conftest.err
1469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1470 test $ac_status = 0; } && {
1471 test -z "$ac_c_werror_flag" ||
1472 test ! -s conftest.err
1473 } && test -s conftest.
$ac_objext; then :
1476 $as_echo "$as_me: failed program was:" >&5
1477 sed 's/^/| /' conftest.
$ac_ext >&5
1481 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1482 as_fn_set_status
$ac_retval
1484 } # ac_fn_c_try_compile
1486 # ac_fn_cxx_try_compile LINENO
1487 # ----------------------------
1488 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1489 ac_fn_cxx_try_compile
()
1491 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1492 rm -f conftest.
$ac_objext
1493 if { { ac_try
="$ac_compile"
1495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1496 *) ac_try_echo=$ac_try;;
1498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500 (eval "$ac_compile") 2>conftest.err
1502 if test -s conftest.err; then
1503 grep -v '^ *+' conftest.err >conftest.er1
1504 cat conftest.er1 >&5
1505 mv -f conftest.er1 conftest.err
1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; } && {
1509 test -z "$ac_cxx_werror_flag" ||
1510 test ! -s conftest.err
1511 } && test -s conftest.$ac_objext; then :
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1519 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1520 as_fn_set_status $ac_retval
1522 } # ac_fn_cxx_try_compile
1524 # ac_fn_c_try_cpp LINENO
1525 # ----------------------
1526 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 if { { ac_try="$ac_cpp conftest.$ac_ext"
1532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1533 *) ac_try_echo
=$ac_try;;
1535 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1539 if test -s conftest.err
; then
1540 grep -v '^ *+' conftest.err
>conftest.er1
1541 cat conftest.er1
>&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } >/dev
/null
&& {
1546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.
$ac_ext >&5
1556 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1557 as_fn_set_status
$ac_retval
1561 # ac_fn_c_try_link LINENO
1562 # -----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded.
1566 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1567 rm -f conftest.
$ac_objext conftest
$ac_exeext
1568 if { { ac_try
="$ac_link"
1570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>conftest.err
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest$ac_exeext && {
1587 test "$cross_compiling" = yes ||
1588 $as_test_x conftest$ac_exeext
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 as_fn_set_status $ac_retval
1605 } # ac_fn_c_try_link
1607 # ac_fn_c_try_run LINENO
1608 # ----------------------
1609 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1610 # that executables *can* be run.
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_link"
1616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1617 *) ac_try_echo
=$ac_try;;
1619 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_link") 2>&5
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1625 { { case "(($ac_try" in
1626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_try") 2>&5
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; }; }; then :
1637 $as_echo "$as_me: program exited with status $ac_status" >&5
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1641 ac_retval=$ac_status
1643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645 as_fn_set_status $ac_retval
1649 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1650 # -------------------------------------------------------
1651 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1652 # the include files in INCLUDES and setting the cache variable VAR
1654 ac_fn_c_check_header_mongrel ()
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659 $as_echo_n "checking for $2... " >&6; }
1660 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1661 $as_echo_n "(cached) " >&6
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1667 # Is the header compilable?
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1669 $as_echo_n "checking $2 usability... " >&6; }
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1675 if ac_fn_c_try_compile "$LINENO"; then :
1676 ac_header_compiler=yes
1678 ac_header_compiler=no
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1682 $as_echo "$ac_header_compiler" >&6; }
1684 # Is the header present?
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1686 $as_echo_n "checking $2 presence... " >&6; }
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1691 if ac_fn_c_try_cpp "$LINENO"; then :
1692 ac_header_preproc=yes
1694 ac_header_preproc=no
1696 rm -f conftest.err conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1698 $as_echo "$ac_header_preproc" >&6; }
1700 # So? What about this header?
1701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1704 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1710 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1712 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1714 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1716 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1724 $as_echo_n "(cached) " >&6
1726 eval "$3=\$ac_header_compiler"
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734 } # ac_fn_c_check_header_mongrel
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1753 if ac_fn_c_try_compile "$LINENO"; then :
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 } # ac_fn_c_check_header_compile
1767 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1768 # -------------------------------------------
1769 # Tests whether TYPE exists after having included INCLUDES, setting cache
1770 # variable VAR accordingly.
1771 ac_fn_c_check_type ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1805 if ac_fn_c_try_compile "$LINENO"; then :
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 } # ac_fn_c_check_type
1821 # ac_fn_c_check_func LINENO FUNC VAR
1822 # ----------------------------------
1823 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1824 ac_fn_c_check_func ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 $as_echo_n "checking for $2... " >&6; }
1829 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830 $as_echo_n "(cached) " >&6
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1836 #define $2 innocuous_$2
1838 /* System header to define __stub macros and hopefully few prototypes,
1839 which can conflict with char $2 (); below.
1840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1841 <limits.h> exists even on freestanding compilers. */
1844 # include <limits.h>
1846 # include <assert.h>
1851 /* Override any GCC internal prototype to avoid an error.
1852 Use char because int might match the return type of a GCC
1853 builtin and then its argument prototype would still apply. */
1858 /* The GNU C library defines this for functions which it implements
1859 to always fail with ENOSYS. Some functions are actually named
1860 something starting with __ and the normal name is an alias. */
1861 #if defined __stub_$2 || defined __stub___$2
1873 if ac_fn_c_try_link "$LINENO"; then :
1878 rm -f core conftest.err conftest.$ac_objext \
1879 conftest$ac_exeext conftest.$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886 } # ac_fn_c_check_func
1888 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1889 # --------------------------------------------
1890 # Tries to find the compile-time value of EXPR in a program that includes
1891 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1893 ac_fn_c_compute_int ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if test "$cross_compiling" = yes; then
1897 # Depending upon the size, compute the lo and hi bounds.
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1904 static int test_array [1 - 2 * !(($2) >= 0)];
1911 if ac_fn_c_try_compile "$LINENO"; then :
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1920 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 ac_hi=$ac_mid; break
1930 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1931 if test $ac_lo -le $ac_mid; then
1935 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1946 static int test_array [1 - 2 * !(($2) < 0)];
1953 if ac_fn_c_try_compile "$LINENO"; then :
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1962 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 ac_lo=$ac_mid; break
1972 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1973 if test $ac_mid -le $ac_hi; then
1977 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 # Binary search between lo and hi bounds.
1988 while test "x$ac_lo" != "x$ac_hi"; do
1989 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1996 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2003 if ac_fn_c_try_compile "$LINENO"; then :
2006 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2018 static long int longval () { return $2; }
2019 static unsigned long int ulongval () { return $2; }
2026 FILE *f = fopen ("conftest.val", "w");
2031 long int i = longval ();
2034 fprintf (f, "%ld", i);
2038 unsigned long int i = ulongval ();
2041 fprintf (f, "%lu", i);
2043 /* Do not output a trailing newline, as this causes \r\n confusion
2044 on some platforms. */
2045 return ferror (f) || fclose (f) != 0;
2051 if ac_fn_c_try_run "$LINENO"; then :
2052 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2057 conftest.$ac_objext conftest.beam conftest.$ac_ext
2061 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062 as_fn_set_status $ac_retval
2064 } # ac_fn_c_compute_int
2066 # ac_fn_cxx_try_cpp LINENO
2067 # ------------------------
2068 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2069 ac_fn_cxx_try_cpp ()
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 if { { ac_try="$ac_cpp conftest.$ac_ext"
2074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2075 *) ac_try_echo
=$ac_try;;
2077 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2081 if test -s conftest.err
; then
2082 grep -v '^ *+' conftest.err
>conftest.er1
2083 cat conftest.er1
>&5
2084 mv -f conftest.er1 conftest.err
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } >/dev
/null
&& {
2088 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2089 test ! -s conftest.err
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.
$ac_ext >&5
2098 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2099 as_fn_set_status
$ac_retval
2101 } # ac_fn_cxx_try_cpp
2103 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2104 # ---------------------------------------------------------
2105 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2106 # the include files in INCLUDES and setting the cache variable VAR
2108 ac_fn_cxx_check_header_mongrel
()
2110 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2111 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2115 $as_echo_n "(cached) " >&6
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; }
2121 # Is the header compilable?
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2123 $as_echo_n "checking $2 usability... " >&6; }
2124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2129 if ac_fn_cxx_try_compile
"$LINENO"; then :
2130 ac_header_compiler
=yes
2132 ac_header_compiler
=no
2134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2136 $as_echo "$ac_header_compiler" >&6; }
2138 # Is the header present?
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2140 $as_echo_n "checking $2 presence... " >&6; }
2141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2145 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2146 ac_header_preproc
=yes
2148 ac_header_preproc
=no
2150 rm -f conftest.err conftest.
$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2152 $as_echo "$ac_header_preproc" >&6; }
2154 # So? What about this header?
2155 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2158 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2160 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2164 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2166 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2168 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2170 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2172 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2178 $as_echo_n "(cached) " >&6
2180 eval "$3=\$ac_header_compiler"
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2188 } # ac_fn_cxx_check_header_mongrel
2190 # ac_fn_cxx_try_link LINENO
2191 # -------------------------
2192 # Try to link conftest.$ac_ext, and return whether this succeeded.
2193 ac_fn_cxx_try_link
()
2195 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2196 rm -f conftest.
$ac_objext conftest
$ac_exeext
2197 if { { ac_try
="$ac_link"
2199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2200 *) ac_try_echo=$ac_try;;
2202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2203 $as_echo "$ac_try_echo"; } >&5
2204 (eval "$ac_link") 2>conftest.err
2206 if test -s conftest.err; then
2207 grep -v '^ *+' conftest.err >conftest.er1
2208 cat conftest.er1 >&5
2209 mv -f conftest.er1 conftest.err
2211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2212 test $ac_status = 0; } && {
2213 test -z "$ac_cxx_werror_flag" ||
2214 test ! -s conftest.err
2215 } && test -s conftest$ac_exeext && {
2216 test "$cross_compiling" = yes ||
2217 $as_test_x conftest$ac_exeext
2221 $as_echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2226 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2227 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2228 # interfere with the next link command; also delete a directory that is
2229 # left behind by Apple's compiler. We do this before executing the actions.
2230 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2231 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2232 as_fn_set_status $ac_retval
2234 } # ac_fn_cxx_try_link
2235 cat >config.log <<_ACEOF
2236 This file contains any messages produced by compilers while
2237 running configure, to aid debugging if configure makes a mistake.
2239 It was created by $as_me, which was
2240 generated by GNU Autoconf 2.65. Invocation command line was
2252 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2253 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2254 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2255 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2256 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2258 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2259 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2261 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2262 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2263 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2264 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2265 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2266 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2267 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 test -z "$as_dir" && as_dir=.
2276 $as_echo "PATH: $as_dir"
2292 # Keep a trace of the command line.
2293 # Strip out --no-create and --no-recursion so they do not pile up.
2294 # Strip out --silent because we don't want to record it for future runs.
2295 # Also quote any args containing shell meta-characters.
2296 # Make two passes to allow for proper duplicate-argument suppression.
2300 ac_must_keep_next=false
2306 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2308 | -silent | --silent | --silen | --sile | --sil)
2311 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2314 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2316 as_fn_append ac_configure_args1 " '$ac_arg'"
2317 if test $ac_must_keep_next = true; then
2318 ac_must_keep_next=false # Got value, back to normal.
2321 *=* | --config-cache | -C | -disable-* | --disable-* \
2322 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2323 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2324 | -with-* | --with-* | -without-* | --without-* | --x)
2325 case "$ac_configure_args0 " in
2326 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2329 -* ) ac_must_keep_next=true ;;
2332 as_fn_append ac_configure_args " '$ac_arg'"
2337 { ac_configure_args0=; unset ac_configure_args0;}
2338 { ac_configure_args1=; unset ac_configure_args1;}
2340 # When interrupted or exit'd, cleanup temporary files, and complete
2341 # config.log. We remove comments because anyway the quotes in there
2342 # would cause problems or look ugly.
2343 # WARNING: Use '\'' to represent an apostrophe within the trap.
2344 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2345 trap 'exit_status=$?
2346 # Save into config.log some information that might help in debugging.
2351 ## ---------------- ##
2352 ## Cache variables. ##
2353 ## ---------------- ##
2356 # The following way of writing the cache mishandles newlines in values,
2358 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2359 eval ac_val=\$$ac_var
2363 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2367 _ | IFS | as_nl) ;; #(
2368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2369 *) { eval $ac_var=; unset $ac_var;} ;;
2374 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2375 *${as_nl}ac_space=\ *)
2377 "s/'\''/'\''\\\\'\'''\''/g;
2378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2381 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2389 ## ----------------- ##
2390 ## Output variables. ##
2391 ## ----------------- ##
2394 for ac_var in $ac_subst_vars
2396 eval ac_val=\$$ac_var
2398 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400 $as_echo "$ac_var='\''$ac_val'\''"
2404 if test -n "$ac_subst_files"; then
2406 ## ------------------- ##
2407 ## File substitutions. ##
2408 ## ------------------- ##
2411 for ac_var in $ac_subst_files
2413 eval ac_val=\$$ac_var
2415 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417 $as_echo "$ac_var='\''$ac_val'\''"
2422 if test -s confdefs.h; then
2432 test "$ac_signal" != 0 &&
2433 $as_echo "$as_me: caught signal $ac_signal"
2434 $as_echo "$as_me: exit $exit_status"
2436 rm -f core *.core core.conftest.* &&
2437 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2440 for ac_signal in 1 2 13 15; do
2441 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2445 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2446 rm -f -r conftest* confdefs.h
2448 $as_echo "/* confdefs.h */" > confdefs.h
2450 # Predefined preprocessor variables.
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_NAME "$PACKAGE_NAME"
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_STRING "$PACKAGE_STRING"
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_URL "$PACKAGE_URL"
2477 # Let the site file select an alternate cache file if it wants to.
2478 # Prefer an explicitly selected file to automatically selected ones.
2481 if test -n "$CONFIG_SITE"; then
2482 ac_site_file1=$CONFIG_SITE
2483 elif test "x$prefix" != xNONE; then
2484 ac_site_file1=$prefix/share/config.site
2485 ac_site_file2=$prefix/etc/config.site
2487 ac_site_file1=$ac_default_prefix/share/config.site
2488 ac_site_file2=$ac_default_prefix/etc/config.site
2490 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2492 test "x$ac_site_file" = xNONE && continue
2493 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2495 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2496 sed 's/^/| /' "$ac_site_file" >&5
2501 if test -r "$cache_file"; then
2502 # Some versions of bash will fail to source /dev/null (special files
2503 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2504 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2506 $as_echo "$as_me: loading cache $cache_file" >&6;}
2508 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2509 *) . "./$cache_file";;
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2514 $as_echo "$as_me: creating cache $cache_file" >&6;}
2518 # Check that the precious variables saved in the cache have kept the same
2520 ac_cache_corrupted=false
2521 for ac_var in $ac_precious_vars; do
2522 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2523 eval ac_new_set=\$ac_env_${ac_var}_set
2524 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2525 eval ac_new_val=\$ac_env_${ac_var}_value
2526 case $ac_old_set,$ac_new_set in
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2529 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2530 ac_cache_corrupted=: ;;
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2533 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2534 ac_cache_corrupted=: ;;
2537 if test "x$ac_old_val" != "x$ac_new_val"; then
2538 # differences in whitespace do not lead to failure.
2539 ac_old_val_w=`echo x
$ac_old_val`
2540 ac_new_val_w=`echo x
$ac_new_val`
2541 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2543 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2544 ac_cache_corrupted=:
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2547 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2548 eval $ac_var=\$ac_old_val
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2551 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2553 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2556 # Pass precious variables to config.status.
2557 if test "$ac_new_set" = set; then
2559 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2560 *) ac_arg=$ac_var=$ac_new_val ;;
2562 case " $ac_configure_args " in
2563 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2564 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2568 if $ac_cache_corrupted; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2572 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2573 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2575 ## -------------------- ##
2576 ## Main body of script. ##
2577 ## -------------------- ##
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588 # ------------------- option parsing -------------------------------
2598 # Check whether --enable-checkmem was given.
2599 if test "${enable_checkmem+set}" = set; then :
2600 enableval=$enable_checkmem; CHECKMEM=true
2603 # Check whether --enable-debug was given.
2604 if test "${enable_debug+set}" = set; then :
2605 enableval=$enable_debug; DEBUG=true
2608 # Check whether --enable-profiling was given.
2609 if test "${enable_profiling+set}" = set; then :
2610 enableval=$enable_profiling; PROFILING=true
2613 # Check whether --enable-warnings was given.
2614 if test "${enable_warnings+set}" = set; then :
2615 enableval=$enable_warnings; ENABLE_WARNINGS=true
2618 # Check whether --enable-optimizations was given.
2619 if test "${enable_optimizations+set}" = set; then :
2620 enableval=$enable_optimizations; OPTIMIZE=true
2623 # Check whether --enable-poppler was given.
2624 if test "${enable_poppler+set}" = set; then :
2625 enableval=$enable_poppler; USE_POPPLER=true
2628 # Check whether --enable-lame was given.
2629 if test "${enable_lame+set}" = set; then :
2630 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
2641 # ------------------------------------------------------------------
2643 if test "x${srcdir}" != "x."; then
2644 echo "--srcdir is not supported"
2648 WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings -Wformat"
2649 if test "x$ENABLE_WARNINGS" '!=' "x";then
2650 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
2653 if test "x$CHECKMEM" '!=' "x";then
2656 if test "x$PROFILING" '!=' "x";then
2659 if test "x$DEBUG" '!=' "x";then
2660 if test "x$PROFILING" = "x";then
2661 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
2662 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
2663 LDFLAGS="-g $LDFLAGS"
2665 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
2666 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
2667 LDFLAGS="-g -pg $LDFLAGS"
2669 else if test "x$OPTIMIZE" '!=' "x"; then
2670 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
2671 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
2673 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
2674 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
2678 CFLAGS="-fPIC $CFLAGS"
2679 CXXFLAGS="-fPIC $CFLAGS"
2682 #if test "x$OLDGCC" '!=' "x";then
2683 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
2684 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
2685 # CFLAGS="$CFLAGS -ansi -pendantic"
2686 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
2689 export PACKAGE VERSION CFLAGS CXXFLAGS
2693 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2694 for ac_t in install-sh install.sh shtool; do
2695 if test -f "$ac_dir/$ac_t"; then
2697 ac_install_sh="$ac_aux_dir/$ac_t -c"
2702 if test -z "$ac_aux_dir"; then
2703 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2706 # These three variables are undocumented and unsupported,
2707 # and are intended to be withdrawn in a future Autoconf release.
2708 # They can cause serious problems if a builder's source tree is in a directory
2709 # whose full name contains unusual characters.
2710 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2711 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2712 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2715 # Make sure we can run config.sub.
2716 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2717 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2720 $as_echo_n "checking build system type... " >&6; }
2721 if test "${ac_cv_build+set}" = set; then :
2722 $as_echo_n "(cached) " >&6
2724 ac_build_alias=$build_alias
2725 test "x$ac_build_alias" = x &&
2726 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2727 test "x$ac_build_alias" = x &&
2728 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2729 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2730 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2734 $as_echo "$ac_cv_build" >&6; }
2735 case $ac_cv_build in
2737 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2740 ac_save_IFS=$IFS; IFS='-'
2746 # Remember, the first character of IFS is used to create $*,
2747 # except with old shells:
2750 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2754 $as_echo_n "checking host system type... " >&6; }
2755 if test "${ac_cv_host+set}" = set; then :
2756 $as_echo_n "(cached) " >&6
2758 if test "x$host_alias" = x; then
2759 ac_cv_host=$ac_cv_build
2761 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2762 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2767 $as_echo "$ac_cv_host" >&6; }
2770 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2773 ac_save_IFS=$IFS; IFS='-'
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2783 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2794 CXXFLAGS="$CXXFLAGS -fno-rtti"
2797 if test -d /opt/local/include && test -d /opt/local/lib; then
2798 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2799 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2801 # Use fink packages if available.
2802 #if test -d /sw/include && test -d /sw/lib; then
2803 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2804 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816 if test -n "$ac_tool_prefix"; then
2817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if test "${ac_cv_prog_CC+set}" = set; then :
2822 $as_echo_n "(cached) " >&6
2824 if test -n "$CC"; then
2825 ac_cv_prog_CC="$CC" # Let the user override the test.
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 if test -n "$CC"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2847 $as_echo "$CC" >&6; }
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2855 if test -z "$ac_cv_prog_CC"; then
2857 # Extract the first word of "gcc", so it can be a program name with args.
2858 set dummy gcc; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2862 $as_echo_n "(cached) " >&6
2864 if test -n "$ac_ct_CC"; then
2865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_ac_ct_CC="gcc"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2885 if test -n "$ac_ct_CC"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2887 $as_echo "$ac_ct_CC" >&6; }
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2893 if test "x$ac_ct_CC" = x; then
2896 case $cross_compiling:$ac_tool_warned in
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2900 ac_tool_warned=yes ;;
2908 if test -z "$CC"; then
2909 if test -n "$ac_tool_prefix"; then
2910 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2911 set dummy ${ac_tool_prefix}cc; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if test "${ac_cv_prog_CC+set}" = set; then :
2915 $as_echo_n "(cached) " >&6
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_CC="${ac_tool_prefix}cc"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 if test -n "$CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940 $as_echo "$CC" >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2949 if test -z "$CC"; then
2950 # Extract the first word of "cc", so it can be a program name with args.
2951 set dummy cc; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if test "${ac_cv_prog_CC+set}" = set; then :
2955 $as_echo_n "(cached) " >&6
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC="$CC" # Let the user override the test.
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2969 ac_prog_rejected=yes
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 if test $ac_prog_rejected = yes; then
2981 # We found a bogon in the path, so make sure we never use it.
2982 set dummy $ac_cv_prog_CC
2984 if test $# != 0; then
2985 # We chose a different compiler from the bogus one.
2986 # However, it has the same basename, so the bogon will be chosen
2987 # first if we set CC to just the basename; use the full file name.
2989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2995 if test -n "$CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3005 if test -z "$CC"; then
3006 if test -n "$ac_tool_prefix"; then
3007 for ac_prog in cl.exe
3009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then :
3014 $as_echo_n "(cached) " >&6
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 if test -n "$CC"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039 $as_echo "$CC" >&6; }
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3046 test -n "$CC" && break
3049 if test -z "$CC"; then
3051 for ac_prog in cl.exe
3053 # Extract the first word of "$ac_prog", so it can be a program name with args.
3054 set dummy $ac_prog; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3060 if test -n "$ac_ct_CC"; then
3061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_ac_ct_CC="$ac_prog"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3081 if test -n "$ac_ct_CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3083 $as_echo "$ac_ct_CC" >&6; }
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3090 test -n "$ac_ct_CC" && break
3093 if test "x$ac_ct_CC" = x; then
3096 case $cross_compiling:$ac_tool_warned in
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3100 ac_tool_warned=yes ;;
3109 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3111 as_fn_error "no acceptable C compiler found
in \
$PATH
3112 See \
`config.log' for more details." "$LINENO" 5; }
3114 # Provide some information about the compiler.
3115 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3118 for ac_option in --version -v -V -qversion; do
3119 { { ac_try="$ac_compiler $ac_option >&5"
3121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3122 *) ac_try_echo
=$ac_try;;
3124 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3128 if test -s conftest.err
; then
3130 ... rest of stderr output deleted ...
3131 10q' conftest.err
>conftest.er1
3132 cat conftest.er1
>&5
3134 rm -f conftest.er1 conftest.err
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }
3139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3150 ac_clean_files_save
=$ac_clean_files
3151 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3152 # Try to create an executable without -o first, disregard a.out.
3153 # It will help us diagnose broken compilers, and finding out an intuition
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3156 $as_echo_n "checking whether the C compiler works... " >&6; }
3157 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3159 # The possible output files:
3160 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3163 for ac_file
in $ac_files
3166 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3167 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3172 if { { ac_try
="$ac_link_default"
3174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_link_default") 2>&5
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }; then :
3183 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3184 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3185 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3186 # so that the user can short-circuit this test for compilers unknown to
3188 for ac_file in $ac_files ''
3190 test -f "$ac_file" || continue
3192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3195 # We found the default executable, but exeext='' is most
3199 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3203 # We set ac_cv_exeext here because the later test for it is not
3204 # safe: cross compilers may not add the suffix if given an `-o'
3205 # argument, so we may need to know it at that point already.
3206 # Even if this section looks crufty: it has the advantage of
3213 test "$ac_cv_exeext" = no && ac_cv_exeext=
3218 if test -z "$ac_file"; then :
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 $as_echo "$as_me: failed program was:" >&5
3222 sed 's
/^
/|
/' conftest.$ac_ext >&5
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3226 { as_fn_set_status 77
3227 as_fn_error "C compiler cannot create executables
3228 See \`config.log
' for more details." "$LINENO" 5; }; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3231 $as_echo "yes" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3234 $as_echo_n "checking for C compiler default output file name... " >&6; }
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3236 $as_echo "$ac_file" >&6; }
3237 ac_exeext=$ac_cv_exeext
3239 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3240 ac_clean_files=$ac_clean_files_save
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3242 $as_echo_n "checking for suffix of executables... " >&6; }
3243 if { { ac_try="$ac_link"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249 $as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_link") 2>&5
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }; then :
3254 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3255 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3256 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3258 for ac_file
in conftest.exe conftest conftest.
*; do
3259 test -f "$ac_file" ||
continue
3261 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3262 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3271 See \`config.log' for more details." "$LINENO" 5; }
3273 rm -f conftest conftest
$ac_cv_exeext
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3275 $as_echo "$ac_cv_exeext" >&6; }
3277 rm -f conftest.
$ac_ext
3278 EXEEXT
=$ac_cv_exeext
3280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3286 FILE *f = fopen ("conftest.out", "w");
3287 return ferror (f) || fclose (f) != 0;
3293 ac_clean_files
="$ac_clean_files conftest.out"
3294 # Check that the compiler produces executables we can run. If not, either
3295 # the compiler is broken, or we cross compile.
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3297 $as_echo_n "checking whether we are cross compiling... " >&6; }
3298 if test "$cross_compiling" != yes; then
3299 { { ac_try
="$ac_link"
3301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3305 $as_echo "$ac_try_echo"; } >&5
3306 (eval "$ac_link") 2>&5
3308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309 test $ac_status = 0; }
3310 if { ac_try='./conftest$ac_cv_exeext'
3311 { { case "(($ac_try" in
3312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3313 *) ac_try_echo
=$ac_try;;
3315 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 $as_echo "$ac_try_echo"; } >&5
3317 (eval "$ac_try") 2>&5
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }; }; then
3323 if test "$cross_compiling" = maybe
; then
3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error
"cannot run C compiled programs.
3329 If you meant to cross compile, use \`--host'.
3330 See \`config.log' for more details." "$LINENO" 5; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3335 $as_echo "$cross_compiling" >&6; }
3337 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3338 ac_clean_files
=$ac_clean_files_save
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3340 $as_echo_n "checking for suffix of object files... " >&6; }
3341 if test "${ac_cv_objext+set}" = set; then :
3342 $as_echo_n "(cached) " >&6
3344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3355 rm -f conftest.o conftest.obj
3356 if { { ac_try
="$ac_compile"
3358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_compile") 2>&5
3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }; then :
3367 for ac_file in conftest.o conftest.obj conftest.*; do
3368 test -f "$ac_file" || continue;
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3376 $as_echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error "cannot compute suffix of object files
: cannot compile
3382 See \
`config.log' for more details." "$LINENO" 5; }
3384 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3387 $as_echo "$ac_cv_objext" >&6; }
3388 OBJEXT=$ac_cv_objext
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3391 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3392 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3409 if ac_fn_c_try_compile "$LINENO"; then :
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3419 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3420 if test $ac_compiler_gnu = yes; then
3425 ac_test_CFLAGS=${CFLAGS+set}
3426 ac_save_CFLAGS=$CFLAGS
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3428 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3429 if test "${ac_cv_prog_cc_g+set}" = set; then :
3430 $as_echo_n "(cached) " >&6
3432 ac_save_c_werror_flag=$ac_c_werror_flag
3433 ac_c_werror_flag=yes
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3447 if ac_fn_c_try_compile "$LINENO"; then :
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3462 if ac_fn_c_try_compile "$LINENO"; then :
3465 ac_c_werror_flag=$ac_save_c_werror_flag
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3478 if ac_fn_c_try_compile "$LINENO"; then :
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 ac_c_werror_flag=$ac_save_c_werror_flag
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3489 $as_echo "$ac_cv_prog_cc_g" >&6; }
3490 if test "$ac_test_CFLAGS" = set; then
3491 CFLAGS=$ac_save_CFLAGS
3492 elif test $ac_cv_prog_cc_g = yes; then
3493 if test "$GCC" = yes; then
3499 if test "$GCC" = yes; then
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3506 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3507 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3510 ac_cv_prog_cc_c89=no
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3516 #include <sys/types.h>
3517 #include <sys/stat.h>
3518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3519 struct buf { int x; };
3520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3521 static char *e (p, i)
3527 static char *f (char * (*g) (char **, int), char **p, ...)
3532 s = g (p, va_arg (v,int));
3537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3538 function prototypes and stuff, but not '\xHH' hex character constants.
3539 These don't provoke an error unfortunately, instead are silently treated
3540 as 'x'. The following induces an error, until -std is added to get
3541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3542 array size at least. It's necessary to write '\x00'==0 to get something
3543 that's true only with -std. */
3544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3547 inside strings and character constants. */
3549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3551 int test (int i, double x);
3552 struct s1 {int (*f) (int a);};
3553 struct s2 {int (*f) (double a);};
3554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3560 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3568 CC="$ac_save_CC $ac_arg"
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570 ac_cv_prog_cc_c89=$ac_arg
3572 rm -f core conftest.err conftest.$ac_objext
3573 test "x$ac_cv_prog_cc_c89" != "xno" && break
3575 rm -f conftest.$ac_ext
3580 case "x$ac_cv_prog_cc_c89" in
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3583 $as_echo "none needed" >&6; } ;;
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3586 $as_echo "unsupported" >&6; } ;;
3588 CC="$CC $ac_cv_prog_cc_c89"
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3590 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3592 if test "x$ac_cv_prog_cc_c89" != xno; then :
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603 ac_cpp='$CXXCPP $CPPFLAGS'
3604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3607 if test -z "$CXX"; then
3608 if test -n "$CCC"; then
3611 if test -n "$ac_tool_prefix"; then
3612 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if test "${ac_cv_prog_CXX+set}" = set; then :
3619 $as_echo_n "(cached) " >&6
3621 if test -n "$CXX"; then
3622 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 if test -n "$CXX"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3644 $as_echo "$CXX" >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3651 test -n "$CXX" && break
3654 if test -z "$CXX"; then
3656 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3658 # Extract the first word of "$ac_prog", so it can be a program name with args.
3659 set dummy $ac_prog; ac_word=$2
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661 $as_echo_n "checking for $ac_word... " >&6; }
3662 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3663 $as_echo_n "(cached) " >&6
3665 if test -n "$ac_ct_CXX"; then
3666 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675 ac_cv_prog_ac_ct_CXX="$ac_prog"
3676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3686 if test -n "$ac_ct_CXX"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3688 $as_echo "$ac_ct_CXX" >&6; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3695 test -n "$ac_ct_CXX" && break
3698 if test "x$ac_ct_CXX" = x; then
3701 case $cross_compiling:$ac_tool_warned in
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3705 ac_tool_warned=yes ;;
3713 # Provide some information about the compiler.
3714 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3717 for ac_option in --version -v -V -qversion; do
3718 { { ac_try="$ac_compiler $ac_option >&5"
3720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3721 *) ac_try_echo
=$ac_try;;
3723 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 $as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3727 if test -s conftest.err
; then
3729 ... rest of stderr output deleted ...
3730 10q' conftest.err
>conftest.er1
3731 cat conftest.er1
>&5
3733 rm -f conftest.er1 conftest.err
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3739 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3740 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3757 if ac_fn_cxx_try_compile
"$LINENO"; then :
3762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3763 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3767 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3768 if test $ac_compiler_gnu = yes; then
3773 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3774 ac_save_CXXFLAGS
=$CXXFLAGS
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3776 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3777 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3780 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3781 ac_cxx_werror_flag
=yes
3784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3795 if ac_fn_cxx_try_compile
"$LINENO"; then :
3796 ac_cv_prog_cxx_g
=yes
3799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3810 if ac_fn_cxx_try_compile
"$LINENO"; then :
3813 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3826 if ac_fn_cxx_try_compile
"$LINENO"; then :
3827 ac_cv_prog_cxx_g
=yes
3829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3834 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3837 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3838 if test "$ac_test_CXXFLAGS" = set; then
3839 CXXFLAGS
=$ac_save_CXXFLAGS
3840 elif test $ac_cv_prog_cxx_g = yes; then
3841 if test "$GXX" = yes; then
3847 if test "$GXX" = yes; then
3854 ac_cpp
='$CPP $CPPFLAGS'
3855 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports lazy variable declaration" >&5
3863 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3865 cat > conftest.c
<< EOF
3879 testprog_link
='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3880 if { (eval echo gcc
.2.95.
m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3882 $as_echo "yes" >&6; }
3886 echo "configure: failed program was:" >&5
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 $as_echo "no" >&6; }
3894 if test "x$GCC_IS_OK" '=' "x";then
3895 echo "***************************************************"
3896 echo "* Your gcc is too old to compile this!"
3898 echo "* The last version compileable by this compiler is "
3899 echo "* swftools 0.7.0, which you can download from "
3900 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3902 echo "* Newer versions require at least gcc 3.0.0 "
3903 echo "***************************************************"
3907 if test "x$CHECKMEM" '!=' "x";then
3911 #unset ac_cv_prog_CC
3912 #unset ac_cv_prog_CXX
3917 ac_cpp
='$CPP $CPPFLAGS'
3918 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3922 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3923 # On Suns, sometimes $CPP names a directory.
3924 if test -n "$CPP" && test -d "$CPP"; then
3927 if test -z "$CPP"; then
3928 if test "${ac_cv_prog_CPP+set}" = set; then :
3929 $as_echo_n "(cached) " >&6
3931 # Double quotes because CPP needs to be expanded
3932 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3935 for ac_c_preproc_warn_flag
in '' yes
3937 # Use a header file that comes with gcc, so configuring glibc
3938 # with a fresh cross-compiler works.
3939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3940 # <limits.h> exists even on freestanding compilers.
3941 # On the NeXT, cc -E runs the code through the compiler's parser,
3942 # not just through cpp. "Syntax error" is here to catch this case.
3943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3946 # include <limits.h>
3948 # include <assert.h>
3952 if ac_fn_c_try_cpp
"$LINENO"; then :
3955 # Broken: fails on valid input.
3958 rm -f conftest.err conftest.
$ac_ext
3960 # OK, works on sane cases. Now check whether nonexistent headers
3961 # can be detected and how.
3962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964 #include <ac_nonexistent.h>
3966 if ac_fn_c_try_cpp
"$LINENO"; then :
3967 # Broken: success on invalid input.
3970 # Passes both tests.
3974 rm -f conftest.err conftest.
$ac_ext
3977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978 rm -f conftest.err conftest.
$ac_ext
3979 if $ac_preproc_ok; then :
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3992 $as_echo "$CPP" >&6; }
3994 for ac_c_preproc_warn_flag
in '' yes
3996 # Use a header file that comes with gcc, so configuring glibc
3997 # with a fresh cross-compiler works.
3998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999 # <limits.h> exists even on freestanding compilers.
4000 # On the NeXT, cc -E runs the code through the compiler's parser,
4001 # not just through cpp. "Syntax error" is here to catch this case.
4002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4005 # include <limits.h>
4007 # include <assert.h>
4011 if ac_fn_c_try_cpp
"$LINENO"; then :
4014 # Broken: fails on valid input.
4017 rm -f conftest.err conftest.
$ac_ext
4019 # OK, works on sane cases. Now check whether nonexistent headers
4020 # can be detected and how.
4021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <ac_nonexistent.h>
4025 if ac_fn_c_try_cpp
"$LINENO"; then :
4026 # Broken: success on invalid input.
4029 # Passes both tests.
4033 rm -f conftest.err conftest.
$ac_ext
4036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4037 rm -f conftest.err conftest.
$ac_ext
4038 if $ac_preproc_ok; then :
4041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4043 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4044 See \`config.log' for more details." "$LINENO" 5; }
4048 ac_cpp
='$CPP $CPPFLAGS'
4049 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4054 if test -n "$ac_tool_prefix"; then
4055 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4056 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4060 $as_echo_n "(cached) " >&6
4062 if test -n "$RANLIB"; then
4063 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4069 test -z "$as_dir" && as_dir
=.
4070 for ac_exec_ext
in '' $ac_executable_extensions; do
4071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4072 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 RANLIB
=$ac_cv_prog_RANLIB
4083 if test -n "$RANLIB"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4085 $as_echo "$RANLIB" >&6; }
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4093 if test -z "$ac_cv_prog_RANLIB"; then
4094 ac_ct_RANLIB
=$RANLIB
4095 # Extract the first word of "ranlib", so it can be a program name with args.
4096 set dummy ranlib
; ac_word
=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4100 $as_echo_n "(cached) " >&6
4102 if test -n "$ac_ct_RANLIB"; then
4103 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4109 test -z "$as_dir" && as_dir
=.
4110 for ac_exec_ext
in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4123 if test -n "$ac_ct_RANLIB"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4125 $as_echo "$ac_ct_RANLIB" >&6; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4131 if test "x$ac_ct_RANLIB" = x
; then
4134 case $cross_compiling:$ac_tool_warned in
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4138 ac_tool_warned
=yes ;;
4140 RANLIB
=$ac_ct_RANLIB
4143 RANLIB
="$ac_cv_prog_RANLIB"
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4147 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4149 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4150 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4151 $as_echo_n "(cached) " >&6
4153 cat >conftest.
make <<\_ACEOF
4156 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4158 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4159 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4161 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4163 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4167 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169 $as_echo "yes" >&6; }
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 SET_MAKE
="MAKE=${MAKE-make}"
4177 # Find a good install program. We prefer a C program (faster),
4178 # so one script is as good as another. But avoid the broken or
4179 # incompatible versions:
4180 # SysV /etc/install, /usr/sbin/install
4181 # SunOS /usr/etc/install
4182 # IRIX /sbin/install
4184 # AmigaOS /C/install, which installs bootblocks on floppy discs
4185 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4186 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4187 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4188 # OS/2's system install, which has a completely different semantic
4189 # ./install, which can be erroneously created by make from ./install.sh.
4190 # Reject install programs that cannot install multiple files.
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4192 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4193 if test -z "$INSTALL"; then
4194 if test "${ac_cv_path_install+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir
=.
4202 # Account for people who put trailing slashes in PATH elements.
4203 case $as_dir/ in #((
4204 .
/ | .
// |
/[cC
]/* | \
4205 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4206 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4209 # OSF1 and SCO ODT 3.0 have their own names for install.
4210 # Don't use installbsd from OSF since it installs stuff as root
4212 for ac_prog
in ginstall scoinst
install; do
4213 for ac_exec_ext
in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4215 if test $ac_prog = install &&
4216 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4217 # AIX install. It has an incompatible calling convention.
4219 elif test $ac_prog = install &&
4220 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4221 # program-specific install script used by HP pwplus--don't use.
4224 rm -rf conftest.one conftest.two conftest.dir
4225 echo one
> conftest.one
4226 echo two
> conftest.two
4228 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4229 test -s conftest.one
&& test -s conftest.two
&&
4230 test -s conftest.dir
/conftest.one
&&
4231 test -s conftest.dir
/conftest.two
4233 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4246 rm -rf conftest.one conftest.two conftest.dir
4249 if test "${ac_cv_path_install+set}" = set; then
4250 INSTALL
=$ac_cv_path_install
4252 # As a last resort, use the slow shell script. Don't cache a
4253 # value for INSTALL within a source directory, because that will
4254 # break other packages using the cache if that directory is
4255 # removed, or if the value is a relative name.
4256 INSTALL
=$ac_install_sh
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4260 $as_echo "$INSTALL" >&6; }
4262 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4263 # It thinks the first close brace ends the variable substitution.
4264 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4266 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4268 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4271 $as_echo_n "checking whether ln -s works... " >&6; }
4273 if test "$LN_S" = "ln -s"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4275 $as_echo "yes" >&6; }
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4278 $as_echo "no, using $LN_S" >&6; }
4281 for ac_prog
in gzip uncompress compress
4283 # Extract the first word of "$ac_prog", so it can be a program name with args.
4284 set dummy
$ac_prog; ac_word
=$2
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286 $as_echo_n "checking for $ac_word... " >&6; }
4287 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then :
4288 $as_echo_n "(cached) " >&6
4290 if test -n "$UNCOMPRESS"; then
4291 ac_cv_prog_UNCOMPRESS
="$UNCOMPRESS" # Let the user override the test.
4293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir
=.
4298 for ac_exec_ext
in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 ac_cv_prog_UNCOMPRESS
="$ac_prog"
4301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 UNCOMPRESS
=$ac_cv_prog_UNCOMPRESS
4311 if test -n "$UNCOMPRESS"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNCOMPRESS" >&5
4313 $as_echo "$UNCOMPRESS" >&6; }
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4320 test -n "$UNCOMPRESS" && break
4331 if test "x$EXEEXT" = "x.exe";then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system" >&5
4344 $as_echo_n "checking for target system... " >&6; }
4348 *cygwin
* ) CYGWIN
=yes;;
4349 *mingw
* ) MINGW
=yes;;
4353 if test "x$MINGW" = "xyes"; then
4354 #fix for the debian distribution of mingw
4355 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4356 AR
="/usr/i586-mingw32msvc/bin/ar"
4358 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4359 RANLIB
="/usr/i586-mingw32msvc/bin/ranlib"
4361 #fix for the gentoo distribution of mingw
4362 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4363 AR
="/opt/xmingw/bin/i386-mingw32msvc-ar"
4365 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4366 RANLIB
="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4368 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4369 STRIP
="/opt/xmingw/bin/i386-mingw32msvc-strip"
4375 if test "x${CYGWIN}" = "xyes"; then
4377 $as_echo "#define CYGWIN 1" >>confdefs.h
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cygwin" >&5
4380 $as_echo "cygwin" >&6; }
4382 if test "x${MINGW}" = "xyes"; then
4384 $as_echo "#define MINGW 1" >>confdefs.h
4388 $as_echo "#define WIN32 1" >>confdefs.h
4390 LIBS
="$LIBS -lws2_32 -lgdi32"
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mingw" >&5
4392 $as_echo "mingw" >&6; }
4397 $as_echo "#define LINUX 1" >>confdefs.h
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4405 if test "x${MINGW}" != "xyes"; then
4408 $as_echo "#define O_BINARY 0" >>confdefs.h
4419 # The following tries to make use of includes and libraries in
4420 # /usr/local, too. Notice: A -I/usr/local/include might break
4421 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4422 # especially on systems which link /usr/local to /usr, so it has yet
4423 # to be seen how useful this is.
4424 if test -d /usr
/local
/lib
; then
4425 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
4427 if test -d /usr
/local
/include
; then
4428 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4429 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4432 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4433 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4434 # and $prefix/include, which should be included in our search paths for libraries
4436 LDFLAGS
="$LDFLAGS -L${libdir}"
4437 CPPFLAGS
="$CPPFLAGS -I${includedir}"
4438 # TODO- test whether gcc still works after this
4442 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4445 # this must be done after (I believe) AC_PROG_MAKE_SET
4446 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4447 if test "$MACOSX";then
4450 STRIP
="@echo debug enabled, not stripping "
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
4458 $as_echo_n "checking for sin in -lm... " >&6; }
4459 if test "${ac_cv_lib_m_sin+set}" = set; then :
4460 $as_echo_n "(cached) " >&6
4462 ac_check_lib_save_LIBS
=$LIBS
4464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4467 /* Override any GCC internal prototype to avoid an error.
4468 Use char because int might match the return type of a GCC
4469 builtin and then its argument prototype would still apply. */
4482 if ac_fn_c_try_link
"$LINENO"; then :
4487 rm -f core conftest.err conftest.
$ac_objext \
4488 conftest
$ac_exeext conftest.
$ac_ext
4489 LIBS
=$ac_check_lib_save_LIBS
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
4492 $as_echo "$ac_cv_lib_m_sin" >&6; }
4493 if test "x$ac_cv_lib_m_sin" = x
""yes; then :
4494 cat >>confdefs.h
<<_ACEOF
4501 echo "Error: Math library not found.";
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4507 $as_echo_n "checking for deflate in -lz... " >&6; }
4508 if test "${ac_cv_lib_z_deflate+set}" = set; then :
4509 $as_echo_n "(cached) " >&6
4511 ac_check_lib_save_LIBS
=$LIBS
4513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4516 /* Override any GCC internal prototype to avoid an error.
4517 Use char because int might match the return type of a GCC
4518 builtin and then its argument prototype would still apply. */
4531 if ac_fn_c_try_link
"$LINENO"; then :
4532 ac_cv_lib_z_deflate
=yes
4534 ac_cv_lib_z_deflate
=no
4536 rm -f core conftest.err conftest.
$ac_objext \
4537 conftest
$ac_exeext conftest.
$ac_ext
4538 LIBS
=$ac_check_lib_save_LIBS
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4541 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4542 if test "x$ac_cv_lib_z_deflate" = x
""yes; then :
4543 cat >>confdefs.h
<<_ACEOF
4554 if test "x$ZLIBMISSING" = "xtrue";then
4557 echo "You need zlib to compile swftools"
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDF_open_file in -lpdf" >&5
4563 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4564 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4567 ac_check_lib_save_LIBS
=$LIBS
4569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4572 /* Override any GCC internal prototype to avoid an error.
4573 Use char because int might match the return type of a GCC
4574 builtin and then its argument prototype would still apply. */
4578 char PDF_open_file ();
4582 return PDF_open_file ();
4587 if ac_fn_c_try_link
"$LINENO"; then :
4588 ac_cv_lib_pdf_PDF_open_file
=yes
4590 ac_cv_lib_pdf_PDF_open_file
=no
4592 rm -f core conftest.err conftest.
$ac_objext \
4593 conftest
$ac_exeext conftest.
$ac_ext
4594 LIBS
=$ac_check_lib_save_LIBS
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4597 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4598 if test "x$ac_cv_lib_pdf_PDF_open_file" = x
""yes; then :
4599 cat >>confdefs.h
<<_ACEOF
4600 #define HAVE_LIBPDF 1
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_write_raw_data in -ljpeg" >&5
4610 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4611 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4614 ac_check_lib_save_LIBS
=$LIBS
4616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4619 /* Override any GCC internal prototype to avoid an error.
4620 Use char because int might match the return type of a GCC
4621 builtin and then its argument prototype would still apply. */
4625 char jpeg_write_raw_data ();
4629 return jpeg_write_raw_data ();
4634 if ac_fn_c_try_link
"$LINENO"; then :
4635 ac_cv_lib_jpeg_jpeg_write_raw_data
=yes
4637 ac_cv_lib_jpeg_jpeg_write_raw_data
=no
4639 rm -f core conftest.err conftest.
$ac_objext \
4640 conftest
$ac_exeext conftest.
$ac_ext
4641 LIBS
=$ac_check_lib_save_LIBS
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4644 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4645 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x
""yes; then :
4646 cat >>confdefs.h
<<_ACEOF
4647 #define HAVE_LIBJPEG 1
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpen in -lungif" >&5
4657 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4658 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then :
4659 $as_echo_n "(cached) " >&6
4661 ac_check_lib_save_LIBS
=$LIBS
4662 LIBS
="-lungif $LIBS"
4663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4666 /* Override any GCC internal prototype to avoid an error.
4667 Use char because int might match the return type of a GCC
4668 builtin and then its argument prototype would still apply. */
4681 if ac_fn_c_try_link
"$LINENO"; then :
4682 ac_cv_lib_ungif_DGifOpen
=yes
4684 ac_cv_lib_ungif_DGifOpen
=no
4686 rm -f core conftest.err conftest.
$ac_objext \
4687 conftest
$ac_exeext conftest.
$ac_ext
4688 LIBS
=$ac_check_lib_save_LIBS
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_DGifOpen" >&5
4691 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4692 if test "x$ac_cv_lib_ungif_DGifOpen" = x
""yes; then :
4693 cat >>confdefs.h
<<_ACEOF
4694 #define HAVE_LIBUNGIF 1
4697 LIBS
="-lungif $LIBS"
4703 if test "$UNGIFMISSING";then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpen in -lgif" >&5
4706 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4707 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4710 ac_check_lib_save_LIBS
=$LIBS
4712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4715 /* Override any GCC internal prototype to avoid an error.
4716 Use char because int might match the return type of a GCC
4717 builtin and then its argument prototype would still apply. */
4730 if ac_fn_c_try_link
"$LINENO"; then :
4731 ac_cv_lib_gif_DGifOpen
=yes
4733 ac_cv_lib_gif_DGifOpen
=no
4735 rm -f core conftest.err conftest.
$ac_objext \
4736 conftest
$ac_exeext conftest.
$ac_ext
4737 LIBS
=$ac_check_lib_save_LIBS
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpen" >&5
4740 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4741 if test "x$ac_cv_lib_gif_DGifOpen" = x
""yes; then :
4742 cat >>confdefs.h
<<_ACEOF
4743 #define HAVE_LIBGIF 1
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zzip_file_open in -lzzip" >&5
4754 $as_echo_n "checking for zzip_file_open in -lzzip... " >&6; }
4755 if test "${ac_cv_lib_zzip_zzip_file_open+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4758 ac_check_lib_save_LIBS
=$LIBS
4760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4763 /* Override any GCC internal prototype to avoid an error.
4764 Use char because int might match the return type of a GCC
4765 builtin and then its argument prototype would still apply. */
4769 char zzip_file_open ();
4773 return zzip_file_open ();
4778 if ac_fn_c_try_link
"$LINENO"; then :
4779 ac_cv_lib_zzip_zzip_file_open
=yes
4781 ac_cv_lib_zzip_zzip_file_open
=no
4783 rm -f core conftest.err conftest.
$ac_objext \
4784 conftest
$ac_exeext conftest.
$ac_ext
4785 LIBS
=$ac_check_lib_save_LIBS
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zzip_zzip_file_open" >&5
4788 $as_echo "$ac_cv_lib_zzip_zzip_file_open" >&6; }
4789 if test "x$ac_cv_lib_zzip_zzip_file_open" = x
""yes; then :
4790 cat >>confdefs.h
<<_ACEOF
4791 #define HAVE_LIBZZIP 1
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4802 $as_echo_n "checking target system type... " >&6; }
4803 if test "${ac_cv_target+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4806 if test "x$target_alias" = x
; then
4807 ac_cv_target
=$ac_cv_host
4809 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4810 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4815 $as_echo "$ac_cv_target" >&6; }
4816 case $ac_cv_target in
4818 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4820 target
=$ac_cv_target
4821 ac_save_IFS
=$IFS; IFS
='-'
4827 # Remember, the first character of IFS is used to create $*,
4828 # except with old shells:
4831 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4834 # The aliases save the names the user supplied, while $host etc.
4835 # will get canonicalized.
4836 test -n "$target_alias" &&
4837 test "$program_prefix$program_suffix$program_transform_name" = \
4839 program_prefix
=${target_alias}-
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte order" >&5
4842 $as_echo_n "checking for byte order... " >&6; }
4843 if test "$cross_compiling" = yes; then :
4846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4849 int main (int argc, char *argv[])
4856 if ac_fn_c_try_run
"$LINENO"; then :
4861 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4862 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4867 if test "x${CROSSCOMPILE}" = "x1"; then
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: we are cross compiling- trying to guess from system type" >&5
4869 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte order, try 2" >&5
4872 $as_echo_n "checking for byte order, try 2... " >&6; }
4877 *sparc
* |
*68* |
*88k
* |
*mac
* |
*Mac
* |
*sun
* |
*Sun
* |
*Amiga
* |
*amiga
* )
4884 if test "x${LITTLEENDIAN}" = "x1"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: little endian" >&5
4886 $as_echo "little endian" >&6; }
4890 if test "x${BIGENDIAN}" = "x1"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: big endian" >&5
4892 $as_echo "big endian" >&6; }
4895 export WORDS_BIGENDIAN
4897 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4900 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
4902 $as_echo "unknown" >&6; }
4903 echo Byte order could not determined.
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system() can handle command substitution" >&5
4910 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4911 if test "$cross_compiling" = yes; then :
4914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4918 int main (int argc, char*argv[])
4920 return system("test `touch config.tmp2`");
4924 if ac_fn_c_try_run
"$LINENO"; then :
4927 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4928 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4932 if test "x${OK}" = "xOK";then
4933 test -f config.tmp2 || OK
=
4936 if test "x${CROSSCOMPILE}" = "x1";then
4939 if test "x${OK}" = "xOK";then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4942 $as_echo "yes" >&6; }
4944 export SYSTEM_BACKTICKS
4946 $as_echo "#define SYSTEM_BACKTICKS 1" >>confdefs.h
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4955 test "$program_prefix" != NONE
&&
4956 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4957 # Use a double $ so make ignores it.
4958 test "$program_suffix" != NONE
&&
4959 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4960 # Double any \ or $.
4961 # By default was `s,x,x', remove it if useless.
4962 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4963 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4966 ac_config_headers
="$ac_config_headers config.h"
4969 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4970 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4972 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4973 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4974 $as_echo_n "(cached) " >&6
4976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978 #include <sys/types.h>
4990 if ac_fn_c_try_compile
"$LINENO"; then :
4991 eval "$as_ac_Header=yes"
4993 eval "$as_ac_Header=no"
4995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4997 eval ac_res
=\$
$as_ac_Header
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4999 $as_echo "$ac_res" >&6; }
5000 eval as_val
=\$
$as_ac_Header
5001 if test "x$as_val" = x
""yes; then :
5002 cat >>confdefs.h
<<_ACEOF
5003 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5006 ac_header_dirent
=$ac_hdr; break
5010 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5011 if test $ac_header_dirent = dirent.h
; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5013 $as_echo_n "checking for library containing opendir... " >&6; }
5014 if test "${ac_cv_search_opendir+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5017 ac_func_search_save_LIBS
=$LIBS
5018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5021 /* Override any GCC internal prototype to avoid an error.
5022 Use char because int might match the return type of a GCC
5023 builtin and then its argument prototype would still apply. */
5036 for ac_lib
in '' dir
; do
5037 if test -z "$ac_lib"; then
5038 ac_res
="none required"
5041 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5043 if ac_fn_c_try_link
"$LINENO"; then :
5044 ac_cv_search_opendir
=$ac_res
5046 rm -f core conftest.err conftest.
$ac_objext \
5048 if test "${ac_cv_search_opendir+set}" = set; then :
5052 if test "${ac_cv_search_opendir+set}" = set; then :
5055 ac_cv_search_opendir
=no
5058 LIBS
=$ac_func_search_save_LIBS
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5061 $as_echo "$ac_cv_search_opendir" >&6; }
5062 ac_res
=$ac_cv_search_opendir
5063 if test "$ac_res" != no
; then :
5064 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5070 $as_echo_n "checking for library containing opendir... " >&6; }
5071 if test "${ac_cv_search_opendir+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5074 ac_func_search_save_LIBS
=$LIBS
5075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5078 /* Override any GCC internal prototype to avoid an error.
5079 Use char because int might match the return type of a GCC
5080 builtin and then its argument prototype would still apply. */
5093 for ac_lib
in '' x
; do
5094 if test -z "$ac_lib"; then
5095 ac_res
="none required"
5098 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5100 if ac_fn_c_try_link
"$LINENO"; then :
5101 ac_cv_search_opendir
=$ac_res
5103 rm -f core conftest.err conftest.
$ac_objext \
5105 if test "${ac_cv_search_opendir+set}" = set; then :
5109 if test "${ac_cv_search_opendir+set}" = set; then :
5112 ac_cv_search_opendir
=no
5115 LIBS
=$ac_func_search_save_LIBS
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5118 $as_echo "$ac_cv_search_opendir" >&6; }
5119 ac_res
=$ac_cv_search_opendir
5120 if test "$ac_res" != no
; then :
5121 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5129 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5130 if test "${ac_cv_path_GREP+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5133 if test -z "$GREP"; then
5134 ac_path_GREP_found
=false
5135 # Loop through the user's path and test for each of PROGNAME-LIST
5136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5137 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5140 test -z "$as_dir" && as_dir
=.
5141 for ac_prog
in grep ggrep
; do
5142 for ac_exec_ext
in '' $ac_executable_extensions; do
5143 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5144 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5145 # Check for GNU ac_path_GREP and select it if it is found.
5146 # Check for GNU $ac_path_GREP
5147 case `"$ac_path_GREP" --version 2>&1` in
5149 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5152 $as_echo_n 0123456789 >"conftest.in"
5155 cat "conftest.in" "conftest.in" >"conftest.tmp"
5156 mv "conftest.tmp" "conftest.in"
5157 cp "conftest.in" "conftest.nl"
5158 $as_echo 'GREP' >> "conftest.nl"
5159 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5160 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5161 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5162 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5163 # Best one so far, save it but keep looking for a better one
5164 ac_cv_path_GREP
="$ac_path_GREP"
5165 ac_path_GREP_max
=$ac_count
5167 # 10*(2^10) chars as input seems more than enough
5168 test $ac_count -gt 10 && break
5170 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5173 $ac_path_GREP_found && break 3
5178 if test -z "$ac_cv_path_GREP"; then
5179 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5182 ac_cv_path_GREP
=$GREP
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5187 $as_echo "$ac_cv_path_GREP" >&6; }
5188 GREP
="$ac_cv_path_GREP"
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5192 $as_echo_n "checking for egrep... " >&6; }
5193 if test "${ac_cv_path_EGREP+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5196 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5197 then ac_cv_path_EGREP
="$GREP -E"
5199 if test -z "$EGREP"; then
5200 ac_path_EGREP_found
=false
5201 # Loop through the user's path and test for each of PROGNAME-LIST
5202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5203 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5206 test -z "$as_dir" && as_dir
=.
5207 for ac_prog
in egrep; do
5208 for ac_exec_ext
in '' $ac_executable_extensions; do
5209 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5210 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5211 # Check for GNU ac_path_EGREP and select it if it is found.
5212 # Check for GNU $ac_path_EGREP
5213 case `"$ac_path_EGREP" --version 2>&1` in
5215 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5218 $as_echo_n 0123456789 >"conftest.in"
5221 cat "conftest.in" "conftest.in" >"conftest.tmp"
5222 mv "conftest.tmp" "conftest.in"
5223 cp "conftest.in" "conftest.nl"
5224 $as_echo 'EGREP' >> "conftest.nl"
5225 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5226 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5227 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5228 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5229 # Best one so far, save it but keep looking for a better one
5230 ac_cv_path_EGREP
="$ac_path_EGREP"
5231 ac_path_EGREP_max
=$ac_count
5233 # 10*(2^10) chars as input seems more than enough
5234 test $ac_count -gt 10 && break
5236 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5239 $ac_path_EGREP_found && break 3
5244 if test -z "$ac_cv_path_EGREP"; then
5245 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5248 ac_cv_path_EGREP
=$EGREP
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5254 $as_echo "$ac_cv_path_EGREP" >&6; }
5255 EGREP
="$ac_cv_path_EGREP"
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5259 $as_echo_n "checking for ANSI C header files... " >&6; }
5260 if test "${ac_cv_header_stdc+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5278 if ac_fn_c_try_compile
"$LINENO"; then :
5279 ac_cv_header_stdc
=yes
5281 ac_cv_header_stdc
=no
5283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5285 if test $ac_cv_header_stdc = yes; then
5286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5293 $EGREP "memchr" >/dev
/null
2>&1; then :
5296 ac_cv_header_stdc
=no
5302 if test $ac_cv_header_stdc = yes; then
5303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5310 $EGREP "free" >/dev
/null
2>&1; then :
5313 ac_cv_header_stdc
=no
5319 if test $ac_cv_header_stdc = yes; then
5320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5321 if test "$cross_compiling" = yes; then :
5324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5328 #if ((' ' & 0x0FF) == 0x020)
5329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5332 # define ISLOWER(c) \
5333 (('a' <= (c) && (c) <= 'i') \
5334 || ('j' <= (c) && (c) <= 'r') \
5335 || ('s' <= (c) && (c) <= 'z'))
5336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5344 for (i = 0; i < 256; i++)
5345 if (XOR (islower (i), ISLOWER (i))
5346 || toupper (i) != TOUPPER (i))
5351 if ac_fn_c_try_run
"$LINENO"; then :
5354 ac_cv_header_stdc
=no
5356 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5357 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5363 $as_echo "$ac_cv_header_stdc" >&6; }
5364 if test $ac_cv_header_stdc = yes; then
5366 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5371 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5372 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5373 inttypes.h stdint.h unistd.h
5375 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5376 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5378 eval as_val
=\$
$as_ac_Header
5379 if test "x$as_val" = x
""yes; then :
5380 cat >>confdefs.h
<<_ACEOF
5381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5389 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
5391 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5392 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5393 eval as_val
=\$
$as_ac_Header
5394 if test "x$as_val" = x
""yes; then :
5395 cat >>confdefs.h
<<_ACEOF
5396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5405 cat >>confdefs.h
<<_ACEOF
5406 #define PACKAGE "$PACKAGE"
5410 cat >>confdefs.h
<<_ACEOF
5411 #define VERSION "$VERSION"
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5421 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5422 if test "${ac_cv_c_const+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5431 /* FIXME: Include the comments suggested by Paul. */
5433 /* Ultrix mips cc rejects this. */
5434 typedef int charset[2];
5436 /* SunOS 4.1.1 cc rejects this. */
5437 char const *const *pcpcc;
5439 /* NEC SVR4.0.2 mips cc rejects this. */
5440 struct point {int x, y;};
5441 static struct point const zero = {0,0};
5442 /* AIX XL C 1.02.0.0 rejects this.
5443 It does not let you subtract one const X* pointer from another in
5444 an arm of an if-expression whose if-part is not a constant
5446 const char *g = "string";
5447 pcpcc = &g + (g ? g-g : 0);
5448 /* HPUX 7.0 cc rejects these. */
5450 ppc = (char**) pcpcc;
5451 pcpcc = (char const *const *) ppc;
5452 { /* SCO 3.2v4 cc rejects this. */
5454 char const *s = 0 ? (char *) 0 : (char const *) 0;
5459 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5461 const int *foo = &x[0];
5464 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5465 typedef const int *iptr;
5469 { /* AIX XL C 1.02.0.0 rejects this saying
5470 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5471 struct s { int j; const int *ap[3]; };
5472 struct s *b; b->j = 5;
5474 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5478 return !cs[0] && !zero.x;
5485 if ac_fn_c_try_compile
"$LINENO"; then :
5490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5493 $as_echo "$ac_cv_c_const" >&6; }
5494 if test $ac_cv_c_const = no
; then
5496 $as_echo "#define const /**/" >>confdefs.h
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5501 $as_echo_n "checking for inline... " >&6; }
5502 if test "${ac_cv_c_inline+set}" = set; then :
5503 $as_echo_n "(cached) " >&6
5506 for ac_kw
in inline __inline__ __inline
; do
5507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5511 static $ac_kw foo_t static_foo () {return 0; }
5512 $ac_kw foo_t foo () {return 0; }
5516 if ac_fn_c_try_compile
"$LINENO"; then :
5517 ac_cv_c_inline
=$ac_kw
5519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5520 test "$ac_cv_c_inline" != no
&& break
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5525 $as_echo "$ac_cv_c_inline" >&6; }
5527 case $ac_cv_c_inline in
5530 case $ac_cv_c_inline in
5532 *) ac_val
=$ac_cv_c_inline;;
5534 cat >>confdefs.h
<<_ACEOF
5536 #define inline $ac_val
5542 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5543 if test "x$ac_cv_type_off_t" = x
""yes; then :
5547 cat >>confdefs.h
<<_ACEOF
5548 #define off_t long int
5553 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5554 if test "x$ac_cv_type_size_t" = x
""yes; then :
5558 cat >>confdefs.h
<<_ACEOF
5559 #define size_t unsigned int
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5565 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5566 if test "${ac_cv_struct_tm+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 #include <sys/types.h>
5578 int *p = &tm.tm_sec;
5584 if ac_fn_c_try_compile
"$LINENO"; then :
5585 ac_cv_struct_tm
=time.h
5587 ac_cv_struct_tm
=sys
/time.h
5589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5592 $as_echo "$ac_cv_struct_tm" >&6; }
5593 if test $ac_cv_struct_tm = sys
/time.h
; then
5595 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5599 ac_fn_c_check_type
"$LINENO" "boolean" "ac_cv_type_boolean" "$ac_includes_default"
5600 if test "x$ac_cv_type_boolean" = x
""yes; then :
5604 cat >>confdefs.h
<<_ACEOF
5610 for ac_func
in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero
time getrusage mallinfo open64 calloc
5612 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5613 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5614 eval as_val
=\$
$as_ac_var
5615 if test "x$as_val" = x
""yes; then :
5616 cat >>confdefs.h
<<_ACEOF
5617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5624 # The cast to long int works around a bug in the HP C Compiler
5625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5627 # This bug is HP SR number 8606223364.
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
5629 $as_echo_n "checking size of signed char... " >&6; }
5630 if test "${ac_cv_sizeof_signed_char+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5633 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
5636 if test "$ac_cv_type_signed_char" = yes; then
5637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5639 { as_fn_set_status
77
5640 as_fn_error
"cannot compute sizeof (signed char)
5641 See \`config.log' for more details." "$LINENO" 5; }; }
5643 ac_cv_sizeof_signed_char
=0
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
5649 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
5653 cat >>confdefs.h
<<_ACEOF
5654 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
5658 # The cast to long int works around a bug in the HP C Compiler
5659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5661 # This bug is HP SR number 8606223364.
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
5663 $as_echo_n "checking size of signed short... " >&6; }
5664 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
5665 $as_echo_n "(cached) " >&6
5667 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
5670 if test "$ac_cv_type_signed_short" = yes; then
5671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5673 { as_fn_set_status
77
5674 as_fn_error
"cannot compute sizeof (signed short)
5675 See \`config.log' for more details." "$LINENO" 5; }; }
5677 ac_cv_sizeof_signed_short
=0
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
5683 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
5687 cat >>confdefs.h
<<_ACEOF
5688 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
5692 # The cast to long int works around a bug in the HP C Compiler
5693 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5694 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5695 # This bug is HP SR number 8606223364.
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed" >&5
5697 $as_echo_n "checking size of signed... " >&6; }
5698 if test "${ac_cv_sizeof_signed+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5701 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (signed))" "ac_cv_sizeof_signed" "$ac_includes_default"; then :
5704 if test "$ac_cv_type_signed" = yes; then
5705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5707 { as_fn_set_status
77
5708 as_fn_error
"cannot compute sizeof (signed)
5709 See \`config.log' for more details." "$LINENO" 5; }; }
5711 ac_cv_sizeof_signed
=0
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed" >&5
5717 $as_echo "$ac_cv_sizeof_signed" >&6; }
5721 cat >>confdefs.h
<<_ACEOF
5722 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
5726 # The cast to long int works around a bug in the HP C Compiler
5727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5729 # This bug is HP SR number 8606223364.
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
5731 $as_echo_n "checking size of signed long long... " >&6; }
5732 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5735 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
5738 if test "$ac_cv_type_signed_long_long" = yes; then
5739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5741 { as_fn_set_status
77
5742 as_fn_error
"cannot compute sizeof (signed long long)
5743 See \`config.log' for more details." "$LINENO" 5; }; }
5745 ac_cv_sizeof_signed_long_long
=0
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
5751 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
5755 cat >>confdefs.h
<<_ACEOF
5756 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
5760 # The cast to long int works around a bug in the HP C Compiler
5761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5763 # This bug is HP SR number 8606223364.
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5765 $as_echo_n "checking size of void*... " >&6; }
5766 if test "${ac_cv_sizeof_voidp+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5769 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
5772 if test "$ac_cv_type_voidp" = yes; then
5773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5775 { as_fn_set_status
77
5776 as_fn_error
"cannot compute sizeof (void*)
5777 See \`config.log' for more details." "$LINENO" 5; }; }
5779 ac_cv_sizeof_voidp
=0
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5785 $as_echo "$ac_cv_sizeof_voidp" >&6; }
5789 cat >>confdefs.h
<<_ACEOF
5790 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5797 # Extract the first word of "freetype-config", so it can be a program name with args.
5798 set dummy freetype-config
; ac_word
=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5804 case $FREETYPE_CONFIG in
5806 ac_cv_path_FREETYPE_CONFIG
="$FREETYPE_CONFIG" # Let the user override the test with a path.
5809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5810 as_dummy
=""$PATH:/usr
/local
/bin
:/sw
/bin
:/opt
/local
/bin
""
5811 for as_dir
in $as_dummy
5814 test -z "$as_dir" && as_dir
=.
5815 for ac_exec_ext
in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_path_FREETYPE_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 FREETYPE_CONFIG
=$ac_cv_path_FREETYPE_CONFIG
5829 if test -n "$FREETYPE_CONFIG"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CONFIG" >&5
5831 $as_echo "$FREETYPE_CONFIG" >&6; }
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5839 OLDCPPFLAGS
="${CPPFLAGS}"
5841 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
5842 CPPFLAGS
="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
5843 else if test -d /usr
/include
/freetype2
; then
5844 CPPFLAGS
="$CPPFLAGS -I/usr/include/freetype2"
5845 else if test -d /usr
/local
/include
/freetype2
; then
5846 CPPFLAGS
="$CPPFLAGS -I/usr/local/include/freetype2"
5851 if test "x${FREETYPE_CONFIG}" '=' "x";then
5852 # if we didn't find the freetype-config program, we won't
5853 # know where the libs are expected to be. So just blindly
5854 # try to link against them.
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
5856 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
5857 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5860 ac_check_lib_save_LIBS
=$LIBS
5861 LIBS
="-lfreetype $LIBS"
5862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5865 /* Override any GCC internal prototype to avoid an error.
5866 Use char because int might match the return type of a GCC
5867 builtin and then its argument prototype would still apply. */
5871 char FT_Init_FreeType ();
5875 return FT_Init_FreeType ();
5880 if ac_fn_c_try_link
"$LINENO"; then :
5881 ac_cv_lib_freetype_FT_Init_FreeType
=yes
5883 ac_cv_lib_freetype_FT_Init_FreeType
=no
5885 rm -f core conftest.err conftest.
$ac_objext \
5886 conftest
$ac_exeext conftest.
$ac_ext
5887 LIBS
=$ac_check_lib_save_LIBS
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
5890 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
5891 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x
""yes; then :
5897 for ac_header
in ft2build.h
5899 ac_fn_c_check_header_mongrel
"$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
5900 if test "x$ac_cv_header_ft2build_h" = x
""yes; then :
5901 cat >>confdefs.h
<<_ACEOF
5902 #define HAVE_FT2BUILD_H 1
5909 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
5910 for ac_header
in freetype
/freetype.h
5912 ac_fn_c_check_header_mongrel
"$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$ac_includes_default"
5913 if test "x$ac_cv_header_freetype_freetype_h" = x
""yes; then :
5914 cat >>confdefs.h
<<_ACEOF
5915 #define HAVE_FREETYPE_FREETYPE_H 1
5917 HAVE_FREETYPE_FREETYPE_H
=1
5924 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
5925 "x${FREETYPE_CONFIG}" '!=' "x";then
5926 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
5929 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
5934 if test "x${HAVE_FREETYPE}" = "x1"; then
5935 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
5936 LIBS
="$LIBS "`$FREETYPE_CONFIG --libs`
5938 LIBS
="$LIBS -lfreetype"
5941 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
5942 HAVE_FT2BUILD_H_DEFINE
='#define HAVE_FT2BUILD_H'
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the freetype test program" >&5
5946 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
5948 cat > conftest.c
<< EOF
5949 $HAVE_FT2BUILD_H_DEFINE
5951 #ifdef HAVE_FT2BUILD_H
5952 #include <ft2build.h>
5953 #include FT_FREETYPE_H
5956 #include FT_SFNT_NAMES_H
5957 #include FT_TRUETYPE_IDS_H
5958 #include FT_OUTLINE_H
5960 #include <freetype/freetype.h>
5961 #include <freetype/ftglyph.h>
5962 #include <freetype/ftsizes.h>
5963 #include <freetype/ftsnames.h>
5964 #include <freetype/ttnameid.h>
5965 #include <freetype/ftoutln.h>
5970 FT_Library ftlibrary;
5982 FT_Init_FreeType(&ftlibrary);
5983 FT_New_Face(ftlibrary, "filename", 0, &face);
5984 i = face->num_glyphs - 1;
5985 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
5986 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
5987 FT_Get_Postscript_Name(face);
5988 FT_Get_Char_Index(face, 33);
5989 FT_Get_First_Char(face, &i);
5990 FT_Get_Next_Char(face, 33, &i);
5991 if(FT_HAS_GLYPH_NAMES(face)) {
5992 FT_Get_Glyph_Name(face, 33, name, 127);
5994 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
5995 FT_Get_Glyph(face->glyph, &glyph);
5996 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
5997 FT_Done_Glyph(glyph);
5999 FT_Done_FreeType(ftlibrary);
6004 ac_link
='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6005 if { (eval echo freetype.
m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6007 $as_echo "yes" >&6; }
6009 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
6012 $as_echo "#define HAVE_FREETYPE_FREETYPE_H 1" >>confdefs.h
6015 $as_echo "#define USE_FREETYPE 1" >>confdefs.h
6018 echo "configure: failed program was:" >&5
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6027 # if the above didn't work out, reset all changes to the compiler variables.
6028 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
6029 CPPFLAGS
=$OLDCPPFLAGS
6035 OLDCPPFLAGS
="${CPPFLAGS}"
6038 if test -d /usr
/include
/fontconfig
; then
6039 CPPFLAGS
="$CPPFLAGS -I/usr/include/fontconfig"
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcInit in -lfontconfig" >&5
6043 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
6044 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
6047 ac_check_lib_save_LIBS
=$LIBS
6048 LIBS
="-lfontconfig $LIBS"
6049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6052 /* Override any GCC internal prototype to avoid an error.
6053 Use char because int might match the return type of a GCC
6054 builtin and then its argument prototype would still apply. */
6067 if ac_fn_c_try_link
"$LINENO"; then :
6068 ac_cv_lib_fontconfig_FcInit
=yes
6070 ac_cv_lib_fontconfig_FcInit
=no
6072 rm -f core conftest.err conftest.
$ac_objext \
6073 conftest
$ac_exeext conftest.
$ac_ext
6074 LIBS
=$ac_check_lib_save_LIBS
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcInit" >&5
6077 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
6078 if test "x$ac_cv_lib_fontconfig_FcInit" = x
""yes; then :
6079 HAVE_LIB_FONTCONFIG
=1
6082 for ac_header
in fontconfig.h
6084 ac_fn_c_check_header_mongrel
"$LINENO" "fontconfig.h" "ac_cv_header_fontconfig_h" "$ac_includes_default"
6085 if test "x$ac_cv_header_fontconfig_h" = x
""yes; then :
6086 cat >>confdefs.h
<<_ACEOF
6087 #define HAVE_FONTCONFIG_H 1
6095 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
6096 if test "x${HAVE_FONTCONFIG_H}" != "x";then
6101 if test "x${HAVE_FONTCONFIG}" = "x1"; then
6102 LIBS
="$LIBS -lfontconfig"
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the fontconfig test program" >&5
6104 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
6106 if (echo $LIBS |
grep lfreetype
>/dev
/null
2>&1); then
6107 #move freetype library to the end of libraries, otherwise fontconfig
6109 LIBS
=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
6112 cat > conftest.c
<< EOF
6114 #include <fontconfig.h>
6118 FcPattern *pattern, *match;
6121 char*s1="abc",*s2="ABC";
6124 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
6125 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
6126 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
6128 FcConfig*c = FcConfigCreate();
6129 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
6130 FcConfigBuildFonts(c);
6131 FcConfigSetCurrent(c);
6133 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
6134 FcFontSetDestroy(set);
6136 FcConfigSubstitute(0, pattern, FcMatchPattern);
6137 FcDefaultSubstitute(pattern);
6138 match = FcFontMatch(0, pattern, &result);
6139 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
6140 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
6141 FcPatternPrint(pattern);
6142 FcPatternDestroy(pattern);
6143 FcPatternDestroy(match);
6149 ac_link
='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6150 if { (eval echo freetype.
m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6152 $as_echo "yes" >&6; }
6154 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
6157 echo "configure: failed program was:" >&5
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6166 # if the above didn't work out, reset all changes to the compiler variables.
6167 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
6168 CPPFLAGS
=$OLDCPPFLAGS
6174 OLDCPPFLAGS
="${CPPFLAGS}"
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwf_plan_dft_r2c_2d in -lfftw3f" >&5
6178 $as_echo_n "checking for fftwf_plan_dft_r2c_2d in -lfftw3f... " >&6; }
6179 if test "${ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d+set}" = set; then :
6180 $as_echo_n "(cached) " >&6
6182 ac_check_lib_save_LIBS
=$LIBS
6183 LIBS
="-lfftw3f $LIBS"
6184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6187 /* Override any GCC internal prototype to avoid an error.
6188 Use char because int might match the return type of a GCC
6189 builtin and then its argument prototype would still apply. */
6193 char fftwf_plan_dft_r2c_2d ();
6197 return fftwf_plan_dft_r2c_2d ();
6202 if ac_fn_c_try_link
"$LINENO"; then :
6203 ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d
=yes
6205 ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d
=no
6207 rm -f core conftest.err conftest.
$ac_objext \
6208 conftest
$ac_exeext conftest.
$ac_ext
6209 LIBS
=$ac_check_lib_save_LIBS
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d" >&5
6212 $as_echo "$ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d" >&6; }
6213 if test "x$ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d" = x
""yes; then :
6217 for ac_header
in fftw3.h
6219 ac_fn_c_check_header_mongrel
"$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
6220 if test "x$ac_cv_header_fftw3_h" = x
""yes; then :
6221 cat >>confdefs.h
<<_ACEOF
6222 #define HAVE_FFTW3_H 1
6230 if test "x${HAVE_LIBFFTW3}" != "x";then
6231 if test "x${HAVE_FFTW3_H}" != "x";then
6236 if test "x${HAVE_FFTW3}" = "x1"; then
6237 LIBS
="$LIBS -lfftw3f"
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the fftw3 test program" >&5
6239 $as_echo_n "checking whether we can compile the fftw3 test program... " >&6; }
6241 cat > conftest.c
<< EOF
6246 char*data = fftw_malloc(sizeof(fftwf_complex)*600*800);
6247 fftwf_plan plan = fftwf_plan_dft_2d(600, 800, (fftwf_complex*)data, (fftwf_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
6248 plan = fftwf_plan_dft_r2c_2d(600, 800, (float*)data, (fftwf_complex*)data, FFTW_ESTIMATE);
6249 plan = fftwf_plan_dft_c2r_2d(600, 800, (fftwf_complex*)data, (float*)data, FFTW_ESTIMATE);
6250 fftwf_execute(plan);
6251 fftwf_destroy_plan(plan);
6255 ac_link
='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6256 if { (eval echo fftw3.
m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6258 $as_echo "yes" >&6; }
6260 $as_echo "#define HAVE_FFTW3 1" >>confdefs.h
6263 echo "configure: failed program was:" >&5
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6272 # if the above didn't work out, reset all changes to the compiler variables.
6273 if test "x${HAVE_FFTW3}" "!=" "x1"; then
6274 CPPFLAGS
=$OLDCPPFLAGS
6280 # if test "$HAVE_OPENGL";then
6281 # DEVICE_OPENGL='devices/opengl.$(O)'
6282 # AC_SUBST(DEVICE_OPENGL)
6288 if test "x${DISABLE_LAME}" = "xtrue"; then
6289 echo "*" Disabling lame support...
6291 # old lame code at lib/lame
6292 if test -f lib
/lame
/Makefile.
in; then
6293 lame_in_source
='$(lame_objects)'
6294 lame_makefile
="lib/lame/Makefile"
6295 CPPFLAGS
="$CPPFLAGS -Ilame -Ilib/lame"
6297 $as_echo "#define HAVE_LAME 1" >>confdefs.h
6300 if test -d /usr
/include
/lame
; then
6301 CPPFLAGS
="$CPPFLAGS -I /usr/include/lame"
6303 if test -d /usr
/local
/include
/lame
; then
6304 CPPFLAGS
="$CPPFLAGS -I /usr/local/include/lame"
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lame_init in -lmp3lame" >&5
6308 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
6309 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6312 ac_check_lib_save_LIBS
=$LIBS
6313 LIBS
="-lmp3lame $LIBS"
6314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6317 /* Override any GCC internal prototype to avoid an error.
6318 Use char because int might match the return type of a GCC
6319 builtin and then its argument prototype would still apply. */
6327 return lame_init ();
6332 if ac_fn_c_try_link
"$LINENO"; then :
6333 ac_cv_lib_mp3lame_lame_init
=yes
6335 ac_cv_lib_mp3lame_lame_init
=no
6337 rm -f core conftest.err conftest.
$ac_objext \
6338 conftest
$ac_exeext conftest.
$ac_ext
6339 LIBS
=$ac_check_lib_save_LIBS
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp3lame_lame_init" >&5
6342 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
6343 if test "x$ac_cv_lib_mp3lame_lame_init" = x
""yes; then :
6344 cat >>confdefs.h
<<_ACEOF
6345 #define HAVE_LIBMP3LAME 1
6348 LIBS
="-lmp3lame $LIBS"
6355 for ac_header
in lame.h
6357 ac_fn_c_check_header_mongrel
"$LINENO" "lame.h" "ac_cv_header_lame_h" "$ac_includes_default"
6358 if test "x$ac_cv_header_lame_h" = x
""yes; then :
6359 cat >>confdefs.h
<<_ACEOF
6360 #define HAVE_LAME_H 1
6367 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
6368 $as_echo "#define HAVE_LAME 1" >>confdefs.h
6379 if test "x$USE_POPPLER" = "xtrue"; then
6381 $as_echo "#define HAVE_POPPLER 1" >>confdefs.h
6383 #PKG_CHECK_MODULES([POPPLER],[poppler poppler-splash],,[poppler_pkgconfig=no])
6384 if test "x$poppler_pkgconfig" = "xno"; then
6386 ac_cpp
='$CXXCPP $CPPFLAGS'
6387 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6388 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6389 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6393 ac_cpp
='$CXXCPP $CPPFLAGS'
6394 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6395 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6396 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6398 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6399 if test -z "$CXXCPP"; then
6400 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6403 # Double quotes because CXXCPP needs to be expanded
6404 for CXXCPP
in "$CXX -E" "/lib/cpp"
6407 for ac_cxx_preproc_warn_flag
in '' yes
6409 # Use a header file that comes with gcc, so configuring glibc
6410 # with a fresh cross-compiler works.
6411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6412 # <limits.h> exists even on freestanding compilers.
6413 # On the NeXT, cc -E runs the code through the compiler's parser,
6414 # not just through cpp. "Syntax error" is here to catch this case.
6415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6418 # include <limits.h>
6420 # include <assert.h>
6424 if ac_fn_cxx_try_cpp
"$LINENO"; then :
6427 # Broken: fails on valid input.
6430 rm -f conftest.err conftest.
$ac_ext
6432 # OK, works on sane cases. Now check whether nonexistent headers
6433 # can be detected and how.
6434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6436 #include <ac_nonexistent.h>
6438 if ac_fn_cxx_try_cpp
"$LINENO"; then :
6439 # Broken: success on invalid input.
6442 # Passes both tests.
6446 rm -f conftest.err conftest.
$ac_ext
6449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6450 rm -f conftest.err conftest.
$ac_ext
6451 if $ac_preproc_ok; then :
6456 ac_cv_prog_CXXCPP
=$CXXCPP
6459 CXXCPP
=$ac_cv_prog_CXXCPP
6461 ac_cv_prog_CXXCPP
=$CXXCPP
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6464 $as_echo "$CXXCPP" >&6; }
6466 for ac_cxx_preproc_warn_flag
in '' yes
6468 # Use a header file that comes with gcc, so configuring glibc
6469 # with a fresh cross-compiler works.
6470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6471 # <limits.h> exists even on freestanding compilers.
6472 # On the NeXT, cc -E runs the code through the compiler's parser,
6473 # not just through cpp. "Syntax error" is here to catch this case.
6474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6477 # include <limits.h>
6479 # include <assert.h>
6483 if ac_fn_cxx_try_cpp
"$LINENO"; then :
6486 # Broken: fails on valid input.
6489 rm -f conftest.err conftest.
$ac_ext
6491 # OK, works on sane cases. Now check whether nonexistent headers
6492 # can be detected and how.
6493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6495 #include <ac_nonexistent.h>
6497 if ac_fn_cxx_try_cpp
"$LINENO"; then :
6498 # Broken: success on invalid input.
6501 # Passes both tests.
6505 rm -f conftest.err conftest.
$ac_ext
6508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6509 rm -f conftest.err conftest.
$ac_ext
6510 if $ac_preproc_ok; then :
6513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6515 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
6516 See \`config.log' for more details." "$LINENO" 5; }
6520 ac_cpp
='$CXXCPP $CPPFLAGS'
6521 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6522 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6523 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6526 for ac_header
in OutputDev.h
6528 ac_fn_cxx_check_header_mongrel
"$LINENO" "OutputDev.h" "ac_cv_header_OutputDev_h" "$ac_includes_default"
6529 if test "x$ac_cv_header_OutputDev_h" = x
""yes; then :
6530 cat >>confdefs.h
<<_ACEOF
6531 #define HAVE_OUTPUTDEV_H 1
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpoppler" >&5
6535 $as_echo_n "checking for main in -lpoppler... " >&6; }
6536 if test "${ac_cv_lib_poppler_main+set}" = set; then :
6537 $as_echo_n "(cached) " >&6
6539 ac_check_lib_save_LIBS
=$LIBS
6540 LIBS
="-lpoppler $LIBS"
6541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6553 if ac_fn_cxx_try_link
"$LINENO"; then :
6554 ac_cv_lib_poppler_main
=yes
6556 ac_cv_lib_poppler_main
=no
6558 rm -f core conftest.err conftest.
$ac_objext \
6559 conftest
$ac_exeext conftest.
$ac_ext
6560 LIBS
=$ac_check_lib_save_LIBS
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poppler_main" >&5
6563 $as_echo "$ac_cv_lib_poppler_main" >&6; }
6564 if test "x$ac_cv_lib_poppler_main" = x
""yes; then :
6565 cat >>confdefs.h
<<_ACEOF
6566 #define HAVE_LIBPOPPLER 1
6569 LIBS
="-lpoppler $LIBS"
6575 as_fn_error
"No poppler library found. This library is required." "$LINENO" 5
6581 ac_cpp
='$CPP $CPPFLAGS'
6582 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6583 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6584 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6587 CPPFLAGS
="$CPPFLAGS $POPPLER_CFLAGS"
6588 LIBS
="$LIBS $POPPLER_LIBS"
6589 $as_echo "#define HAVE_POPPLER 1" >>confdefs.h
6593 splash_in_source
='$(splash_objects)'
6594 xpdf_in_source
='$(xpdf_objects)'
6595 xpdf_include
=' -I xpdf '
6602 # ------------------------------------------------------------------
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the filesystem normalizes file names" >&5
6606 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
6608 echo test1
> __abcdefghijklmnopqrstuvwxyz.txt
6609 echo test2
> __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
6610 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6612 $as_echo "yes" >&6; }
6614 $as_echo "#define LOWERCASE_UPPERCASE 1" >>confdefs.h
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6621 rm -f __abcdefghijklmnopqrstuvwxyz.txt
6622 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
6626 for ac_prog
in avifile-config
6628 # Extract the first word of "$ac_prog", so it can be a program name with args.
6629 set dummy
$ac_prog; ac_word
=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then :
6633 $as_echo_n "(cached) " >&6
6635 if test -n "$AVIFILE_CONFIG"; then
6636 ac_cv_prog_AVIFILE_CONFIG
="$AVIFILE_CONFIG" # Let the user override the test.
6638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6642 test -z "$as_dir" && as_dir
=.
6643 for ac_exec_ext
in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_prog_AVIFILE_CONFIG
="$ac_prog"
6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 AVIFILE_CONFIG
=$ac_cv_prog_AVIFILE_CONFIG
6656 if test -n "$AVIFILE_CONFIG"; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIFILE_CONFIG" >&5
6658 $as_echo "$AVIFILE_CONFIG" >&6; }
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6665 test -n "$AVIFILE_CONFIG" && break
6669 if test "x$AVIFILE_CONFIG" '!=' "x";then
6670 OLDCPPFLAGS
="$CPPFLAGS"
6671 # temporarily add avifile paths to CPPFLAGS...
6672 CPPFLAGS
="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
6673 for ac_header
in avifile
/version.h version.h
6675 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6677 eval as_val
=\$
$as_ac_Header
6678 if test "x$as_val" = x
""yes; then :
6679 cat >>confdefs.h
<<_ACEOF
6680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6688 CPPFLAGS
="$OLDCPPFLAGS"
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the avifile test program" >&5
6692 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
6694 if test "x${ac_cv_header_version_h}" '=' "xyes";then
6695 HAVE_VERSION_H_DEFINE
='#define HAVE_VERSION_H'
6697 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
6698 HAVE_AVIFILE_VERSION_H_DEFINE
='#define HAVE_AVIFILE_VERSION_H'
6701 cat > conftest.cpp
<< EOF
6703 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
6704 // so we have to introduce them this way
6705 $HAVE_VERSION_H_DEFINE
6706 $HAVE_AVIFILE_VERSION_H_DEFINE
6708 #ifdef HAVE_VERSION_H
6709 #include <version.h>
6711 #ifdef HAVE_AVIFILE_VERSION_H
6712 #include <avifile/version.h>
6715 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
6716 #include <avifile.h>
6717 #include <aviplay.h>
6718 #include <avm_fourcc.h>
6719 #include <avm_creators.h>
6720 #include <StreamInfo.h>
6723 #include <avifile.h>
6724 #include <aviplay.h>
6725 #include <aviutil.h>
6727 #define Height height
6734 IAviReadFile* player;
6735 IAviReadStream* astream;
6736 IAviReadStream* vstream;
6737 player = CreateIAviReadFile(0);
6738 astream = player->GetStream(0, AviStream::Audio);
6739 vstream = player->GetStream(0, AviStream::Video);
6740 vstream -> StartStreaming();
6741 astream -> StartStreaming();
6744 player->GetFileHeader(&head);
6745 head.dwMicroSecPerFrame;
6750 head.dwMicroSecPerFrame;
6751 astream->GetEndPos(),
6752 astream->GetEndTime());
6753 player->StreamCount();
6755 StreamInfo*audioinfo;
6756 StreamInfo*videoinfo;
6757 audioinfo = astream->GetStreamInfo();
6758 videoinfo = vstream->GetStreamInfo();
6759 videoinfo->GetVideoWidth();
6760 videoinfo->GetVideoHeight();
6761 audioinfo->GetAudioSamplesPerSec();
6762 videoinfo->GetFps();
6764 CImage*img = vstream->GetFrame();
6771 astream->GetAudioFormatInfo(&wave,0);
6773 astream->ReadFrames(0,0,0,a,b);
6775 int main (int argc, char*argv)
6781 if test "x$AVIFILE_CONFIG" '!=' "x";then
6782 AVIFILE_LIBS
=`$AVIFILE_CONFIG --libs`
6783 AVIFILE_CFLAGS
=`$AVIFILE_CONFIG --cflags`
6784 avifile_link
='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
6785 if { (eval echo avi2swf.
m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest
${ac_exeext} && .
/conftest
${ac_exeext}; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6787 $as_echo "yes" >&6; }
6791 $as_echo "#define AVIFILE true" >>confdefs.h
6794 echo "configure: failed program was:" >&5
6795 cat conftest.cpp
>&5
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6805 if test "x${AVIFILE}" = "xtrue"; then
6806 VIDEO_LIBS
="$VIDEO_LIBS $AVIFILE_LIBS"
6807 VIDEO_CFLAGS
="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
6809 $as_echo "#define HAVE_AVIFILE 1" >>confdefs.h
6813 if test "x${WIN32}" != "x"; then
6814 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
6815 #if test "x${AVIFIL32}" != "x"; then
6816 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
6818 VIDEO_LIBS
="$VIDEO_LIBS -lavifil32"
6824 # ------------------------------------------------------------------
6826 if test "x${UNCOMPRESS}" = "xgzip"; then
6828 $as_echo "#define USE_GZIP 1" >>confdefs.h
6833 # ------------------------------------------------------------------
6836 # Extract the first word of "ruby", so it can be a program name with args.
6837 set dummy ruby
; ac_word
=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if test "${ac_cv_path_RUBY+set}" = set; then :
6841 $as_echo_n "(cached) " >&6
6845 ac_cv_path_RUBY
="$RUBY" # Let the user override the test with a path.
6848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6852 test -z "$as_dir" && as_dir
=.
6853 for ac_exec_ext
in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_path_RUBY
="$as_dir/$ac_word$ac_exec_ext"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 RUBY
=$ac_cv_path_RUBY
6867 if test -n "$RUBY"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
6869 $as_echo "$RUBY" >&6; }
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's include directory" >&5
6884 $as_echo_n "checking for ruby's include directory... " >&6; }
6885 if test "x$RUBY" '!=' "x";then
6886 rubyinc
=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "archdir"))' 2>/dev/null`
6887 if test -d $rubyinc;then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyinc" >&5
6889 $as_echo "$rubyinc" >&6; }
6891 # If we got a sensible archdir, we also ask ruby to supply us with CPPFLAGS
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's cpp flags" >&5
6894 $as_echo_n "checking for ruby's cpp flags... " >&6; }
6895 rubycpp
=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "CPPFLAGS"))' 2>/dev/null`
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubycpp" >&5
6897 $as_echo "$rubycpp" >&6; }
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's ld flags" >&5
6900 $as_echo_n "checking for ruby's ld flags... " >&6; }
6901 rubyld
=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBYARG_SHARED"))' 2>/dev/null`
6902 rubyld2
=`$RUBY -e 'require "rbconfig";v=Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBY_LDSHARED"));puts v.gsub(/^g?cc/,"")' 2>/dev/null`
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$rubyld $rubyld2\"" >&5
6904 $as_echo "\"$rubyld $rubyld2\"" >&6; }
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby library name" >&5
6907 $as_echo_n "checking for ruby library name... " >&6; }
6908 rubylib
=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "RUBY_SO_NAME"))' 2>/dev/null`
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubylib" >&5
6910 $as_echo "$rubylib" >&6; }
6912 RUBY_CPPFLAGS
="$rubycpp -I$rubyinc $RUBY_CPPFLAGS"
6913 RUBY_LDFLAGS
="$rubyld $rubyld2 $RUBY_LDFLAGS"
6914 RUBY_INSTALLDIR
="$rubyinc"
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'unknown'" >&5
6917 $as_echo "'unknown'" >&6; }
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'unknown'" >&5
6921 $as_echo "'unknown'" >&6; }
6924 #OLDLDFLAGS="$LDFLAGS"
6925 #LDFLAGS="$LDFLAGS $RUBY_LDFLAGS"
6926 #AC_CHECK_LIB($rubylib, rb_define_method, HAVE_RUBY_LIB=1,)
6927 #LDFLAGS="$OLDLDFLAGS"
6929 OLDCPPFLAGS
="$CPPFLAGS"
6930 CPPFLAGS
="$CPPFLAGS $RUBY_CPPFLAGS"
6931 for ac_header
in ruby.h
6933 ac_fn_c_check_header_mongrel
"$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
6934 if test "x$ac_cv_header_ruby_h" = x
""yes; then :
6935 cat >>confdefs.h
<<_ACEOF
6936 #define HAVE_RUBY_H 1
6943 CPPFLAGS
="$OLDCPPFLAGS"
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should compile the ruby module" >&5
6946 $as_echo_n "checking whether we should compile the ruby module... " >&6; }
6947 if test "x${HAVE_RUBY_H}" '!=' "x";then
6948 #RUBY_LIBS="$RUBY_LIBS -l$rubylib"
6950 cat > conftest.c
<< EOF
6952 static VALUE foobar;
6953 VALUE foobar_set_foo(VALUE module, VALUE _key, VALUE _value)
6959 foobar = rb_define_module("foobar");
6960 rb_define_module_function(foobar, "set_foo", foobar_set_foo, 2);
6963 int main() {return 0;}
6965 ac_link
='$CC $SHARED $CPPFLAGS $RUBY_CPPFLAGS $CFLAGS conftest.c $LDFLAGS $RUBY_LDFLAGS $LIBS $RUBY_LIBS -o conftest${SLEXT}'
6966 if { (eval echo ruby.
m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${SLEXT}; then
6969 echo "configure: failed program was:" >&5
6975 if test "x${RUBY_OK}" '=' "xyes"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6977 $as_echo "yes" >&6; }
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6992 if test "x$RUBY_OK" '!=' "xyes";then
6993 if test -d "lib/ruby/";then
6994 echo all
install uninstall clean
: > lib
/ruby
/Makefile
6996 # fail silently- the most users won't have any need for the
6997 # ruby interface anyway
6999 if test -f "lib/ruby/Makefile.in";then
7000 rubygfx
="lib/ruby/Makefile"
7004 # ------------------------------------------------------------------
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing libraries" >&5
7007 $as_echo_n "checking for missing libraries... " >&6; }
7009 if test "x$ZLIBMISSING" = "xtrue";then
7010 MISSINGLIBS
="${MISSINGLIBS} zlib"
7014 if test "x$JPEGLIBMISSING" = "xtrue";then
7015 MISSINGLIBS
="${MISSINGLIBS} jpeglib"
7017 DISABLEJPEG2SWF
=true
7020 if test "x$PDFLIBMISSING" = "xtrue";then
7021 DISABLEPDF2PDF
=true
;
7023 #if test "x$T1LIBMISSING" = "xtrue";then
7024 # MISSINGLIBS="${MISSINGLIBS} t1lib"
7026 if test "x$UNGIFMISSING" = "xtrue";then
7028 MISSINGLIBS
="${MISSINGLIBS} ungif"
7032 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
7033 DISABLEPDF2PDF
=true
;
7035 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
7036 DISABLEPDF2SWF
=true
;
7037 DISABLEJPEG2SWF
=true
;
7038 MISSINGLIBS
="${MISSINGLIBS} jpeglib.h"
7041 if test "x$HAVE_FREETYPE" '!=' "x1"; then
7042 DISABLEPDF2SWF
=true
;
7043 MISSINGLIBS
="${MISSINGLIBS} freetype"
7046 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
7047 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
7049 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
7051 MISSINGLIBS
="${MISSINGLIBS} gif_lib.h"
7054 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
7055 DISABLEPNG2SWF
=true
;
7056 MISSINGLIBS
="${MISSINGLIBS} zlib.h"
7059 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
7060 # MISSINGLIBS="${MISSINGLIBS} avifile"
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MISSINGLIBS}" >&5
7064 $as_echo "${MISSINGLIBS}" >&6; }
7066 # ------------------------------------------------------------------
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5
7070 $as_echo_n "checking for Python version... " >&6; }
7072 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
7073 # you can override the python detection by putting PYTHON_LIB
7074 # and PYTHON_INCLUDES into the environment
7075 case "$PYTHON_INCLUDES" in
7076 *python2.4
*) PY_VERSION
=2.4
7078 *python2.5
*) PY_VERSION
=2.5
7080 *python2.6
*) PY_VERSION
=2.6
7082 *python2.7
*) PY_VERSION
=2.7
7084 *python3.0
*) PY_VERSION
=3.0
7086 *python3.1
*) PY_VERSION
=3.1
7088 *python3.2
*) PY_VERSION
=3.2
7090 *python3.3
*) PY_VERSION
=3.3
7092 *) PY_VERSION
=unknown
7096 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
7097 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
7099 # iterate through version 2.4 to 3.3
7100 VERSIONS
="2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3"
7102 2*) VERSIONS
="2.4 2.5 2.6 2.7 $PYTHON"
7104 3*) VERSIONS
="3.0 3.1 3.2 3.3 $PYTHON"
7107 for v
in $VERSIONS; do
7109 if test -f "/usr/include/python$v/Python.h";then
7111 PYTHON_LIB
="-lpython$PY_VERSION"
7112 if test -f "/usr/lib/python$v/site-packages/PIL/_imaging.so";then
7113 PYTHON_LIB2
="$PYTHON_LIB /usr/lib/python$v/site-packages/PIL/_imaging.so"
7114 HAVE_PYTHON_IMAGING_LIB
=1
7116 PYTHON_LIB2
="$PYTHON_LIB"
7118 PYTHON_INCLUDES
="-I/usr/include/python$PY_VERSION"
7120 elif test -f "/Library/Frameworks/Python.framework/Versions/$v/include/python$v/Python.h";then
7122 PYTHON_LIB
="-framework Python"
7123 if test -f "/Library/Frameworks/Python.framework/Versions/$v/site-packages/PIL/_imaging.so";then
7124 PYTHON_LIB2
="$PYTHON_LIB /Library/Python/$v/PIL/_imaging.so"
7125 HAVE_PYTHON_IMAGING_LIB
=1
7127 PYTHON_LIB2
="$PYTHON_LIB"
7129 PYTHON_INCLUDES
="-I/Library/Frameworks/Python.framework/Versions/$v/include/python$v/"
7131 elif test "(" -f "/sw/lib/python$v/config/libpython$v.dylib" \
7132 -o -f "/sw/lib/python$v/config/libpython$v.a" \
7133 -o -f "/sw/lib/python$v/config/libpython$v.so" \
7135 -a -f "/sw/include/python$v/Python.h"; then
7137 PYTHON_LIB
="-L /sw/lib/python$v/config/ -lpython$PY_VERSION /sw/lib/python$v/site-packages/PIL/_imaging.so"
7138 if test -f "/sw/lib/python$v/site-packages/PIL/_imaging.so";then
7139 PYTHON_LIB2
="$PYTHON_LIB /sw/lib/python$v/site-packages/PIL/_imaging.so"
7140 HAVE_PYTHON_IMAGING_LIB
=1
7142 PYTHON_LIB2
="$PYTHON_LIB"
7144 PYTHON_INCLUDES
="-I /sw/include/python$v/"
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_VERSION" >&5
7149 $as_echo "$PY_VERSION" >&6; }
7151 if test "x$PY_VERSION" "!=" "x"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python executable" >&5
7153 $as_echo_n "checking for Python executable... " >&6; }
7154 if python
$PY_VERSION -V 2>&5;then
7155 PYTHON_EXECUTABLE
=python
$PY_VERSION
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXECUTABLE" >&5
7158 $as_echo "$PYTHON_EXECUTABLE" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7161 $as_echo "failed" >&6; }
7165 if test "x$PY_VERSION" "!=" "x" -a "x$PYTHON_EXECUTABLE" "!=" "x"; then
7166 export PYTHON_INCLUDES PYTHON_LIB
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the Python test program" >&5
7170 $as_echo_n "checking whether we can compile the Python test program... " >&6; }
7172 cat > conftest.c
<< EOF
7173 # include <Python.h>
7178 ret = Py_Main(0, 0);
7179 int x; // check also for gcc 2.95.x incompatibilities
7184 ac_link
='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
7185 if { (eval echo python.
m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7187 $as_echo "yes" >&6; }
7190 echo "configure: failed program was:" >&5
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python install path" >&5
7198 $as_echo_n "checking for Python install path... " >&6; }
7199 cat > _pypath.py
<< EOF
7201 import distutils.sysconfig
7203 sys.stdout.write(distutils.sysconfig.get_python_lib(plat_specific=0,standard_lib=0))
7205 echo $PYTHON_EXECUTABLE _pypath.py
1>&5
7206 if $PYTHON_EXECUTABLE _pypath.py
>_pypath.txt
2>&5;then
7207 PYTHON_INSTALL_PATH
=`cat _pypath.txt`
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INSTALL_PATH" >&5
7210 $as_echo "$PYTHON_INSTALL_PATH" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7213 $as_echo "failed" >&6; }
7215 #rm -f _pypath.txt _pypath.py
7217 if test "x$PYTHON_OK" = "xyes";then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python-Imaging" >&5
7219 $as_echo_n "checking for Python-Imaging... " >&6; }
7220 cat > conftest.c
<< EOF
7221 # include <Python.h>
7222 # include <Imaging.h>
7230 if test "$HAVE_PYTHON_IMAGING_LIB"; then
7231 ac_link
='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
7232 if { (eval echo python.
m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7233 PYTHON_LIB
="${PYTHON_LIB2}"
7235 $as_echo "#define HAVE_PYTHON_IMAGING 1" >>confdefs.h
7237 HAVE_PYTHON_IMAGING
=yes
7238 export HAVE_PYTHON_IMAGING
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7241 $as_echo "yes" >&6; }
7243 echo "configure: failed program was:" >&5
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7249 echo "(didn't find the Python-Imaging libraries)" >&5
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7258 if test "x$PYTHON_OK" '!=' "xyes" -o "$DISABLEPDF2SWF";then
7259 echo all
install uninstall clean
: > lib
/python
/Makefile
7260 # fail silently- the most users won't have any need for the
7261 # python interface anyway
7263 pythongfx
="lib/python/Makefile"
7266 # ------------------------------------------------------------------
7268 if test "x${MISSINGLIBS}" '!=' "x"; then
7269 echo "***************************************************"
7270 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
7273 avi2swf
="avi2swf/Makefile"
7274 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
7275 #don't whine, avi2swf is outdated anyway
7276 #echo "* Disabling avi2swf tool..."
7277 echo all
install uninstall clean
: > avi2swf
/Makefile
7281 pdf2swf_makefile
="lib/pdf/Makefile"
7282 PDF2SWF
='pdf2swf$(E)'
7285 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
7286 echo "* Disabling pdf2swf tool..."
7287 rm -f lib
/pdf
/Makefile
7288 echo all
install uninstall clean libpdf libgfxpdf
: > lib
/pdf
/Makefile
7296 PDF2PDF
='pdf2pdf$(E)'
7297 DEVICE_PDF
='devices/pdf.$(O)'
7298 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
7299 #echo "* Disabling pdf2pdf tool..."
7306 if test "x${ZLIBMISSING}" = "xtrue"; then
7308 echo "* Warning! Without zlib, you will not be able to read"
7309 echo "* or write compressed Flash MX files!"
7312 JPEG2SWF
='jpeg2swf$(E)'
7313 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
7314 echo "* Disabling jpeg2swf tool..."
7320 GIF2SWF
='gif2swf$(E)'
7321 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
7322 echo "* Disabling gif2swf tool..."
7328 PNG2SWF
='png2swf$(E)'
7329 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
7330 echo "* Disabling png2swf tool..."
7336 if test "x${MISSINGLIBS}" '!=' "x"; then
7337 if test "x${PARTIAL}" '=' "x"; then
7338 echo "* (never mind)"
7340 echo "***************************************************"
7343 # ------------------------------------------------------------------
7349 if test -f "release.in"; then release_in
="./release"; fi
7350 if test -f "Makefile.new.in"; then mk_in
="./Makefile.new"; fi
7351 FILES
="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythongfx} ${rubygfx} ${lame_makefile} lib/readers/Makefile"
7352 ac_config_files
="$ac_config_files ${FILES}"
7354 cat >confcache
<<\_ACEOF
7355 # This file is a shell script that caches the results of configure
7356 # tests run on this system so they can be shared between configure
7357 # scripts and configure runs, see configure's option --config-cache.
7358 # It is not useful on other systems. If it contains results you don't
7359 # want to keep, you may remove or edit it.
7361 # config.status only pays attention to the cache file if you give it
7362 # the --recheck option to rerun configure.
7364 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7365 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7370 # The following way of writing the cache mishandles newlines in values,
7371 # but we know of no workaround that is simple, portable, and efficient.
7372 # So, we kill variables containing newlines.
7373 # Ultrix sh set writes to stderr and can't be redirected directly,
7374 # and sets the high bit in the cache file unless we assign to the vars.
7376 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7377 eval ac_val
=\$
$ac_var
7381 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7382 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7385 _ | IFS | as_nl
) ;; #(
7386 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7387 *) { eval $ac_var=; unset $ac_var;} ;;
7393 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7394 *${as_nl}ac_space
=\
*)
7395 # `set' does not quote correctly, so add quotes: double-quote
7396 # substitution turns \\\\ into \\, and sed turns \\ into \.
7399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7402 # `set' quotes correctly as required by POSIX, so do not add quotes.
7403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7414 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7416 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7417 if test -w "$cache_file"; then
7418 test "x$cache_file" != "x/dev/null" &&
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7420 $as_echo "$as_me: updating cache $cache_file" >&6;}
7421 cat confcache
>$cache_file
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7424 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7429 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7430 # Let make expand exec_prefix.
7431 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7433 DEFS
=-DHAVE_CONFIG_H
7437 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7438 # 1. Remove the extension, and $U if already installed.
7439 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7440 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7441 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7442 # will be set to the directory where LIBOBJS objects are built.
7443 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7444 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7448 LTLIBOBJS
=$ac_ltlibobjs
7452 : ${CONFIG_STATUS=./config.status}
7454 ac_clean_files_save
=$ac_clean_files
7455 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7457 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7459 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7461 # Generated by $as_me.
7462 # Run this file to recreate the current configuration.
7463 # Compiler output produced by configure, useful for debugging
7464 # configure, is in config.log if it exists.
7470 SHELL=\${CONFIG_SHELL-$SHELL}
7473 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7474 ## -------------------- ##
7475 ## M4sh Initialization. ##
7476 ## -------------------- ##
7478 # Be more Bourne compatible
7479 DUALCASE
=1; export DUALCASE
# for MKS sh
7480 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7483 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7484 # is contrary to our usage. Disable this feature.
7485 alias -g '${1+"$@"}'='"$@"'
7486 setopt NO_GLOB_SUBST
7488 case `(set -o) 2>/dev/null` in #(
7500 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7501 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7502 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7503 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7504 # Prefer a ksh shell builtin over an external printf program on Solaris,
7505 # but without wasting forks for bash or zsh.
7506 if test -z "$BASH_VERSION$ZSH_VERSION" \
7507 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7508 as_echo='print
-r --'
7509 as_echo_n='print
-rn --'
7510 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7511 as_echo='printf %s
\n'
7512 as_echo_n='printf %s
'
7514 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7515 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7516 as_echo_n='/usr
/ucb
/echo -n'
7518 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7519 as_echo_n_body='eval
7523 expr "X$arg" : "X\\(.*\\)$as_nl";
7524 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7526 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7528 export as_echo_n_body
7529 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7532 as_echo='sh
-c $as_echo_body as_echo
'
7535 # The user is always right.
7536 if test "${PATH_SEPARATOR+set}" != set; then
7538 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7539 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7546 # We need space, tab and new line, in precisely that order. Quoting is
7547 # there to prevent editors from complaining about space-tab.
7548 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7549 # splitting by setting IFS to empty value.)
7552 # Find who we are. Look in the path if we contain no directory separator.
7554 *[\\/]* ) as_myself=$0 ;;
7555 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7566 # We did not find ourselves, most probably we were run as `sh COMMAND'
7567 # in which case we are not to be found in the path.
7568 if test "x$as_myself" = x
; then
7571 if test ! -f "$as_myself"; then
7572 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7576 # Unset variables that we do not need and which cause bugs (e.g. in
7577 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7578 # suppresses any "Segmentation fault" message there. '((' could
7579 # trigger a bug in pdksh 5.2.14.
7580 for as_var
in BASH_ENV ENV MAIL MAILPATH
7581 do eval test x\
${$as_var+set} = xset \
7582 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7595 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7598 # as_fn_error ERROR [LINENO LOG_FD]
7599 # ---------------------------------
7600 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7601 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7602 # script with status $?, using 1 if that was 0.
7605 as_status
=$?
; test $as_status -eq 0 && as_status
=1
7607 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7608 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7610 $as_echo "$as_me: error: $1" >&2
7611 as_fn_exit
$as_status
7615 # as_fn_set_status STATUS
7616 # -----------------------
7617 # Set $? to STATUS, without forking.
7621 } # as_fn_set_status
7625 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7635 # Portably unset VAR.
7638 { eval $1=; unset $1;}
7640 as_unset
=as_fn_unset
7641 # as_fn_append VAR VALUE
7642 # ----------------------
7643 # Append the text in VALUE to the end of the definition contained in VAR. Take
7644 # advantage of any shell optimizations that allow amortized linear growth over
7645 # repeated appends, instead of the typical quadratic growth present in naive
7647 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7648 eval 'as_fn_append ()
7659 # as_fn_arith ARG...
7660 # ------------------
7661 # Perform arithmetic evaluation on the ARGs, and store the result in the
7662 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7663 # must be portable across $(()) and expr.
7664 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7665 eval 'as_fn_arith ()
7672 as_val
=`expr "$@" || test $? -eq 1`
7677 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7678 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7684 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7685 as_basename
=basename
7690 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7696 as_me
=`$as_basename -- "$0" ||
7697 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7698 X"$0" : 'X\(//\)$' \| \
7699 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7701 sed '/^.*\/\([^/][^/]*\)\/*$/{
7715 # Avoid depending upon Character Ranges.
7716 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7717 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7718 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7719 as_cr_digits
='0123456789'
7720 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7722 ECHO_C
= ECHO_N
= ECHO_T
=
7723 case `echo -n x` in #(((((
7725 case `echo 'xy\c'` in
7726 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7728 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7735 rm -f conf$$ conf$$.exe conf$$.
file
7736 if test -d conf$$.dir
; then
7737 rm -f conf$$.dir
/conf$$.
file
7740 mkdir conf$$.dir
2>/dev
/null
7742 if (echo >conf$$.
file) 2>/dev
/null
; then
7743 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7745 # ... but there are two gotchas:
7746 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7747 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7748 # In both cases, we have to default to `cp -p'.
7749 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7751 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7759 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7760 rmdir conf$$.dir
2>/dev
/null
7765 # Create "$as_dir" as a directory, including parents if necessary.
7770 -*) as_dir
=.
/$as_dir;;
7772 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7776 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7777 *) as_qdir
=$as_dir;;
7779 as_dirs
="'$as_qdir' $as_dirs"
7780 as_dir
=`$as_dirname -- "$as_dir" ||
7781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7782 X"$as_dir" : 'X\(//\)[^/]' \| \
7783 X"$as_dir" : 'X\(//\)$' \| \
7784 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7785 $as_echo X"$as_dir" |
7786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7803 test -d "$as_dir" && break
7805 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7806 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
7810 if mkdir
-p .
2>/dev
/null
; then
7811 as_mkdir_p
='mkdir -p "$as_dir"'
7813 test -d .
/-p && rmdir .
/-p
7817 if test -x / >/dev
/null
2>&1; then
7820 if ls -dL / >/dev
/null
2>&1; then
7827 if test -d "$1"; then
7833 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7834 ???[sx]*):;;*)false;;esac;fi
7838 as_executable_p
=$as_test_x
7840 # Sed expression to map a string onto a valid CPP name.
7841 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7843 # Sed expression to map a string onto a valid variable name.
7844 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7848 ## ----------------------------------- ##
7849 ## Main body of $CONFIG_STATUS script. ##
7850 ## ----------------------------------- ##
7852 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7855 # Save the log message, to keep $0 and so on meaningful, and to
7856 # report actual input values of CONFIG_FILES etc. instead of their
7857 # values after options handling.
7859 This file was extended by $as_me, which was
7860 generated by GNU Autoconf 2.65. Invocation command line was
7862 CONFIG_FILES = $CONFIG_FILES
7863 CONFIG_HEADERS = $CONFIG_HEADERS
7864 CONFIG_LINKS = $CONFIG_LINKS
7865 CONFIG_COMMANDS = $CONFIG_COMMANDS
7868 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7873 case $ac_config_files in *"
7874 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7877 case $ac_config_headers in *"
7878 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7883 # Files that config.status was made for.
7884 config_files="$ac_config_files"
7885 config_headers="$ac_config_headers"
7889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7891 \`$as_me' instantiates files and other configuration actions
7892 from templates according to the current configuration. Unless the files
7893 and actions are specified as TAGs, all are instantiated by default.
7895 Usage: $0 [OPTION]... [TAG]...
7897 -h, --help print this help, then exit
7898 -V, --version print version number and configuration settings, then exit
7899 --config print configuration, then exit
7900 -q, --quiet, --silent
7901 do not print progress messages
7902 -d, --debug don't remove temporary files
7903 --recheck update $as_me by reconfiguring in the same conditions
7904 --file=FILE[:TEMPLATE]
7905 instantiate the configuration file FILE
7906 --header=FILE[:TEMPLATE]
7907 instantiate the configuration header FILE
7909 Configuration files:
7912 Configuration headers:
7915 Report bugs to the package provider."
7918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7919 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7922 configured by $0, generated by GNU Autoconf 2.65,
7923 with options \\"\$ac_cs_config\\"
7925 Copyright (C) 2009 Free Software Foundation, Inc.
7926 This config.status script is free software; the Free Software Foundation
7927 gives unlimited permission to copy, distribute and modify it."
7932 test -n "\$AWK" || AWK=awk
7935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7936 # The default lists apply if the user does not specify any file.
7942 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7943 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7954 # Handling of the options.
7955 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7957 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7958 $as_echo "$ac_cs_version"; exit ;;
7959 --config |
--confi |
--conf |
--con |
--co |
--c )
7960 $as_echo "$ac_cs_config"; exit ;;
7961 --debug |
--debu |
--deb |
--de |
--d |
-d )
7963 --file |
--fil |
--fi |
--f )
7966 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7968 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7969 ac_need_defaults
=false
;;
7970 --header |
--heade |
--head |
--hea )
7973 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7975 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7976 ac_need_defaults
=false
;;
7978 # Conflict between --help and --header
7979 as_fn_error
"ambiguous option: \`$1'
7980 Try \`$0 --help' for more information.";;
7981 --help |
--hel |
-h )
7982 $as_echo "$ac_cs_usage"; exit ;;
7983 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7984 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7988 -*) as_fn_error
"unrecognized option: \`$1'
7989 Try \`$0 --help' for more information." ;;
7991 *) as_fn_append ac_config_targets
" $1"
7992 ac_need_defaults
=false
;;
7998 ac_configure_extra_args
=
8000 if $ac_cs_silent; then
8002 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8007 if \$ac_cs_recheck; then
8008 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8010 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8011 CONFIG_SHELL='$SHELL'
8017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8021 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8022 ## Running $as_me. ##
8028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8033 # Handling of arguments.
8034 for ac_config_target
in $ac_config_targets
8036 case $ac_config_target in
8037 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8038 "${FILES}") CONFIG_FILES
="$CONFIG_FILES ${FILES}" ;;
8040 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8045 # If the user did not use the arguments to specify the items to instantiate,
8046 # then the envvar interface is used. Set only those that are not.
8047 # We use the long form for the default assignment because of an extremely
8048 # bizarre bug on SunOS 4.1.3.
8049 if $ac_need_defaults; then
8050 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8051 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8054 # Have a temporary directory for convenience. Make it in the build tree
8055 # simply because there is no reason against having it here, and in addition,
8056 # creating and moving files from /tmp can sometimes cause problems.
8057 # Hook for its removal unless debugging.
8058 # Note that there is a small window in which the directory will not be cleaned:
8059 # after its creation but before its name has been assigned to `$tmp'.
8063 trap 'exit_status=$?
8064 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8066 trap 'as_fn_exit 1' 1 2 13 15
8068 # Create a (secure) tmp directory for tmp files.
8071 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8072 test -n "$tmp" && test -d "$tmp"
8075 tmp
=.
/conf$$
-$RANDOM
8076 (umask 077 && mkdir
"$tmp")
8077 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
8079 # Set up the scripts for CONFIG_FILES section.
8080 # No need to generate them if there are no CONFIG_FILES.
8081 # This happens for instance with `./config.status config.h'.
8082 if test -n "$CONFIG_FILES"; then
8085 ac_cr
=`echo X | tr X '\015'`
8086 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8087 # But we know of no other shell where ac_cr would be empty at this
8088 # point, so we can use a bashism as a fallback.
8089 if test "x$ac_cr" = x
; then
8090 eval ac_cr
=\$
\'\\r
\'
8092 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8093 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8099 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8104 echo "cat >conf$$subs.awk <<_ACEOF" &&
8105 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8108 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8109 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8111 for ac_last_try in false false false false false :; do
8112 . ./conf$$subs.sh ||
8113 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8115 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8116 if test $ac_delim_n = $ac_delim_num; then
8118 elif $ac_last_try; then
8119 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8121 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8127 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
8131 s/^/S["/; s
/!.
*/"]=/
8141 s/\(.\{148\}\)..*/\1/
8143 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8148 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8155 s/\(.\{148\}\)..*/\1/
8157 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8161 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8166 ' <conf$$subs.awk | sed '
8171 ' >>$CONFIG_STATUS || ac_write_fail=1
8172 rm -f conf$$subs.awk
8173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8175 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8176 for (key in S) S_is_set[key] = 1
8182 nfields = split(line, field, "@
")
8184 len = length(field[1])
8185 for (i = 2; i < nfields; i++) {
8187 keylen = length(key)
8188 if (S_is_set[key]) {
8190 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8191 len += length(value) + length(field[++i])
8202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8203 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8204 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8207 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8208 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
8211 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8212 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8213 # trailing colons and then remove the whole line if VPATH becomes empty
8214 # (actually we leave an empty line to preserve line numbers).
8215 if test "x
$srcdir" = x.; then
8216 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8220 s/^\([^=]*=[ ]*\):*/\1/
8226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8227 fi # test -n "$CONFIG_FILES"
8229 # Set up the scripts for CONFIG_HEADERS section.
8230 # No need to generate them if there are no CONFIG_HEADERS.
8231 # This happens for instance with `./config.status Makefile'.
8232 if test -n "$CONFIG_HEADERS"; then
8233 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8237 # Transform confdefs.h into an awk script `defines.awk', embedded as
8238 # here-document in config.status, that substitutes the proper values into
8239 # config.h.in to produce config.h.
8241 # Create a delimiter string that does not exist in confdefs.h, to ease
8242 # handling of long lines.
8244 for ac_last_try in false false :; do
8245 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8246 if test -z "$ac_t"; then
8248 elif $ac_last_try; then
8249 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
8251 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8255 # For the awk script, D is an array of macro values keyed by name,
8256 # likewise P contains macro parameters if any. Preserve backslash
8257 # newline sequences.
8259 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8261 s/.\{148\}/&'"$ac_delim"'/g
8264 s/^[ ]*#[ ]*define[ ][ ]*/ /
8271 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8273 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8277 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8278 D["\
1"]=" \
3\\\\\\n
"\\/p
8280 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8285 s/.\{148\}/&'"$ac_delim"'/g
8290 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8293 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8295 ' <confdefs.h | sed '
8296 s/'"$ac_delim"'/"\\\
8297 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8300 for (key in D) D_is_set[key] = 1
8303 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8305 split(line, arg, " ")
8306 if (arg[1] == "#") {
8310 defundef
= substr
(arg
[1], 2)
8313 split(mac1
, mac2
, "(") #)
8315 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8316 if (D_is_set
[macro
]) {
8317 # Preserve the white space surrounding the "#".
8318 print prefix
"define", macro P
[macro
] D
[macro
]
8321 # Replace #undef with comments. This is necessary, for example,
8322 # in the case of _POSIX_SOURCE, which is predefined and required
8323 # on some systems where configure will not decide to define it.
8324 if (defundef
== "undef") {
8325 print
"/*", prefix defundef
, macro
, "*/"
8333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8334 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8335 fi # test -n "$CONFIG_HEADERS"
8338 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
8343 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8345 case $ac_mode$ac_tag in
8347 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8348 :[FH
]-) ac_tag
=-:-;;
8349 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8366 -) ac_f
="$tmp/stdin";;
8367 *) # Look for the file first in the build tree, then in the source tree
8368 # (if the path is not absolute). The absolute path cannot be DOS-style,
8369 # because $ac_f cannot contain `:'.
8373 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8375 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8377 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8378 as_fn_append ac_file_inputs
" '$ac_f'"
8381 # Let's still pretend it is `configure' which instantiates (i.e., don't
8382 # use $as_me), people would be surprised to read:
8383 # /* config.h. Generated by config.status. */
8384 configure_input
='Generated from '`
8385 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8387 if test x
"$ac_file" != x-
; then
8388 configure_input
="$ac_file. $configure_input"
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8390 $as_echo "$as_me: creating $ac_file" >&6;}
8392 # Neutralize special characters interpreted by sed in replacement strings.
8393 case $configure_input in #(
8394 *\
&* |
*\|
* |
*\\* )
8395 ac_sed_conf_input
=`$as_echo "$configure_input" |
8396 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8397 *) ac_sed_conf_input
=$configure_input;;
8401 *:-:* |
*:-) cat >"$tmp/stdin" \
8402 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8407 ac_dir
=`$as_dirname -- "$ac_file" ||
8408 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8409 X"$ac_file" : 'X\(//\)[^/]' \| \
8410 X"$ac_file" : 'X\(//\)$' \| \
8411 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8412 $as_echo X"$ac_file" |
8413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8430 as_dir
="$ac_dir"; as_fn_mkdir_p
8434 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8436 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8437 # A ".." for each directory in $ac_dir_suffix.
8438 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8439 case $ac_top_builddir_sub in
8440 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8441 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8444 ac_abs_top_builddir
=$ac_pwd
8445 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8446 # for backward compatibility:
8447 ac_top_builddir
=$ac_top_build_prefix
8450 .
) # We are building in place.
8452 ac_top_srcdir
=$ac_top_builddir_sub
8453 ac_abs_top_srcdir
=$ac_pwd ;;
8454 [\\/]* | ?
:[\\/]* ) # Absolute name.
8455 ac_srcdir
=$srcdir$ac_dir_suffix;
8456 ac_top_srcdir
=$srcdir
8457 ac_abs_top_srcdir
=$srcdir ;;
8459 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8460 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8461 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8463 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8473 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8474 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8479 # If the template does not know about datarootdir, expand it.
8480 # FIXME: This hack should be removed a few years after 2.60.
8481 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8492 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8493 *datarootdir
*) ac_datarootdir_seen
=yes;;
8494 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8496 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8499 ac_datarootdir_hack='
8500 s&@datadir@&$datadir&g
8501 s&@docdir@&$docdir&g
8502 s&@infodir@&$infodir&g
8503 s&@localedir@&$localedir&g
8504 s&@mandir@&$mandir&g
8505 s&\\\${datarootdir}&$datarootdir&g' ;;
8509 # Neutralize VPATH when `$srcdir' = `.'.
8510 # Shell code in configure.ac might set extrasub.
8511 # FIXME: do we really want to maintain this feature?
8512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8513 ac_sed_extra="$ac_vpsub
8516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8518 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8519 s|@configure_input@|
$ac_sed_conf_input|
;t t
8520 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8521 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8522 s
&@srcdir@
&$ac_srcdir&;t t
8523 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8524 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8525 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8526 s
&@builddir@
&$ac_builddir&;t t
8527 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8528 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8529 s
&@INSTALL@
&$ac_INSTALL&;t t
8530 $ac_datarootdir_hack
8532 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8533 || as_fn_error "could not create
$ac_file" "$LINENO" 5
8535 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8536 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8537 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8539 which seems to be undefined. Please make sure it is defined." >&5
8540 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8541 which seems to be undefined. Please make sure it is defined." >&2;}
8545 -) cat "$tmp/out" && rm -f "$tmp/out";;
8546 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8548 || as_fn_error "could not create $ac_file" "$LINENO" 5
8554 if test x"$ac_file" != x-; then
8556 $as_echo "/* $configure_input */" \
8557 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8558 } >"$tmp/config.h" \
8559 || as_fn_error "could not create $ac_file" "$LINENO" 5
8560 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8562 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8565 mv "$tmp/config.h" "$ac_file" \
8566 || as_fn_error "could not create $ac_file" "$LINENO" 5
8569 $as_echo "/* $configure_input */" \
8570 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8571 || as_fn_error "could not create -" "$LINENO" 5
8583 ac_clean_files=$ac_clean_files_save
8585 test $ac_write_fail = 0 ||
8586 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8589 # configure is writing to config.log, and then calls config.status.
8590 # config.status does its own redirection, appending to config.log.
8591 # Unfortunately, on DOS this fails, as config.log is still kept open
8592 # by configure, so config.status won't be able to
write to it
; its
8593 # output is simply discarded. So we exec the FD to /dev/null,
8594 # effectively closing config.log, so it can be properly (re)opened and
8595 # appended to by config.status. When coming back to configure, we
8596 # need to make the FD available again.
8597 if test "$no_create" != yes; then
8599 ac_config_status_args
=
8600 test "$silent" = yes &&
8601 ac_config_status_args
="$ac_config_status_args --quiet"
8603 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8605 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8606 # would make configure fail if this is the last instruction.
8607 $ac_cs_success || as_fn_exit $?
8609 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8611 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8617 # On development trees, create snapshots of config.status
8619 if test -f snapshot
-a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
8620 if test "x${MINGW}" = "xyes"; then
8621 echo cp config.status config.status.win32
8622 cp config.status config.status.win32
8624 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
8625 echo cp config.status config.status.linux
8626 cp config.status config.status.linux
8628 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
8629 echo cp config.status config.status.debug
8630 cp config.status config.status.debug
8632 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
8633 echo cp config.status config.status.optimize
8634 cp config.status config.status.optimize