use poppler version of jbig2stream (fixes segv)
[swftools.git] / configure
blob4bba197f647b5fd598c52b7ffa5eaa33104b7962
1 #! /bin/sh
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,
8 # Inc.
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 :
20 emulate sh
21 NULLCMD=:
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+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
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
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
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'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
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.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
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
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
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 || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
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 :
138 emulate sh
139 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
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; }
159 exitcode=0
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 :
166 else
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 :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
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 :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
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
209 fi; }
210 IFS=$as_save_IFS
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.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
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."
230 else
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."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
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 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
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
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
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 :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
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.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
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
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
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. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
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).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
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
474 as_ln_s='ln -s'
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 ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
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"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
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
530 exec 6>&1
532 # Name of the host.
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`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 ac_unique_file="src/"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_subst_vars='LTLIBOBJS
595 LIBOBJS
596 PNG2SWF
597 GIF2SWF
598 JPEG2SWF
599 PDF2PDF
600 DEVICE_PDF
601 LIBPDF
602 PDF2SWF
603 RUBY_INSTALLDIR
604 RUBY_LDFLAGS
605 RUBY_CPPFLAGS
606 RUBY_LIBS
607 RUBY
608 HAVE_PYTHON_IMAGING
609 PYTHON_INCLUDES
610 PYTHON_LIB
611 USE_GZIP
612 VIDEO_CFLAGS
613 VIDEO_LIBS
614 AVIFILE_CONFIG
615 splash_in_source
616 xpdf_in_source
617 lame_in_source
618 DEVICE_OPENGL
619 FREETYPE_CONFIG
620 HAVE_UNISTD_H
621 VERSION
622 PACKAGE
623 EGREP
624 GREP
625 SYSTEM_BACKTICKS
626 WORDS_BIGENDIAN
627 target_os
628 target_vendor
629 target_cpu
630 target
631 STRIP
632 CXXLIBS
633 SLEXT
635 AREXT
636 UNCOMPRESS
637 LN_S
638 INSTALL_DATA
639 INSTALL_SCRIPT
640 INSTALL_PROGRAM
641 SET_MAKE
642 RANLIB
644 ac_ct_CXX
645 CXXFLAGS
647 OBJEXT
648 EXEEXT
649 ac_ct_CC
650 CPPFLAGS
651 LDFLAGS
652 CFLAGS
654 SHARED
655 host_os
656 host_vendor
657 host_cpu
658 host
659 build_os
660 build_vendor
661 build_cpu
662 build
663 target_alias
664 host_alias
665 build_alias
666 LIBS
667 ECHO_T
668 ECHO_N
669 ECHO_C
670 DEFS
671 mandir
672 localedir
673 libdir
674 psdir
675 pdfdir
676 dvidir
677 htmldir
678 infodir
679 docdir
680 oldincludedir
681 includedir
682 localstatedir
683 sharedstatedir
684 sysconfdir
685 datadir
686 datarootdir
687 libexecdir
688 sbindir
689 bindir
690 program_transform_name
691 prefix
692 exec_prefix
693 PACKAGE_URL
694 PACKAGE_BUGREPORT
695 PACKAGE_STRING
696 PACKAGE_VERSION
697 PACKAGE_TARNAME
698 PACKAGE_NAME
699 PATH_SEPARATOR
700 SHELL'
701 ac_subst_files=''
702 ac_user_opts='
703 enable_option_checking
704 enable_checkmem
705 enable_debug
706 enable_profiling
707 enable_warnings
708 enable_optimizations
709 enable_lame
711 ac_precious_vars='build_alias
712 host_alias
713 target_alias
715 CFLAGS
716 LDFLAGS
717 LIBS
718 CPPFLAGS
720 CXXFLAGS
722 CPP'
725 # Initialize some variables set by options.
726 ac_init_help=
727 ac_init_version=false
728 ac_unrecognized_opts=
729 ac_unrecognized_sep=
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
732 cache_file=/dev/null
733 exec_prefix=NONE
734 no_create=
735 no_recursion=
736 prefix=NONE
737 program_prefix=NONE
738 program_suffix=NONE
739 program_transform_name=s,x,x,
740 silent=
741 site=
742 srcdir=
743 verbose=
744 x_includes=NONE
745 x_libraries=NONE
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE}'
764 infodir='${datarootdir}/info'
765 htmldir='${docdir}'
766 dvidir='${docdir}'
767 pdfdir='${docdir}'
768 psdir='${docdir}'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
773 ac_prev=
774 ac_dashdash=
775 for ac_option
777 # If the previous option needs an argument, assign it.
778 if test -n "$ac_prev"; then
779 eval $ac_prev=\$ac_option
780 ac_prev=
781 continue
784 case $ac_option in
785 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 *) ac_optarg=yes ;;
787 esac
789 # Accept the important Cygnus configure options, so we can diagnose typos.
791 case $ac_dashdash$ac_option in
793 ac_dashdash=yes ;;
795 -bindir | --bindir | --bindi | --bind | --bin | --bi)
796 ac_prev=bindir ;;
797 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
798 bindir=$ac_optarg ;;
800 -build | --build | --buil | --bui | --bu)
801 ac_prev=build_alias ;;
802 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803 build_alias=$ac_optarg ;;
805 -cache-file | --cache-file | --cache-fil | --cache-fi \
806 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
807 ac_prev=cache_file ;;
808 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
809 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
810 cache_file=$ac_optarg ;;
812 --config-cache | -C)
813 cache_file=config.cache ;;
815 -datadir | --datadir | --datadi | --datad)
816 ac_prev=datadir ;;
817 -datadir=* | --datadir=* | --datadi=* | --datad=*)
818 datadir=$ac_optarg ;;
820 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
821 | --dataroo | --dataro | --datar)
822 ac_prev=datarootdir ;;
823 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
824 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
825 datarootdir=$ac_optarg ;;
827 -disable-* | --disable-*)
828 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
829 # Reject names that are not valid shell variable names.
830 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831 as_fn_error "invalid feature name: $ac_useropt"
832 ac_useropt_orig=$ac_useropt
833 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834 case $ac_user_opts in
836 "enable_$ac_useropt"
837 "*) ;;
838 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
839 ac_unrecognized_sep=', ';;
840 esac
841 eval enable_$ac_useropt=no ;;
843 -docdir | --docdir | --docdi | --doc | --do)
844 ac_prev=docdir ;;
845 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
846 docdir=$ac_optarg ;;
848 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849 ac_prev=dvidir ;;
850 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
851 dvidir=$ac_optarg ;;
853 -enable-* | --enable-*)
854 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 as_fn_error "invalid feature name: $ac_useropt"
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
862 "enable_$ac_useropt"
863 "*) ;;
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
866 esac
867 eval enable_$ac_useropt=\$ac_optarg ;;
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
880 with_gas=yes ;;
882 -help | --help | --hel | --he | -h)
883 ac_init_help=long ;;
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 ac_prev=htmldir ;;
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 | --ht=*)
898 htmldir=$ac_optarg ;;
900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 ac_prev=infodir ;;
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
912 -libdir | --libdir | --libdi | --libd)
913 ac_prev=libdir ;;
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
915 libdir=$ac_optarg ;;
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
924 -localedir | --localedir | --localedi | --localed | --locale)
925 ac_prev=localedir ;;
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
929 -localstatedir | --localstatedir | --localstatedi | --localstated \
930 | --localstate | --localstat | --localsta | --localst | --locals)
931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934 localstatedir=$ac_optarg ;;
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 ac_prev=mandir ;;
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939 mandir=$ac_optarg ;;
941 -nfp | --nfp | --nf)
942 # Obsolete; use --without-fp.
943 with_fp=no ;;
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c | -n)
947 no_create=yes ;;
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951 no_recursion=yes ;;
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 ac_prev=prefix ;;
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965 prefix=$ac_optarg ;;
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 ac_prev=pdfdir ;;
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1003 -psdir | --psdir | --psdi | --psd | --ps)
1004 ac_prev=psdir ;;
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006 psdir=$ac_optarg ;;
1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1010 silent=yes ;;
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 ac_prev=sbindir ;;
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 | --sbi=* | --sb=*)
1016 sbindir=$ac_optarg ;;
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1021 | --sha | --sh)
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 | --sha=* | --sh=*)
1027 sharedstatedir=$ac_optarg ;;
1029 -site | --site | --sit)
1030 ac_prev=site ;;
1031 -site=* | --site=* | --sit=*)
1032 site=$ac_optarg ;;
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 ac_prev=srcdir ;;
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 verbose=yes ;;
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1057 -with-* | --with-*)
1058 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 as_fn_error "invalid package name: $ac_useropt"
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1066 "with_$ac_useropt"
1067 "*) ;;
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1070 esac
1071 eval with_$ac_useropt=\$ac_optarg ;;
1073 -without-* | --without-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid package name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "with_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval with_$ac_useropt=no ;;
1089 --x)
1090 # Obsolete; use --with-x.
1091 with_x=yes ;;
1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094 | --x-incl | --x-inc | --x-in | --x-i)
1095 ac_prev=x_includes ;;
1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1098 x_includes=$ac_optarg ;;
1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102 ac_prev=x_libraries ;;
1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1105 x_libraries=$ac_optarg ;;
1107 -*) as_fn_error "unrecognized option: \`$ac_option'
1108 Try \`$0 --help' for more information."
1111 *=*)
1112 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1113 # Reject names that are not valid shell variable names.
1114 case $ac_envvar in #(
1115 '' | [0-9]* | *[!_$as_cr_alnum]* )
1116 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1117 esac
1118 eval $ac_envvar=\$ac_optarg
1119 export $ac_envvar ;;
1122 # FIXME: should be removed in autoconf 3.0.
1123 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1129 esac
1130 done
1132 if test -n "$ac_prev"; then
1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1134 as_fn_error "missing argument to $ac_option"
1137 if test -n "$ac_unrecognized_opts"; then
1138 case $enable_option_checking in
1139 no) ;;
1140 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1141 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1142 esac
1145 # Check all directory arguments for consistency.
1146 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1147 datadir sysconfdir sharedstatedir localstatedir includedir \
1148 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1149 libdir localedir mandir
1151 eval ac_val=\$$ac_var
1152 # Remove trailing slashes.
1153 case $ac_val in
1154 */ )
1155 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1156 eval $ac_var=\$ac_val;;
1157 esac
1158 # Be sure to have absolute directory names.
1159 case $ac_val in
1160 [\\/$]* | ?:[\\/]* ) continue;;
1161 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1162 esac
1163 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1164 done
1166 # There might be people who depend on the old broken behavior: `$host'
1167 # used to hold the argument of --host etc.
1168 # FIXME: To remove some day.
1169 build=$build_alias
1170 host=$host_alias
1171 target=$target_alias
1173 # FIXME: To remove some day.
1174 if test "x$host_alias" != x; then
1175 if test "x$build_alias" = x; then
1176 cross_compiling=maybe
1177 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1178 If a cross compiler is detected then cross compile mode will be used." >&2
1179 elif test "x$build_alias" != "x$host_alias"; then
1180 cross_compiling=yes
1184 ac_tool_prefix=
1185 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1187 test "$silent" = yes && exec 6>/dev/null
1190 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1191 ac_ls_di=`ls -di .` &&
1192 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1193 as_fn_error "working directory cannot be determined"
1194 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1195 as_fn_error "pwd does not report name of working directory"
1198 # Find the source files, if location was not specified.
1199 if test -z "$srcdir"; then
1200 ac_srcdir_defaulted=yes
1201 # Try the directory containing this script, then the parent directory.
1202 ac_confdir=`$as_dirname -- "$as_myself" ||
1203 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1204 X"$as_myself" : 'X\(//\)[^/]' \| \
1205 X"$as_myself" : 'X\(//\)$' \| \
1206 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1207 $as_echo X"$as_myself" |
1208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1209 s//\1/
1212 /^X\(\/\/\)[^/].*/{
1213 s//\1/
1216 /^X\(\/\/\)$/{
1217 s//\1/
1220 /^X\(\/\).*/{
1221 s//\1/
1224 s/.*/./; q'`
1225 srcdir=$ac_confdir
1226 if test ! -r "$srcdir/$ac_unique_file"; then
1227 srcdir=..
1229 else
1230 ac_srcdir_defaulted=no
1232 if test ! -r "$srcdir/$ac_unique_file"; then
1233 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1234 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1236 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1237 ac_abs_confdir=`(
1238 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1239 pwd)`
1240 # When building in place, set srcdir=.
1241 if test "$ac_abs_confdir" = "$ac_pwd"; then
1242 srcdir=.
1244 # Remove unnecessary trailing slashes from srcdir.
1245 # Double slashes in file names in object file debugging info
1246 # mess up M-x gdb in Emacs.
1247 case $srcdir in
1248 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249 esac
1250 for ac_var in $ac_precious_vars; do
1251 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1252 eval ac_env_${ac_var}_value=\$${ac_var}
1253 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1255 done
1258 # Report the --help message.
1260 if test "$ac_init_help" = "long"; then
1261 # Omit some internal or obsolete options to make the list less imposing.
1262 # This message is too long to be a string in the A/UX 3.1 sh.
1263 cat <<_ACEOF
1264 \`configure' configures this package to adapt to many kinds of systems.
1266 Usage: $0 [OPTION]... [VAR=VALUE]...
1268 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1269 VAR=VALUE. See below for descriptions of some of the useful variables.
1271 Defaults for the options are specified in brackets.
1273 Configuration:
1274 -h, --help display this help and exit
1275 --help=short display options specific to this package
1276 --help=recursive display the short help of all the included packages
1277 -V, --version display version information and exit
1278 -q, --quiet, --silent do not print \`checking...' messages
1279 --cache-file=FILE cache test results in FILE [disabled]
1280 -C, --config-cache alias for \`--cache-file=config.cache'
1281 -n, --no-create do not create output files
1282 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1284 Installation directories:
1285 --prefix=PREFIX install architecture-independent files in PREFIX
1286 [$ac_default_prefix]
1287 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1288 [PREFIX]
1290 By default, \`make install' will install all the files in
1291 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1292 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1293 for instance \`--prefix=\$HOME'.
1295 For better control, use the options below.
1297 Fine tuning of the installation directories:
1298 --bindir=DIR user executables [EPREFIX/bin]
1299 --sbindir=DIR system admin executables [EPREFIX/sbin]
1300 --libexecdir=DIR program executables [EPREFIX/libexec]
1301 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1302 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1303 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1304 --libdir=DIR object code libraries [EPREFIX/lib]
1305 --includedir=DIR C header files [PREFIX/include]
1306 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1307 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1308 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1309 --infodir=DIR info documentation [DATAROOTDIR/info]
1310 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1311 --mandir=DIR man documentation [DATAROOTDIR/man]
1312 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1313 --htmldir=DIR html documentation [DOCDIR]
1314 --dvidir=DIR dvi documentation [DOCDIR]
1315 --pdfdir=DIR pdf documentation [DOCDIR]
1316 --psdir=DIR ps documentation [DOCDIR]
1317 _ACEOF
1319 cat <<\_ACEOF
1321 Program names:
1322 --program-prefix=PREFIX prepend PREFIX to installed program names
1323 --program-suffix=SUFFIX append SUFFIX to installed program names
1324 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1326 System types:
1327 --build=BUILD configure for building on BUILD [guessed]
1328 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1329 --target=TARGET configure for building compilers for TARGET [HOST]
1330 _ACEOF
1333 if test -n "$ac_init_help"; then
1335 cat <<\_ACEOF
1337 Optional Features:
1338 --disable-option-checking ignore unrecognized --enable/--with options
1339 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1340 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1341 --enable-checkmem turn on ccmalloc debugging
1342 --enable-debug turn on debugging
1343 --enable-profiling turn on profiling
1344 --enable-warnings turn on compiler warnings
1345 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1346 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1348 Some influential environment variables:
1349 CC C compiler command
1350 CFLAGS C compiler flags
1351 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1352 nonstandard directory <lib dir>
1353 LIBS libraries to pass to the linker, e.g. -l<library>
1354 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1355 you have headers in a nonstandard directory <include dir>
1356 CXX C++ compiler command
1357 CXXFLAGS C++ compiler flags
1358 CPP C preprocessor
1360 Use these variables to override the choices made by `configure' or to help
1361 it to find libraries and programs with nonstandard names/locations.
1363 Report bugs to the package provider.
1364 _ACEOF
1365 ac_status=$?
1368 if test "$ac_init_help" = "recursive"; then
1369 # If there are subdirs, report their specific --help.
1370 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1371 test -d "$ac_dir" ||
1372 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1373 continue
1374 ac_builddir=.
1376 case "$ac_dir" in
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 esac ;;
1386 esac
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1392 case $srcdir in
1393 .) # We are building in place.
1394 ac_srcdir=.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1401 *) # Relative name.
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 esac
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1411 echo &&
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1416 else
1417 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 fi || ac_status=$?
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1420 done
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1425 cat <<\_ACEOF
1426 configure
1427 generated by GNU Autoconf 2.65
1429 Copyright (C) 2009 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1432 _ACEOF
1433 exit
1436 ## ------------------------ ##
1437 ## Autoconf initialization. ##
1438 ## ------------------------ ##
1440 # ac_fn_c_try_compile LINENO
1441 # --------------------------
1442 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1443 ac_fn_c_try_compile ()
1445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1446 rm -f conftest.$ac_objext
1447 if { { ac_try="$ac_compile"
1448 case "(($ac_try" in
1449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1450 *) ac_try_echo=$ac_try;;
1451 esac
1452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1453 $as_echo "$ac_try_echo"; } >&5
1454 (eval "$ac_compile") 2>conftest.err
1455 ac_status=$?
1456 if test -s conftest.err; then
1457 grep -v '^ *+' conftest.err >conftest.er1
1458 cat conftest.er1 >&5
1459 mv -f conftest.er1 conftest.err
1461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1462 test $ac_status = 0; } && {
1463 test -z "$ac_c_werror_flag" ||
1464 test ! -s conftest.err
1465 } && test -s conftest.$ac_objext; then :
1466 ac_retval=0
1467 else
1468 $as_echo "$as_me: failed program was:" >&5
1469 sed 's/^/| /' conftest.$ac_ext >&5
1471 ac_retval=1
1473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1474 as_fn_set_status $ac_retval
1476 } # ac_fn_c_try_compile
1478 # ac_fn_cxx_try_compile LINENO
1479 # ----------------------------
1480 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1481 ac_fn_cxx_try_compile ()
1483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484 rm -f conftest.$ac_objext
1485 if { { ac_try="$ac_compile"
1486 case "(($ac_try" in
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1489 esac
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_compile") 2>conftest.err
1493 ac_status=$?
1494 if test -s conftest.err; then
1495 grep -v '^ *+' conftest.err >conftest.er1
1496 cat conftest.er1 >&5
1497 mv -f conftest.er1 conftest.err
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && {
1501 test -z "$ac_cxx_werror_flag" ||
1502 test ! -s conftest.err
1503 } && test -s conftest.$ac_objext; then :
1504 ac_retval=0
1505 else
1506 $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.$ac_ext >&5
1509 ac_retval=1
1511 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1512 as_fn_set_status $ac_retval
1514 } # ac_fn_cxx_try_compile
1516 # ac_fn_c_try_cpp LINENO
1517 # ----------------------
1518 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_cpp ()
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 if { { ac_try="$ac_cpp conftest.$ac_ext"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } >/dev/null && {
1538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 }; then :
1541 ac_retval=0
1542 else
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1546 ac_retval=1
1548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1549 as_fn_set_status $ac_retval
1551 } # ac_fn_c_try_cpp
1553 # ac_fn_c_try_link LINENO
1554 # -----------------------
1555 # Try to link conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_link ()
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext conftest$ac_exeext
1560 if { { ac_try="$ac_link"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_link") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest$ac_exeext && {
1579 test "$cross_compiling" = yes ||
1580 $as_test_x conftest$ac_exeext
1581 }; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1587 ac_retval=1
1589 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1590 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1591 # interfere with the next link command; also delete a directory that is
1592 # left behind by Apple's compiler. We do this before executing the actions.
1593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1595 as_fn_set_status $ac_retval
1597 } # ac_fn_c_try_link
1599 # ac_fn_c_try_run LINENO
1600 # ----------------------
1601 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1602 # that executables *can* be run.
1603 ac_fn_c_try_run ()
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_link"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_link") 2>&5
1614 ac_status=$?
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1617 { { case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_try") 2>&5
1624 ac_status=$?
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; }; }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: program exited with status $ac_status" >&5
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1633 ac_retval=$ac_status
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1637 as_fn_set_status $ac_retval
1639 } # ac_fn_c_try_run
1641 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1642 # -------------------------------------------------------
1643 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1644 # the include files in INCLUDES and setting the cache variable VAR
1645 # accordingly.
1646 ac_fn_c_check_header_mongrel ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1653 $as_echo_n "(cached) " >&6
1655 eval ac_res=\$$3
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657 $as_echo "$ac_res" >&6; }
1658 else
1659 # Is the header compilable?
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1661 $as_echo_n "checking $2 usability... " >&6; }
1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663 /* end confdefs.h. */
1665 #include <$2>
1666 _ACEOF
1667 if ac_fn_c_try_compile "$LINENO"; then :
1668 ac_header_compiler=yes
1669 else
1670 ac_header_compiler=no
1672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1674 $as_echo "$ac_header_compiler" >&6; }
1676 # Is the header present?
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1678 $as_echo_n "checking $2 presence... " >&6; }
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1681 #include <$2>
1682 _ACEOF
1683 if ac_fn_c_try_cpp "$LINENO"; then :
1684 ac_header_preproc=yes
1685 else
1686 ac_header_preproc=no
1688 rm -f conftest.err conftest.$ac_ext
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1690 $as_echo "$ac_header_preproc" >&6; }
1692 # So? What about this header?
1693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1694 yes:no: )
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1696 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1698 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1700 no:yes:* )
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1702 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1704 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1706 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1708 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1710 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712 esac
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1716 $as_echo_n "(cached) " >&6
1717 else
1718 eval "$3=\$ac_header_compiler"
1720 eval ac_res=\$$3
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722 $as_echo "$ac_res" >&6; }
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 } # ac_fn_c_check_header_mongrel
1728 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729 # -------------------------------------------------------
1730 # Tests whether HEADER exists and can be compiled using the include files in
1731 # INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_c_check_header_compile ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1738 $as_echo_n "(cached) " >&6
1739 else
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1743 #include <$2>
1744 _ACEOF
1745 if ac_fn_c_try_compile "$LINENO"; then :
1746 eval "$3=yes"
1747 else
1748 eval "$3=no"
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 } # ac_fn_c_check_header_compile
1759 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1760 # -------------------------------------------
1761 # Tests whether TYPE exists after having included INCLUDES, setting cache
1762 # variable VAR accordingly.
1763 ac_fn_c_check_type ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1769 $as_echo_n "(cached) " >&6
1770 else
1771 eval "$3=no"
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1776 main ()
1778 if (sizeof ($2))
1779 return 0;
1781 return 0;
1783 _ACEOF
1784 if ac_fn_c_try_compile "$LINENO"; then :
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1789 main ()
1791 if (sizeof (($2)))
1792 return 0;
1794 return 0;
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"; then :
1799 else
1800 eval "$3=yes"
1802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 } # ac_fn_c_check_type
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1841 #undef $2
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1858 main ()
1860 return $2 ();
1862 return 0;
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 } # ac_fn_c_check_func
1880 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1881 # --------------------------------------------
1882 # Tries to find the compile-time value of EXPR in a program that includes
1883 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1884 # computed
1885 ac_fn_c_compute_int ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if test "$cross_compiling" = yes; then
1889 # Depending upon the size, compute the lo and hi bounds.
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1894 main ()
1896 static int test_array [1 - 2 * !(($2) >= 0)];
1897 test_array [0] = 0
1900 return 0;
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 ac_lo=0 ac_mid=0
1905 while :; do
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1910 main ()
1912 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1913 test_array [0] = 0
1916 return 0;
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 ac_hi=$ac_mid; break
1921 else
1922 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1923 if test $ac_lo -le $ac_mid; then
1924 ac_lo= ac_hi=
1925 break
1927 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 done
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1936 main ()
1938 static int test_array [1 - 2 * !(($2) < 0)];
1939 test_array [0] = 0
1942 return 0;
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_hi=-1 ac_mid=-1
1947 while :; do
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1952 main ()
1954 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1955 test_array [0] = 0
1958 return 0;
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962 ac_lo=$ac_mid; break
1963 else
1964 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1965 if test $ac_mid -le $ac_hi; then
1966 ac_lo= ac_hi=
1967 break
1969 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 done
1973 else
1974 ac_lo= ac_hi=
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 # Binary search between lo and hi bounds.
1980 while test "x$ac_lo" != "x$ac_hi"; do
1981 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1986 main ()
1988 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1989 test_array [0] = 0
1992 return 0;
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"; then :
1996 ac_hi=$ac_mid
1997 else
1998 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 done
2002 case $ac_lo in #((
2003 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2004 '') ac_retval=1 ;;
2005 esac
2006 else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2010 static long int longval () { return $2; }
2011 static unsigned long int ulongval () { return $2; }
2012 #include <stdio.h>
2013 #include <stdlib.h>
2015 main ()
2018 FILE *f = fopen ("conftest.val", "w");
2019 if (! f)
2020 return 1;
2021 if (($2) < 0)
2023 long int i = longval ();
2024 if (i != ($2))
2025 return 1;
2026 fprintf (f, "%ld", i);
2028 else
2030 unsigned long int i = ulongval ();
2031 if (i != ($2))
2032 return 1;
2033 fprintf (f, "%lu", i);
2035 /* Do not output a trailing newline, as this causes \r\n confusion
2036 on some platforms. */
2037 return ferror (f) || fclose (f) != 0;
2040 return 0;
2042 _ACEOF
2043 if ac_fn_c_try_run "$LINENO"; then :
2044 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2045 else
2046 ac_retval=1
2048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2049 conftest.$ac_objext conftest.beam conftest.$ac_ext
2050 rm -f conftest.val
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 as_fn_set_status $ac_retval
2056 } # ac_fn_c_compute_int
2057 cat >config.log <<_ACEOF
2058 This file contains any messages produced by compilers while
2059 running configure, to aid debugging if configure makes a mistake.
2061 It was created by $as_me, which was
2062 generated by GNU Autoconf 2.65. Invocation command line was
2064 $ $0 $@
2066 _ACEOF
2067 exec 5>>config.log
2069 cat <<_ASUNAME
2070 ## --------- ##
2071 ## Platform. ##
2072 ## --------- ##
2074 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2075 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2076 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2077 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2078 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2080 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2081 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2083 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2084 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2085 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2086 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2087 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2088 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2089 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2091 _ASUNAME
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2096 IFS=$as_save_IFS
2097 test -z "$as_dir" && as_dir=.
2098 $as_echo "PATH: $as_dir"
2099 done
2100 IFS=$as_save_IFS
2102 } >&5
2104 cat >&5 <<_ACEOF
2107 ## ----------- ##
2108 ## Core tests. ##
2109 ## ----------- ##
2111 _ACEOF
2114 # Keep a trace of the command line.
2115 # Strip out --no-create and --no-recursion so they do not pile up.
2116 # Strip out --silent because we don't want to record it for future runs.
2117 # Also quote any args containing shell meta-characters.
2118 # Make two passes to allow for proper duplicate-argument suppression.
2119 ac_configure_args=
2120 ac_configure_args0=
2121 ac_configure_args1=
2122 ac_must_keep_next=false
2123 for ac_pass in 1 2
2125 for ac_arg
2127 case $ac_arg in
2128 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2130 | -silent | --silent | --silen | --sile | --sil)
2131 continue ;;
2132 *\'*)
2133 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2134 esac
2135 case $ac_pass in
2136 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2138 as_fn_append ac_configure_args1 " '$ac_arg'"
2139 if test $ac_must_keep_next = true; then
2140 ac_must_keep_next=false # Got value, back to normal.
2141 else
2142 case $ac_arg in
2143 *=* | --config-cache | -C | -disable-* | --disable-* \
2144 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2145 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2146 | -with-* | --with-* | -without-* | --without-* | --x)
2147 case "$ac_configure_args0 " in
2148 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2149 esac
2151 -* ) ac_must_keep_next=true ;;
2152 esac
2154 as_fn_append ac_configure_args " '$ac_arg'"
2156 esac
2157 done
2158 done
2159 { ac_configure_args0=; unset ac_configure_args0;}
2160 { ac_configure_args1=; unset ac_configure_args1;}
2162 # When interrupted or exit'd, cleanup temporary files, and complete
2163 # config.log. We remove comments because anyway the quotes in there
2164 # would cause problems or look ugly.
2165 # WARNING: Use '\'' to represent an apostrophe within the trap.
2166 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2167 trap 'exit_status=$?
2168 # Save into config.log some information that might help in debugging.
2170 echo
2172 cat <<\_ASBOX
2173 ## ---------------- ##
2174 ## Cache variables. ##
2175 ## ---------------- ##
2176 _ASBOX
2177 echo
2178 # The following way of writing the cache mishandles newlines in values,
2180 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2181 eval ac_val=\$$ac_var
2182 case $ac_val in #(
2183 *${as_nl}*)
2184 case $ac_var in #(
2185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2187 esac
2188 case $ac_var in #(
2189 _ | IFS | as_nl) ;; #(
2190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191 *) { eval $ac_var=; unset $ac_var;} ;;
2192 esac ;;
2193 esac
2194 done
2195 (set) 2>&1 |
2196 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2197 *${as_nl}ac_space=\ *)
2198 sed -n \
2199 "s/'\''/'\''\\\\'\'''\''/g;
2200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2201 ;; #(
2203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2205 esac |
2206 sort
2208 echo
2210 cat <<\_ASBOX
2211 ## ----------------- ##
2212 ## Output variables. ##
2213 ## ----------------- ##
2214 _ASBOX
2215 echo
2216 for ac_var in $ac_subst_vars
2218 eval ac_val=\$$ac_var
2219 case $ac_val in
2220 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221 esac
2222 $as_echo "$ac_var='\''$ac_val'\''"
2223 done | sort
2224 echo
2226 if test -n "$ac_subst_files"; then
2227 cat <<\_ASBOX
2228 ## ------------------- ##
2229 ## File substitutions. ##
2230 ## ------------------- ##
2231 _ASBOX
2232 echo
2233 for ac_var in $ac_subst_files
2235 eval ac_val=\$$ac_var
2236 case $ac_val in
2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238 esac
2239 $as_echo "$ac_var='\''$ac_val'\''"
2240 done | sort
2241 echo
2244 if test -s confdefs.h; then
2245 cat <<\_ASBOX
2246 ## ----------- ##
2247 ## confdefs.h. ##
2248 ## ----------- ##
2249 _ASBOX
2250 echo
2251 cat confdefs.h
2252 echo
2254 test "$ac_signal" != 0 &&
2255 $as_echo "$as_me: caught signal $ac_signal"
2256 $as_echo "$as_me: exit $exit_status"
2257 } >&5
2258 rm -f core *.core core.conftest.* &&
2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2260 exit $exit_status
2262 for ac_signal in 1 2 13 15; do
2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2264 done
2265 ac_signal=0
2267 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2268 rm -f -r conftest* confdefs.h
2270 $as_echo "/* confdefs.h */" > confdefs.h
2272 # Predefined preprocessor variables.
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_NAME "$PACKAGE_NAME"
2276 _ACEOF
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2280 _ACEOF
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2284 _ACEOF
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_STRING "$PACKAGE_STRING"
2288 _ACEOF
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2292 _ACEOF
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_URL "$PACKAGE_URL"
2296 _ACEOF
2299 # Let the site file select an alternate cache file if it wants to.
2300 # Prefer an explicitly selected file to automatically selected ones.
2301 ac_site_file1=NONE
2302 ac_site_file2=NONE
2303 if test -n "$CONFIG_SITE"; then
2304 ac_site_file1=$CONFIG_SITE
2305 elif test "x$prefix" != xNONE; then
2306 ac_site_file1=$prefix/share/config.site
2307 ac_site_file2=$prefix/etc/config.site
2308 else
2309 ac_site_file1=$ac_default_prefix/share/config.site
2310 ac_site_file2=$ac_default_prefix/etc/config.site
2312 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2314 test "x$ac_site_file" = xNONE && continue
2315 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2317 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2318 sed 's/^/| /' "$ac_site_file" >&5
2319 . "$ac_site_file"
2321 done
2323 if test -r "$cache_file"; then
2324 # Some versions of bash will fail to source /dev/null (special files
2325 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2326 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2328 $as_echo "$as_me: loading cache $cache_file" >&6;}
2329 case $cache_file in
2330 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2331 *) . "./$cache_file";;
2332 esac
2334 else
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2336 $as_echo "$as_me: creating cache $cache_file" >&6;}
2337 >$cache_file
2340 # Check that the precious variables saved in the cache have kept the same
2341 # value.
2342 ac_cache_corrupted=false
2343 for ac_var in $ac_precious_vars; do
2344 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2345 eval ac_new_set=\$ac_env_${ac_var}_set
2346 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2347 eval ac_new_val=\$ac_env_${ac_var}_value
2348 case $ac_old_set,$ac_new_set in
2349 set,)
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2351 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2352 ac_cache_corrupted=: ;;
2353 ,set)
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2355 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2356 ac_cache_corrupted=: ;;
2357 ,);;
2359 if test "x$ac_old_val" != "x$ac_new_val"; then
2360 # differences in whitespace do not lead to failure.
2361 ac_old_val_w=`echo x $ac_old_val`
2362 ac_new_val_w=`echo x $ac_new_val`
2363 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2365 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2366 ac_cache_corrupted=:
2367 else
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2369 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2370 eval $ac_var=\$ac_old_val
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2373 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2375 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2376 fi;;
2377 esac
2378 # Pass precious variables to config.status.
2379 if test "$ac_new_set" = set; then
2380 case $ac_new_val in
2381 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2382 *) ac_arg=$ac_var=$ac_new_val ;;
2383 esac
2384 case " $ac_configure_args " in
2385 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2386 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2387 esac
2389 done
2390 if $ac_cache_corrupted; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2394 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2395 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2397 ## -------------------- ##
2398 ## Main body of script. ##
2399 ## -------------------- ##
2401 ac_ext=c
2402 ac_cpp='$CPP $CPPFLAGS'
2403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410 # ------------------- option parsing -------------------------------
2412 DEBUG=
2413 CHECKMEM=
2414 PROFILING=
2415 ENABLE_WARNINGS=
2416 OPTIMIZE=
2417 DISABLE_LAME=
2419 # Check whether --enable-checkmem was given.
2420 if test "${enable_checkmem+set}" = set; then :
2421 enableval=$enable_checkmem; CHECKMEM=true
2424 # Check whether --enable-debug was given.
2425 if test "${enable_debug+set}" = set; then :
2426 enableval=$enable_debug; DEBUG=true
2429 # Check whether --enable-profiling was given.
2430 if test "${enable_profiling+set}" = set; then :
2431 enableval=$enable_profiling; PROFILING=true
2434 # Check whether --enable-warnings was given.
2435 if test "${enable_warnings+set}" = set; then :
2436 enableval=$enable_warnings; ENABLE_WARNINGS=true
2439 # Check whether --enable-optimizations was given.
2440 if test "${enable_optimizations+set}" = set; then :
2441 enableval=$enable_optimizations; OPTIMIZE=true
2444 # Check whether --enable-lame was given.
2445 if test "${enable_lame+set}" = set; then :
2446 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
2447 DISABLE_LAME=yes
2449 else
2450 DISABLE_LAME=
2454 PACKAGE=swftools
2455 VERSION=2010-05-20-1815
2457 # ------------------------------------------------------------------
2459 if test "x${srcdir}" != "x."; then
2460 echo "--srcdir is not supported"
2461 exit 1
2464 WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings -Wformat"
2465 if test "x$ENABLE_WARNINGS" '!=' "x";then
2466 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
2469 if test "x$CHECKMEM" '!=' "x";then
2470 DEBUG=yes
2472 if test "x$PROFILING" '!=' "x";then
2473 DEBUG=yes
2475 if test "x$DEBUG" '!=' "x";then
2476 if test "x$PROFILING" = "x";then
2477 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
2478 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
2479 LDFLAGS="-g $LDFLAGS"
2480 else
2481 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
2482 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
2483 LDFLAGS="-g -pg $LDFLAGS"
2485 else if test "x$OPTIMIZE" '!=' "x"; then
2486 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
2487 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
2488 else
2489 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
2490 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
2494 CFLAGS="-fPIC $CFLAGS"
2495 CXXFLAGS="-fPIC $CFLAGS"
2497 #OLDGCC=1
2498 #if test "x$OLDGCC" '!=' "x";then
2499 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
2500 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
2501 # CFLAGS="$CFLAGS -ansi -pendantic"
2502 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
2505 export PACKAGE VERSION CFLAGS CXXFLAGS
2508 ac_aux_dir=
2509 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2510 for ac_t in install-sh install.sh shtool; do
2511 if test -f "$ac_dir/$ac_t"; then
2512 ac_aux_dir=$ac_dir
2513 ac_install_sh="$ac_aux_dir/$ac_t -c"
2514 break 2
2516 done
2517 done
2518 if test -z "$ac_aux_dir"; then
2519 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2522 # These three variables are undocumented and unsupported,
2523 # and are intended to be withdrawn in a future Autoconf release.
2524 # They can cause serious problems if a builder's source tree is in a directory
2525 # whose full name contains unusual characters.
2526 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2527 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2528 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2531 # Make sure we can run config.sub.
2532 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2533 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2536 $as_echo_n "checking build system type... " >&6; }
2537 if test "${ac_cv_build+set}" = set; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 ac_build_alias=$build_alias
2541 test "x$ac_build_alias" = x &&
2542 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2543 test "x$ac_build_alias" = x &&
2544 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2545 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2546 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2550 $as_echo "$ac_cv_build" >&6; }
2551 case $ac_cv_build in
2552 *-*-*) ;;
2553 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2554 esac
2555 build=$ac_cv_build
2556 ac_save_IFS=$IFS; IFS='-'
2557 set x $ac_cv_build
2558 shift
2559 build_cpu=$1
2560 build_vendor=$2
2561 shift; shift
2562 # Remember, the first character of IFS is used to create $*,
2563 # except with old shells:
2564 build_os=$*
2565 IFS=$ac_save_IFS
2566 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2570 $as_echo_n "checking host system type... " >&6; }
2571 if test "${ac_cv_host+set}" = set; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test "x$host_alias" = x; then
2575 ac_cv_host=$ac_cv_build
2576 else
2577 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2578 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2583 $as_echo "$ac_cv_host" >&6; }
2584 case $ac_cv_host in
2585 *-*-*) ;;
2586 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2587 esac
2588 host=$ac_cv_host
2589 ac_save_IFS=$IFS; IFS='-'
2590 set x $ac_cv_host
2591 shift
2592 host_cpu=$1
2593 host_vendor=$2
2594 shift; shift
2595 # Remember, the first character of IFS is used to create $*,
2596 # except with old shells:
2597 host_os=$*
2598 IFS=$ac_save_IFS
2599 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2603 SLEXT="so"
2604 SHARED="-shared"
2605 MACOSX=
2606 case $host_os in
2607 *darwin* )
2608 MACOSX=yes
2609 CFLAGS="$CFLAGS"
2610 CXXFLAGS="$CXXFLAGS -fno-rtti"
2611 SHARED="-bundle"
2612 SLEXT="bundle"
2613 if test -d /opt/local/include && test -d /opt/local/lib; then
2614 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2615 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2617 # Use fink packages if available.
2618 #if test -d /sw/include && test -d /sw/lib; then
2619 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2620 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2623 esac
2627 ac_ext=c
2628 ac_cpp='$CPP $CPPFLAGS'
2629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632 if test -n "$ac_tool_prefix"; then
2633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636 $as_echo_n "checking for $ac_word... " >&6; }
2637 if test "${ac_cv_prog_CC+set}" = set; then :
2638 $as_echo_n "(cached) " >&6
2639 else
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2654 done
2655 done
2656 IFS=$as_save_IFS
2660 CC=$ac_cv_prog_CC
2661 if test -n "$CC"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2663 $as_echo "$CC" >&6; }
2664 else
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666 $as_echo "no" >&6; }
2671 if test -z "$ac_cv_prog_CC"; then
2672 ac_ct_CC=$CC
2673 # Extract the first word of "gcc", so it can be a program name with args.
2674 set dummy gcc; ac_word=$2
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676 $as_echo_n "checking for $ac_word... " >&6; }
2677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2678 $as_echo_n "(cached) " >&6
2679 else
2680 if test -n "$ac_ct_CC"; then
2681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 ac_cv_prog_ac_ct_CC="gcc"
2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2694 done
2695 done
2696 IFS=$as_save_IFS
2700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701 if test -n "$ac_ct_CC"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2703 $as_echo "$ac_ct_CC" >&6; }
2704 else
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 $as_echo "no" >&6; }
2709 if test "x$ac_ct_CC" = x; then
2710 CC=""
2711 else
2712 case $cross_compiling:$ac_tool_warned in
2713 yes:)
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2716 ac_tool_warned=yes ;;
2717 esac
2718 CC=$ac_ct_CC
2720 else
2721 CC="$ac_cv_prog_CC"
2724 if test -z "$CC"; then
2725 if test -n "$ac_tool_prefix"; then
2726 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2727 set dummy ${ac_tool_prefix}cc; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if test "${ac_cv_prog_CC+set}" = set; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_prog_CC="${ac_tool_prefix}cc"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2747 done
2748 done
2749 IFS=$as_save_IFS
2753 CC=$ac_cv_prog_CC
2754 if test -n "$CC"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756 $as_echo "$CC" >&6; }
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2765 if test -z "$CC"; then
2766 # Extract the first word of "cc", so it can be a program name with args.
2767 set dummy cc; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if test "${ac_cv_prog_CC+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2775 else
2776 ac_prog_rejected=no
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2785 ac_prog_rejected=yes
2786 continue
2788 ac_cv_prog_CC="cc"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2792 done
2793 done
2794 IFS=$as_save_IFS
2796 if test $ac_prog_rejected = yes; then
2797 # We found a bogon in the path, so make sure we never use it.
2798 set dummy $ac_cv_prog_CC
2799 shift
2800 if test $# != 0; then
2801 # We chose a different compiler from the bogus one.
2802 # However, it has the same basename, so the bogon will be chosen
2803 # first if we set CC to just the basename; use the full file name.
2804 shift
2805 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2810 CC=$ac_cv_prog_CC
2811 if test -n "$CC"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2813 $as_echo "$CC" >&6; }
2814 else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2821 if test -z "$CC"; then
2822 if test -n "$ac_tool_prefix"; then
2823 for ac_prog in cl.exe
2825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828 $as_echo_n "checking for $ac_word... " >&6; }
2829 if test "${ac_cv_prog_CC+set}" = set; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 if test -n "$CC"; then
2833 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2846 done
2847 done
2848 IFS=$as_save_IFS
2852 CC=$ac_cv_prog_CC
2853 if test -n "$CC"; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855 $as_echo "$CC" >&6; }
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2862 test -n "$CC" && break
2863 done
2865 if test -z "$CC"; then
2866 ac_ct_CC=$CC
2867 for ac_prog in cl.exe
2869 # Extract the first word of "$ac_prog", so it can be a program name with args.
2870 set dummy $ac_prog; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$ac_ct_CC"; then
2877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_ac_ct_CC="$ac_prog"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2890 done
2891 done
2892 IFS=$as_save_IFS
2896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2897 if test -n "$ac_ct_CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2899 $as_echo "$ac_ct_CC" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2906 test -n "$ac_ct_CC" && break
2907 done
2909 if test "x$ac_ct_CC" = x; then
2910 CC=""
2911 else
2912 case $cross_compiling:$ac_tool_warned in
2913 yes:)
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2916 ac_tool_warned=yes ;;
2917 esac
2918 CC=$ac_ct_CC
2925 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2927 as_fn_error "no acceptable C compiler found in \$PATH
2928 See \`config.log' for more details." "$LINENO" 5; }
2930 # Provide some information about the compiler.
2931 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2932 set X $ac_compile
2933 ac_compiler=$2
2934 for ac_option in --version -v -V -qversion; do
2935 { { ac_try="$ac_compiler $ac_option >&5"
2936 case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939 esac
2940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2941 $as_echo "$ac_try_echo"; } >&5
2942 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2943 ac_status=$?
2944 if test -s conftest.err; then
2945 sed '10a\
2946 ... rest of stderr output deleted ...
2947 10q' conftest.err >conftest.er1
2948 cat conftest.er1 >&5
2950 rm -f conftest.er1 conftest.err
2951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952 test $ac_status = 0; }
2953 done
2955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2956 /* end confdefs.h. */
2959 main ()
2963 return 0;
2965 _ACEOF
2966 ac_clean_files_save=$ac_clean_files
2967 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2968 # Try to create an executable without -o first, disregard a.out.
2969 # It will help us diagnose broken compilers, and finding out an intuition
2970 # of exeext.
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2972 $as_echo_n "checking whether the C compiler works... " >&6; }
2973 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2975 # The possible output files:
2976 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2978 ac_rmfiles=
2979 for ac_file in $ac_files
2981 case $ac_file in
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2983 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2984 esac
2985 done
2986 rm -f $ac_rmfiles
2988 if { { ac_try="$ac_link_default"
2989 case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992 esac
2993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994 $as_echo "$ac_try_echo"; } >&5
2995 (eval "$ac_link_default") 2>&5
2996 ac_status=$?
2997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2998 test $ac_status = 0; }; then :
2999 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3000 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3001 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3002 # so that the user can short-circuit this test for compilers unknown to
3003 # Autoconf.
3004 for ac_file in $ac_files ''
3006 test -f "$ac_file" || continue
3007 case $ac_file in
3008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3010 [ab].out )
3011 # We found the default executable, but exeext='' is most
3012 # certainly right.
3013 break;;
3014 *.* )
3015 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3016 then :; else
3017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3019 # We set ac_cv_exeext here because the later test for it is not
3020 # safe: cross compilers may not add the suffix if given an `-o'
3021 # argument, so we may need to know it at that point already.
3022 # Even if this section looks crufty: it has the advantage of
3023 # actually working.
3024 break;;
3026 break;;
3027 esac
3028 done
3029 test "$ac_cv_exeext" = no && ac_cv_exeext=
3031 else
3032 ac_file=''
3034 if test -z "$ac_file"; then :
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 $as_echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 { as_fn_set_status 77
3043 as_fn_error "C compiler cannot create executables
3044 See \`config.log' for more details." "$LINENO" 5; }; }
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3047 $as_echo "yes" >&6; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3050 $as_echo_n "checking for C compiler default output file name... " >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3052 $as_echo "$ac_file" >&6; }
3053 ac_exeext=$ac_cv_exeext
3055 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3056 ac_clean_files=$ac_clean_files_save
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3058 $as_echo_n "checking for suffix of executables... " >&6; }
3059 if { { ac_try="$ac_link"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_link") 2>&5
3067 ac_status=$?
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }; then :
3070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3071 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3072 # work properly (i.e., refer to `conftest.exe'), while it won't with
3073 # `rm'.
3074 for ac_file in conftest.exe conftest conftest.*; do
3075 test -f "$ac_file" || continue
3076 case $ac_file in
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3079 break;;
3080 * ) break;;
3081 esac
3082 done
3083 else
3084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 as_fn_error "cannot compute suffix of executables: cannot compile and link
3087 See \`config.log' for more details." "$LINENO" 5; }
3089 rm -f conftest conftest$ac_cv_exeext
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3091 $as_echo "$ac_cv_exeext" >&6; }
3093 rm -f conftest.$ac_ext
3094 EXEEXT=$ac_cv_exeext
3095 ac_exeext=$EXEEXT
3096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097 /* end confdefs.h. */
3098 #include <stdio.h>
3100 main ()
3102 FILE *f = fopen ("conftest.out", "w");
3103 return ferror (f) || fclose (f) != 0;
3106 return 0;
3108 _ACEOF
3109 ac_clean_files="$ac_clean_files conftest.out"
3110 # Check that the compiler produces executables we can run. If not, either
3111 # the compiler is broken, or we cross compile.
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3113 $as_echo_n "checking whether we are cross compiling... " >&6; }
3114 if test "$cross_compiling" != yes; then
3115 { { ac_try="$ac_link"
3116 case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119 esac
3120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121 $as_echo "$ac_try_echo"; } >&5
3122 (eval "$ac_link") 2>&5
3123 ac_status=$?
3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125 test $ac_status = 0; }
3126 if { ac_try='./conftest$ac_cv_exeext'
3127 { { case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_try") 2>&5
3134 ac_status=$?
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }; }; then
3137 cross_compiling=no
3138 else
3139 if test "$cross_compiling" = maybe; then
3140 cross_compiling=yes
3141 else
3142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144 as_fn_error "cannot run C compiled programs.
3145 If you meant to cross compile, use \`--host'.
3146 See \`config.log' for more details." "$LINENO" 5; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3151 $as_echo "$cross_compiling" >&6; }
3153 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3154 ac_clean_files=$ac_clean_files_save
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3156 $as_echo_n "checking for suffix of object files... " >&6; }
3157 if test "${ac_cv_objext+set}" = set; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3164 main ()
3168 return 0;
3170 _ACEOF
3171 rm -f conftest.o conftest.obj
3172 if { { ac_try="$ac_compile"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_compile") 2>&5
3180 ac_status=$?
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }; then :
3183 for ac_file in conftest.o conftest.obj conftest.*; do
3184 test -f "$ac_file" || continue;
3185 case $ac_file in
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3187 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3188 break;;
3189 esac
3190 done
3191 else
3192 $as_echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error "cannot compute suffix of object files: cannot compile
3198 See \`config.log' for more details." "$LINENO" 5; }
3200 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3203 $as_echo "$ac_cv_objext" >&6; }
3204 OBJEXT=$ac_cv_objext
3205 ac_objext=$OBJEXT
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3207 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3208 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h. */
3215 main ()
3217 #ifndef __GNUC__
3218 choke me
3219 #endif
3222 return 0;
3224 _ACEOF
3225 if ac_fn_c_try_compile "$LINENO"; then :
3226 ac_compiler_gnu=yes
3227 else
3228 ac_compiler_gnu=no
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3235 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3236 if test $ac_compiler_gnu = yes; then
3237 GCC=yes
3238 else
3239 GCC=
3241 ac_test_CFLAGS=${CFLAGS+set}
3242 ac_save_CFLAGS=$CFLAGS
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3244 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3245 if test "${ac_cv_prog_cc_g+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 ac_save_c_werror_flag=$ac_c_werror_flag
3249 ac_c_werror_flag=yes
3250 ac_cv_prog_cc_g=no
3251 CFLAGS="-g"
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3256 main ()
3260 return 0;
3262 _ACEOF
3263 if ac_fn_c_try_compile "$LINENO"; then :
3264 ac_cv_prog_cc_g=yes
3265 else
3266 CFLAGS=""
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3271 main ()
3275 return 0;
3277 _ACEOF
3278 if ac_fn_c_try_compile "$LINENO"; then :
3280 else
3281 ac_c_werror_flag=$ac_save_c_werror_flag
3282 CFLAGS="-g"
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3287 main ()
3291 return 0;
3293 _ACEOF
3294 if ac_fn_c_try_compile "$LINENO"; then :
3295 ac_cv_prog_cc_g=yes
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_c_werror_flag=$ac_save_c_werror_flag
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3305 $as_echo "$ac_cv_prog_cc_g" >&6; }
3306 if test "$ac_test_CFLAGS" = set; then
3307 CFLAGS=$ac_save_CFLAGS
3308 elif test $ac_cv_prog_cc_g = yes; then
3309 if test "$GCC" = yes; then
3310 CFLAGS="-g -O2"
3311 else
3312 CFLAGS="-g"
3314 else
3315 if test "$GCC" = yes; then
3316 CFLAGS="-O2"
3317 else
3318 CFLAGS=
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3322 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3323 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3324 $as_echo_n "(cached) " >&6
3325 else
3326 ac_cv_prog_cc_c89=no
3327 ac_save_CC=$CC
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3330 #include <stdarg.h>
3331 #include <stdio.h>
3332 #include <sys/types.h>
3333 #include <sys/stat.h>
3334 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3335 struct buf { int x; };
3336 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3337 static char *e (p, i)
3338 char **p;
3339 int i;
3341 return p[i];
3343 static char *f (char * (*g) (char **, int), char **p, ...)
3345 char *s;
3346 va_list v;
3347 va_start (v,p);
3348 s = g (p, va_arg (v,int));
3349 va_end (v);
3350 return s;
3353 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3354 function prototypes and stuff, but not '\xHH' hex character constants.
3355 These don't provoke an error unfortunately, instead are silently treated
3356 as 'x'. The following induces an error, until -std is added to get
3357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3358 array size at least. It's necessary to write '\x00'==0 to get something
3359 that's true only with -std. */
3360 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3362 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3363 inside strings and character constants. */
3364 #define FOO(x) 'x'
3365 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3367 int test (int i, double x);
3368 struct s1 {int (*f) (int a);};
3369 struct s2 {int (*f) (double a);};
3370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3371 int argc;
3372 char **argv;
3374 main ()
3376 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3378 return 0;
3380 _ACEOF
3381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3382 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3384 CC="$ac_save_CC $ac_arg"
3385 if ac_fn_c_try_compile "$LINENO"; then :
3386 ac_cv_prog_cc_c89=$ac_arg
3388 rm -f core conftest.err conftest.$ac_objext
3389 test "x$ac_cv_prog_cc_c89" != "xno" && break
3390 done
3391 rm -f conftest.$ac_ext
3392 CC=$ac_save_CC
3395 # AC_CACHE_VAL
3396 case "x$ac_cv_prog_cc_c89" in
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3399 $as_echo "none needed" >&6; } ;;
3400 xno)
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3402 $as_echo "unsupported" >&6; } ;;
3404 CC="$CC $ac_cv_prog_cc_c89"
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3406 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3407 esac
3408 if test "x$ac_cv_prog_cc_c89" != xno; then :
3412 ac_ext=c
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418 ac_ext=cpp
3419 ac_cpp='$CXXCPP $CPPFLAGS'
3420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3423 if test -z "$CXX"; then
3424 if test -n "$CCC"; then
3425 CXX=$CCC
3426 else
3427 if test -n "$ac_tool_prefix"; then
3428 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 $as_echo_n "checking for $ac_word... " >&6; }
3434 if test "${ac_cv_prog_CXX+set}" = set; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 if test -n "$CXX"; then
3438 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3439 else
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3443 IFS=$as_save_IFS
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3447 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 break 2
3451 done
3452 done
3453 IFS=$as_save_IFS
3457 CXX=$ac_cv_prog_CXX
3458 if test -n "$CXX"; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3460 $as_echo "$CXX" >&6; }
3461 else
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3467 test -n "$CXX" && break
3468 done
3470 if test -z "$CXX"; then
3471 ac_ct_CXX=$CXX
3472 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3474 # Extract the first word of "$ac_prog", so it can be a program name with args.
3475 set dummy $ac_prog; ac_word=$2
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477 $as_echo_n "checking for $ac_word... " >&6; }
3478 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 if test -n "$ac_ct_CXX"; then
3482 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3491 ac_cv_prog_ac_ct_CXX="$ac_prog"
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3495 done
3496 done
3497 IFS=$as_save_IFS
3501 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3502 if test -n "$ac_ct_CXX"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3504 $as_echo "$ac_ct_CXX" >&6; }
3505 else
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3511 test -n "$ac_ct_CXX" && break
3512 done
3514 if test "x$ac_ct_CXX" = x; then
3515 CXX="g++"
3516 else
3517 case $cross_compiling:$ac_tool_warned in
3518 yes:)
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3521 ac_tool_warned=yes ;;
3522 esac
3523 CXX=$ac_ct_CXX
3529 # Provide some information about the compiler.
3530 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3531 set X $ac_compile
3532 ac_compiler=$2
3533 for ac_option in --version -v -V -qversion; do
3534 { { ac_try="$ac_compiler $ac_option >&5"
3535 case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3542 ac_status=$?
3543 if test -s conftest.err; then
3544 sed '10a\
3545 ... rest of stderr output deleted ...
3546 10q' conftest.err >conftest.er1
3547 cat conftest.er1 >&5
3549 rm -f conftest.er1 conftest.err
3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551 test $ac_status = 0; }
3552 done
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3555 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3556 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3563 main ()
3565 #ifndef __GNUC__
3566 choke me
3567 #endif
3570 return 0;
3572 _ACEOF
3573 if ac_fn_cxx_try_compile "$LINENO"; then :
3574 ac_compiler_gnu=yes
3575 else
3576 ac_compiler_gnu=no
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3583 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3584 if test $ac_compiler_gnu = yes; then
3585 GXX=yes
3586 else
3587 GXX=
3589 ac_test_CXXFLAGS=${CXXFLAGS+set}
3590 ac_save_CXXFLAGS=$CXXFLAGS
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3592 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3593 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3597 ac_cxx_werror_flag=yes
3598 ac_cv_prog_cxx_g=no
3599 CXXFLAGS="-g"
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3604 main ()
3608 return 0;
3610 _ACEOF
3611 if ac_fn_cxx_try_compile "$LINENO"; then :
3612 ac_cv_prog_cxx_g=yes
3613 else
3614 CXXFLAGS=""
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3619 main ()
3623 return 0;
3625 _ACEOF
3626 if ac_fn_cxx_try_compile "$LINENO"; then :
3628 else
3629 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3630 CXXFLAGS="-g"
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3635 main ()
3639 return 0;
3641 _ACEOF
3642 if ac_fn_cxx_try_compile "$LINENO"; then :
3643 ac_cv_prog_cxx_g=yes
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3653 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3654 if test "$ac_test_CXXFLAGS" = set; then
3655 CXXFLAGS=$ac_save_CXXFLAGS
3656 elif test $ac_cv_prog_cxx_g = yes; then
3657 if test "$GXX" = yes; then
3658 CXXFLAGS="-g -O2"
3659 else
3660 CXXFLAGS="-g"
3662 else
3663 if test "$GXX" = yes; then
3664 CXXFLAGS="-O2"
3665 else
3666 CXXFLAGS=
3669 ac_ext=c
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports lazy variable declaration" >&5
3679 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3681 cat > conftest.c << EOF
3682 #include <stdlib.h>
3683 #include <stdio.h>
3685 int main (int argc, char*argv)
3687 int a,b;
3688 b=3;
3689 int c;
3690 c=4;
3691 return 0;
3695 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3696 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3698 $as_echo "yes" >&6; }
3699 GCC_IS_OK=true
3700 export GCC_IS_OK
3701 else
3702 echo "configure: failed program was:" >&5
3703 cat conftest.c >&5
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3707 rm -f conftest*
3710 if test "x$GCC_IS_OK" '=' "x";then
3711 echo "***************************************************"
3712 echo "* Your gcc is too old to compile this!"
3713 echo "* "
3714 echo "* The last version compileable by this compiler is "
3715 echo "* swftools 0.7.0, which you can download from "
3716 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3717 echo "* ."
3718 echo "* Newer versions require at least gcc 3.0.0 "
3719 echo "***************************************************"
3720 exit 1
3723 if test "x$CHECKMEM" '!=' "x";then
3724 CC="ccmalloc $CC"
3725 CXX="ccmalloc $CXX"
3726 #echo running again
3727 #unset ac_cv_prog_CC
3728 #unset ac_cv_prog_CXX
3729 #AC_PROG_CC
3730 #AC_PROG_CXX
3732 ac_ext=c
3733 ac_cpp='$CPP $CPPFLAGS'
3734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3738 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3739 # On Suns, sometimes $CPP names a directory.
3740 if test -n "$CPP" && test -d "$CPP"; then
3741 CPP=
3743 if test -z "$CPP"; then
3744 if test "${ac_cv_prog_CPP+set}" = set; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 # Double quotes because CPP needs to be expanded
3748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3750 ac_preproc_ok=false
3751 for ac_c_preproc_warn_flag in '' yes
3753 # Use a header file that comes with gcc, so configuring glibc
3754 # with a fresh cross-compiler works.
3755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3756 # <limits.h> exists even on freestanding compilers.
3757 # On the NeXT, cc -E runs the code through the compiler's parser,
3758 # not just through cpp. "Syntax error" is here to catch this case.
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761 #ifdef __STDC__
3762 # include <limits.h>
3763 #else
3764 # include <assert.h>
3765 #endif
3766 Syntax error
3767 _ACEOF
3768 if ac_fn_c_try_cpp "$LINENO"; then :
3770 else
3771 # Broken: fails on valid input.
3772 continue
3774 rm -f conftest.err conftest.$ac_ext
3776 # OK, works on sane cases. Now check whether nonexistent headers
3777 # can be detected and how.
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3780 #include <ac_nonexistent.h>
3781 _ACEOF
3782 if ac_fn_c_try_cpp "$LINENO"; then :
3783 # Broken: success on invalid input.
3784 continue
3785 else
3786 # Passes both tests.
3787 ac_preproc_ok=:
3788 break
3790 rm -f conftest.err conftest.$ac_ext
3792 done
3793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3794 rm -f conftest.err conftest.$ac_ext
3795 if $ac_preproc_ok; then :
3796 break
3799 done
3800 ac_cv_prog_CPP=$CPP
3803 CPP=$ac_cv_prog_CPP
3804 else
3805 ac_cv_prog_CPP=$CPP
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3808 $as_echo "$CPP" >&6; }
3809 ac_preproc_ok=false
3810 for ac_c_preproc_warn_flag in '' yes
3812 # Use a header file that comes with gcc, so configuring glibc
3813 # with a fresh cross-compiler works.
3814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3815 # <limits.h> exists even on freestanding compilers.
3816 # On the NeXT, cc -E runs the code through the compiler's parser,
3817 # not just through cpp. "Syntax error" is here to catch this case.
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820 #ifdef __STDC__
3821 # include <limits.h>
3822 #else
3823 # include <assert.h>
3824 #endif
3825 Syntax error
3826 _ACEOF
3827 if ac_fn_c_try_cpp "$LINENO"; then :
3829 else
3830 # Broken: fails on valid input.
3831 continue
3833 rm -f conftest.err conftest.$ac_ext
3835 # OK, works on sane cases. Now check whether nonexistent headers
3836 # can be detected and how.
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839 #include <ac_nonexistent.h>
3840 _ACEOF
3841 if ac_fn_c_try_cpp "$LINENO"; then :
3842 # Broken: success on invalid input.
3843 continue
3844 else
3845 # Passes both tests.
3846 ac_preproc_ok=:
3847 break
3849 rm -f conftest.err conftest.$ac_ext
3851 done
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then :
3856 else
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3860 See \`config.log' for more details." "$LINENO" 5; }
3863 ac_ext=c
3864 ac_cpp='$CPP $CPPFLAGS'
3865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870 if test -n "$ac_tool_prefix"; then
3871 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874 $as_echo_n "checking for $ac_word... " >&6; }
3875 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 if test -n "$RANLIB"; then
3879 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3880 else
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3888 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 break 2
3892 done
3893 done
3894 IFS=$as_save_IFS
3898 RANLIB=$ac_cv_prog_RANLIB
3899 if test -n "$RANLIB"; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3901 $as_echo "$RANLIB" >&6; }
3902 else
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3909 if test -z "$ac_cv_prog_RANLIB"; then
3910 ac_ct_RANLIB=$RANLIB
3911 # Extract the first word of "ranlib", so it can be a program name with args.
3912 set dummy ranlib; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 if test -n "$ac_ct_RANLIB"; then
3919 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_prog_ac_ct_RANLIB="ranlib"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3932 done
3933 done
3934 IFS=$as_save_IFS
3938 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3939 if test -n "$ac_ct_RANLIB"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3941 $as_echo "$ac_ct_RANLIB" >&6; }
3942 else
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3947 if test "x$ac_ct_RANLIB" = x; then
3948 RANLIB=":"
3949 else
3950 case $cross_compiling:$ac_tool_warned in
3951 yes:)
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3954 ac_tool_warned=yes ;;
3955 esac
3956 RANLIB=$ac_ct_RANLIB
3958 else
3959 RANLIB="$ac_cv_prog_RANLIB"
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3963 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3964 set x ${MAKE-make}
3965 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3966 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 cat >conftest.make <<\_ACEOF
3970 SHELL = /bin/sh
3971 all:
3972 @echo '@@@%%%=$(MAKE)=@@@%%%'
3973 _ACEOF
3974 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3975 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3976 *@@@%%%=?*=@@@%%%*)
3977 eval ac_cv_prog_make_${ac_make}_set=yes;;
3979 eval ac_cv_prog_make_${ac_make}_set=no;;
3980 esac
3981 rm -f conftest.make
3983 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3985 $as_echo "yes" >&6; }
3986 SET_MAKE=
3987 else
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3990 SET_MAKE="MAKE=${MAKE-make}"
3993 # Find a good install program. We prefer a C program (faster),
3994 # so one script is as good as another. But avoid the broken or
3995 # incompatible versions:
3996 # SysV /etc/install, /usr/sbin/install
3997 # SunOS /usr/etc/install
3998 # IRIX /sbin/install
3999 # AIX /bin/install
4000 # AmigaOS /C/install, which installs bootblocks on floppy discs
4001 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4002 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4003 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4004 # OS/2's system install, which has a completely different semantic
4005 # ./install, which can be erroneously created by make from ./install.sh.
4006 # Reject install programs that cannot install multiple files.
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4008 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4009 if test -z "$INSTALL"; then
4010 if test "${ac_cv_path_install+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 # Account for people who put trailing slashes in PATH elements.
4019 case $as_dir/ in #((
4020 ./ | .// | /[cC]/* | \
4021 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4022 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4023 /usr/ucb/* ) ;;
4025 # OSF1 and SCO ODT 3.0 have their own names for install.
4026 # Don't use installbsd from OSF since it installs stuff as root
4027 # by default.
4028 for ac_prog in ginstall scoinst install; do
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4031 if test $ac_prog = install &&
4032 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4033 # AIX install. It has an incompatible calling convention.
4035 elif test $ac_prog = install &&
4036 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4037 # program-specific install script used by HP pwplus--don't use.
4039 else
4040 rm -rf conftest.one conftest.two conftest.dir
4041 echo one > conftest.one
4042 echo two > conftest.two
4043 mkdir conftest.dir
4044 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4045 test -s conftest.one && test -s conftest.two &&
4046 test -s conftest.dir/conftest.one &&
4047 test -s conftest.dir/conftest.two
4048 then
4049 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4050 break 3
4054 done
4055 done
4057 esac
4059 done
4060 IFS=$as_save_IFS
4062 rm -rf conftest.one conftest.two conftest.dir
4065 if test "${ac_cv_path_install+set}" = set; then
4066 INSTALL=$ac_cv_path_install
4067 else
4068 # As a last resort, use the slow shell script. Don't cache a
4069 # value for INSTALL within a source directory, because that will
4070 # break other packages using the cache if that directory is
4071 # removed, or if the value is a relative name.
4072 INSTALL=$ac_install_sh
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4076 $as_echo "$INSTALL" >&6; }
4078 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4079 # It thinks the first close brace ends the variable substitution.
4080 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4082 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4084 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4087 $as_echo_n "checking whether ln -s works... " >&6; }
4088 LN_S=$as_ln_s
4089 if test "$LN_S" = "ln -s"; then
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4091 $as_echo "yes" >&6; }
4092 else
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4094 $as_echo "no, using $LN_S" >&6; }
4097 for ac_prog in gzip uncompress compress
4099 # Extract the first word of "$ac_prog", so it can be a program name with args.
4100 set dummy $ac_prog; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 if test -n "$UNCOMPRESS"; then
4107 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116 ac_cv_prog_UNCOMPRESS="$ac_prog"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4120 done
4121 done
4122 IFS=$as_save_IFS
4126 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
4127 if test -n "$UNCOMPRESS"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNCOMPRESS" >&5
4129 $as_echo "$UNCOMPRESS" >&6; }
4130 else
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4136 test -n "$UNCOMPRESS" && break
4137 done
4141 OBJEXT="o"
4142 AREXT=".a"
4143 CXXLIBS="-lstdc++"
4147 if test "x$EXEEXT" = "x.exe";then
4148 OBJEXT="obj"
4149 AREXT=".lib"
4150 CXXLIBS=""
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system" >&5
4160 $as_echo_n "checking for target system... " >&6; }
4161 CYGWIN=
4162 MINGW=
4163 case $host_os in
4164 *cygwin* ) CYGWIN=yes;;
4165 *mingw* ) MINGW=yes;;
4166 esac
4168 AR=ar
4169 if test "x$MINGW" = "xyes"; then
4170 #fix for the debian distribution of mingw
4171 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4172 AR="/usr/i586-mingw32msvc/bin/ar"
4174 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4175 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4177 #fix for the gentoo distribution of mingw
4178 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4179 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4181 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4182 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4184 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4185 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4191 if test "x${CYGWIN}" = "xyes"; then
4193 $as_echo "#define CYGWIN 1" >>confdefs.h
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cygwin" >&5
4196 $as_echo "cygwin" >&6; }
4197 else
4198 if test "x${MINGW}" = "xyes"; then
4200 $as_echo "#define MINGW 1" >>confdefs.h
4202 WIN32=1
4204 $as_echo "#define WIN32 1" >>confdefs.h
4206 LIBS="$LIBS -lws2_32 -lgdi32"
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mingw" >&5
4208 $as_echo "mingw" >&6; }
4209 else
4210 LINUX=1
4211 export LINUX
4213 $as_echo "#define LINUX 1" >>confdefs.h
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4216 $as_echo "" >&6; }
4221 if test "x${MINGW}" != "xyes"; then
4222 # no mingW
4224 $as_echo "#define O_BINARY 0" >>confdefs.h
4226 else
4227 # mingW
4228 SLEXT="dll"
4229 CXXLIBS=""
4231 export SLEXT
4235 # The following tries to make use of includes and libraries in
4236 # /usr/local, too. Notice: A -I/usr/local/include might break
4237 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4238 # especially on systems which link /usr/local to /usr, so it has yet
4239 # to be seen how useful this is.
4240 if test -d /usr/local/lib; then
4241 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4243 if test -d /usr/local/include; then
4244 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4245 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4246 echo > /dev/null
4248 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4249 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4250 # and $prefix/include, which should be included in our search paths for libraries
4251 # and includes.
4252 LDFLAGS="$LDFLAGS -L${libdir}"
4253 CPPFLAGS="$CPPFLAGS -I${includedir}"
4254 # TODO- test whether gcc still works after this
4257 #Mac OS:
4258 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4261 # this must be done after (I believe) AC_PROG_MAKE_SET
4262 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4263 if test "$MACOSX";then
4264 STRIP=dsymutil
4265 else
4266 STRIP="@echo debug enabled, not stripping "
4268 export STRIP
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
4274 $as_echo_n "checking for sin in -lm... " >&6; }
4275 if test "${ac_cv_lib_m_sin+set}" = set; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 ac_check_lib_save_LIBS=$LIBS
4279 LIBS="-lm $LIBS"
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4283 /* Override any GCC internal prototype to avoid an error.
4284 Use char because int might match the return type of a GCC
4285 builtin and then its argument prototype would still apply. */
4286 #ifdef __cplusplus
4287 extern "C"
4288 #endif
4289 char sin ();
4291 main ()
4293 return sin ();
4295 return 0;
4297 _ACEOF
4298 if ac_fn_c_try_link "$LINENO"; then :
4299 ac_cv_lib_m_sin=yes
4300 else
4301 ac_cv_lib_m_sin=no
4303 rm -f core conftest.err conftest.$ac_objext \
4304 conftest$ac_exeext conftest.$ac_ext
4305 LIBS=$ac_check_lib_save_LIBS
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
4308 $as_echo "$ac_cv_lib_m_sin" >&6; }
4309 if test "x$ac_cv_lib_m_sin" = x""yes; then :
4310 cat >>confdefs.h <<_ACEOF
4311 #define HAVE_LIBM 1
4312 _ACEOF
4314 LIBS="-lm $LIBS"
4316 else
4317 echo "Error: Math library not found.";
4318 exit;
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4323 $as_echo_n "checking for deflate in -lz... " >&6; }
4324 if test "${ac_cv_lib_z_deflate+set}" = set; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 ac_check_lib_save_LIBS=$LIBS
4328 LIBS="-lz $LIBS"
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4332 /* Override any GCC internal prototype to avoid an error.
4333 Use char because int might match the return type of a GCC
4334 builtin and then its argument prototype would still apply. */
4335 #ifdef __cplusplus
4336 extern "C"
4337 #endif
4338 char deflate ();
4340 main ()
4342 return deflate ();
4344 return 0;
4346 _ACEOF
4347 if ac_fn_c_try_link "$LINENO"; then :
4348 ac_cv_lib_z_deflate=yes
4349 else
4350 ac_cv_lib_z_deflate=no
4352 rm -f core conftest.err conftest.$ac_objext \
4353 conftest$ac_exeext conftest.$ac_ext
4354 LIBS=$ac_check_lib_save_LIBS
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4357 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4358 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
4359 cat >>confdefs.h <<_ACEOF
4360 #define HAVE_LIBZ 1
4361 _ACEOF
4363 LIBS="-lz $LIBS"
4365 else
4366 ZLIBMISSING=true
4370 if test "x$ZLIBMISSING" = "xtrue";then
4371 echo
4372 echo "ERROR:"
4373 echo "You need zlib to compile swftools"
4374 echo
4375 exit
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDF_open_file in -lpdf" >&5
4379 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4380 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 ac_check_lib_save_LIBS=$LIBS
4384 LIBS="-lpdf $LIBS"
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4388 /* Override any GCC internal prototype to avoid an error.
4389 Use char because int might match the return type of a GCC
4390 builtin and then its argument prototype would still apply. */
4391 #ifdef __cplusplus
4392 extern "C"
4393 #endif
4394 char PDF_open_file ();
4396 main ()
4398 return PDF_open_file ();
4400 return 0;
4402 _ACEOF
4403 if ac_fn_c_try_link "$LINENO"; then :
4404 ac_cv_lib_pdf_PDF_open_file=yes
4405 else
4406 ac_cv_lib_pdf_PDF_open_file=no
4408 rm -f core conftest.err conftest.$ac_objext \
4409 conftest$ac_exeext conftest.$ac_ext
4410 LIBS=$ac_check_lib_save_LIBS
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4413 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4414 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then :
4415 cat >>confdefs.h <<_ACEOF
4416 #define HAVE_LIBPDF 1
4417 _ACEOF
4419 LIBS="-lpdf $LIBS"
4421 else
4422 PDFLIBMISSING=true
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_write_raw_data in -ljpeg" >&5
4426 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4427 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 ac_check_lib_save_LIBS=$LIBS
4431 LIBS="-ljpeg $LIBS"
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4435 /* Override any GCC internal prototype to avoid an error.
4436 Use char because int might match the return type of a GCC
4437 builtin and then its argument prototype would still apply. */
4438 #ifdef __cplusplus
4439 extern "C"
4440 #endif
4441 char jpeg_write_raw_data ();
4443 main ()
4445 return jpeg_write_raw_data ();
4447 return 0;
4449 _ACEOF
4450 if ac_fn_c_try_link "$LINENO"; then :
4451 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4452 else
4453 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4455 rm -f core conftest.err conftest.$ac_objext \
4456 conftest$ac_exeext conftest.$ac_ext
4457 LIBS=$ac_check_lib_save_LIBS
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4460 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4461 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then :
4462 cat >>confdefs.h <<_ACEOF
4463 #define HAVE_LIBJPEG 1
4464 _ACEOF
4466 LIBS="-ljpeg $LIBS"
4468 else
4469 JPEGLIBMISSING=true
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpen in -lungif" >&5
4473 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4474 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 ac_check_lib_save_LIBS=$LIBS
4478 LIBS="-lungif $LIBS"
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4482 /* Override any GCC internal prototype to avoid an error.
4483 Use char because int might match the return type of a GCC
4484 builtin and then its argument prototype would still apply. */
4485 #ifdef __cplusplus
4486 extern "C"
4487 #endif
4488 char DGifOpen ();
4490 main ()
4492 return DGifOpen ();
4494 return 0;
4496 _ACEOF
4497 if ac_fn_c_try_link "$LINENO"; then :
4498 ac_cv_lib_ungif_DGifOpen=yes
4499 else
4500 ac_cv_lib_ungif_DGifOpen=no
4502 rm -f core conftest.err conftest.$ac_objext \
4503 conftest$ac_exeext conftest.$ac_ext
4504 LIBS=$ac_check_lib_save_LIBS
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_DGifOpen" >&5
4507 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4508 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then :
4509 cat >>confdefs.h <<_ACEOF
4510 #define HAVE_LIBUNGIF 1
4511 _ACEOF
4513 LIBS="-lungif $LIBS"
4515 else
4516 UNGIFMISSING=true
4519 if test "$UNGIFMISSING";then
4520 UNGIFMISSING=
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpen in -lgif" >&5
4522 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4523 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 ac_check_lib_save_LIBS=$LIBS
4527 LIBS="-lgif $LIBS"
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4531 /* Override any GCC internal prototype to avoid an error.
4532 Use char because int might match the return type of a GCC
4533 builtin and then its argument prototype would still apply. */
4534 #ifdef __cplusplus
4535 extern "C"
4536 #endif
4537 char DGifOpen ();
4539 main ()
4541 return DGifOpen ();
4543 return 0;
4545 _ACEOF
4546 if ac_fn_c_try_link "$LINENO"; then :
4547 ac_cv_lib_gif_DGifOpen=yes
4548 else
4549 ac_cv_lib_gif_DGifOpen=no
4551 rm -f core conftest.err conftest.$ac_objext \
4552 conftest$ac_exeext conftest.$ac_ext
4553 LIBS=$ac_check_lib_save_LIBS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpen" >&5
4556 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4557 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then :
4558 cat >>confdefs.h <<_ACEOF
4559 #define HAVE_LIBGIF 1
4560 _ACEOF
4562 LIBS="-lgif $LIBS"
4564 else
4565 UNGIFMISSING=true
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zzip_file_open in -lzzip" >&5
4570 $as_echo_n "checking for zzip_file_open in -lzzip... " >&6; }
4571 if test "${ac_cv_lib_zzip_zzip_file_open+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 ac_check_lib_save_LIBS=$LIBS
4575 LIBS="-lzzip $LIBS"
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4579 /* Override any GCC internal prototype to avoid an error.
4580 Use char because int might match the return type of a GCC
4581 builtin and then its argument prototype would still apply. */
4582 #ifdef __cplusplus
4583 extern "C"
4584 #endif
4585 char zzip_file_open ();
4587 main ()
4589 return zzip_file_open ();
4591 return 0;
4593 _ACEOF
4594 if ac_fn_c_try_link "$LINENO"; then :
4595 ac_cv_lib_zzip_zzip_file_open=yes
4596 else
4597 ac_cv_lib_zzip_zzip_file_open=no
4599 rm -f core conftest.err conftest.$ac_objext \
4600 conftest$ac_exeext conftest.$ac_ext
4601 LIBS=$ac_check_lib_save_LIBS
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zzip_zzip_file_open" >&5
4604 $as_echo "$ac_cv_lib_zzip_zzip_file_open" >&6; }
4605 if test "x$ac_cv_lib_zzip_zzip_file_open" = x""yes; then :
4606 cat >>confdefs.h <<_ACEOF
4607 #define HAVE_LIBZZIP 1
4608 _ACEOF
4610 LIBS="-lzzip $LIBS"
4612 else
4613 ZZIPMISSING=true
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4618 $as_echo_n "checking target system type... " >&6; }
4619 if test "${ac_cv_target+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 if test "x$target_alias" = x; then
4623 ac_cv_target=$ac_cv_host
4624 else
4625 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4626 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4631 $as_echo "$ac_cv_target" >&6; }
4632 case $ac_cv_target in
4633 *-*-*) ;;
4634 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4635 esac
4636 target=$ac_cv_target
4637 ac_save_IFS=$IFS; IFS='-'
4638 set x $ac_cv_target
4639 shift
4640 target_cpu=$1
4641 target_vendor=$2
4642 shift; shift
4643 # Remember, the first character of IFS is used to create $*,
4644 # except with old shells:
4645 target_os=$*
4646 IFS=$ac_save_IFS
4647 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4650 # The aliases save the names the user supplied, while $host etc.
4651 # will get canonicalized.
4652 test -n "$target_alias" &&
4653 test "$program_prefix$program_suffix$program_transform_name" = \
4654 NONENONEs,x,x, &&
4655 program_prefix=${target_alias}-
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte order" >&5
4658 $as_echo_n "checking for byte order... " >&6; }
4659 if test "$cross_compiling" = yes; then :
4660 CROSSCOMPILE=1
4661 else
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4665 int main (int argc, char *argv[])
4667 int i = 1;
4668 return *(char*)&i;
4671 _ACEOF
4672 if ac_fn_c_try_run "$LINENO"; then :
4673 BIGENDIAN=1
4674 else
4675 LITTLEENDIAN=1
4677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4678 conftest.$ac_objext conftest.beam conftest.$ac_ext
4681 export CROSSCOMPILE
4683 if test "x${CROSSCOMPILE}" = "x1"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: we are cross compiling- trying to guess from system type" >&5
4685 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte order, try 2" >&5
4688 $as_echo_n "checking for byte order, try 2... " >&6; }
4689 case "${target}" in
4690 *86* | *-pc-* )
4691 LITTLEENDIAN=1
4693 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4694 BIGENDIAN=1
4696 esac
4699 export LITTLEENDIAN
4700 if test "x${LITTLEENDIAN}" = "x1"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: little endian" >&5
4702 $as_echo "little endian" >&6; }
4703 BYTEORDERCHECKOK=1
4705 export BIGENDIAN
4706 if test "x${BIGENDIAN}" = "x1"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: big endian" >&5
4708 $as_echo "big endian" >&6; }
4709 BYTEORDERCHECKOK=1
4710 WORDS_BIGENDIAN=1
4711 export WORDS_BIGENDIAN
4713 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4716 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
4718 $as_echo "unknown" >&6; }
4719 echo Byte order could not determined.
4720 exit 1
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system() can handle command substitution" >&5
4726 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4727 if test "$cross_compiling" = yes; then :
4728 CROSSCOMPILE=1
4729 else
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4733 #include "stdlib.h"
4734 int main (int argc, char*argv[])
4736 return system("test `touch config.tmp2`");
4739 _ACEOF
4740 if ac_fn_c_try_run "$LINENO"; then :
4741 OK=OK
4743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4744 conftest.$ac_objext conftest.beam conftest.$ac_ext
4748 if test "x${OK}" = "xOK";then
4749 test -f config.tmp2 || OK=
4752 if test "x${CROSSCOMPILE}" = "x1";then
4753 OK=no;
4755 if test "x${OK}" = "xOK";then
4756 rm -f config.tmp2
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4758 $as_echo "yes" >&6; }
4759 SYSTEM_BACKTICKS=1
4760 export SYSTEM_BACKTICKS
4762 $as_echo "#define SYSTEM_BACKTICKS 1" >>confdefs.h
4764 else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4771 test "$program_prefix" != NONE &&
4772 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4773 # Use a double $ so make ignores it.
4774 test "$program_suffix" != NONE &&
4775 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4776 # Double any \ or $.
4777 # By default was `s,x,x', remove it if useless.
4778 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4779 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4782 ac_config_headers="$ac_config_headers config.h"
4784 ac_header_dirent=no
4785 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4786 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4788 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 #include <sys/types.h>
4795 #include <$ac_hdr>
4798 main ()
4800 if ((DIR *) 0)
4801 return 0;
4803 return 0;
4805 _ACEOF
4806 if ac_fn_c_try_compile "$LINENO"; then :
4807 eval "$as_ac_Header=yes"
4808 else
4809 eval "$as_ac_Header=no"
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 eval ac_res=\$$as_ac_Header
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4815 $as_echo "$ac_res" >&6; }
4816 eval as_val=\$$as_ac_Header
4817 if test "x$as_val" = x""yes; then :
4818 cat >>confdefs.h <<_ACEOF
4819 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4820 _ACEOF
4822 ac_header_dirent=$ac_hdr; break
4825 done
4826 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4827 if test $ac_header_dirent = dirent.h; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4829 $as_echo_n "checking for library containing opendir... " >&6; }
4830 if test "${ac_cv_search_opendir+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 ac_func_search_save_LIBS=$LIBS
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4837 /* Override any GCC internal prototype to avoid an error.
4838 Use char because int might match the return type of a GCC
4839 builtin and then its argument prototype would still apply. */
4840 #ifdef __cplusplus
4841 extern "C"
4842 #endif
4843 char opendir ();
4845 main ()
4847 return opendir ();
4849 return 0;
4851 _ACEOF
4852 for ac_lib in '' dir; do
4853 if test -z "$ac_lib"; then
4854 ac_res="none required"
4855 else
4856 ac_res=-l$ac_lib
4857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4859 if ac_fn_c_try_link "$LINENO"; then :
4860 ac_cv_search_opendir=$ac_res
4862 rm -f core conftest.err conftest.$ac_objext \
4863 conftest$ac_exeext
4864 if test "${ac_cv_search_opendir+set}" = set; then :
4865 break
4867 done
4868 if test "${ac_cv_search_opendir+set}" = set; then :
4870 else
4871 ac_cv_search_opendir=no
4873 rm conftest.$ac_ext
4874 LIBS=$ac_func_search_save_LIBS
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4877 $as_echo "$ac_cv_search_opendir" >&6; }
4878 ac_res=$ac_cv_search_opendir
4879 if test "$ac_res" != no; then :
4880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4884 else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4886 $as_echo_n "checking for library containing opendir... " >&6; }
4887 if test "${ac_cv_search_opendir+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 ac_func_search_save_LIBS=$LIBS
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4894 /* Override any GCC internal prototype to avoid an error.
4895 Use char because int might match the return type of a GCC
4896 builtin and then its argument prototype would still apply. */
4897 #ifdef __cplusplus
4898 extern "C"
4899 #endif
4900 char opendir ();
4902 main ()
4904 return opendir ();
4906 return 0;
4908 _ACEOF
4909 for ac_lib in '' x; do
4910 if test -z "$ac_lib"; then
4911 ac_res="none required"
4912 else
4913 ac_res=-l$ac_lib
4914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4916 if ac_fn_c_try_link "$LINENO"; then :
4917 ac_cv_search_opendir=$ac_res
4919 rm -f core conftest.err conftest.$ac_objext \
4920 conftest$ac_exeext
4921 if test "${ac_cv_search_opendir+set}" = set; then :
4922 break
4924 done
4925 if test "${ac_cv_search_opendir+set}" = set; then :
4927 else
4928 ac_cv_search_opendir=no
4930 rm conftest.$ac_ext
4931 LIBS=$ac_func_search_save_LIBS
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4934 $as_echo "$ac_cv_search_opendir" >&6; }
4935 ac_res=$ac_cv_search_opendir
4936 if test "$ac_res" != no; then :
4937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4945 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4946 if test "${ac_cv_path_GREP+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 if test -z "$GREP"; then
4950 ac_path_GREP_found=false
4951 # Loop through the user's path and test for each of PROGNAME-LIST
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_prog in grep ggrep; do
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4960 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4961 # Check for GNU ac_path_GREP and select it if it is found.
4962 # Check for GNU $ac_path_GREP
4963 case `"$ac_path_GREP" --version 2>&1` in
4964 *GNU*)
4965 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4967 ac_count=0
4968 $as_echo_n 0123456789 >"conftest.in"
4969 while :
4971 cat "conftest.in" "conftest.in" >"conftest.tmp"
4972 mv "conftest.tmp" "conftest.in"
4973 cp "conftest.in" "conftest.nl"
4974 $as_echo 'GREP' >> "conftest.nl"
4975 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4977 as_fn_arith $ac_count + 1 && ac_count=$as_val
4978 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4979 # Best one so far, save it but keep looking for a better one
4980 ac_cv_path_GREP="$ac_path_GREP"
4981 ac_path_GREP_max=$ac_count
4983 # 10*(2^10) chars as input seems more than enough
4984 test $ac_count -gt 10 && break
4985 done
4986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4987 esac
4989 $ac_path_GREP_found && break 3
4990 done
4991 done
4992 done
4993 IFS=$as_save_IFS
4994 if test -z "$ac_cv_path_GREP"; then
4995 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4997 else
4998 ac_cv_path_GREP=$GREP
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5003 $as_echo "$ac_cv_path_GREP" >&6; }
5004 GREP="$ac_cv_path_GREP"
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5008 $as_echo_n "checking for egrep... " >&6; }
5009 if test "${ac_cv_path_EGREP+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5013 then ac_cv_path_EGREP="$GREP -E"
5014 else
5015 if test -z "$EGREP"; then
5016 ac_path_EGREP_found=false
5017 # Loop through the user's path and test for each of PROGNAME-LIST
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_prog in egrep; do
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5026 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5027 # Check for GNU ac_path_EGREP and select it if it is found.
5028 # Check for GNU $ac_path_EGREP
5029 case `"$ac_path_EGREP" --version 2>&1` in
5030 *GNU*)
5031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5033 ac_count=0
5034 $as_echo_n 0123456789 >"conftest.in"
5035 while :
5037 cat "conftest.in" "conftest.in" >"conftest.tmp"
5038 mv "conftest.tmp" "conftest.in"
5039 cp "conftest.in" "conftest.nl"
5040 $as_echo 'EGREP' >> "conftest.nl"
5041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5043 as_fn_arith $ac_count + 1 && ac_count=$as_val
5044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5045 # Best one so far, save it but keep looking for a better one
5046 ac_cv_path_EGREP="$ac_path_EGREP"
5047 ac_path_EGREP_max=$ac_count
5049 # 10*(2^10) chars as input seems more than enough
5050 test $ac_count -gt 10 && break
5051 done
5052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5053 esac
5055 $ac_path_EGREP_found && break 3
5056 done
5057 done
5058 done
5059 IFS=$as_save_IFS
5060 if test -z "$ac_cv_path_EGREP"; then
5061 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5063 else
5064 ac_cv_path_EGREP=$EGREP
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5070 $as_echo "$ac_cv_path_EGREP" >&6; }
5071 EGREP="$ac_cv_path_EGREP"
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5075 $as_echo_n "checking for ANSI C header files... " >&6; }
5076 if test "${ac_cv_header_stdc+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 #include <stdlib.h>
5082 #include <stdarg.h>
5083 #include <string.h>
5084 #include <float.h>
5087 main ()
5091 return 0;
5093 _ACEOF
5094 if ac_fn_c_try_compile "$LINENO"; then :
5095 ac_cv_header_stdc=yes
5096 else
5097 ac_cv_header_stdc=no
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 if test $ac_cv_header_stdc = yes; then
5102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5105 #include <string.h>
5107 _ACEOF
5108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5109 $EGREP "memchr" >/dev/null 2>&1; then :
5111 else
5112 ac_cv_header_stdc=no
5114 rm -f conftest*
5118 if test $ac_cv_header_stdc = yes; then
5119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <stdlib.h>
5124 _ACEOF
5125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5126 $EGREP "free" >/dev/null 2>&1; then :
5128 else
5129 ac_cv_header_stdc=no
5131 rm -f conftest*
5135 if test $ac_cv_header_stdc = yes; then
5136 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5137 if test "$cross_compiling" = yes; then :
5139 else
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5142 #include <ctype.h>
5143 #include <stdlib.h>
5144 #if ((' ' & 0x0FF) == 0x020)
5145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5147 #else
5148 # define ISLOWER(c) \
5149 (('a' <= (c) && (c) <= 'i') \
5150 || ('j' <= (c) && (c) <= 'r') \
5151 || ('s' <= (c) && (c) <= 'z'))
5152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5153 #endif
5155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5157 main ()
5159 int i;
5160 for (i = 0; i < 256; i++)
5161 if (XOR (islower (i), ISLOWER (i))
5162 || toupper (i) != TOUPPER (i))
5163 return 2;
5164 return 0;
5166 _ACEOF
5167 if ac_fn_c_try_run "$LINENO"; then :
5169 else
5170 ac_cv_header_stdc=no
5172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5173 conftest.$ac_objext conftest.beam conftest.$ac_ext
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5179 $as_echo "$ac_cv_header_stdc" >&6; }
5180 if test $ac_cv_header_stdc = yes; then
5182 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5187 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5188 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5189 inttypes.h stdint.h unistd.h
5190 do :
5191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5192 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5194 eval as_val=\$$as_ac_Header
5195 if test "x$as_val" = x""yes; then :
5196 cat >>confdefs.h <<_ACEOF
5197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5198 _ACEOF
5202 done
5205 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
5206 do :
5207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5208 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5209 eval as_val=\$$as_ac_Header
5210 if test "x$as_val" = x""yes; then :
5211 cat >>confdefs.h <<_ACEOF
5212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5213 _ACEOF
5217 done
5221 cat >>confdefs.h <<_ACEOF
5222 #define PACKAGE "$PACKAGE"
5223 _ACEOF
5226 cat >>confdefs.h <<_ACEOF
5227 #define VERSION "$VERSION"
5228 _ACEOF
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5237 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5238 if test "${ac_cv_c_const+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5245 main ()
5247 /* FIXME: Include the comments suggested by Paul. */
5248 #ifndef __cplusplus
5249 /* Ultrix mips cc rejects this. */
5250 typedef int charset[2];
5251 const charset cs;
5252 /* SunOS 4.1.1 cc rejects this. */
5253 char const *const *pcpcc;
5254 char **ppc;
5255 /* NEC SVR4.0.2 mips cc rejects this. */
5256 struct point {int x, y;};
5257 static struct point const zero = {0,0};
5258 /* AIX XL C 1.02.0.0 rejects this.
5259 It does not let you subtract one const X* pointer from another in
5260 an arm of an if-expression whose if-part is not a constant
5261 expression */
5262 const char *g = "string";
5263 pcpcc = &g + (g ? g-g : 0);
5264 /* HPUX 7.0 cc rejects these. */
5265 ++pcpcc;
5266 ppc = (char**) pcpcc;
5267 pcpcc = (char const *const *) ppc;
5268 { /* SCO 3.2v4 cc rejects this. */
5269 char *t;
5270 char const *s = 0 ? (char *) 0 : (char const *) 0;
5272 *t++ = 0;
5273 if (s) return 0;
5275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5276 int x[] = {25, 17};
5277 const int *foo = &x[0];
5278 ++foo;
5280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5281 typedef const int *iptr;
5282 iptr p = 0;
5283 ++p;
5285 { /* AIX XL C 1.02.0.0 rejects this saying
5286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5287 struct s { int j; const int *ap[3]; };
5288 struct s *b; b->j = 5;
5290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5291 const int foo = 10;
5292 if (!foo) return 0;
5294 return !cs[0] && !zero.x;
5295 #endif
5298 return 0;
5300 _ACEOF
5301 if ac_fn_c_try_compile "$LINENO"; then :
5302 ac_cv_c_const=yes
5303 else
5304 ac_cv_c_const=no
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5309 $as_echo "$ac_cv_c_const" >&6; }
5310 if test $ac_cv_c_const = no; then
5312 $as_echo "#define const /**/" >>confdefs.h
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5317 $as_echo_n "checking for inline... " >&6; }
5318 if test "${ac_cv_c_inline+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 ac_cv_c_inline=no
5322 for ac_kw in inline __inline__ __inline; do
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 #ifndef __cplusplus
5326 typedef int foo_t;
5327 static $ac_kw foo_t static_foo () {return 0; }
5328 $ac_kw foo_t foo () {return 0; }
5329 #endif
5331 _ACEOF
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333 ac_cv_c_inline=$ac_kw
5335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 test "$ac_cv_c_inline" != no && break
5337 done
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5341 $as_echo "$ac_cv_c_inline" >&6; }
5343 case $ac_cv_c_inline in
5344 inline | yes) ;;
5346 case $ac_cv_c_inline in
5347 no) ac_val=;;
5348 *) ac_val=$ac_cv_c_inline;;
5349 esac
5350 cat >>confdefs.h <<_ACEOF
5351 #ifndef __cplusplus
5352 #define inline $ac_val
5353 #endif
5354 _ACEOF
5356 esac
5358 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5359 if test "x$ac_cv_type_off_t" = x""yes; then :
5361 else
5363 cat >>confdefs.h <<_ACEOF
5364 #define off_t long int
5365 _ACEOF
5369 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5370 if test "x$ac_cv_type_size_t" = x""yes; then :
5372 else
5374 cat >>confdefs.h <<_ACEOF
5375 #define size_t unsigned int
5376 _ACEOF
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5381 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5382 if test "${ac_cv_struct_tm+set}" = set; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <sys/types.h>
5388 #include <time.h>
5391 main ()
5393 struct tm tm;
5394 int *p = &tm.tm_sec;
5395 return !p;
5397 return 0;
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 ac_cv_struct_tm=time.h
5402 else
5403 ac_cv_struct_tm=sys/time.h
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5408 $as_echo "$ac_cv_struct_tm" >&6; }
5409 if test $ac_cv_struct_tm = sys/time.h; then
5411 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5415 ac_fn_c_check_type "$LINENO" "boolean" "ac_cv_type_boolean" "$ac_includes_default"
5416 if test "x$ac_cv_type_boolean" = x""yes; then :
5418 else
5420 cat >>confdefs.h <<_ACEOF
5421 #define boolean int
5422 _ACEOF
5425 #needed for jpeglib
5426 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo open64 calloc
5427 do :
5428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5430 eval as_val=\$$as_ac_var
5431 if test "x$as_val" = x""yes; then :
5432 cat >>confdefs.h <<_ACEOF
5433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5434 _ACEOF
5437 done
5440 # The cast to long int works around a bug in the HP C Compiler
5441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5443 # This bug is HP SR number 8606223364.
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
5445 $as_echo_n "checking size of signed char... " >&6; }
5446 if test "${ac_cv_sizeof_signed_char+set}" = set; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
5451 else
5452 if test "$ac_cv_type_signed_char" = yes; then
5453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5455 { as_fn_set_status 77
5456 as_fn_error "cannot compute sizeof (signed char)
5457 See \`config.log' for more details." "$LINENO" 5; }; }
5458 else
5459 ac_cv_sizeof_signed_char=0
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
5465 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
5469 cat >>confdefs.h <<_ACEOF
5470 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
5471 _ACEOF
5474 # The cast to long int works around a bug in the HP C Compiler
5475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5477 # This bug is HP SR number 8606223364.
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
5479 $as_echo_n "checking size of signed short... " >&6; }
5480 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
5485 else
5486 if test "$ac_cv_type_signed_short" = yes; then
5487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5489 { as_fn_set_status 77
5490 as_fn_error "cannot compute sizeof (signed short)
5491 See \`config.log' for more details." "$LINENO" 5; }; }
5492 else
5493 ac_cv_sizeof_signed_short=0
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
5499 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
5503 cat >>confdefs.h <<_ACEOF
5504 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
5505 _ACEOF
5508 # The cast to long int works around a bug in the HP C Compiler
5509 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5510 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5511 # This bug is HP SR number 8606223364.
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed" >&5
5513 $as_echo_n "checking size of signed... " >&6; }
5514 if test "${ac_cv_sizeof_signed+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed))" "ac_cv_sizeof_signed" "$ac_includes_default"; then :
5519 else
5520 if test "$ac_cv_type_signed" = yes; then
5521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5523 { as_fn_set_status 77
5524 as_fn_error "cannot compute sizeof (signed)
5525 See \`config.log' for more details." "$LINENO" 5; }; }
5526 else
5527 ac_cv_sizeof_signed=0
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed" >&5
5533 $as_echo "$ac_cv_sizeof_signed" >&6; }
5537 cat >>confdefs.h <<_ACEOF
5538 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
5539 _ACEOF
5542 # The cast to long int works around a bug in the HP C Compiler
5543 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5544 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5545 # This bug is HP SR number 8606223364.
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
5547 $as_echo_n "checking size of signed long long... " >&6; }
5548 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
5553 else
5554 if test "$ac_cv_type_signed_long_long" = yes; then
5555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5557 { as_fn_set_status 77
5558 as_fn_error "cannot compute sizeof (signed long long)
5559 See \`config.log' for more details." "$LINENO" 5; }; }
5560 else
5561 ac_cv_sizeof_signed_long_long=0
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
5567 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
5571 cat >>confdefs.h <<_ACEOF
5572 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
5573 _ACEOF
5576 # The cast to long int works around a bug in the HP C Compiler
5577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5579 # This bug is HP SR number 8606223364.
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5581 $as_echo_n "checking size of void*... " >&6; }
5582 if test "${ac_cv_sizeof_voidp+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
5587 else
5588 if test "$ac_cv_type_voidp" = yes; then
5589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5591 { as_fn_set_status 77
5592 as_fn_error "cannot compute sizeof (void*)
5593 See \`config.log' for more details." "$LINENO" 5; }; }
5594 else
5595 ac_cv_sizeof_voidp=0
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5601 $as_echo "$ac_cv_sizeof_voidp" >&6; }
5605 cat >>confdefs.h <<_ACEOF
5606 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5607 _ACEOF
5613 # Extract the first word of "freetype-config", so it can be a program name with args.
5614 set dummy freetype-config; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 case $FREETYPE_CONFIG in
5621 [\\/]* | ?:[\\/]*)
5622 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
5627 for as_dir in $as_dummy
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5633 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5637 done
5638 done
5639 IFS=$as_save_IFS
5642 esac
5644 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
5645 if test -n "$FREETYPE_CONFIG"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CONFIG" >&5
5647 $as_echo "$FREETYPE_CONFIG" >&6; }
5648 else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5655 OLDCPPFLAGS="${CPPFLAGS}"
5656 OLDLIBS="${LIBS}"
5657 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
5658 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
5659 else if test -d /usr/include/freetype2; then
5660 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
5661 else if test -d /usr/local/include/freetype2; then
5662 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
5667 if test "x${FREETYPE_CONFIG}" '=' "x";then
5668 # if we didn't find the freetype-config program, we won't
5669 # know where the libs are expected to be. So just blindly
5670 # try to link against them.
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
5672 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
5673 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 ac_check_lib_save_LIBS=$LIBS
5677 LIBS="-lfreetype $LIBS"
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5681 /* Override any GCC internal prototype to avoid an error.
5682 Use char because int might match the return type of a GCC
5683 builtin and then its argument prototype would still apply. */
5684 #ifdef __cplusplus
5685 extern "C"
5686 #endif
5687 char FT_Init_FreeType ();
5689 main ()
5691 return FT_Init_FreeType ();
5693 return 0;
5695 _ACEOF
5696 if ac_fn_c_try_link "$LINENO"; then :
5697 ac_cv_lib_freetype_FT_Init_FreeType=yes
5698 else
5699 ac_cv_lib_freetype_FT_Init_FreeType=no
5701 rm -f core conftest.err conftest.$ac_objext \
5702 conftest$ac_exeext conftest.$ac_ext
5703 LIBS=$ac_check_lib_save_LIBS
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
5706 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
5707 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
5708 HAVE_LIB_FREETYPE=1
5713 for ac_header in ft2build.h
5714 do :
5715 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
5716 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
5717 cat >>confdefs.h <<_ACEOF
5718 #define HAVE_FT2BUILD_H 1
5719 _ACEOF
5720 HAVE_FT2BUILD_H=1
5723 done
5725 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
5726 for ac_header in freetype/freetype.h
5727 do :
5728 ac_fn_c_check_header_mongrel "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$ac_includes_default"
5729 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
5730 cat >>confdefs.h <<_ACEOF
5731 #define HAVE_FREETYPE_FREETYPE_H 1
5732 _ACEOF
5733 HAVE_FREETYPE_FREETYPE_H=1
5736 done
5740 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
5741 "x${FREETYPE_CONFIG}" '!=' "x";then
5742 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
5743 HAVE_FREETYPE=1
5745 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
5746 HAVE_FREETYPE=1
5750 if test "x${HAVE_FREETYPE}" = "x1"; then
5751 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
5752 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
5753 else
5754 LIBS="$LIBS -lfreetype"
5757 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
5758 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the freetype test program" >&5
5762 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
5764 cat > conftest.c << EOF
5765 $HAVE_FT2BUILD_H_DEFINE
5767 #ifdef HAVE_FT2BUILD_H
5768 #include <ft2build.h>
5769 #include FT_FREETYPE_H
5770 #include FT_GLYPH_H
5771 #include FT_SIZES_H
5772 #include FT_SFNT_NAMES_H
5773 #include FT_TRUETYPE_IDS_H
5774 #include FT_OUTLINE_H
5775 #else
5776 #include <freetype/freetype.h>
5777 #include <freetype/ftglyph.h>
5778 #include <freetype/ftsizes.h>
5779 #include <freetype/ftsnames.h>
5780 #include <freetype/ttnameid.h>
5781 #include <freetype/ftoutln.h>
5782 #endif
5784 int main()
5786 FT_Library ftlibrary;
5787 FT_Face face;
5788 FT_Error error;
5789 FT_ULong charcode;
5790 FT_UInt gindex;
5791 FT_Glyph glyph;
5792 FT_BBox bbox;
5793 FT_Matrix matrix;
5794 FT_UInt i;
5795 char* name = 0;
5796 char italic, bold;
5798 FT_Init_FreeType(&ftlibrary);
5799 FT_New_Face(ftlibrary, "filename", 0, &face);
5800 i = face->num_glyphs - 1;
5801 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
5802 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
5803 FT_Get_Postscript_Name(face);
5804 FT_Get_Char_Index(face, 33);
5805 FT_Get_First_Char(face, &i);
5806 FT_Get_Next_Char(face, 33, &i);
5807 if(FT_HAS_GLYPH_NAMES(face)) {
5808 FT_Get_Glyph_Name(face, 33, name, 127);
5810 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
5811 FT_Get_Glyph(face->glyph, &glyph);
5812 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
5813 FT_Done_Glyph(glyph);
5814 FT_Done_Face(face);
5815 FT_Done_FreeType(ftlibrary);
5816 return 0;
5820 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
5821 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5823 $as_echo "yes" >&6; }
5825 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
5828 $as_echo "#define HAVE_FREETYPE_FREETYPE_H 1" >>confdefs.h
5831 $as_echo "#define USE_FREETYPE 1" >>confdefs.h
5832 # for ttf2tp1
5833 else
5834 echo "configure: failed program was:" >&5
5835 cat conftest.c >&5
5836 HAVE_FREETYPE=0
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5840 rm -f conftest*
5843 # if the above didn't work out, reset all changes to the compiler variables.
5844 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
5845 CPPFLAGS=$OLDCPPFLAGS
5846 LIBS=$OLDLIBS
5851 OLDCPPFLAGS="${CPPFLAGS}"
5852 OLDLIBS="${LIBS}"
5854 if test -d /usr/include/fontconfig; then
5855 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcInit in -lfontconfig" >&5
5859 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
5860 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 ac_check_lib_save_LIBS=$LIBS
5864 LIBS="-lfontconfig $LIBS"
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5868 /* Override any GCC internal prototype to avoid an error.
5869 Use char because int might match the return type of a GCC
5870 builtin and then its argument prototype would still apply. */
5871 #ifdef __cplusplus
5872 extern "C"
5873 #endif
5874 char FcInit ();
5876 main ()
5878 return FcInit ();
5880 return 0;
5882 _ACEOF
5883 if ac_fn_c_try_link "$LINENO"; then :
5884 ac_cv_lib_fontconfig_FcInit=yes
5885 else
5886 ac_cv_lib_fontconfig_FcInit=no
5888 rm -f core conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext conftest.$ac_ext
5890 LIBS=$ac_check_lib_save_LIBS
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcInit" >&5
5893 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
5894 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then :
5895 HAVE_LIB_FONTCONFIG=1
5898 for ac_header in fontconfig.h
5899 do :
5900 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig.h" "ac_cv_header_fontconfig_h" "$ac_includes_default"
5901 if test "x$ac_cv_header_fontconfig_h" = x""yes; then :
5902 cat >>confdefs.h <<_ACEOF
5903 #define HAVE_FONTCONFIG_H 1
5904 _ACEOF
5905 HAVE_FONTCONFIG_H=1
5908 done
5911 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
5912 if test "x${HAVE_FONTCONFIG_H}" != "x";then
5913 HAVE_FONTCONFIG=1
5917 if test "x${HAVE_FONTCONFIG}" = "x1"; then
5918 LIBS="$LIBS -lfontconfig"
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the fontconfig test program" >&5
5920 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
5922 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
5923 #move freetype library to the end of libraries, otherwise fontconfig
5924 #won't compile.
5925 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
5928 cat > conftest.c << EOF
5929 #include <string.h>
5930 #include <fontconfig.h>
5932 int main()
5934 FcPattern *pattern, *match;
5935 FcResult result;
5936 FcChar8 *v;
5937 char*s1="abc",*s2="ABC";
5938 strcasecmp(s1,s2);
5939 FcInit();
5940 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
5941 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
5942 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
5944 FcConfig*c = FcConfigCreate();
5945 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
5946 FcConfigBuildFonts(c);
5947 FcConfigSetCurrent(c);
5949 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
5950 FcFontSetDestroy(set);
5952 FcConfigSubstitute(0, pattern, FcMatchPattern);
5953 FcDefaultSubstitute(pattern);
5954 match = FcFontMatch(0, pattern, &result);
5955 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
5956 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
5957 FcPatternPrint(pattern);
5958 FcPatternDestroy(pattern);
5959 FcPatternDestroy(match);
5960 FcFini();
5961 return 0;
5965 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
5966 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5968 $as_echo "yes" >&6; }
5970 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
5972 else
5973 echo "configure: failed program was:" >&5
5974 cat conftest.c >&5
5975 HAVE_FONTCONFIG=0
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5979 rm -f conftest*
5982 # if the above didn't work out, reset all changes to the compiler variables.
5983 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
5984 CPPFLAGS=$OLDCPPFLAGS
5985 LIBS=$OLDLIBS
5990 OLDCPPFLAGS="${CPPFLAGS}"
5991 OLDLIBS="${LIBS}"
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
5994 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
5995 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 ac_check_lib_save_LIBS=$LIBS
5999 LIBS="-lfftw3 $LIBS"
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6003 /* Override any GCC internal prototype to avoid an error.
6004 Use char because int might match the return type of a GCC
6005 builtin and then its argument prototype would still apply. */
6006 #ifdef __cplusplus
6007 extern "C"
6008 #endif
6009 char fftw_plan_dft_r2c_2d ();
6011 main ()
6013 return fftw_plan_dft_r2c_2d ();
6015 return 0;
6017 _ACEOF
6018 if ac_fn_c_try_link "$LINENO"; then :
6019 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
6020 else
6021 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
6023 rm -f core conftest.err conftest.$ac_objext \
6024 conftest$ac_exeext conftest.$ac_ext
6025 LIBS=$ac_check_lib_save_LIBS
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
6028 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
6029 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then :
6030 HAVE_LIBFFTW3=1
6033 for ac_header in fftw3.h
6034 do :
6035 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
6036 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
6037 cat >>confdefs.h <<_ACEOF
6038 #define HAVE_FFTW3_H 1
6039 _ACEOF
6040 HAVE_FFTW3_H=1
6043 done
6046 if test "x${HAVE_LIBFFTW3}" != "x";then
6047 if test "x${HAVE_FFTW3_H}" != "x";then
6048 HAVE_FFTW3=1
6052 if test "x${HAVE_FFTW3}" = "x1"; then
6053 LIBS="$LIBS -lfftw3"
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the fftw3 test program" >&5
6055 $as_echo_n "checking whether we can compile the fftw3 test program... " >&6; }
6057 cat > conftest.c << EOF
6058 #include <fftw3.h>
6060 int main()
6062 char*data = 0;
6063 fftw_plan plan = fftw_plan_dft_2d(600, 800, (fftw_complex*)data, (fftw_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
6064 plan = fftw_plan_dft_r2c_2d(600, 800, (double*)data, (fftw_complex*)data, FFTW_ESTIMATE);
6065 plan = fftw_plan_dft_c2r_2d(600, 800, (fftw_complex*)data, (double*)data, FFTW_ESTIMATE);
6066 fftw_execute(plan);
6067 fftw_destroy_plan(plan);
6071 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6072 if { (eval echo fftw3.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6074 $as_echo "yes" >&6; }
6076 $as_echo "#define HAVE_FFTW3 1" >>confdefs.h
6078 else
6079 echo "configure: failed program was:" >&5
6080 cat conftest.c >&5
6081 HAVE_FFTW3=0
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6085 rm -f conftest*
6088 # if the above didn't work out, reset all changes to the compiler variables.
6089 if test "x${HAVE_FFTW3}" "!=" "x1"; then
6090 CPPFLAGS=$OLDCPPFLAGS
6091 LIBS=$OLDLIBS
6095 # RFX_CHECK_OPENGL
6096 # if test "$HAVE_OPENGL";then
6097 # DEVICE_OPENGL='devices/opengl.$(O)'
6098 # AC_SUBST(DEVICE_OPENGL)
6099 # fi
6102 lame_in_source=
6103 lame_makefile=
6104 if test "x${DISABLE_LAME}" = "xtrue"; then
6105 echo "*" Disabling lame support...
6106 else
6107 # old lame code at lib/lame
6108 if test -f lib/lame/Makefile.in; then
6109 lame_in_source='$(lame_objects)'
6110 lame_makefile="lib/lame/Makefile"
6111 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
6113 $as_echo "#define HAVE_LAME 1" >>confdefs.h
6115 else
6116 if test -d /usr/include/lame; then
6117 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
6118 else
6119 if test -d /usr/local/include/lame; then
6120 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lame_init in -lmp3lame" >&5
6124 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
6125 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 ac_check_lib_save_LIBS=$LIBS
6129 LIBS="-lmp3lame $LIBS"
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6133 /* Override any GCC internal prototype to avoid an error.
6134 Use char because int might match the return type of a GCC
6135 builtin and then its argument prototype would still apply. */
6136 #ifdef __cplusplus
6137 extern "C"
6138 #endif
6139 char lame_init ();
6141 main ()
6143 return lame_init ();
6145 return 0;
6147 _ACEOF
6148 if ac_fn_c_try_link "$LINENO"; then :
6149 ac_cv_lib_mp3lame_lame_init=yes
6150 else
6151 ac_cv_lib_mp3lame_lame_init=no
6153 rm -f core conftest.err conftest.$ac_objext \
6154 conftest$ac_exeext conftest.$ac_ext
6155 LIBS=$ac_check_lib_save_LIBS
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp3lame_lame_init" >&5
6158 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
6159 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then :
6160 cat >>confdefs.h <<_ACEOF
6161 #define HAVE_LIBMP3LAME 1
6162 _ACEOF
6164 LIBS="-lmp3lame $LIBS"
6166 else
6167 NO_LIBMP3LAME=1
6170 HASLAMEHEADER=
6171 for ac_header in lame.h
6172 do :
6173 ac_fn_c_check_header_mongrel "$LINENO" "lame.h" "ac_cv_header_lame_h" "$ac_includes_default"
6174 if test "x$ac_cv_header_lame_h" = x""yes; then :
6175 cat >>confdefs.h <<_ACEOF
6176 #define HAVE_LAME_H 1
6177 _ACEOF
6178 HASLAMEHEADER=1
6181 done
6183 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
6184 $as_echo "#define HAVE_LAME 1" >>confdefs.h
6191 splash_in_source='$(splash_objects)'
6192 xpdf_in_source='$(xpdf_objects)'
6198 # ------------------------------------------------------------------
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the filesystem normalizes file names" >&5
6202 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
6204 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
6205 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
6206 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6208 $as_echo "yes" >&6; }
6210 $as_echo "#define LOWERCASE_UPPERCASE 1" >>confdefs.h
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6217 rm -f __abcdefghijklmnopqrstuvwxyz.txt
6218 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
6222 for ac_prog in avifile-config
6224 # Extract the first word of "$ac_prog", so it can be a program name with args.
6225 set dummy $ac_prog; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 if test -n "$AVIFILE_CONFIG"; then
6232 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6245 done
6246 done
6247 IFS=$as_save_IFS
6251 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
6252 if test -n "$AVIFILE_CONFIG"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIFILE_CONFIG" >&5
6254 $as_echo "$AVIFILE_CONFIG" >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6261 test -n "$AVIFILE_CONFIG" && break
6262 done
6265 if test "x$AVIFILE_CONFIG" '!=' "x";then
6266 OLDCPPFLAGS="$CPPFLAGS"
6267 # temporarily add avifile paths to CPPFLAGS...
6268 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
6269 for ac_header in avifile/version.h version.h
6270 do :
6271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6272 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6273 eval as_val=\$$as_ac_Header
6274 if test "x$as_val" = x""yes; then :
6275 cat >>confdefs.h <<_ACEOF
6276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6277 _ACEOF
6281 done
6283 # ... and reset
6284 CPPFLAGS="$OLDCPPFLAGS"
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the avifile test program" >&5
6288 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
6290 if test "x${ac_cv_header_version_h}" '=' "xyes";then
6291 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
6293 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
6294 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
6297 cat > conftest.cpp << EOF
6299 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
6300 // so we have to introduce them this way
6301 $HAVE_VERSION_H_DEFINE
6302 $HAVE_AVIFILE_VERSION_H_DEFINE
6304 #ifdef HAVE_VERSION_H
6305 #include <version.h>
6306 #endif
6307 #ifdef HAVE_AVIFILE_VERSION_H
6308 #include <avifile/version.h>
6309 #endif
6311 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
6312 #include <avifile.h>
6313 #include <aviplay.h>
6314 #include <avm_fourcc.h>
6315 #include <avm_creators.h>
6316 #include <StreamInfo.h>
6317 #define VERSION6
6318 #else
6319 #include <avifile.h>
6320 #include <aviplay.h>
6321 #include <aviutil.h>
6322 #define Width width
6323 #define Height height
6324 #define Data data
6325 #define Bpp bpp
6326 #endif
6328 void test()
6330 IAviReadFile* player;
6331 IAviReadStream* astream;
6332 IAviReadStream* vstream;
6333 player = CreateIAviReadFile(0);
6334 astream = player->GetStream(0, AviStream::Audio);
6335 vstream = player->GetStream(0, AviStream::Video);
6336 vstream -> StartStreaming();
6337 astream -> StartStreaming();
6338 #ifndef VERSION6
6339 MainAVIHeader head;
6340 player->GetFileHeader(&head);
6341 head.dwMicroSecPerFrame;
6342 head.dwTotalFrames;
6343 head.dwStreams;
6344 head.dwWidth;
6345 head.dwHeight;
6346 head.dwMicroSecPerFrame;
6347 astream->GetEndPos(),
6348 astream->GetEndTime());
6349 player->StreamCount();
6350 #else
6351 StreamInfo*audioinfo;
6352 StreamInfo*videoinfo;
6353 audioinfo = astream->GetStreamInfo();
6354 videoinfo = vstream->GetStreamInfo();
6355 videoinfo->GetVideoWidth();
6356 videoinfo->GetVideoHeight();
6357 audioinfo->GetAudioSamplesPerSec();
6358 videoinfo->GetFps();
6359 #endif
6360 CImage*img = vstream->GetFrame();
6361 img->ToRGB();
6362 img->Data();
6363 img->Bpp();
6364 img->Width();
6365 img->Height();
6366 WAVEFORMATEX wave;
6367 astream->GetAudioFormatInfo(&wave,0);
6368 uint_t a,b;
6369 astream->ReadFrames(0,0,0,a,b);
6371 int main (int argc, char*argv)
6373 return 0;
6377 if test "x$AVIFILE_CONFIG" '!=' "x";then
6378 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
6379 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
6380 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
6381 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6383 $as_echo "yes" >&6; }
6384 AVIFILE=true
6385 export AVIFILE
6387 $as_echo "#define AVIFILE true" >>confdefs.h
6389 else
6390 echo "configure: failed program was:" >&5
6391 cat conftest.cpp >&5
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6395 else
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6399 rm -f conftest*
6401 if test "x${AVIFILE}" = "xtrue"; then
6402 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
6403 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
6405 $as_echo "#define HAVE_AVIFILE 1" >>confdefs.h
6409 if test "x${WIN32}" != "x"; then
6410 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
6411 #if test "x${AVIFIL32}" != "x"; then
6412 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
6414 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
6415 AVIFIL32=true
6420 # ------------------------------------------------------------------
6422 if test "x${UNCOMPRESS}" = "xgzip"; then
6424 $as_echo "#define USE_GZIP 1" >>confdefs.h
6429 # ------------------------------------------------------------------
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python.h" >&5
6433 $as_echo_n "checking for Python.h... " >&6; }
6435 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
6436 PY_VERSION=unknown
6437 else
6438 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
6439 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
6441 # iterate through version 2.2 to 2.6
6442 for v in 2 3 4 5 6; do
6443 # Linux
6444 if test -f "/usr/include/python2.$v/Python.h";then
6445 PY_VERSION=2.$v
6446 PYTHON_LIB="-lpython$PY_VERSION"
6447 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
6448 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
6449 HAVE_PYTHON_IMAGING_LIB=1
6450 else
6451 PYTHON_LIB2="$PYTHON_LIB"
6453 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
6454 # Mac OS X
6455 elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
6456 PY_VERSION=2.$v
6457 PYTHON_LIB="-framework Python"
6458 if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
6459 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
6460 HAVE_PYTHON_IMAGING_LIB=1
6461 else
6462 PYTHON_LIB2="$PYTHON_LIB"
6464 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
6465 # Mac OS X [Fink]:
6466 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
6467 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
6468 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
6469 ")" \
6470 -a -f "/sw/include/python2.$v/Python.h"; then
6471 PY_VERSION=2.$v
6472 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
6473 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
6474 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
6475 HAVE_PYTHON_IMAGING_LIB=1
6476 else
6477 PYTHON_LIB2="$PYTHON_LIB"
6479 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
6481 done
6484 if test "x$PY_VERSION" "!=" "x"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_VERSION" >&5
6486 $as_echo "$PY_VERSION" >&6; }
6487 export PYTHON_INCLUDES PYTHON_LIB
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the python test program" >&5
6491 $as_echo_n "checking whether we can compile the python test program... " >&6; }
6493 cat > conftest.c << EOF
6494 #include <Python.h>
6496 int main()
6498 int ret;
6499 ret = Py_Main(0, 0);
6500 int x; // check also for gcc 2.95.x incompatibilities
6501 return ret;
6505 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
6506 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6508 $as_echo "yes" >&6; }
6509 PYTHON_OK=yes
6510 else
6511 echo "configure: failed program was:" >&5
6512 cat conftest.c >&5
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6516 rm -f conftest*
6517 if test "x$PYTHON_OK" = "xyes";then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python-Imaging" >&5
6519 $as_echo_n "checking for Python-Imaging... " >&6; }
6520 cat > conftest.c << EOF
6521 #include <Python.h>
6522 #include <Imaging.h>
6524 int main()
6526 Py_Main(0, 0);
6527 return 0;
6530 if test "$HAVE_PYTHON_IMAGING_LIB"; then
6531 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
6532 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6533 PYTHON_LIB="${PYTHON_LIB2}"
6535 $as_echo "#define HAVE_PYTHON_IMAGING 1" >>confdefs.h
6537 HAVE_PYTHON_IMAGING=yes
6538 export HAVE_PYTHON_IMAGING
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6541 $as_echo "yes" >&6; }
6542 else
6543 echo "configure: failed program was:" >&5
6544 cat conftest.c >&5
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6548 else
6549 echo "(didn't find the Python-Imaging libraries)" >&5
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6554 rm -f conftest*
6555 else
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nope" >&5
6557 $as_echo "nope" >&6; }
6561 if test "x$PYTHON_OK" '!=' "xyes";then
6562 echo all install uninstall clean: > lib/python/Makefile
6563 # fail silently- the most users won't have any need for the
6564 # python interface anyway
6565 else
6566 pythongfx="lib/python/Makefile"
6569 # ------------------------------------------------------------------
6572 # Extract the first word of "ruby", so it can be a program name with args.
6573 set dummy ruby; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if test "${ac_cv_path_RUBY+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 case $RUBY in
6580 [\\/]* | ?:[\\/]*)
6581 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6595 done
6596 done
6597 IFS=$as_save_IFS
6600 esac
6602 RUBY=$ac_cv_path_RUBY
6603 if test -n "$RUBY"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
6605 $as_echo "$RUBY" >&6; }
6606 else
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6613 RUBY_CPPFLAGS=""
6614 RUBY_LDFLAGS=""
6615 RUBY_LIBS=""
6617 rubylib=ruby18
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's include directory" >&5
6620 $as_echo_n "checking for ruby's include directory... " >&6; }
6621 if test "x$RUBY" '!=' "x";then
6622 rubyinc=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "archdir"))' 2>/dev/null`
6623 if test -d $rubyinc;then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyinc" >&5
6625 $as_echo "$rubyinc" >&6; }
6627 # If we got a sensible archdir, we also ask ruby to supply us with CPPFLAGS
6628 # and LDFLAGS.
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's cpp flags" >&5
6630 $as_echo_n "checking for ruby's cpp flags... " >&6; }
6631 rubycpp=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "CPPFLAGS"))' 2>/dev/null`
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubycpp" >&5
6633 $as_echo "$rubycpp" >&6; }
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's ld flags" >&5
6636 $as_echo_n "checking for ruby's ld flags... " >&6; }
6637 rubyld=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBYARG_SHARED"))' 2>/dev/null`
6638 rubyld2=`$RUBY -e 'require "rbconfig";v=Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBY_LDSHARED"));puts v.gsub(/^g?cc/,"")' 2>/dev/null`
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$rubyld $rubyld2\"" >&5
6640 $as_echo "\"$rubyld $rubyld2\"" >&6; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby library name" >&5
6643 $as_echo_n "checking for ruby library name... " >&6; }
6644 rubylib=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "RUBY_SO_NAME"))' 2>/dev/null`
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubylib" >&5
6646 $as_echo "$rubylib" >&6; }
6648 RUBY_CPPFLAGS="$rubycpp -I$rubyinc $RUBY_CPPFLAGS"
6649 RUBY_LDFLAGS="$rubyld $rubyld2 $RUBY_LDFLAGS"
6650 RUBY_INSTALLDIR="$rubyinc"
6651 else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'unknown'" >&5
6653 $as_echo "'unknown'" >&6; }
6655 else
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'unknown'" >&5
6657 $as_echo "'unknown'" >&6; }
6660 #OLDLDFLAGS="$LDFLAGS"
6661 #LDFLAGS="$LDFLAGS $RUBY_LDFLAGS"
6662 #AC_CHECK_LIB($rubylib, rb_define_method, HAVE_RUBY_LIB=1,)
6663 #LDFLAGS="$OLDLDFLAGS"
6665 OLDCPPFLAGS="$CPPFLAGS"
6666 CPPFLAGS="$CPPFLAGS $RUBY_CPPFLAGS"
6667 for ac_header in ruby.h
6668 do :
6669 ac_fn_c_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
6670 if test "x$ac_cv_header_ruby_h" = x""yes; then :
6671 cat >>confdefs.h <<_ACEOF
6672 #define HAVE_RUBY_H 1
6673 _ACEOF
6674 HAVE_RUBY_H=1
6677 done
6679 CPPFLAGS="$OLDCPPFLAGS"
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should compile the ruby module" >&5
6682 $as_echo_n "checking whether we should compile the ruby module... " >&6; }
6683 if test "x${HAVE_RUBY_H}" '!=' "x";then
6684 #RUBY_LIBS="$RUBY_LIBS -l$rubylib"
6686 cat > conftest.c << EOF
6687 #include <ruby.h>
6688 static VALUE foobar;
6689 VALUE foobar_set_foo(VALUE module, VALUE _key, VALUE _value)
6691 return Qnil;
6693 int Init_foobar()
6695 foobar = rb_define_module("foobar");
6696 rb_define_module_function(foobar, "set_foo", foobar_set_foo, 2);
6697 return 0;
6699 int main() {return 0;}
6701 ac_link='$CC $SHARED $CPPFLAGS $RUBY_CPPFLAGS $CFLAGS conftest.c $LDFLAGS $RUBY_LDFLAGS $LIBS $RUBY_LIBS -o conftest${SLEXT}'
6702 if { (eval echo ruby.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${SLEXT}; then
6703 RUBY_OK=yes
6704 else
6705 echo "configure: failed program was:" >&5
6706 cat conftest.c >&5
6708 rm -f conftest*
6711 if test "x${RUBY_OK}" '=' "xyes"; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6713 $as_echo "yes" >&6; }
6718 else
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6721 RUBY_CPPFLAGS=""
6722 RUBY_LDFLAGS=""
6723 RUBY_LIBS=""
6724 RUBY_INSTALLDIR=""
6728 if test "x$RUBY_OK" '!=' "xyes";then
6729 echo all install uninstall clean: > lib/ruby/Makefile
6730 # fail silently- the most users won't have any need for the
6731 # ruby interface anyway
6732 else
6733 if test -f "lib/ruby/Makefile.in";then
6734 rubygfx="lib/ruby/Makefile"
6738 # ------------------------------------------------------------------
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing libraries" >&5
6741 $as_echo_n "checking for missing libraries... " >&6; }
6743 if test "x$ZLIBMISSING" = "xtrue";then
6744 MISSINGLIBS="${MISSINGLIBS} zlib"
6745 DISABLEPNG2SWF=true
6746 PARTIAL=true
6748 if test "x$JPEGLIBMISSING" = "xtrue";then
6749 MISSINGLIBS="${MISSINGLIBS} jpeglib"
6750 DISABLEPDF2SWF=true
6751 DISABLEJPEG2SWF=true
6752 PARTIAL=true
6754 if test "x$PDFLIBMISSING" = "xtrue";then
6755 DISABLEPDF2PDF=true;
6757 #if test "x$T1LIBMISSING" = "xtrue";then
6758 # MISSINGLIBS="${MISSINGLIBS} t1lib"
6760 if test "x$UNGIFMISSING" = "xtrue";then
6761 DISABLEGIF2SWF=true
6762 MISSINGLIBS="${MISSINGLIBS} ungif"
6763 PARTIAL=true
6766 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
6767 DISABLEPDF2PDF=true;
6769 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
6770 DISABLEPDF2SWF=true;
6771 DISABLEJPEG2SWF=true;
6772 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
6773 PARTIAL=true
6775 if test "x$HAVE_FREETYPE" '!=' "x1"; then
6776 DISABLEPDF2SWF=true;
6777 MISSINGLIBS="${MISSINGLIBS} freetype"
6778 PARTIAL=true
6780 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
6781 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
6783 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
6784 DISABLEGIF2SWF=true
6785 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
6786 PARTIAL=true
6788 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
6789 DISABLEPNG2SWF=true;
6790 MISSINGLIBS="${MISSINGLIBS} zlib.h"
6791 PARTIAL=true
6793 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
6794 # MISSINGLIBS="${MISSINGLIBS} avifile"
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MISSINGLIBS}" >&5
6798 $as_echo "${MISSINGLIBS}" >&6; }
6800 # ------------------------------------------------------------------
6802 if test "x${MISSINGLIBS}" '!=' "x"; then
6803 echo "***************************************************"
6804 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
6807 avi2swf="avi2swf/Makefile"
6808 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
6809 #don't whine, avi2swf is outdated anyway
6810 #echo "* Disabling avi2swf tool..."
6811 echo all install uninstall clean: > avi2swf/Makefile
6812 avi2swf=
6815 pdf2swf_makefile="lib/pdf/Makefile"
6816 PDF2SWF='pdf2swf$(E)'
6817 LIBPDF='libpdf$(A)'
6819 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
6820 echo "* Disabling pdf2swf tool..."
6821 rm -f lib/pdf/Makefile
6822 echo all install uninstall clean libpdf libgfxpdf: > lib/pdf/Makefile
6823 pdf2swf_makefile=""
6824 PDF2SWF=
6825 LIBPDF=
6830 PDF2PDF='pdf2pdf$(E)'
6831 DEVICE_PDF='devices/pdf.$(O)'
6832 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
6833 #echo "* Disabling pdf2pdf tool..."
6834 PDF2PDF=
6835 DEVICE_PDF=
6840 if test "x${ZLIBMISSING}" = "xtrue"; then
6841 echo
6842 echo "* Warning! Without zlib, you will not be able to read"
6843 echo "* or write compressed Flash MX files!"
6846 JPEG2SWF='jpeg2swf$(E)'
6847 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
6848 echo "* Disabling jpeg2swf tool..."
6849 JPEG2SWF=
6851 export JPEG2SWF
6854 GIF2SWF='gif2swf$(E)'
6855 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
6856 echo "* Disabling gif2swf tool..."
6857 GIF2SWF=
6859 export GIF2SWF
6862 PNG2SWF='png2swf$(E)'
6863 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
6864 echo "* Disabling png2swf tool..."
6865 PNG2SWF=
6867 export PNG2SWF
6870 if test "x${MISSINGLIBS}" '!=' "x"; then
6871 if test "x${PARTIAL}" '=' "x"; then
6872 echo "* (never mind)"
6874 echo "***************************************************"
6877 # ------------------------------------------------------------------
6883 if test -f "release.in"; then release_in="./release"; fi
6884 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
6885 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"
6886 ac_config_files="$ac_config_files ${FILES}"
6888 cat >confcache <<\_ACEOF
6889 # This file is a shell script that caches the results of configure
6890 # tests run on this system so they can be shared between configure
6891 # scripts and configure runs, see configure's option --config-cache.
6892 # It is not useful on other systems. If it contains results you don't
6893 # want to keep, you may remove or edit it.
6895 # config.status only pays attention to the cache file if you give it
6896 # the --recheck option to rerun configure.
6898 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6899 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6900 # following values.
6902 _ACEOF
6904 # The following way of writing the cache mishandles newlines in values,
6905 # but we know of no workaround that is simple, portable, and efficient.
6906 # So, we kill variables containing newlines.
6907 # Ultrix sh set writes to stderr and can't be redirected directly,
6908 # and sets the high bit in the cache file unless we assign to the vars.
6910 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6911 eval ac_val=\$$ac_var
6912 case $ac_val in #(
6913 *${as_nl}*)
6914 case $ac_var in #(
6915 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6916 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6917 esac
6918 case $ac_var in #(
6919 _ | IFS | as_nl) ;; #(
6920 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6921 *) { eval $ac_var=; unset $ac_var;} ;;
6922 esac ;;
6923 esac
6924 done
6926 (set) 2>&1 |
6927 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6928 *${as_nl}ac_space=\ *)
6929 # `set' does not quote correctly, so add quotes: double-quote
6930 # substitution turns \\\\ into \\, and sed turns \\ into \.
6931 sed -n \
6932 "s/'/'\\\\''/g;
6933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6934 ;; #(
6936 # `set' quotes correctly as required by POSIX, so do not add quotes.
6937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6939 esac |
6940 sort
6942 sed '
6943 /^ac_cv_env_/b end
6944 t clear
6945 :clear
6946 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6947 t end
6948 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6949 :end' >>confcache
6950 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6951 if test -w "$cache_file"; then
6952 test "x$cache_file" != "x/dev/null" &&
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6954 $as_echo "$as_me: updating cache $cache_file" >&6;}
6955 cat confcache >$cache_file
6956 else
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6958 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6961 rm -f confcache
6963 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6964 # Let make expand exec_prefix.
6965 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6967 DEFS=-DHAVE_CONFIG_H
6969 ac_libobjs=
6970 ac_ltlibobjs=
6971 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6972 # 1. Remove the extension, and $U if already installed.
6973 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6974 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6975 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6976 # will be set to the directory where LIBOBJS objects are built.
6977 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6978 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6979 done
6980 LIBOBJS=$ac_libobjs
6982 LTLIBOBJS=$ac_ltlibobjs
6986 : ${CONFIG_STATUS=./config.status}
6987 ac_write_fail=0
6988 ac_clean_files_save=$ac_clean_files
6989 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6991 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6992 as_write_fail=0
6993 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6994 #! $SHELL
6995 # Generated by $as_me.
6996 # Run this file to recreate the current configuration.
6997 # Compiler output produced by configure, useful for debugging
6998 # configure, is in config.log if it exists.
7000 debug=false
7001 ac_cs_recheck=false
7002 ac_cs_silent=false
7004 SHELL=\${CONFIG_SHELL-$SHELL}
7005 export SHELL
7006 _ASEOF
7007 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7008 ## -------------------- ##
7009 ## M4sh Initialization. ##
7010 ## -------------------- ##
7012 # Be more Bourne compatible
7013 DUALCASE=1; export DUALCASE # for MKS sh
7014 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7015 emulate sh
7016 NULLCMD=:
7017 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7018 # is contrary to our usage. Disable this feature.
7019 alias -g '${1+"$@"}'='"$@"'
7020 setopt NO_GLOB_SUBST
7021 else
7022 case `(set -o) 2>/dev/null` in #(
7023 *posix*) :
7024 set -o posix ;; #(
7025 *) :
7027 esac
7031 as_nl='
7033 export as_nl
7034 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7035 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7036 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7037 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7038 # Prefer a ksh shell builtin over an external printf program on Solaris,
7039 # but without wasting forks for bash or zsh.
7040 if test -z "$BASH_VERSION$ZSH_VERSION" \
7041 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7042 as_echo='print -r --'
7043 as_echo_n='print -rn --'
7044 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7045 as_echo='printf %s\n'
7046 as_echo_n='printf %s'
7047 else
7048 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7049 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7050 as_echo_n='/usr/ucb/echo -n'
7051 else
7052 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7053 as_echo_n_body='eval
7054 arg=$1;
7055 case $arg in #(
7056 *"$as_nl"*)
7057 expr "X$arg" : "X\\(.*\\)$as_nl";
7058 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7059 esac;
7060 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7062 export as_echo_n_body
7063 as_echo_n='sh -c $as_echo_n_body as_echo'
7065 export as_echo_body
7066 as_echo='sh -c $as_echo_body as_echo'
7069 # The user is always right.
7070 if test "${PATH_SEPARATOR+set}" != set; then
7071 PATH_SEPARATOR=:
7072 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7073 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7074 PATH_SEPARATOR=';'
7079 # IFS
7080 # We need space, tab and new line, in precisely that order. Quoting is
7081 # there to prevent editors from complaining about space-tab.
7082 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7083 # splitting by setting IFS to empty value.)
7084 IFS=" "" $as_nl"
7086 # Find who we are. Look in the path if we contain no directory separator.
7087 case $0 in #((
7088 *[\\/]* ) as_myself=$0 ;;
7089 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7095 done
7096 IFS=$as_save_IFS
7099 esac
7100 # We did not find ourselves, most probably we were run as `sh COMMAND'
7101 # in which case we are not to be found in the path.
7102 if test "x$as_myself" = x; then
7103 as_myself=$0
7105 if test ! -f "$as_myself"; then
7106 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7107 exit 1
7110 # Unset variables that we do not need and which cause bugs (e.g. in
7111 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7112 # suppresses any "Segmentation fault" message there. '((' could
7113 # trigger a bug in pdksh 5.2.14.
7114 for as_var in BASH_ENV ENV MAIL MAILPATH
7115 do eval test x\${$as_var+set} = xset \
7116 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7117 done
7118 PS1='$ '
7119 PS2='> '
7120 PS4='+ '
7122 # NLS nuisances.
7123 LC_ALL=C
7124 export LC_ALL
7125 LANGUAGE=C
7126 export LANGUAGE
7128 # CDPATH.
7129 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7132 # as_fn_error ERROR [LINENO LOG_FD]
7133 # ---------------------------------
7134 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7135 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7136 # script with status $?, using 1 if that was 0.
7137 as_fn_error ()
7139 as_status=$?; test $as_status -eq 0 && as_status=1
7140 if test "$3"; then
7141 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7142 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7144 $as_echo "$as_me: error: $1" >&2
7145 as_fn_exit $as_status
7146 } # as_fn_error
7149 # as_fn_set_status STATUS
7150 # -----------------------
7151 # Set $? to STATUS, without forking.
7152 as_fn_set_status ()
7154 return $1
7155 } # as_fn_set_status
7157 # as_fn_exit STATUS
7158 # -----------------
7159 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7160 as_fn_exit ()
7162 set +e
7163 as_fn_set_status $1
7164 exit $1
7165 } # as_fn_exit
7167 # as_fn_unset VAR
7168 # ---------------
7169 # Portably unset VAR.
7170 as_fn_unset ()
7172 { eval $1=; unset $1;}
7174 as_unset=as_fn_unset
7175 # as_fn_append VAR VALUE
7176 # ----------------------
7177 # Append the text in VALUE to the end of the definition contained in VAR. Take
7178 # advantage of any shell optimizations that allow amortized linear growth over
7179 # repeated appends, instead of the typical quadratic growth present in naive
7180 # implementations.
7181 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7182 eval 'as_fn_append ()
7184 eval $1+=\$2
7186 else
7187 as_fn_append ()
7189 eval $1=\$$1\$2
7191 fi # as_fn_append
7193 # as_fn_arith ARG...
7194 # ------------------
7195 # Perform arithmetic evaluation on the ARGs, and store the result in the
7196 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7197 # must be portable across $(()) and expr.
7198 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7199 eval 'as_fn_arith ()
7201 as_val=$(( $* ))
7203 else
7204 as_fn_arith ()
7206 as_val=`expr "$@" || test $? -eq 1`
7208 fi # as_fn_arith
7211 if expr a : '\(a\)' >/dev/null 2>&1 &&
7212 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7213 as_expr=expr
7214 else
7215 as_expr=false
7218 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7219 as_basename=basename
7220 else
7221 as_basename=false
7224 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7225 as_dirname=dirname
7226 else
7227 as_dirname=false
7230 as_me=`$as_basename -- "$0" ||
7231 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7232 X"$0" : 'X\(//\)$' \| \
7233 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7234 $as_echo X/"$0" |
7235 sed '/^.*\/\([^/][^/]*\)\/*$/{
7236 s//\1/
7239 /^X\/\(\/\/\)$/{
7240 s//\1/
7243 /^X\/\(\/\).*/{
7244 s//\1/
7247 s/.*/./; q'`
7249 # Avoid depending upon Character Ranges.
7250 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7251 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7252 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7253 as_cr_digits='0123456789'
7254 as_cr_alnum=$as_cr_Letters$as_cr_digits
7256 ECHO_C= ECHO_N= ECHO_T=
7257 case `echo -n x` in #(((((
7258 -n*)
7259 case `echo 'xy\c'` in
7260 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7261 xy) ECHO_C='\c';;
7262 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7263 ECHO_T=' ';;
7264 esac;;
7266 ECHO_N='-n';;
7267 esac
7269 rm -f conf$$ conf$$.exe conf$$.file
7270 if test -d conf$$.dir; then
7271 rm -f conf$$.dir/conf$$.file
7272 else
7273 rm -f conf$$.dir
7274 mkdir conf$$.dir 2>/dev/null
7276 if (echo >conf$$.file) 2>/dev/null; then
7277 if ln -s conf$$.file conf$$ 2>/dev/null; then
7278 as_ln_s='ln -s'
7279 # ... but there are two gotchas:
7280 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7281 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7282 # In both cases, we have to default to `cp -p'.
7283 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7284 as_ln_s='cp -p'
7285 elif ln conf$$.file conf$$ 2>/dev/null; then
7286 as_ln_s=ln
7287 else
7288 as_ln_s='cp -p'
7290 else
7291 as_ln_s='cp -p'
7293 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7294 rmdir conf$$.dir 2>/dev/null
7297 # as_fn_mkdir_p
7298 # -------------
7299 # Create "$as_dir" as a directory, including parents if necessary.
7300 as_fn_mkdir_p ()
7303 case $as_dir in #(
7304 -*) as_dir=./$as_dir;;
7305 esac
7306 test -d "$as_dir" || eval $as_mkdir_p || {
7307 as_dirs=
7308 while :; do
7309 case $as_dir in #(
7310 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7311 *) as_qdir=$as_dir;;
7312 esac
7313 as_dirs="'$as_qdir' $as_dirs"
7314 as_dir=`$as_dirname -- "$as_dir" ||
7315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7316 X"$as_dir" : 'X\(//\)[^/]' \| \
7317 X"$as_dir" : 'X\(//\)$' \| \
7318 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7319 $as_echo X"$as_dir" |
7320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7321 s//\1/
7324 /^X\(\/\/\)[^/].*/{
7325 s//\1/
7328 /^X\(\/\/\)$/{
7329 s//\1/
7332 /^X\(\/\).*/{
7333 s//\1/
7336 s/.*/./; q'`
7337 test -d "$as_dir" && break
7338 done
7339 test -z "$as_dirs" || eval "mkdir $as_dirs"
7340 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7343 } # as_fn_mkdir_p
7344 if mkdir -p . 2>/dev/null; then
7345 as_mkdir_p='mkdir -p "$as_dir"'
7346 else
7347 test -d ./-p && rmdir ./-p
7348 as_mkdir_p=false
7351 if test -x / >/dev/null 2>&1; then
7352 as_test_x='test -x'
7353 else
7354 if ls -dL / >/dev/null 2>&1; then
7355 as_ls_L_option=L
7356 else
7357 as_ls_L_option=
7359 as_test_x='
7360 eval sh -c '\''
7361 if test -d "$1"; then
7362 test -d "$1/.";
7363 else
7364 case $1 in #(
7365 -*)set "./$1";;
7366 esac;
7367 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7368 ???[sx]*):;;*)false;;esac;fi
7369 '\'' sh
7372 as_executable_p=$as_test_x
7374 # Sed expression to map a string onto a valid CPP name.
7375 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7377 # Sed expression to map a string onto a valid variable name.
7378 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7381 exec 6>&1
7382 ## ----------------------------------- ##
7383 ## Main body of $CONFIG_STATUS script. ##
7384 ## ----------------------------------- ##
7385 _ASEOF
7386 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7389 # Save the log message, to keep $0 and so on meaningful, and to
7390 # report actual input values of CONFIG_FILES etc. instead of their
7391 # values after options handling.
7392 ac_log="
7393 This file was extended by $as_me, which was
7394 generated by GNU Autoconf 2.65. Invocation command line was
7396 CONFIG_FILES = $CONFIG_FILES
7397 CONFIG_HEADERS = $CONFIG_HEADERS
7398 CONFIG_LINKS = $CONFIG_LINKS
7399 CONFIG_COMMANDS = $CONFIG_COMMANDS
7400 $ $0 $@
7402 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7405 _ACEOF
7407 case $ac_config_files in *"
7408 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7409 esac
7411 case $ac_config_headers in *"
7412 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7413 esac
7416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7417 # Files that config.status was made for.
7418 config_files="$ac_config_files"
7419 config_headers="$ac_config_headers"
7421 _ACEOF
7423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7424 ac_cs_usage="\
7425 \`$as_me' instantiates files and other configuration actions
7426 from templates according to the current configuration. Unless the files
7427 and actions are specified as TAGs, all are instantiated by default.
7429 Usage: $0 [OPTION]... [TAG]...
7431 -h, --help print this help, then exit
7432 -V, --version print version number and configuration settings, then exit
7433 --config print configuration, then exit
7434 -q, --quiet, --silent
7435 do not print progress messages
7436 -d, --debug don't remove temporary files
7437 --recheck update $as_me by reconfiguring in the same conditions
7438 --file=FILE[:TEMPLATE]
7439 instantiate the configuration file FILE
7440 --header=FILE[:TEMPLATE]
7441 instantiate the configuration header FILE
7443 Configuration files:
7444 $config_files
7446 Configuration headers:
7447 $config_headers
7449 Report bugs to the package provider."
7451 _ACEOF
7452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7453 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7454 ac_cs_version="\\
7455 config.status
7456 configured by $0, generated by GNU Autoconf 2.65,
7457 with options \\"\$ac_cs_config\\"
7459 Copyright (C) 2009 Free Software Foundation, Inc.
7460 This config.status script is free software; the Free Software Foundation
7461 gives unlimited permission to copy, distribute and modify it."
7463 ac_pwd='$ac_pwd'
7464 srcdir='$srcdir'
7465 INSTALL='$INSTALL'
7466 test -n "\$AWK" || AWK=awk
7467 _ACEOF
7469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7470 # The default lists apply if the user does not specify any file.
7471 ac_need_defaults=:
7472 while test $# != 0
7474 case $1 in
7475 --*=*)
7476 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7477 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7478 ac_shift=:
7481 ac_option=$1
7482 ac_optarg=$2
7483 ac_shift=shift
7485 esac
7487 case $ac_option in
7488 # Handling of the options.
7489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7490 ac_cs_recheck=: ;;
7491 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7492 $as_echo "$ac_cs_version"; exit ;;
7493 --config | --confi | --conf | --con | --co | --c )
7494 $as_echo "$ac_cs_config"; exit ;;
7495 --debug | --debu | --deb | --de | --d | -d )
7496 debug=: ;;
7497 --file | --fil | --fi | --f )
7498 $ac_shift
7499 case $ac_optarg in
7500 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7501 esac
7502 as_fn_append CONFIG_FILES " '$ac_optarg'"
7503 ac_need_defaults=false;;
7504 --header | --heade | --head | --hea )
7505 $ac_shift
7506 case $ac_optarg in
7507 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7508 esac
7509 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7510 ac_need_defaults=false;;
7511 --he | --h)
7512 # Conflict between --help and --header
7513 as_fn_error "ambiguous option: \`$1'
7514 Try \`$0 --help' for more information.";;
7515 --help | --hel | -h )
7516 $as_echo "$ac_cs_usage"; exit ;;
7517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7518 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7519 ac_cs_silent=: ;;
7521 # This is an error.
7522 -*) as_fn_error "unrecognized option: \`$1'
7523 Try \`$0 --help' for more information." ;;
7525 *) as_fn_append ac_config_targets " $1"
7526 ac_need_defaults=false ;;
7528 esac
7529 shift
7530 done
7532 ac_configure_extra_args=
7534 if $ac_cs_silent; then
7535 exec 6>/dev/null
7536 ac_configure_extra_args="$ac_configure_extra_args --silent"
7539 _ACEOF
7540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7541 if \$ac_cs_recheck; then
7542 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7543 shift
7544 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7545 CONFIG_SHELL='$SHELL'
7546 export CONFIG_SHELL
7547 exec "\$@"
7550 _ACEOF
7551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7552 exec 5>>config.log
7554 echo
7555 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7556 ## Running $as_me. ##
7557 _ASBOX
7558 $as_echo "$ac_log"
7559 } >&5
7561 _ACEOF
7562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7563 _ACEOF
7565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7567 # Handling of arguments.
7568 for ac_config_target in $ac_config_targets
7570 case $ac_config_target in
7571 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7572 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
7574 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7575 esac
7576 done
7579 # If the user did not use the arguments to specify the items to instantiate,
7580 # then the envvar interface is used. Set only those that are not.
7581 # We use the long form for the default assignment because of an extremely
7582 # bizarre bug on SunOS 4.1.3.
7583 if $ac_need_defaults; then
7584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7588 # Have a temporary directory for convenience. Make it in the build tree
7589 # simply because there is no reason against having it here, and in addition,
7590 # creating and moving files from /tmp can sometimes cause problems.
7591 # Hook for its removal unless debugging.
7592 # Note that there is a small window in which the directory will not be cleaned:
7593 # after its creation but before its name has been assigned to `$tmp'.
7594 $debug ||
7596 tmp=
7597 trap 'exit_status=$?
7598 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7600 trap 'as_fn_exit 1' 1 2 13 15
7602 # Create a (secure) tmp directory for tmp files.
7605 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7606 test -n "$tmp" && test -d "$tmp"
7607 } ||
7609 tmp=./conf$$-$RANDOM
7610 (umask 077 && mkdir "$tmp")
7611 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7613 # Set up the scripts for CONFIG_FILES section.
7614 # No need to generate them if there are no CONFIG_FILES.
7615 # This happens for instance with `./config.status config.h'.
7616 if test -n "$CONFIG_FILES"; then
7619 ac_cr=`echo X | tr X '\015'`
7620 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7621 # But we know of no other shell where ac_cr would be empty at this
7622 # point, so we can use a bashism as a fallback.
7623 if test "x$ac_cr" = x; then
7624 eval ac_cr=\$\'\\r\'
7626 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7627 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7628 ac_cs_awk_cr='\r'
7629 else
7630 ac_cs_awk_cr=$ac_cr
7633 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7634 _ACEOF
7638 echo "cat >conf$$subs.awk <<_ACEOF" &&
7639 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7640 echo "_ACEOF"
7641 } >conf$$subs.sh ||
7642 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7643 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7644 ac_delim='%!_!# '
7645 for ac_last_try in false false false false false :; do
7646 . ./conf$$subs.sh ||
7647 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7649 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7650 if test $ac_delim_n = $ac_delim_num; then
7651 break
7652 elif $ac_last_try; then
7653 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7654 else
7655 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7657 done
7658 rm -f conf$$subs.sh
7660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7661 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7662 _ACEOF
7663 sed -n '
7665 s/^/S["/; s/!.*/"]=/
7668 s/^[^!]*!//
7669 :repl
7670 t repl
7671 s/'"$ac_delim"'$//
7672 t delim
7675 s/\(.\{148\}\)..*/\1/
7676 t more1
7677 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7680 b repl
7681 :more1
7682 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7685 s/.\{148\}//
7686 t nl
7687 :delim
7689 s/\(.\{148\}\)..*/\1/
7690 t more2
7691 s/["\\]/\\&/g; s/^/"/; s/$/"/
7694 :more2
7695 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7698 s/.\{148\}//
7699 t delim
7700 ' <conf$$subs.awk | sed '
7701 /^[^""]/{
7703 s/\n//
7705 ' >>$CONFIG_STATUS || ac_write_fail=1
7706 rm -f conf$$subs.awk
7707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7708 _ACAWK
7709 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7710 for (key in S) S_is_set[key] = 1
7711 FS = "\a"
7715 line = $ 0
7716 nfields = split(line, field, "@")
7717 substed = 0
7718 len = length(field[1])
7719 for (i = 2; i < nfields; i++) {
7720 key = field[i]
7721 keylen = length(key)
7722 if (S_is_set[key]) {
7723 value = S[key]
7724 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7725 len += length(value) + length(field[++i])
7726 substed = 1
7727 } else
7728 len += 1 + keylen
7731 print line
7734 _ACAWK
7735 _ACEOF
7736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7737 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7738 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7739 else
7741 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7742 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7743 _ACEOF
7745 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7746 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7747 # trailing colons and then remove the whole line if VPATH becomes empty
7748 # (actually we leave an empty line to preserve line numbers).
7749 if test "x$srcdir" = x.; then
7750 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7751 s/:*\$(srcdir):*/:/
7752 s/:*\${srcdir}:*/:/
7753 s/:*@srcdir@:*/:/
7754 s/^\([^=]*=[ ]*\):*/\1/
7755 s/:*$//
7756 s/^[^=]*=[ ]*$//
7760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7761 fi # test -n "$CONFIG_FILES"
7763 # Set up the scripts for CONFIG_HEADERS section.
7764 # No need to generate them if there are no CONFIG_HEADERS.
7765 # This happens for instance with `./config.status Makefile'.
7766 if test -n "$CONFIG_HEADERS"; then
7767 cat >"$tmp/defines.awk" <<\_ACAWK ||
7768 BEGIN {
7769 _ACEOF
7771 # Transform confdefs.h into an awk script `defines.awk', embedded as
7772 # here-document in config.status, that substitutes the proper values into
7773 # config.h.in to produce config.h.
7775 # Create a delimiter string that does not exist in confdefs.h, to ease
7776 # handling of long lines.
7777 ac_delim='%!_!# '
7778 for ac_last_try in false false :; do
7779 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7780 if test -z "$ac_t"; then
7781 break
7782 elif $ac_last_try; then
7783 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7784 else
7785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7787 done
7789 # For the awk script, D is an array of macro values keyed by name,
7790 # likewise P contains macro parameters if any. Preserve backslash
7791 # newline sequences.
7793 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7794 sed -n '
7795 s/.\{148\}/&'"$ac_delim"'/g
7796 t rset
7797 :rset
7798 s/^[ ]*#[ ]*define[ ][ ]*/ /
7799 t def
7801 :def
7802 s/\\$//
7803 t bsnl
7804 s/["\\]/\\&/g
7805 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7806 D["\1"]=" \3"/p
7807 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7809 :bsnl
7810 s/["\\]/\\&/g
7811 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7812 D["\1"]=" \3\\\\\\n"\\/p
7813 t cont
7814 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7815 t cont
7817 :cont
7819 s/.\{148\}/&'"$ac_delim"'/g
7820 t clear
7821 :clear
7822 s/\\$//
7823 t bsnlc
7824 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7826 :bsnlc
7827 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7828 b cont
7829 ' <confdefs.h | sed '
7830 s/'"$ac_delim"'/"\\\
7831 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7834 for (key in D) D_is_set[key] = 1
7835 FS = "\a"
7837 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7838 line = \$ 0
7839 split(line, arg, " ")
7840 if (arg[1] == "#") {
7841 defundef = arg[2]
7842 mac1 = arg[3]
7843 } else {
7844 defundef = substr(arg[1], 2)
7845 mac1 = arg[2]
7847 split(mac1, mac2, "(") #)
7848 macro = mac2[1]
7849 prefix = substr(line, 1, index(line, defundef) - 1)
7850 if (D_is_set[macro]) {
7851 # Preserve the white space surrounding the "#".
7852 print prefix "define", macro P[macro] D[macro]
7853 next
7854 } else {
7855 # Replace #undef with comments. This is necessary, for example,
7856 # in the case of _POSIX_SOURCE, which is predefined and required
7857 # on some systems where configure will not decide to define it.
7858 if (defundef == "undef") {
7859 print "/*", prefix defundef, macro, "*/"
7860 next
7864 { print }
7865 _ACAWK
7866 _ACEOF
7867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7868 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7869 fi # test -n "$CONFIG_HEADERS"
7872 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7873 shift
7874 for ac_tag
7876 case $ac_tag in
7877 :[FHLC]) ac_mode=$ac_tag; continue;;
7878 esac
7879 case $ac_mode$ac_tag in
7880 :[FHL]*:*);;
7881 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7882 :[FH]-) ac_tag=-:-;;
7883 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7884 esac
7885 ac_save_IFS=$IFS
7886 IFS=:
7887 set x $ac_tag
7888 IFS=$ac_save_IFS
7889 shift
7890 ac_file=$1
7891 shift
7893 case $ac_mode in
7894 :L) ac_source=$1;;
7895 :[FH])
7896 ac_file_inputs=
7897 for ac_f
7899 case $ac_f in
7900 -) ac_f="$tmp/stdin";;
7901 *) # Look for the file first in the build tree, then in the source tree
7902 # (if the path is not absolute). The absolute path cannot be DOS-style,
7903 # because $ac_f cannot contain `:'.
7904 test -f "$ac_f" ||
7905 case $ac_f in
7906 [\\/$]*) false;;
7907 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7908 esac ||
7909 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7910 esac
7911 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7912 as_fn_append ac_file_inputs " '$ac_f'"
7913 done
7915 # Let's still pretend it is `configure' which instantiates (i.e., don't
7916 # use $as_me), people would be surprised to read:
7917 # /* config.h. Generated by config.status. */
7918 configure_input='Generated from '`
7919 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7920 `' by configure.'
7921 if test x"$ac_file" != x-; then
7922 configure_input="$ac_file. $configure_input"
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7924 $as_echo "$as_me: creating $ac_file" >&6;}
7926 # Neutralize special characters interpreted by sed in replacement strings.
7927 case $configure_input in #(
7928 *\&* | *\|* | *\\* )
7929 ac_sed_conf_input=`$as_echo "$configure_input" |
7930 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7931 *) ac_sed_conf_input=$configure_input;;
7932 esac
7934 case $ac_tag in
7935 *:-:* | *:-) cat >"$tmp/stdin" \
7936 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7937 esac
7939 esac
7941 ac_dir=`$as_dirname -- "$ac_file" ||
7942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7943 X"$ac_file" : 'X\(//\)[^/]' \| \
7944 X"$ac_file" : 'X\(//\)$' \| \
7945 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7946 $as_echo X"$ac_file" |
7947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7948 s//\1/
7951 /^X\(\/\/\)[^/].*/{
7952 s//\1/
7955 /^X\(\/\/\)$/{
7956 s//\1/
7959 /^X\(\/\).*/{
7960 s//\1/
7963 s/.*/./; q'`
7964 as_dir="$ac_dir"; as_fn_mkdir_p
7965 ac_builddir=.
7967 case "$ac_dir" in
7968 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7970 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7971 # A ".." for each directory in $ac_dir_suffix.
7972 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7973 case $ac_top_builddir_sub in
7974 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7975 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7976 esac ;;
7977 esac
7978 ac_abs_top_builddir=$ac_pwd
7979 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7980 # for backward compatibility:
7981 ac_top_builddir=$ac_top_build_prefix
7983 case $srcdir in
7984 .) # We are building in place.
7985 ac_srcdir=.
7986 ac_top_srcdir=$ac_top_builddir_sub
7987 ac_abs_top_srcdir=$ac_pwd ;;
7988 [\\/]* | ?:[\\/]* ) # Absolute name.
7989 ac_srcdir=$srcdir$ac_dir_suffix;
7990 ac_top_srcdir=$srcdir
7991 ac_abs_top_srcdir=$srcdir ;;
7992 *) # Relative name.
7993 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7994 ac_top_srcdir=$ac_top_build_prefix$srcdir
7995 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7996 esac
7997 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8000 case $ac_mode in
8003 # CONFIG_FILE
8006 case $INSTALL in
8007 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8008 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8009 esac
8010 _ACEOF
8012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8013 # If the template does not know about datarootdir, expand it.
8014 # FIXME: This hack should be removed a few years after 2.60.
8015 ac_datarootdir_hack=; ac_datarootdir_seen=
8016 ac_sed_dataroot='
8017 /datarootdir/ {
8021 /@datadir@/p
8022 /@docdir@/p
8023 /@infodir@/p
8024 /@localedir@/p
8025 /@mandir@/p'
8026 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8027 *datarootdir*) ac_datarootdir_seen=yes;;
8028 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8030 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8031 _ACEOF
8032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8033 ac_datarootdir_hack='
8034 s&@datadir@&$datadir&g
8035 s&@docdir@&$docdir&g
8036 s&@infodir@&$infodir&g
8037 s&@localedir@&$localedir&g
8038 s&@mandir@&$mandir&g
8039 s&\\\${datarootdir}&$datarootdir&g' ;;
8040 esac
8041 _ACEOF
8043 # Neutralize VPATH when `$srcdir' = `.'.
8044 # Shell code in configure.ac might set extrasub.
8045 # FIXME: do we really want to maintain this feature?
8046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8047 ac_sed_extra="$ac_vpsub
8048 $extrasub
8049 _ACEOF
8050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8053 s|@configure_input@|$ac_sed_conf_input|;t t
8054 s&@top_builddir@&$ac_top_builddir_sub&;t t
8055 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8056 s&@srcdir@&$ac_srcdir&;t t
8057 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8058 s&@top_srcdir@&$ac_top_srcdir&;t t
8059 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8060 s&@builddir@&$ac_builddir&;t t
8061 s&@abs_builddir@&$ac_abs_builddir&;t t
8062 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8063 s&@INSTALL@&$ac_INSTALL&;t t
8064 $ac_datarootdir_hack
8066 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8067 || as_fn_error "could not create $ac_file" "$LINENO" 5
8069 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8070 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8071 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8073 which seems to be undefined. Please make sure it is defined." >&5
8074 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8075 which seems to be undefined. Please make sure it is defined." >&2;}
8077 rm -f "$tmp/stdin"
8078 case $ac_file in
8079 -) cat "$tmp/out" && rm -f "$tmp/out";;
8080 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8081 esac \
8082 || as_fn_error "could not create $ac_file" "$LINENO" 5
8086 # CONFIG_HEADER
8088 if test x"$ac_file" != x-; then
8090 $as_echo "/* $configure_input */" \
8091 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8092 } >"$tmp/config.h" \
8093 || as_fn_error "could not create $ac_file" "$LINENO" 5
8094 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8096 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8097 else
8098 rm -f "$ac_file"
8099 mv "$tmp/config.h" "$ac_file" \
8100 || as_fn_error "could not create $ac_file" "$LINENO" 5
8102 else
8103 $as_echo "/* $configure_input */" \
8104 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8105 || as_fn_error "could not create -" "$LINENO" 5
8110 esac
8112 done # for ac_tag
8115 as_fn_exit 0
8116 _ACEOF
8117 ac_clean_files=$ac_clean_files_save
8119 test $ac_write_fail = 0 ||
8120 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8123 # configure is writing to config.log, and then calls config.status.
8124 # config.status does its own redirection, appending to config.log.
8125 # Unfortunately, on DOS this fails, as config.log is still kept open
8126 # by configure, so config.status won't be able to write to it; its
8127 # output is simply discarded. So we exec the FD to /dev/null,
8128 # effectively closing config.log, so it can be properly (re)opened and
8129 # appended to by config.status. When coming back to configure, we
8130 # need to make the FD available again.
8131 if test "$no_create" != yes; then
8132 ac_cs_success=:
8133 ac_config_status_args=
8134 test "$silent" = yes &&
8135 ac_config_status_args="$ac_config_status_args --quiet"
8136 exec 5>/dev/null
8137 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8138 exec 5>>config.log
8139 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8140 # would make configure fail if this is the last instruction.
8141 $ac_cs_success || as_fn_exit $?
8143 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8145 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8151 # On development trees, create snapshots of config.status
8153 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
8154 if test "x${MINGW}" = "xyes"; then
8155 echo cp config.status config.status.win32
8156 cp config.status config.status.win32
8157 else
8158 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
8159 echo cp config.status config.status.linux
8160 cp config.status config.status.linux
8162 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
8163 echo cp config.status config.status.debug
8164 cp config.status config.status.debug
8166 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
8167 echo cp config.status config.status.optimize
8168 cp config.status config.status.optimize