2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
244 # Find the correct PATH separator. Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
252 PATH_SEPARATOR=$lt_cv_sys_path_separator
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Remove one level of quotation (which was required for Make).
262 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
267 if test "X$1" = X--no-reexec; then
268 # Discard the --no-reexec flag, and continue.
270 elif test "X$1" = X--fallback-echo; then
271 # Avoid inline document here, it may be left over
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274 # Yippee, $echo works!
277 # Restart under the correct shell.
278 exec $SHELL "$0" --no-reexec ${1+"$@"}
281 if test "X$1" = X--fallback-echo; then
282 # used as fallback echo
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300 echo_test_string="`eval $cmd`" &&
301 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310 test "X$echo_testing_string" = "X$echo_test_string"; then
313 # The Solaris, AIX, and Digital Unix default echo programs unquote
314 # backslashes. This makes it impossible to quote backslashes using
315 # echo "$something" | sed 's/\\/\\\\/g'
317 # So, first we look for a working echo in the user's PATH.
319 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320 for dir in $PATH /usr/ucb; do
321 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
331 if test "X$echo" = Xecho; then
332 # We didn't find a better echo, so look for alternatives.
333 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335 test "X$echo_testing_string" = "X$echo_test_string"; then
336 # This shell has a builtin print -r that does the trick.
338 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339 test "X$CONFIG_SHELL" != X/bin/ksh; then
340 # If we have ksh, try running configure again with it.
341 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342 export ORIGINAL_CONFIG_SHELL
343 CONFIG_SHELL=/bin/ksh
345 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
349 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
354 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360 SHELL="$CONFIG_SHELL"
362 echo="$CONFIG_SHELL $0 --fallback-echo"
363 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364 test "X$echo_testing_string" = 'X\t' &&
365 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366 test "X$echo_testing_string" = "X$echo_test_string"; then
367 echo="$CONFIG_SHELL $0 --fallback-echo"
369 # maybe with a smaller string...
372 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
380 if test "$prev" != 'sed 50q "$0"'; then
381 echo_test_string=`eval $prev`
382 export echo_test_string
383 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385 # Oops. We lost completely, so just stick with echo.
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
419 SHELL=${CONFIG_SHELL-/bin/sh}
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete. It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
426 # Identity of this package.
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
438 # include <sys/types.h>
441 # include <sys/stat.h>
452 # if !STDC_HEADERS && HAVE_MEMORY_H
458 # include <strings.h>
461 # include <inttypes.h>
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AR SLEXT target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H FREETYPE_CONFIG lame_objects AVIFILE_CONFIG USE_GZIP PYTHON_LIB PYTHON_INCLUDES JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
474 # Initialize some variables set by options.
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
486 program_transform_name=s,x,x,
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524 # Accept the important Cygnus configure options, so we can diagnose typos.
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build_alias ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build_alias=$ac_optarg ;;
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543 cache_file=$ac_optarg ;;
546 cache_file=config.cache ;;
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552 datadir=$ac_optarg ;;
554 -disable-* | --disable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 eval "enable_$ac_feature=no" ;;
563 -enable-* | --enable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574 eval "enable_$ac_feature='$ac_optarg'" ;;
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
583 exec_prefix=$ac_optarg ;;
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
589 -help | --help | --hel | --he | -h)
591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592 ac_init_help=recursive ;;
593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594 ac_init_help=short ;;
596 -host | --host | --hos | --ho)
597 ac_prev=host_alias ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host_alias=$ac_optarg ;;
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
606 includedir=$ac_optarg ;;
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
613 -libdir | --libdir | --libdi | --libd)
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir=$ac_optarg ;;
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632 localstatedir=$ac_optarg ;;
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
640 # Obsolete; use --without-fp.
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c | -n)
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658 oldincludedir=$ac_optarg ;;
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670 program_prefix=$ac_optarg ;;
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677 program_suffix=$ac_optarg ;;
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
694 program_transform_name=$ac_optarg ;;
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704 sbindir=$ac_optarg ;;
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715 sharedstatedir=$ac_optarg ;;
717 -site | --site | --sit)
719 -site=* | --site=* | --sit=*)
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732 sysconfdir=$ac_optarg ;;
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target_alias ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target_alias=$ac_optarg ;;
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
742 -version | --version | --versio | --versi | --vers | -V)
746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756 eval "with_$ac_package='$ac_optarg'" ;;
758 -without-* | --without-*)
759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760 # Reject names that are not valid shell variable names.
761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package | sed 's/-/_/g'`
765 eval "with_$ac_package=no" ;;
768 # Obsolete; use --with-x.
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes=$ac_optarg ;;
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries=$ac_optarg ;;
785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795 { (exit 1); exit 1; }; }
796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797 eval "$ac_envvar='$ac_optarg'"
801 # FIXME: should be removed in autoconf 3.0.
802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811 if test -n "$ac_prev"; then
812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
820 eval ac_val=$`echo $ac_var`
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830 localstatedir libdir includedir oldincludedir infodir mandir
832 eval ac_val=$`echo $ac_var`
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849 if test "x$build_alias" = x; then
850 cross_compiling=maybe
851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852 If a cross compiler is detected then cross compile mode will be used." >&2
853 elif test "x$build_alias" != "x$host_alias"; then
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
861 test "$silent" = yes && exec 6>/dev/null
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866 ac_srcdir_defaulted=yes
867 # Try the directory containing this script, then its parent.
868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
881 if test ! -r $srcdir/$ac_unique_file; then
885 ac_srcdir_defaulted=no
887 if test ! -r $srcdir/$ac_unique_file; then
888 if test "$ac_srcdir_defaulted" = yes; then
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890 { (exit 1); exit 1; }; }
892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893 { (exit 1); exit 1; }; }
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898 { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
942 # Report the --help message.
944 if test "$ac_init_help" = "long"; then
945 # Omit some internal or obsolete options to make the list less imposing.
946 # This message is too long to be a string in the A/UX 3.1 sh.
948 \`configure' configures this package to adapt to many kinds of systems.
950 Usage: $0 [OPTION]... [VAR=VALUE]...
952 To assign environment variables (e.g., CC, CFLAGS...), specify them as
953 VAR=VALUE. See below for descriptions of some of the useful variables.
955 Defaults for the options are specified in brackets.
958 -h, --help display this help and exit
959 --help=short display options specific to this package
960 --help=recursive display the short help of all the included packages
961 -V, --version display version information and exit
962 -q, --quiet, --silent do not print \`checking...' messages
963 --cache-file=FILE cache test results in FILE [disabled]
964 -C, --config-cache alias for \`--cache-file=config.cache'
965 -n, --no-create do not create output files
966 --srcdir=DIR find the sources in DIR [configure dir or \`..']
971 Installation directories:
972 --prefix=PREFIX install architecture-independent files in PREFIX
974 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
977 By default, \`make install' will install all the files in
978 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
979 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980 for instance \`--prefix=\$HOME'.
982 For better control, use the options below.
984 Fine tuning of the installation directories:
985 --bindir=DIR user executables [EPREFIX/bin]
986 --sbindir=DIR system admin executables [EPREFIX/sbin]
987 --libexecdir=DIR program executables [EPREFIX/libexec]
988 --datadir=DIR read-only architecture-independent data [PREFIX/share]
989 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
990 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
991 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
992 --libdir=DIR object code libraries [EPREFIX/lib]
993 --includedir=DIR C header files [PREFIX/include]
994 --oldincludedir=DIR C header files for non-gcc [/usr/include]
995 --infodir=DIR info documentation [PREFIX/info]
996 --mandir=DIR man documentation [PREFIX/man]
1002 --program-prefix=PREFIX prepend PREFIX to installed program names
1003 --program-suffix=SUFFIX append SUFFIX to installed program names
1004 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1007 --build=BUILD configure for building on BUILD [guessed]
1008 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1009 --target=TARGET configure for building compilers for TARGET [HOST]
1013 if test -n "$ac_init_help"; then
1018 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1019 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1020 --enable-checkmem turn on ccmalloc debugging
1021 --enable-debug turn on debugging
1022 --enable-warnings turn on compiler warnings
1023 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1024 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1025 --enable-shared=PKGS build shared libraries default=yes
1026 --enable-static=PKGS build static libraries default=yes
1027 --enable-fast-install=PKGS optimize for fast installation default=yes
1028 --disable-libtool-lock avoid locking (might break parallel builds)
1031 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1032 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1033 --with-gnu-ld assume the C compiler uses GNU ld default=no
1034 --with-pic try to use only PIC/non-PIC objects default=use both
1036 Some influential environment variables:
1037 CC C compiler command
1038 CFLAGS C compiler flags
1039 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1040 nonstandard directory <lib dir>
1041 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042 headers in a nonstandard directory <include dir>
1043 CXX C++ compiler command
1044 CXXFLAGS C++ compiler flags
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1053 if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1060 if test "$ac_dir" != .; then
1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065 ac_dir_suffix= ac_top_builddir=
1069 .) # No --srcdir option. We are building in place.
1071 if test -z "$ac_top_builddir"; then
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1087 .) ac_abs_builddir="$ac_dir";;
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 case ${ac_top_builddir}. in
1099 .) ac_abs_top_builddir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 case $ac_top_srcdir in
1117 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1134 $ac_configure --help
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1146 Copyright (C) 2003 Free Software Foundation, Inc.
1147 This configure script is free software; the Free Software Foundation
1148 gives unlimited permission to copy, distribute and modify it.
1154 This file contains any messages produced by compilers while
1155 running configure, to aid debugging if configure makes a mistake.
1157 It was created by $as_me, which was
1158 generated by GNU Autoconf 2.59. Invocation command line was
1169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1179 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1182 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1183 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1184 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1192 test -z "$as_dir" && as_dir=.
1193 echo "PATH: $as_dir"
1208 # Keep a trace of the command line.
1209 # Strip out --no-create and --no-recursion so they do not pile up.
1210 # Strip out --silent because we don't want to record it for future runs.
1211 # Also quote any args containing shell meta-characters.
1212 # Make two passes to allow for proper duplicate-argument suppression.
1217 ac_must_keep_next=false
1223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1227 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1231 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234 if test $ac_must_keep_next = true; then
1235 ac_must_keep_next=false # Got value, back to normal.
1238 *=* | --config-cache | -C | -disable-* | --disable-* \
1239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241 | -with-* | --with-* | -without-* | --without-* | --x)
1242 case "$ac_configure_args0 " in
1243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1246 -* ) ac_must_keep_next=true ;;
1249 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250 # Get rid of the leading space.
1256 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259 # When interrupted or exit'd, cleanup temporary files, and complete
1260 # config.log. We remove comments because anyway the quotes in there
1261 # would cause problems or look ugly.
1262 # WARNING: Be sure not to use single quotes in there, as some shells,
1263 # such as our DU 5.0 friend, will then `close' the trap.
1264 trap 'exit_status=$?
1265 # Save into config.log some information that might help in debugging.
1270 ## ---------------- ##
1271 ## Cache variables. ##
1272 ## ---------------- ##
1275 # The following way of writing the cache mishandles newlines in values,
1278 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1281 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1293 ## ----------------- ##
1294 ## Output variables. ##
1295 ## ----------------- ##
1298 for ac_var in $ac_subst_vars
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1305 if test -n "$ac_subst_files"; then
1312 for ac_var in $ac_subst_files
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1320 if test -s confdefs.h; then
1327 sed "/^$/d" confdefs.h | sort
1330 test "$ac_signal" != 0 &&
1331 echo "$as_me: caught signal $ac_signal"
1332 echo "$as_me: exit $exit_status"
1334 rm -f core *.core &&
1335 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1338 for ac_signal in 1 2 13 15; do
1339 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1344 rm -rf conftest* confdefs.h
1345 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1348 # Predefined preprocessor variables.
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_NAME "$PACKAGE_NAME"
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_STRING "$PACKAGE_STRING"
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1375 # Let the site file select an alternate cache file if it wants to.
1376 # Prefer explicitly selected file to automatically selected ones.
1377 if test -z "$CONFIG_SITE"; then
1378 if test "x$prefix" != xNONE; then
1379 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1384 for ac_site_file in $CONFIG_SITE; do
1385 if test -r "$ac_site_file"; then
1386 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387 echo "$as_me: loading site script $ac_site_file" >&6;}
1388 sed 's/^/| /' "$ac_site_file" >&5
1393 if test -r "$cache_file"; then
1394 # Some versions of bash will fail to source /dev/null (special
1395 # files actually), so we avoid doing that.
1396 if test -f "$cache_file"; then
1397 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398 echo "$as_me: loading cache $cache_file" >&6;}
1400 [\\/]* | ?:[\\/]* ) . $cache_file;;
1401 *) . ./$cache_file;;
1405 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406 echo "$as_me: creating cache $cache_file" >&6;}
1410 # Check that the precious variables saved in the cache have kept the same
1412 ac_cache_corrupted=false
1413 for ac_var in `(set) 2>&1 |
1414 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416 eval ac_new_set=\$ac_env_${ac_var}_set
1417 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418 eval ac_new_val="\$ac_env_${ac_var}_value"
1419 case $ac_old_set,$ac_new_set in
1421 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423 ac_cache_corrupted=: ;;
1425 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427 ac_cache_corrupted=: ;;
1430 if test "x$ac_old_val" != "x$ac_new_val"; then
1431 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1432 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1433 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1434 echo "$as_me: former value: $ac_old_val" >&2;}
1435 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1436 echo "$as_me: current value: $ac_new_val" >&2;}
1437 ac_cache_corrupted=:
1440 # Pass precious variables to config.status.
1441 if test "$ac_new_set" = set; then
1443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445 *) ac_arg=$ac_var=$ac_new_val ;;
1447 case " $ac_configure_args " in
1448 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1449 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1453 if $ac_cache_corrupted; then
1454 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1455 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1456 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1457 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1458 { (exit 1); exit 1; }; }
1462 ac_cpp='$CPP $CPPFLAGS'
1463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 # Check whether --enable-checkmem or --disable-checkmem was given.
1488 if test "${enable_checkmem+set}" = set; then
1489 enableval="$enable_checkmem"
1492 # Check whether --enable-debug or --disable-debug was given.
1493 if test "${enable_debug+set}" = set; then
1494 enableval="$enable_debug"
1497 # Check whether --enable-warnings or --disable-warnings was given.
1498 if test "${enable_warnings+set}" = set; then
1499 enableval="$enable_warnings"
1500 ENABLE_WARNINGS=true
1502 # Check whether --enable-optimizations or --disable-optimizations was given.
1503 if test "${enable_optimizations+set}" = set; then
1504 enableval="$enable_optimizations"
1507 # Check whether --enable-lame or --disable-lame was given.
1508 if test "${enable_lame+set}" = set; then
1509 enableval="$enable_lame"
1514 VERSION=2004-09-02-2157
1519 # ------------------------------------------------------------------
1521 if test "x${srcdir}" != "x."; then
1522 echo "--srcdir is not supported"
1526 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1527 if test "x$ENABLE_WARNINGS" '!=' "x";then
1528 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1531 if test "x$CHECKMEM" '!=' "x";then
1534 if test "x$DEBUG" '!=' "x";then
1535 CFLAGS="$WARNINGS -g $CFLAGS"
1536 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1537 else if test "x$OPTIMIZE" '!=' "x"; then
1538 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1539 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1541 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1542 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1546 #if test "x$OLDGCC" '!=' "x";then
1547 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1548 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1549 # CFLAGS="$CFLAGS -ansi -pendantic"
1550 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1553 export PACKAGE VERSION CFLAGS CXXFLAGS
1556 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1557 if test -f $ac_dir/install-sh; then
1559 ac_install_sh="$ac_aux_dir/install-sh -c"
1561 elif test -f $ac_dir/install.sh; then
1563 ac_install_sh="$ac_aux_dir/install.sh -c"
1565 elif test -f $ac_dir/shtool; then
1567 ac_install_sh="$ac_aux_dir/shtool install -c"
1571 if test -z "$ac_aux_dir"; then
1572 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1573 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1574 { (exit 1); exit 1; }; }
1576 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1577 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1578 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580 # Make sure we can run config.sub.
1581 $ac_config_sub sun4 >/dev/null 2>&1 ||
1582 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1583 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1584 { (exit 1); exit 1; }; }
1586 echo "$as_me:$LINENO: checking build system type" >&5
1587 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1588 if test "${ac_cv_build+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 ac_cv_build_alias=$build_alias
1592 test -z "$ac_cv_build_alias" &&
1593 ac_cv_build_alias=`$ac_config_guess`
1594 test -z "$ac_cv_build_alias" &&
1595 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1596 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1597 { (exit 1); exit 1; }; }
1598 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1599 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1600 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1601 { (exit 1); exit 1; }; }
1604 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1605 echo "${ECHO_T}$ac_cv_build" >&6
1607 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1608 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1609 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1612 echo "$as_me:$LINENO: checking host system type" >&5
1613 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1614 if test "${ac_cv_host+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 ac_cv_host_alias=$host_alias
1618 test -z "$ac_cv_host_alias" &&
1619 ac_cv_host_alias=$ac_cv_build_alias
1620 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1621 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1622 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1623 { (exit 1); exit 1; }; }
1626 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1627 echo "${ECHO_T}$ac_cv_host" >&6
1629 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1630 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1631 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638 CFLAGS="$CFLAGS -fno-rtti"
1639 CXXFLAGS="$CXXFLAGS -fno-rtti"
1643 ac_cpp='$CPP $CPPFLAGS'
1644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1647 if test -n "$ac_tool_prefix"; then
1648 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1649 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1684 if test -z "$ac_cv_prog_CC"; then
1686 # Extract the first word of "gcc", so it can be a program name with args.
1687 set dummy gcc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 if test -n "$ac_ct_CC"; then
1694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_ac_ct_CC="gcc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1713 if test -n "$ac_ct_CC"; then
1714 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1715 echo "${ECHO_T}$ac_ct_CC" >&6
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1726 if test -z "$CC"; then
1727 if test -n "$ac_tool_prefix"; then
1728 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1729 set dummy ${ac_tool_prefix}cc; ac_word=$2
1730 echo "$as_me:$LINENO: checking for $ac_word" >&5
1731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732 if test "${ac_cv_prog_CC+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 if test -n "$CC"; then
1736 ac_cv_prog_CC="$CC" # Let the user override the test.
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 test -z "$as_dir" && as_dir=.
1743 for ac_exec_ext in '' $ac_executable_extensions; do
1744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745 ac_cv_prog_CC="${ac_tool_prefix}cc"
1746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755 if test -n "$CC"; then
1756 echo "$as_me:$LINENO: result: $CC" >&5
1757 echo "${ECHO_T}$CC" >&6
1759 echo "$as_me:$LINENO: result: no" >&5
1760 echo "${ECHO_T}no" >&6
1764 if test -z "$ac_cv_prog_CC"; then
1766 # Extract the first word of "cc", so it can be a program name with args.
1767 set dummy cc; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 if test -n "$ac_ct_CC"; then
1774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 test -z "$as_dir" && as_dir=.
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783 ac_cv_prog_ac_ct_CC="cc"
1784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1793 if test -n "$ac_ct_CC"; then
1794 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1795 echo "${ECHO_T}$ac_ct_CC" >&6
1797 echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1807 if test -z "$CC"; then
1808 # Extract the first word of "cc", so it can be a program name with args.
1809 set dummy cc; ac_word=$2
1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 if test "${ac_cv_prog_CC+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 if test -n "$CC"; then
1816 ac_cv_prog_CC="$CC" # Let the user override the test.
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1827 ac_prog_rejected=yes
1831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 if test $ac_prog_rejected = yes; then
1838 # We found a bogon in the path, so make sure we never use it.
1839 set dummy $ac_cv_prog_CC
1841 if test $# != 0; then
1842 # We chose a different compiler from the bogus one.
1843 # However, it has the same basename, so the bogon will be chosen
1844 # first if we set CC to just the basename; use the full file name.
1846 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1852 if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1861 if test -z "$CC"; then
1862 if test -n "$ac_tool_prefix"; then
1865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 if test -n "$CC"; then
1873 ac_cv_prog_CC="$CC" # Let the user override the test.
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 if test -n "$CC"; then
1893 echo "$as_me:$LINENO: result: $CC" >&5
1894 echo "${ECHO_T}$CC" >&6
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1900 test -n "$CC" && break
1903 if test -z "$CC"; then
1907 # Extract the first word of "$ac_prog", so it can be a program name with args.
1908 set dummy $ac_prog; ac_word=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 if test -n "$ac_ct_CC"; then
1915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 test -z "$as_dir" && as_dir=.
1922 for ac_exec_ext in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 ac_cv_prog_ac_ct_CC="$ac_prog"
1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1934 if test -n "$ac_ct_CC"; then
1935 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1936 echo "${ECHO_T}$ac_ct_CC" >&6
1938 echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1942 test -n "$ac_ct_CC" && break
1951 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1952 See \`config.log' for more details." >&5
1953 echo "$as_me: error: no acceptable C compiler found in \$PATH
1954 See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1957 # Provide some information about the compiler.
1958 echo "$as_me:$LINENO:" \
1959 "checking for C compiler version" >&5
1960 ac_compiler=`set X $ac_compile; echo $2`
1961 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1962 (eval $ac_compiler --version </dev/null >&5) 2>&5
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }
1966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1967 (eval $ac_compiler -v </dev/null >&5) 2>&5
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); }
1971 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1972 (eval $ac_compiler -V </dev/null >&5) 2>&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }
1977 cat >conftest.$ac_ext <<_ACEOF
1980 cat confdefs.h >>conftest.$ac_ext
1981 cat >>conftest.$ac_ext <<_ACEOF
1982 /* end confdefs.h. */
1992 ac_clean_files_save=$ac_clean_files
1993 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1994 # Try to create an executable without -o first, disregard a.out.
1995 # It will help us diagnose broken compilers, and finding out an intuition
1997 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1998 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1999 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2000 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2001 (eval $ac_link_default) 2>&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; then
2005 # Find the output, starting from the most likely. This scheme is
2006 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2009 # Be careful to initialize this variable, since it used to be cached.
2010 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2012 # b.out is created by i960 compilers.
2013 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2015 test -f "$ac_file" || continue
2017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2020 # This is the source file.
2023 # We found the default executable, but exeext='' is most
2027 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2028 # FIXME: I believe we export ac_cv_exeext for Libtool,
2029 # but it would be cool to find out if it's true. Does anybody
2030 # maintain Libtool? --akim.
2038 echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2041 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2042 See \`config.log' for more details." >&5
2043 echo "$as_me: error: C compiler cannot create executables
2044 See \`config.log' for more details." >&2;}
2045 { (exit 77); exit 77; }; }
2048 ac_exeext=$ac_cv_exeext
2049 echo "$as_me:$LINENO: result: $ac_file" >&5
2050 echo "${ECHO_T}$ac_file" >&6
2052 # Check the compiler produces executables we can run. If not, either
2053 # the compiler is broken, or we cross compile.
2054 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2055 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2056 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2057 # If not cross compiling, check that we can run a simple program.
2058 if test "$cross_compiling" != yes; then
2059 if { ac_try='./$ac_file'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; }; then
2067 if test "$cross_compiling" = maybe; then
2070 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2071 If you meant to cross compile, use \`--host'.
2072 See \`config.log' for more details." >&5
2073 echo "$as_me: error: cannot run C compiled programs.
2074 If you meant to cross compile, use \`--host'.
2075 See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
2080 echo "$as_me:$LINENO: result: yes" >&5
2081 echo "${ECHO_T}yes" >&6
2083 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2084 ac_clean_files=$ac_clean_files_save
2085 # Check the compiler produces executables we can run. If not, either
2086 # the compiler is broken, or we cross compile.
2087 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2088 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2089 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2090 echo "${ECHO_T}$cross_compiling" >&6
2092 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2093 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2095 (eval $ac_link) 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; then
2099 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2100 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2101 # work properly (i.e., refer to `conftest.exe'), while it won't with
2103 for ac_file in conftest.exe conftest conftest.*; do
2104 test -f "$ac_file" || continue
2106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2107 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2114 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2115 See \`config.log' for more details." >&5
2116 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2117 See \`config.log' for more details." >&2;}
2118 { (exit 1); exit 1; }; }
2121 rm -f conftest$ac_cv_exeext
2122 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2123 echo "${ECHO_T}$ac_cv_exeext" >&6
2125 rm -f conftest.$ac_ext
2126 EXEEXT=$ac_cv_exeext
2128 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2129 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2130 if test "${ac_cv_objext+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 cat >conftest.$ac_ext <<_ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2148 rm -f conftest.o conftest.obj
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; then
2154 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2157 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2162 echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2165 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2168 See \`config.log' for more details." >&2;}
2169 { (exit 1); exit 1; }; }
2172 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2174 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2175 echo "${ECHO_T}$ac_cv_objext" >&6
2176 OBJEXT=$ac_cv_objext
2178 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2179 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2180 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 cat >conftest.$ac_ext <<_ACEOF
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h. */
2201 rm -f conftest.$ac_objext
2202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203 (eval $ac_compile) 2>conftest.er1
2205 grep -v '^ *+' conftest.er1 >conftest.err
2207 cat conftest.err >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); } &&
2210 { ac_try='test -z "$ac_c_werror_flag"
2211 || test ! -s conftest.err'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; } &&
2217 { ac_try='test -s conftest.$ac_objext'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2225 echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2231 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2234 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2235 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2236 GCC=`test $ac_compiler_gnu = yes && echo yes`
2237 ac_test_CFLAGS=${CFLAGS+set}
2238 ac_save_CFLAGS=$CFLAGS
2240 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2241 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2242 if test "${ac_cv_prog_cc_g+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 cat >conftest.$ac_ext <<_ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>conftest.er1
2264 grep -v '^ *+' conftest.er1 >conftest.err
2266 cat conftest.err >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -z "$ac_c_werror_flag"
2270 || test ! -s conftest.err'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2284 echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2292 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2293 if test "$ac_test_CFLAGS" = set; then
2294 CFLAGS=$ac_save_CFLAGS
2295 elif test $ac_cv_prog_cc_g = yes; then
2296 if test "$GCC" = yes; then
2302 if test "$GCC" = yes; then
2308 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2309 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2310 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 ac_cv_prog_cc_stdc=no
2315 cat >conftest.$ac_ext <<_ACEOF
2318 cat confdefs.h >>conftest.$ac_ext
2319 cat >>conftest.$ac_ext <<_ACEOF
2320 /* end confdefs.h. */
2323 #include <sys/types.h>
2324 #include <sys/stat.h>
2325 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2326 struct buf { int x; };
2327 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2328 static char *e (p, i)
2334 static char *f (char * (*g) (char **, int), char **p, ...)
2339 s = g (p, va_arg (v,int));
2344 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2345 function prototypes and stuff, but not '\xHH' hex character constants.
2346 These don't provoke an error unfortunately, instead are silently treated
2347 as 'x'. The following induces an error, until -std1 is added to get
2348 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2349 array size at least. It's necessary to write '\x00'==0 to get something
2350 that's true only with -std1. */
2351 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2353 int test (int i, double x);
2354 struct s1 {int (*f) (int a);};
2355 struct s2 {int (*f) (double a);};
2356 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2362 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2367 # Don't try gcc -ansi; that turns off useful extensions and
2368 # breaks some systems' header files.
2369 # AIX -qlanglvl=ansi
2370 # Ultrix and OSF/1 -std1
2371 # HP-UX 10.20 and later -Ae
2372 # HP-UX older versions -Aa -D_HPUX_SOURCE
2373 # SVR4 -Xc -D__EXTENSIONS__
2374 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2376 CC="$ac_save_CC $ac_arg"
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379 (eval $ac_compile) 2>conftest.er1
2381 grep -v '^ *+' conftest.er1 >conftest.err
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
2386 { ac_try='test -z "$ac_c_werror_flag"
2387 || test ! -s conftest.err'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2399 ac_cv_prog_cc_stdc=$ac_arg
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2406 rm -f conftest.err conftest.$ac_objext
2408 rm -f conftest.$ac_ext conftest.$ac_objext
2413 case "x$ac_cv_prog_cc_stdc" in
2415 echo "$as_me:$LINENO: result: none needed" >&5
2416 echo "${ECHO_T}none needed" >&6 ;;
2418 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2419 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2420 CC="$CC $ac_cv_prog_cc_stdc" ;;
2423 # Some people use a C++ compiler to compile C. Since we use `exit',
2424 # in C++ we need to declare it. In case someone uses the same compiler
2425 # for both compiling C and C++ we need to have the C++ compiler decide
2426 # the declaration of exit, since it's the most demanding environment.
2427 cat >conftest.$ac_ext <<_ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2436 grep -v '^ *+' conftest.er1 >conftest.err
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 for ac_declaration in \
2456 'extern "C" void std::exit (int) throw (); using std::exit;' \
2457 'extern "C" void std::exit (int); using std::exit;' \
2458 'extern "C" void exit (int) throw ();' \
2459 'extern "C" void exit (int);' \
2462 cat >conftest.$ac_ext <<_ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2478 rm -f conftest.$ac_objext
2479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2480 (eval $ac_compile) 2>conftest.er1
2482 grep -v '^ *+' conftest.er1 >conftest.err
2484 cat conftest.err >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); } &&
2487 { ac_try='test -z "$ac_c_werror_flag"
2488 || test ! -s conftest.err'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; } &&
2494 { ac_try='test -s conftest.$ac_objext'
2495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; }; then
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508 cat >conftest.$ac_ext <<_ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525 (eval $ac_compile) 2>conftest.er1
2527 grep -v '^ *+' conftest.er1 >conftest.err
2529 cat conftest.err >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try='test -z "$ac_c_werror_flag"
2533 || test ! -s conftest.err'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; } &&
2539 { ac_try='test -s conftest.$ac_objext'
2540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554 if test -n "$ac_declaration"; then
2555 echo '#ifdef __cplusplus' >>confdefs.h
2556 echo $ac_declaration >>confdefs.h
2557 echo '#endif' >>confdefs.h
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573 ac_cpp='$CXXCPP $CPPFLAGS'
2574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2577 if test -n "$ac_tool_prefix"; then
2578 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2582 echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2584 if test "${ac_cv_prog_CXX+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 if test -n "$CXX"; then
2588 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 if test -n "$CXX"; then
2608 echo "$as_me:$LINENO: result: $CXX" >&5
2609 echo "${ECHO_T}$CXX" >&6
2611 echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2615 test -n "$CXX" && break
2618 if test -z "$CXX"; then
2620 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2622 # Extract the first word of "$ac_prog", so it can be a program name with args.
2623 set dummy $ac_prog; ac_word=$2
2624 echo "$as_me:$LINENO: checking for $ac_word" >&5
2625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2626 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 if test -n "$ac_ct_CXX"; then
2630 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639 ac_cv_prog_ac_ct_CXX="$ac_prog"
2640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2649 if test -n "$ac_ct_CXX"; then
2650 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2651 echo "${ECHO_T}$ac_ct_CXX" >&6
2653 echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6
2657 test -n "$ac_ct_CXX" && break
2659 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2665 # Provide some information about the compiler.
2666 echo "$as_me:$LINENO:" \
2667 "checking for C++ compiler version" >&5
2668 ac_compiler=`set X $ac_compile; echo $2`
2669 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2670 (eval $ac_compiler --version </dev/null >&5) 2>&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }
2674 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2675 (eval $ac_compiler -v </dev/null >&5) 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }
2679 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2680 (eval $ac_compiler -V </dev/null >&5) 2>&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }
2685 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2686 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2687 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 cat >conftest.$ac_ext <<_ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2708 rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>conftest.er1
2712 grep -v '^ *+' conftest.er1 >conftest.err
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try='test -z "$ac_cxx_werror_flag"
2718 || test ! -s conftest.err'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2741 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2742 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2743 GXX=`test $ac_compiler_gnu = yes && echo yes`
2744 ac_test_CXXFLAGS=${CXXFLAGS+set}
2745 ac_save_CXXFLAGS=$CXXFLAGS
2747 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2748 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2749 if test "${ac_cv_prog_cxx_g+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 cat >conftest.$ac_ext <<_ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2767 rm -f conftest.$ac_objext
2768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769 (eval $ac_compile) 2>conftest.er1
2771 grep -v '^ *+' conftest.er1 >conftest.err
2773 cat conftest.err >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } &&
2776 { ac_try='test -z "$ac_cxx_werror_flag"
2777 || test ! -s conftest.err'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; } &&
2783 { ac_try='test -s conftest.$ac_objext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 ac_cv_prog_cxx_g=yes
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2798 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2799 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2800 if test "$ac_test_CXXFLAGS" = set; then
2801 CXXFLAGS=$ac_save_CXXFLAGS
2802 elif test $ac_cv_prog_cxx_g = yes; then
2803 if test "$GXX" = yes; then
2809 if test "$GXX" = yes; then
2815 for ac_declaration in \
2817 'extern "C" void std::exit (int) throw (); using std::exit;' \
2818 'extern "C" void std::exit (int); using std::exit;' \
2819 'extern "C" void exit (int) throw ();' \
2820 'extern "C" void exit (int);' \
2823 cat >conftest.$ac_ext <<_ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>conftest.er1
2843 grep -v '^ *+' conftest.er1 >conftest.err
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
2848 { ac_try='test -z "$ac_cxx_werror_flag"
2849 || test ! -s conftest.err'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; } &&
2855 { ac_try='test -s conftest.$ac_objext'
2856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; }; then
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2869 cat >conftest.$ac_ext <<_ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>conftest.er1
2888 grep -v '^ *+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -z "$ac_cxx_werror_flag"
2894 || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2915 if test -n "$ac_declaration"; then
2916 echo '#ifdef __cplusplus' >>confdefs.h
2917 echo $ac_declaration >>confdefs.h
2918 echo '#endif' >>confdefs.h
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 if test "x$CHECKMEM" '!=' "x";then
2932 #unset ac_cv_prog_CC
2933 #unset ac_cv_prog_CXX
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2943 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2944 # On Suns, sometimes $CPP names a directory.
2945 if test -n "$CPP" && test -d "$CPP"; then
2948 if test -z "$CPP"; then
2949 if test "${ac_cv_prog_CPP+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 # Double quotes because CPP needs to be expanded
2953 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2956 for ac_c_preproc_warn_flag in '' yes
2958 # Use a header file that comes with gcc, so configuring glibc
2959 # with a fresh cross-compiler works.
2960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2961 # <limits.h> exists even on freestanding compilers.
2962 # On the NeXT, cc -E runs the code through the compiler's parser,
2963 # not just through cpp. "Syntax error" is here to catch this case.
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2971 # include <limits.h>
2973 # include <assert.h>
2977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2980 grep -v '^ *+' conftest.er1 >conftest.err
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } >/dev/null; then
2985 if test -s conftest.err; then
2986 ac_cpp_err=$ac_c_preproc_warn_flag
2987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2994 if test -z "$ac_cpp_err"; then
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 # Broken: fails on valid input.
3003 rm -f conftest.err conftest.$ac_ext
3005 # OK, works on sane cases. Now check whether non-existent headers
3006 # can be detected and how.
3007 cat >conftest.$ac_ext <<_ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013 #include <ac_nonexistent.h>
3015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3018 grep -v '^ *+' conftest.er1 >conftest.err
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } >/dev/null; then
3023 if test -s conftest.err; then
3024 ac_cpp_err=$ac_c_preproc_warn_flag
3025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3032 if test -z "$ac_cpp_err"; then
3033 # Broken: success on invalid input.
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 # Passes both tests.
3043 rm -f conftest.err conftest.$ac_ext
3046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3047 rm -f conftest.err conftest.$ac_ext
3048 if $ac_preproc_ok; then
3060 echo "$as_me:$LINENO: result: $CPP" >&5
3061 echo "${ECHO_T}$CPP" >&6
3063 for ac_c_preproc_warn_flag in '' yes
3065 # Use a header file that comes with gcc, so configuring glibc
3066 # with a fresh cross-compiler works.
3067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3068 # <limits.h> exists even on freestanding compilers.
3069 # On the NeXT, cc -E runs the code through the compiler's parser,
3070 # not just through cpp. "Syntax error" is here to catch this case.
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3078 # include <limits.h>
3080 # include <assert.h>
3084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } >/dev/null; then
3092 if test -s conftest.err; then
3093 ac_cpp_err=$ac_c_preproc_warn_flag
3094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3101 if test -z "$ac_cpp_err"; then
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 # Broken: fails on valid input.
3110 rm -f conftest.err conftest.$ac_ext
3112 # OK, works on sane cases. Now check whether non-existent headers
3113 # can be detected and how.
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3120 #include <ac_nonexistent.h>
3122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3125 grep -v '^ *+' conftest.er1 >conftest.err
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } >/dev/null; then
3130 if test -s conftest.err; then
3131 ac_cpp_err=$ac_c_preproc_warn_flag
3132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3139 if test -z "$ac_cpp_err"; then
3140 # Broken: success on invalid input.
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 # Passes both tests.
3150 rm -f conftest.err conftest.$ac_ext
3153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3154 rm -f conftest.err conftest.$ac_ext
3155 if $ac_preproc_ok; then
3158 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3159 See \`config.log' for more details." >&5
3160 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3161 See \`config.log' for more details." >&2;}
3162 { (exit 1); exit 1; }; }
3166 ac_cpp='$CPP $CPPFLAGS'
3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172 if test -n "$ac_tool_prefix"; then
3173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_RANLIB+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 if test -n "$RANLIB"; then
3181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 RANLIB=$ac_cv_prog_RANLIB
3200 if test -n "$RANLIB"; then
3201 echo "$as_me:$LINENO: result: $RANLIB" >&5
3202 echo "${ECHO_T}$RANLIB" >&6
3204 echo "$as_me:$LINENO: result: no" >&5
3205 echo "${ECHO_T}no" >&6
3209 if test -z "$ac_cv_prog_RANLIB"; then
3210 ac_ct_RANLIB=$RANLIB
3211 # Extract the first word of "ranlib", so it can be a program name with args.
3212 set dummy ranlib; ac_word=$2
3213 echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 if test -n "$ac_ct_RANLIB"; then
3219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 ac_cv_prog_ac_ct_RANLIB="ranlib"
3229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3239 if test -n "$ac_ct_RANLIB"; then
3240 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3241 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3243 echo "$as_me:$LINENO: result: no" >&5
3244 echo "${ECHO_T}no" >&6
3247 RANLIB=$ac_ct_RANLIB
3249 RANLIB="$ac_cv_prog_RANLIB"
3252 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3253 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3254 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3255 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 cat >conftest.make <<\_ACEOF
3260 @echo 'ac_maketemp="$(MAKE)"'
3262 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3263 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3264 if test -n "$ac_maketemp"; then
3265 eval ac_cv_prog_make_${ac_make}_set=yes
3267 eval ac_cv_prog_make_${ac_make}_set=no
3271 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3272 echo "$as_me:$LINENO: result: yes" >&5
3273 echo "${ECHO_T}yes" >&6
3276 echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6
3278 SET_MAKE="MAKE=${MAKE-make}"
3281 # Find a good install program. We prefer a C program (faster),
3282 # so one script is as good as another. But avoid the broken or
3283 # incompatible versions:
3284 # SysV /etc/install, /usr/sbin/install
3285 # SunOS /usr/etc/install
3286 # IRIX /sbin/install
3288 # AmigaOS /C/install, which installs bootblocks on floppy discs
3289 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3290 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3291 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3292 # OS/2's system install, which has a completely different semantic
3293 # ./install, which can be erroneously created by make from ./install.sh.
3294 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3295 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3296 if test -z "$INSTALL"; then
3297 if test "${ac_cv_path_install+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 test -z "$as_dir" && as_dir=.
3305 # Account for people who put trailing slashes in PATH elements.
3307 ./ | .// | /cC/* | \
3308 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3309 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3312 # OSF1 and SCO ODT 3.0 have their own names for install.
3313 # Don't use installbsd from OSF since it installs stuff as root
3315 for ac_prog in ginstall scoinst install; do
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3318 if test $ac_prog = install &&
3319 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3320 # AIX install. It has an incompatible calling convention.
3322 elif test $ac_prog = install &&
3323 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3324 # program-specific install script used by HP pwplus--don't use.
3327 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3339 if test "${ac_cv_path_install+set}" = set; then
3340 INSTALL=$ac_cv_path_install
3342 # As a last resort, use the slow shell script. We don't cache a
3343 # path for INSTALL within a source directory, because that will
3344 # break other packages using the cache if that directory is
3345 # removed, or if the path is relative.
3346 INSTALL=$ac_install_sh
3349 echo "$as_me:$LINENO: result: $INSTALL" >&5
3350 echo "${ECHO_T}$INSTALL" >&6
3352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3353 # It thinks the first close brace ends the variable substitution.
3354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3360 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3361 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3363 if test "$LN_S" = "ln -s"; then
3364 echo "$as_me:$LINENO: result: yes" >&5
3365 echo "${ECHO_T}yes" >&6
3367 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3368 echo "${ECHO_T}no, using $LN_S" >&6
3371 # Check whether --enable-shared or --disable-shared was given.
3372 if test "${enable_shared+set}" = set; then
3373 enableval="$enable_shared"
3374 p=${PACKAGE-default}
3376 yes) enable_shared=yes ;;
3377 no) enable_shared=no ;;
3380 # Look at the argument we got. We use all the common list separators.
3381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3382 for pkg in $enableval; do
3383 if test "X$pkg" = "X$p"; then
3393 # Check whether --enable-static or --disable-static was given.
3394 if test "${enable_static+set}" = set; then
3395 enableval="$enable_static"
3396 p=${PACKAGE-default}
3398 yes) enable_static=yes ;;
3399 no) enable_static=no ;;
3402 # Look at the argument we got. We use all the common list separators.
3403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3404 for pkg in $enableval; do
3405 if test "X$pkg" = "X$p"; then
3415 # Check whether --enable-fast-install or --disable-fast-install was given.
3416 if test "${enable_fast_install+set}" = set; then
3417 enableval="$enable_fast_install"
3418 p=${PACKAGE-default}
3420 yes) enable_fast_install=yes ;;
3421 no) enable_fast_install=no ;;
3423 enable_fast_install=no
3424 # Look at the argument we got. We use all the common list separators.
3425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3426 for pkg in $enableval; do
3427 if test "X$pkg" = "X$p"; then
3428 enable_fast_install=yes
3435 enable_fast_install=yes
3437 # Find the correct PATH separator. Usually this is `:', but
3438 # DJGPP uses `;' like DOS.
3439 if test "X${PATH_SEPARATOR+set}" != Xset; then
3440 UNAME=${UNAME-`uname 2>/dev/null`}
3442 *-DOS) lt_cv_sys_path_separator=';' ;;
3443 *) lt_cv_sys_path_separator=':' ;;
3445 PATH_SEPARATOR=$lt_cv_sys_path_separator
3449 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3450 if test "${with_gnu_ld+set}" = set; then
3451 withval="$with_gnu_ld"
3452 test "$withval" = no || with_gnu_ld=yes
3457 if test "$GCC" = yes; then
3458 # Check if gcc -print-prog-name=ld gives a path.
3459 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3460 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3463 # gcc leaves a trailing carriage return which upsets mingw
3464 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3466 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3469 # Accept absolute paths.
3470 [\\/]* | [A-Za-z]:[\\/]*)
3471 re_direlt='/[^/][^/]*/\.\./'
3472 # Canonicalize the path of ld
3473 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3474 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3475 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3477 test -z "$LD" && LD="$ac_prog"
3480 # If it fails, then pretend we aren't using GCC.
3484 # If it is relative, then search for the first ld in PATH.
3488 elif test "$with_gnu_ld" = yes; then
3489 echo "$as_me:$LINENO: checking for GNU ld" >&5
3490 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3492 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3493 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3495 if test "${lt_cv_path_LD+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 if test -z "$LD"; then
3499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3500 for ac_dir in $PATH; do
3501 test -z "$ac_dir" && ac_dir=.
3502 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3503 lt_cv_path_LD="$ac_dir/$ac_prog"
3504 # Check to see if the program is GNU ld. I'd rather use --version,
3505 # but apparently some GNU ld's only accept -v.
3506 # Break only if it was the GNU/non-GNU ld that we prefer.
3507 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3508 test "$with_gnu_ld" != no && break
3510 test "$with_gnu_ld" != yes && break
3516 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3521 if test -n "$LD"; then
3522 echo "$as_me:$LINENO: result: $LD" >&5
3523 echo "${ECHO_T}$LD" >&6
3525 echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3528 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3529 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3530 { (exit 1); exit 1; }; }
3531 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3532 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3533 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3537 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3538 lt_cv_prog_gnu_ld=yes
3540 lt_cv_prog_gnu_ld=no
3543 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3544 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3545 with_gnu_ld=$lt_cv_prog_gnu_ld
3548 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3549 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3550 if test "${lt_cv_ld_reload_flag+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 lt_cv_ld_reload_flag='-r'
3555 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3556 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3557 reload_flag=$lt_cv_ld_reload_flag
3558 test -n "$reload_flag" && reload_flag=" $reload_flag"
3560 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3561 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3562 if test "${lt_cv_path_NM+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 if test -n "$NM"; then
3566 # Let the user override the test.
3569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3570 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3571 test -z "$ac_dir" && ac_dir=.
3572 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3573 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3574 # Check to see if the nm accepts a BSD-compat flag.
3575 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3576 # nm: unknown option "B" ignored
3577 # Tru64's nm complains that /dev/null is an invalid object file
3578 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3579 lt_cv_path_NM="$tmp_nm -B"
3581 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3582 lt_cv_path_NM="$tmp_nm -p"
3585 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3586 continue # so that we can try to find one that supports BSD flags
3591 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3596 echo "$as_me:$LINENO: result: $NM" >&5
3597 echo "${ECHO_T}$NM" >&6
3599 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3600 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3601 if test "${lt_cv_path_SED+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 # Loop through the user's path and test for sed and gsed.
3605 # Then use that list of sed's as ones to test for truncation.
3606 as_executable_p="test -f"
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 test -z "$as_dir" && as_dir=.
3612 for ac_prog in sed gsed; do
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3615 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3621 # Create a temporary directory, and hook for its removal unless debugging.
3624 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3625 trap '{ (exit 1); exit 1; }' 1 2 13 15
3628 # Create a (secure) tmp directory for tmp files.
3631 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3632 test -n "$tmp" && test -d "$tmp"
3635 tmp=$TMPDIR/sed$$-$RANDOM
3636 (umask 077 && mkdir $tmp)
3639 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3640 { (exit 1); exit 1; }
3644 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3645 # along with /bin/sed that truncates output.
3646 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3647 test ! -f ${_sed} && break
3648 cat /dev/null > "$tmp/sed.in"
3650 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3651 # Check for GNU sed and select it if it is found.
3652 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3653 lt_cv_path_SED=${_sed}
3657 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3658 mv "$tmp/sed.tmp" "$tmp/sed.in"
3659 cp "$tmp/sed.in" "$tmp/sed.nl"
3660 echo >>"$tmp/sed.nl"
3661 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3662 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3663 # 40000 chars as input seems more than enough
3664 test $_count -gt 10 && break
3665 _count=`expr $_count + 1`
3666 if test $_count -gt $_max; then
3668 lt_cv_path_SED=$_sed
3676 if test "X$SED" != "X"; then
3681 echo "$as_me:$LINENO: result: $SED" >&5
3682 echo "${ECHO_T}$SED" >&6
3684 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3685 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3686 if test "${lt_cv_deplibs_check_method+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 lt_cv_file_magic_cmd='$MAGIC_CMD'
3690 lt_cv_file_magic_test_file=
3691 lt_cv_deplibs_check_method='unknown'
3692 # Need to set the preceding variable on all platforms that support
3693 # interlibrary dependencies.
3694 # 'none' -- dependencies not supported.
3695 # `unknown' -- same as none, but documents that we really don't know.
3696 # 'pass_all' -- all dependencies passed with no checks.
3697 # 'test_compile' -- check by making test program.
3698 # 'file_magic [[regex]]' -- check by looking for files in library path
3699 # which responds to the $file_magic_cmd with a given egrep regex.
3700 # If you have `file' or equivalent on your system and you're not sure
3701 # whether `pass_all' will *always* work, you probably want this one.
3705 lt_cv_deplibs_check_method=pass_all
3709 lt_cv_deplibs_check_method=pass_all
3713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3714 lt_cv_file_magic_cmd='/usr/bin/file -L'
3715 lt_cv_file_magic_test_file=/shlib/libc.so
3718 cygwin* | mingw* | pw32*)
3719 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3720 lt_cv_file_magic_cmd='$OBJDUMP -f'
3723 darwin* | rhapsody*)
3724 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3725 lt_cv_file_magic_cmd='/usr/bin/file -L'
3727 rhapsody* | darwin1.[012])
3728 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3731 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3737 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3740 # Not sure whether the presence of OpenBSD here was a mistake.
3741 # Let's accept both of them until this is cleared up.
3742 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3743 lt_cv_file_magic_cmd=/usr/bin/file
3744 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3748 lt_cv_deplibs_check_method=pass_all
3753 lt_cv_deplibs_check_method=pass_all
3757 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3758 lt_cv_file_magic_cmd=/usr/bin/file
3759 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3762 irix5* | irix6* | nonstopux*)
3764 irix5* | nonstopux*)
3765 # this will be overridden with pass_all, but let us keep it just in case
3766 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3770 *-32|*"-32 ") libmagic=32-bit;;
3771 *-n32|*"-n32 ") libmagic=N32;;
3772 *-64|*"-64 ") libmagic=64-bit;;
3773 *) libmagic=never-match;;
3775 # this will be overridden with pass_all, but let us keep it just in case
3776 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3779 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3780 lt_cv_deplibs_check_method=pass_all
3783 # This must be Linux ELF.
3786 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3787 lt_cv_deplibs_check_method=pass_all ;;
3789 # glibc up to 2.1.1 does not perform some relocations on ARM
3790 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3792 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3796 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3797 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3799 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3805 lt_cv_file_magic_cmd=/usr/bin/file
3806 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3810 lt_cv_file_magic_cmd=/usr/bin/file
3811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3812 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3813 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3815 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3819 osf3* | osf4* | osf5*)
3820 # this will be overridden with pass_all, but let us keep it just in case
3821 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3822 lt_cv_file_magic_test_file=/shlib/libc.so
3823 lt_cv_deplibs_check_method=pass_all
3827 lt_cv_deplibs_check_method=pass_all
3831 lt_cv_deplibs_check_method=pass_all
3832 lt_cv_file_magic_test_file=/lib/libc.so
3835 sysv5uw[78]* | sysv4*uw2*)
3836 lt_cv_deplibs_check_method=pass_all
3839 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3840 case $host_vendor in
3842 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3843 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3846 lt_cv_deplibs_check_method=pass_all
3849 lt_cv_file_magic_cmd='/bin/file'
3850 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3853 lt_cv_file_magic_cmd='/bin/file'
3854 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3855 lt_cv_file_magic_test_file=/lib/libc.so
3858 lt_cv_deplibs_check_method=pass_all
3865 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3866 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3867 file_magic_cmd=$lt_cv_file_magic_cmd
3868 deplibs_check_method=$lt_cv_deplibs_check_method
3877 # Check for command to grab the raw symbol name followed by C symbol from nm.
3878 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3879 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3880 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 # These are sane defaults that work on at least a few old systems.
3885 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3887 # Character class describing NM global symbol codes.
3888 symcode='[BCDEGRST]'
3890 # Regexp to match symbols that can be accessed directly from C.
3891 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3893 # Transform the above into a raw symbol and a C symbol.
3894 symxfrm='\1 \2\3 \3'
3896 # Transform an extracted symbol line into a proper C declaration
3897 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3899 # Transform an extracted symbol line into symbol name and symbol address
3900 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3902 # Define system-specific variables.
3907 cygwin* | mingw* | pw32*)
3908 symcode='[ABCDGISTW]'
3910 hpux*) # Its linker distinguishes data from code symbols
3911 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3912 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3915 symcode='[BCDEGRST]'
3918 symcode='[BCDEGQRST]'
3928 # Handle CRLF in mingw tool chain
3932 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3936 # If we're using GNU nm, then use its standard symbol codes.
3937 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3938 symcode='[ABCDGISTW]'
3941 # Try without a prefix undercore, then with it.
3942 for ac_symprfx in "" "_"; do
3944 # Write the raw and C identifiers.
3945 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3947 # Check to see that the pipe works correctly.
3950 cat > conftest.$ac_ext <<EOF
3955 void nm_test_func(){}
3959 int main(){nm_test_var='a';nm_test_func();return(0);}
3962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3963 (eval $ac_compile) 2>&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; then
3967 # Now try to grab the symbols.
3969 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3970 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } && test -s "$nlist"; then
3974 # Try sorting and uniquifying the output.
3975 if sort "$nlist" | uniq > "$nlist"T; then
3976 mv -f "$nlist"T "$nlist"
3981 # Make sure that we snagged all the symbols we need.
3982 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3983 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3984 cat <<EOF > conftest.$ac_ext
3990 # Now generate the symbol file.
3991 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3993 cat <<EOF >> conftest.$ac_ext
3994 #if defined (__STDC__) && __STDC__
3995 # define lt_ptr void *
3997 # define lt_ptr char *
4001 /* The mapping between symbol names and symbols. */
4006 lt_preloaded_symbols[] =
4009 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4010 cat <<\EOF >> conftest.$ac_ext
4018 # Now try linking the two files.
4019 mv conftest.$ac_objext conftstm.$ac_objext
4021 save_CFLAGS="$CFLAGS"
4022 LIBS="conftstm.$ac_objext"
4023 CFLAGS="$CFLAGS$no_builtin_flag"
4024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4025 (eval $ac_link) 2>&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && test -s conftest$ac_exeext; then
4032 CFLAGS="$save_CFLAGS"
4034 echo "cannot find nm_test_func in $nlist" >&5
4037 echo "cannot find nm_test_var in $nlist" >&5
4040 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4043 echo "$progname: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4046 rm -f conftest* conftst*
4048 # Do not use the global_symbol_pipe unless it works.
4049 if test "$pipe_works" = yes; then
4052 lt_cv_sys_global_symbol_pipe=
4058 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4059 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4060 global_symbol_to_cdecl=
4061 global_symbol_to_c_name_address=
4063 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4064 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4066 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4068 echo "$as_me:$LINENO: result: failed" >&5
4069 echo "${ECHO_T}failed" >&6
4071 echo "$as_me:$LINENO: result: ok" >&5
4072 echo "${ECHO_T}ok" >&6
4076 echo "$as_me:$LINENO: checking for egrep" >&5
4077 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4078 if test "${ac_cv_prog_egrep+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4082 then ac_cv_prog_egrep='grep -E'
4083 else ac_cv_prog_egrep='egrep'
4086 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4087 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4088 EGREP=$ac_cv_prog_egrep
4091 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4092 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4093 if test "${ac_cv_header_stdc+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 cat >conftest.$ac_ext <<_ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4115 rm -f conftest.$ac_objext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>conftest.er1
4119 grep -v '^ *+' conftest.er1 >conftest.err
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag"
4125 || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_cv_header_stdc=yes
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4142 ac_cv_header_stdc=no
4144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4146 if test $ac_cv_header_stdc = yes; then
4147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "memchr" >/dev/null 2>&1; then
4161 ac_cv_header_stdc=no
4167 if test $ac_cv_header_stdc = yes; then
4168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169 cat >conftest.$ac_ext <<_ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179 $EGREP "free" >/dev/null 2>&1; then
4182 ac_cv_header_stdc=no
4188 if test $ac_cv_header_stdc = yes; then
4189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4190 if test "$cross_compiling" = yes; then
4193 cat >conftest.$ac_ext <<_ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4200 #if ((' ' & 0x0FF) == 0x020)
4201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4204 # define ISLOWER(c) \
4205 (('a' <= (c) && (c) <= 'i') \
4206 || ('j' <= (c) && (c) <= 'r') \
4207 || ('s' <= (c) && (c) <= 'z'))
4208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4216 for (i = 0; i < 256; i++)
4217 if (XOR (islower (i), ISLOWER (i))
4218 || toupper (i) != TOUPPER (i))
4223 rm -f conftest$ac_exeext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4236 echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4241 ac_cv_header_stdc=no
4243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4249 if test $ac_cv_header_stdc = yes; then
4251 cat >>confdefs.h <<\_ACEOF
4252 #define STDC_HEADERS 1
4257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4268 inttypes.h stdint.h unistd.h
4270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271 echo "$as_me:$LINENO: checking for $ac_header" >&5
4272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 cat >conftest.$ac_ext <<_ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4282 $ac_includes_default
4284 #include <$ac_header>
4286 rm -f conftest.$ac_objext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>conftest.er1
4290 grep -v '^ *+' conftest.er1 >conftest.err
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag"
4296 || test ! -s conftest.err'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; } &&
4302 { ac_try='test -s conftest.$ac_objext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 eval "$as_ac_Header=yes"
4310 echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4313 eval "$as_ac_Header=no"
4315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4320 cat >>confdefs.h <<_ACEOF
4321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4330 for ac_header in dlfcn.h
4332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4334 echo "$as_me:$LINENO: checking for $ac_header" >&5
4335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4342 # Is the header compilable?
4343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4345 cat >conftest.$ac_ext <<_ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 $ac_includes_default
4352 #include <$ac_header>
4354 rm -f conftest.$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>conftest.er1
4358 grep -v '^ *+' conftest.er1 >conftest.err
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -z "$ac_c_werror_flag"
4364 || test ! -s conftest.err'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; } &&
4370 { ac_try='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 ac_header_compiler=yes
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 ac_header_compiler=no
4383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4385 echo "${ECHO_T}$ac_header_compiler" >&6
4387 # Is the header present?
4388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4390 cat >conftest.$ac_ext <<_ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4396 #include <$ac_header>
4398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4401 grep -v '^ *+' conftest.er1 >conftest.err
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } >/dev/null; then
4406 if test -s conftest.err; then
4407 ac_cpp_err=$ac_c_preproc_warn_flag
4408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4415 if test -z "$ac_cpp_err"; then
4416 ac_header_preproc=yes
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 ac_header_preproc=no
4423 rm -f conftest.err conftest.$ac_ext
4424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4425 echo "${ECHO_T}$ac_header_preproc" >&6
4427 # So? What about this header?
4428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4434 ac_header_preproc=yes
4437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4451 ## ------------------------------------------ ##
4452 ## Report this to the AC_PACKAGE_NAME lists. ##
4453 ## ------------------------------------------ ##
4456 sed "s/^/$as_me: WARNING: /" >&2
4459 echo "$as_me:$LINENO: checking for $ac_header" >&5
4460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 eval "$as_ac_Header=\$ac_header_preproc"
4466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4471 cat >>confdefs.h <<_ACEOF
4472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4484 # Only perform the check for file, if the check method requires it
4485 case $deplibs_check_method in
4487 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4488 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4489 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4490 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4501 ac_save_MAGIC_CMD="$MAGIC_CMD"
4502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4503 ac_dummy="/usr/bin:$PATH"
4504 for ac_dir in $ac_dummy; do
4505 test -z "$ac_dir" && ac_dir=.
4506 if test -f $ac_dir/${ac_tool_prefix}file; then
4507 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4508 if test -n "$file_magic_test_file"; then
4509 case $deplibs_check_method in
4511 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4512 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4513 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4514 egrep "$file_magic_regex" > /dev/null; then
4519 *** Warning: the command libtool uses to detect shared libraries,
4520 *** $file_magic_cmd, produces output that libtool cannot recognize.
4521 *** The result is that libtool may fail to recognize shared libraries
4522 *** as such. This will affect the creation of libtool libraries that
4523 *** depend on shared libraries, but programs linked with such libtool
4524 *** libraries will work regardless of this problem. Nevertheless, you
4525 *** may want to report the problem to your system manager and/or to
4526 *** bug-libtool@gnu.org
4536 MAGIC_CMD="$ac_save_MAGIC_CMD"
4541 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4542 if test -n "$MAGIC_CMD"; then
4543 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4544 echo "${ECHO_T}$MAGIC_CMD" >&6
4546 echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6
4550 if test -z "$lt_cv_path_MAGIC_CMD"; then
4551 if test -n "$ac_tool_prefix"; then
4552 echo "$as_me:$LINENO: checking for file" >&5
4553 echo $ECHO_N "checking for file... $ECHO_C" >&6
4554 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4562 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4565 ac_save_MAGIC_CMD="$MAGIC_CMD"
4566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4567 ac_dummy="/usr/bin:$PATH"
4568 for ac_dir in $ac_dummy; do
4569 test -z "$ac_dir" && ac_dir=.
4570 if test -f $ac_dir/file; then
4571 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4572 if test -n "$file_magic_test_file"; then
4573 case $deplibs_check_method in
4575 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4577 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4578 egrep "$file_magic_regex" > /dev/null; then
4583 *** Warning: the command libtool uses to detect shared libraries,
4584 *** $file_magic_cmd, produces output that libtool cannot recognize.
4585 *** The result is that libtool may fail to recognize shared libraries
4586 *** as such. This will affect the creation of libtool libraries that
4587 *** depend on shared libraries, but programs linked with such libtool
4588 *** libraries will work regardless of this problem. Nevertheless, you
4589 *** may want to report the problem to your system manager and/or to
4590 *** bug-libtool@gnu.org
4600 MAGIC_CMD="$ac_save_MAGIC_CMD"
4605 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4606 if test -n "$MAGIC_CMD"; then
4607 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4608 echo "${ECHO_T}$MAGIC_CMD" >&6
4610 echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6
4623 if test -n "$ac_tool_prefix"; then
4624 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4625 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4626 echo "$as_me:$LINENO: checking for $ac_word" >&5
4627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4628 if test "${ac_cv_prog_RANLIB+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 if test -n "$RANLIB"; then
4632 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4641 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 RANLIB=$ac_cv_prog_RANLIB
4651 if test -n "$RANLIB"; then
4652 echo "$as_me:$LINENO: result: $RANLIB" >&5
4653 echo "${ECHO_T}$RANLIB" >&6
4655 echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6
4660 if test -z "$ac_cv_prog_RANLIB"; then
4661 ac_ct_RANLIB=$RANLIB
4662 # Extract the first word of "ranlib", so it can be a program name with args.
4663 set dummy ranlib; ac_word=$2
4664 echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4666 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 if test -n "$ac_ct_RANLIB"; then
4670 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679 ac_cv_prog_ac_ct_RANLIB="ranlib"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4689 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4690 if test -n "$ac_ct_RANLIB"; then
4691 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4692 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4694 echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6
4698 RANLIB=$ac_ct_RANLIB
4700 RANLIB="$ac_cv_prog_RANLIB"
4703 if test -n "$ac_tool_prefix"; then
4704 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4705 set dummy ${ac_tool_prefix}strip; ac_word=$2
4706 echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708 if test "${ac_cv_prog_STRIP+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 if test -n "$STRIP"; then
4712 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 STRIP=$ac_cv_prog_STRIP
4731 if test -n "$STRIP"; then
4732 echo "$as_me:$LINENO: result: $STRIP" >&5
4733 echo "${ECHO_T}$STRIP" >&6
4735 echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6
4740 if test -z "$ac_cv_prog_STRIP"; then
4742 # Extract the first word of "strip", so it can be a program name with args.
4743 set dummy strip; ac_word=$2
4744 echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4746 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 if test -n "$ac_ct_STRIP"; then
4750 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759 ac_cv_prog_ac_ct_STRIP="strip"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4769 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4770 if test -n "$ac_ct_STRIP"; then
4771 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4772 echo "${ECHO_T}$ac_ct_STRIP" >&6
4774 echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6
4780 STRIP="$ac_cv_prog_STRIP"
4787 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4788 if test "${enable_libtool_lock+set}" = set; then
4789 enableval="$enable_libtool_lock"
4792 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4794 # Some flags need to be propagated to the compiler or linker for good
4798 # Find out which ABI we are using.
4799 echo '#line 4799 "configure"' > conftest.$ac_ext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4801 (eval $ac_compile) 2>&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; then
4805 case `/usr/bin/file conftest.$ac_objext` in
4821 # Test if the compiler is 64bit
4822 echo 'int i;' > conftest.$ac_ext
4823 lt_cv_cc_64bit_output=no
4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825 (eval $ac_compile) 2>&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; then
4829 case `/usr/bin/file conftest.$ac_objext` in
4831 lt_cv_cc_64bit_output=yes
4839 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4840 SAVE_CFLAGS="$CFLAGS"
4841 CFLAGS="$CFLAGS -belf"
4842 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4843 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4844 if test "${lt_cv_cc_needs_belf+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 ac_cpp='$CPP $CPPFLAGS'
4851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855 cat >conftest.$ac_ext <<_ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4870 rm -f conftest.$ac_objext conftest$ac_exeext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4872 (eval $ac_link) 2>conftest.er1
4874 grep -v '^ *+' conftest.er1 >conftest.err
4876 cat conftest.err >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } &&
4879 { ac_try='test -z "$ac_c_werror_flag"
4880 || test ! -s conftest.err'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; } &&
4886 { ac_try='test -s conftest$ac_exeext'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 lt_cv_cc_needs_belf=yes
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4897 lt_cv_cc_needs_belf=no
4899 rm -f conftest.err conftest.$ac_objext \
4900 conftest$ac_exeext conftest.$ac_ext
4902 ac_cpp='$CPP $CPPFLAGS'
4903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4909 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4910 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4911 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4912 CFLAGS="$SAVE_CFLAGS"
4919 # Sed substitution that helps us do robust quoting. It backslashifies
4920 # metacharacters that are still active within double-quoted strings.
4921 Xsed='sed -e s/^X//'
4922 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4924 # Same as above, but do not quote variable references.
4925 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4927 # Sed substitution to delay expansion of an escaped shell variable in a
4928 # double_quote_subst'ed string.
4929 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4935 default_ofile=libtool
4936 can_build_shared=yes
4938 # All known linkers require a `.a' archive for static linking (except M$VC,
4939 # which needs '.lib').
4941 ltmain="$ac_aux_dir/ltmain.sh"
4942 ofile="$default_ofile"
4943 with_gnu_ld="$lt_cv_prog_gnu_ld"
4944 need_locks="$enable_libtool_lock"
4947 old_CFLAGS="$CFLAGS"
4949 # Set sane defaults for various variables
4950 test -z "$AR" && AR=ar
4951 test -z "$AR_FLAGS" && AR_FLAGS=cru
4952 test -z "$AS" && AS=as
4953 test -z "$CC" && CC=cc
4954 test -z "$DLLTOOL" && DLLTOOL=dlltool
4955 test -z "$LD" && LD=ld
4956 test -z "$LN_S" && LN_S="ln -s"
4957 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4958 test -z "$NM" && NM=nm
4959 test -z "$OBJDUMP" && OBJDUMP=objdump
4960 test -z "$RANLIB" && RANLIB=:
4961 test -z "$STRIP" && STRIP=:
4962 test -z "$ac_objext" && ac_objext=o
4964 if test x"$host" != x"$build"; then
4965 ac_tool_prefix=${host_alias}-
4970 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4973 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4978 # AIX sometimes has problems with the GCC collect2 program. For some
4979 # reason, if we set the COLLECT_NAMES environment variable, the problems
4980 # vanish in a puff of smoke.
4981 if test "X${COLLECT_NAMES+set}" != Xset; then
4983 export COLLECT_NAMES
4988 # Determine commands to create old-style static archives.
4989 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4990 old_postinstall_cmds='chmod 644 $oldlib'
4991 old_postuninstall_cmds=
4993 if test -n "$RANLIB"; then
4996 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4999 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5002 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5005 # Allow CC to be a program name with arguments.
5009 echo "$as_me:$LINENO: checking for objdir" >&5
5010 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5011 rm -f .libs 2>/dev/null
5012 mkdir .libs 2>/dev/null
5013 if test -d .libs; then
5016 # MS-DOS does not allow filenames that begin with a dot.
5019 rmdir .libs 2>/dev/null
5020 echo "$as_me:$LINENO: result: $objdir" >&5
5021 echo "${ECHO_T}$objdir" >&6
5025 # Check whether --with-pic or --without-pic was given.
5026 if test "${with_pic+set}" = set; then
5032 test -z "$pic_mode" && pic_mode=default
5034 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5035 # in isolation, and that seeing it set (from the cache) indicates that
5036 # the associated values are set (in the cache) correctly too.
5037 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5038 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5039 if test "${lt_cv_prog_cc_pic+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 lt_cv_prog_cc_shlib=
5045 lt_cv_prog_cc_static=
5046 lt_cv_prog_cc_no_builtin=
5047 lt_cv_prog_cc_can_build_shared=$can_build_shared
5049 if test "$GCC" = yes; then
5050 lt_cv_prog_cc_wl='-Wl,'
5051 lt_cv_prog_cc_static='-static'
5055 # Below there is a dirty hack to force normal static linking with -ldl
5056 # The problem is because libdl dynamically linked with both libc and
5057 # libC (AIX C++ library), which obviously doesn't included in libraries
5058 # list by gcc. This cause undefined symbols with -static flags.
5059 # This hack allows C programs to be linked with "-static -ldl", but
5060 # not sure about C++ programs.
5061 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5064 # FIXME: we need at least 68020 code to build shared libraries, but
5065 # adding the `-m68020' flag to GCC prevents building anything better,
5067 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5069 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5070 # PIC is the default for these OSes.
5072 darwin* | rhapsody*)
5073 # PIC is the default on this platform
5074 # Common symbols not allowed in MH_DYLIB files
5075 lt_cv_prog_cc_pic='-fno-common'
5077 cygwin* | mingw* | pw32* | os2*)
5078 # This hack is so that the source file can tell whether it is being
5079 # built for inclusion in a dll (and should export symbols for example).
5080 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5083 if test -d /usr/nec; then
5084 lt_cv_prog_cc_pic=-Kconform_pic
5088 lt_cv_prog_cc_pic='-fPIC'
5092 # PORTME Check for PIC flags for the system compiler.
5094 aix3* | aix4* | aix5*)
5095 lt_cv_prog_cc_wl='-Wl,'
5096 # All AIX code is PIC.
5097 if test "$host_cpu" = ia64; then
5098 # AIX 5 now supports IA64 processor
5099 lt_cv_prog_cc_static='-Bstatic'
5101 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5105 hpux9* | hpux10* | hpux11*)
5106 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5107 lt_cv_prog_cc_wl='-Wl,'
5108 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5109 lt_cv_prog_cc_pic='+Z'
5112 irix5* | irix6* | nonstopux*)
5113 lt_cv_prog_cc_wl='-Wl,'
5114 lt_cv_prog_cc_static='-non_shared'
5115 # PIC (with -KPIC) is the default.
5118 cygwin* | mingw* | pw32* | os2*)
5119 # This hack is so that the source file can tell whether it is being
5120 # built for inclusion in a dll (and should export symbols for example).
5121 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5125 lt_cv_prog_cc_pic='-KPIC'
5126 lt_cv_prog_cc_static='-Bstatic'
5129 osf3* | osf4* | osf5*)
5130 # All OSF/1 code is PIC.
5131 lt_cv_prog_cc_wl='-Wl,'
5132 lt_cv_prog_cc_static='-non_shared'
5136 lt_cv_prog_cc_pic='-Kpic'
5137 lt_cv_prog_cc_static='-dn'
5138 lt_cv_prog_cc_shlib='-belf'
5142 lt_cv_prog_cc_pic='-KPIC'
5143 lt_cv_prog_cc_static='-Bstatic'
5144 lt_cv_prog_cc_wl='-Wl,'
5148 lt_cv_prog_cc_pic='-PIC'
5149 lt_cv_prog_cc_static='-Bstatic'
5150 lt_cv_prog_cc_wl='-Qoption ld '
5153 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5154 lt_cv_prog_cc_pic='-KPIC'
5155 lt_cv_prog_cc_static='-Bstatic'
5156 lt_cv_prog_cc_wl='-Wl,'
5160 lt_cv_prog_cc_pic='-pic'
5161 lt_cv_prog_cc_static='-Bstatic'
5165 if test -d /usr/nec ;then
5166 lt_cv_prog_cc_pic='-Kconform_pic'
5167 lt_cv_prog_cc_static='-Bstatic'
5172 lt_cv_prog_cc_can_build_shared=no
5179 if test -z "$lt_cv_prog_cc_pic"; then
5180 echo "$as_me:$LINENO: result: none" >&5
5181 echo "${ECHO_T}none" >&6
5183 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5184 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5186 # Check to make sure the pic_flag actually works.
5187 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5188 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5189 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 save_CFLAGS="$CFLAGS"
5193 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5194 cat >conftest.$ac_ext <<_ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5209 rm -f conftest.$ac_objext
5210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5211 (eval $ac_compile) 2>conftest.er1
5213 grep -v '^ *+' conftest.er1 >conftest.err
5215 cat conftest.err >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } &&
5218 { ac_try='test -z "$ac_c_werror_flag"
5219 || test ! -s conftest.err'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; } &&
5225 { ac_try='test -s conftest.$ac_objext'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; }; then
5232 hpux9* | hpux10* | hpux11*)
5233 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5234 # they create non-PIC objects. So, if there were any warnings, we
5235 # assume that PIC is not supported.
5236 if test -s conftest.err; then
5237 lt_cv_prog_cc_pic_works=no
5239 lt_cv_prog_cc_pic_works=yes
5243 lt_cv_prog_cc_pic_works=yes
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5251 lt_cv_prog_cc_pic_works=no
5254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5255 CFLAGS="$save_CFLAGS"
5260 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5262 lt_cv_prog_cc_can_build_shared=no
5264 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5267 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5268 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5271 # Check for any special shared library compilation flags.
5272 if test -n "$lt_cv_prog_cc_shlib"; then
5273 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5274 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5275 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5277 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5278 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5279 lt_cv_prog_cc_can_build_shared=no
5283 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5284 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5285 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 lt_cv_prog_cc_static_works=no
5289 save_LDFLAGS="$LDFLAGS"
5290 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5291 cat >conftest.$ac_ext <<_ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5306 rm -f conftest.$ac_objext conftest$ac_exeext
5307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5308 (eval $ac_link) 2>conftest.er1
5310 grep -v '^ *+' conftest.er1 >conftest.err
5312 cat conftest.err >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } &&
5315 { ac_try='test -z "$ac_c_werror_flag"
5316 || test ! -s conftest.err'
5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }; } &&
5322 { ac_try='test -s conftest$ac_exeext'
5323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; }; then
5328 lt_cv_prog_cc_static_works=yes
5330 echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5334 rm -f conftest.err conftest.$ac_objext \
5335 conftest$ac_exeext conftest.$ac_ext
5336 LDFLAGS="$save_LDFLAGS"
5341 # Belt *and* braces to stop my trousers falling down:
5342 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5343 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5344 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5346 pic_flag="$lt_cv_prog_cc_pic"
5347 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5348 wl="$lt_cv_prog_cc_wl"
5349 link_static_flag="$lt_cv_prog_cc_static"
5350 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5351 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5354 # Check to see if options -o and -c are simultaneously supported by compiler
5355 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5356 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5357 if test "${lt_cv_compiler_c_o+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 $rm -r conftest 2>/dev/null
5364 echo "int some_variable = 0;" > conftest.$ac_ext
5366 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5367 # that will create temporary files in the current directory regardless of
5368 # the output directory. Thus, making CWD read-only will cause this test
5369 # to fail, enabling locking or at least warning the user not to do parallel
5372 save_CFLAGS="$CFLAGS"
5373 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5375 if { (eval echo configure:5375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5376 # The compiler can only warn and ignore the option if not recognized
5377 # So say no if there are warnings
5378 if test -s out/conftest.err; then
5379 lt_cv_compiler_c_o=no
5381 lt_cv_compiler_c_o=yes
5384 # Append any errors to the config.log.
5385 cat out/conftest.err 1>&5
5386 lt_cv_compiler_c_o=no
5388 CFLAGS="$save_CFLAGS"
5394 $rm -r conftest 2>/dev/null
5398 compiler_c_o=$lt_cv_compiler_c_o
5399 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5400 echo "${ECHO_T}$compiler_c_o" >&6
5402 if test x"$compiler_c_o" = x"yes"; then
5403 # Check to see if we can write to a .lo
5404 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5405 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5406 if test "${lt_cv_compiler_o_lo+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 lt_cv_compiler_o_lo=no
5411 save_CFLAGS="$CFLAGS"
5412 CFLAGS="$CFLAGS -c -o conftest.lo"
5413 save_objext="$ac_objext"
5415 cat >conftest.$ac_ext <<_ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5425 int some_variable = 0;
5430 rm -f conftest.$ac_objext
5431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5432 (eval $ac_compile) 2>conftest.er1
5434 grep -v '^ *+' conftest.er1 >conftest.err
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } &&
5439 { ac_try='test -z "$ac_c_werror_flag"
5440 || test ! -s conftest.err'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; } &&
5446 { ac_try='test -s conftest.$ac_objext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 # The compiler can only warn and ignore the option if not recognized
5453 # So say no if there are warnings
5454 if test -s conftest.err; then
5455 lt_cv_compiler_o_lo=no
5457 lt_cv_compiler_o_lo=yes
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5466 ac_objext="$save_objext"
5467 CFLAGS="$save_CFLAGS"
5471 compiler_o_lo=$lt_cv_compiler_o_lo
5472 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5473 echo "${ECHO_T}$compiler_o_lo" >&6
5478 # Check to see if we can do hard links to lock some files if needed
5479 hard_links="nottested"
5480 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5481 # do not overwrite the value of need_locks provided by the user
5482 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5483 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5486 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5488 ln conftest.a conftest.b 2>&5 || hard_links=no
5489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5490 echo "$as_me:$LINENO: result: $hard_links" >&5
5491 echo "${ECHO_T}$hard_links" >&6
5492 if test "$hard_links" = no; then
5493 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5494 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5501 if test "$GCC" = yes; then
5502 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5503 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5504 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5505 echo "int some_variable = 0;" > conftest.$ac_ext
5506 save_CFLAGS="$CFLAGS"
5507 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5508 compiler_rtti_exceptions=no
5509 cat >conftest.$ac_ext <<_ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5519 int some_variable = 0;
5524 rm -f conftest.$ac_objext
5525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5526 (eval $ac_compile) 2>conftest.er1
5528 grep -v '^ *+' conftest.er1 >conftest.err
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 { ac_try='test -z "$ac_c_werror_flag"
5534 || test ! -s conftest.err'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; } &&
5540 { ac_try='test -s conftest.$ac_objext'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; }; then
5546 # The compiler can only warn and ignore the option if not recognized
5547 # So say no if there are warnings
5548 if test -s conftest.err; then
5549 compiler_rtti_exceptions=no
5551 compiler_rtti_exceptions=yes
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5560 CFLAGS="$save_CFLAGS"
5561 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5562 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5564 if test "$compiler_rtti_exceptions" = "yes"; then
5565 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5567 no_builtin_flag=' -fno-builtin'
5571 # See if the linker supports building shared libraries.
5572 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5573 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5575 allow_undefined_flag=
5577 need_lib_prefix=unknown
5578 need_version=unknown
5579 # when you set need_version to no, make sure it does not cause -set_version
5580 # flags to be left without arguments
5582 archive_expsym_cmds=
5583 old_archive_from_new_cmds=
5584 old_archive_from_expsyms_cmds=
5585 export_dynamic_flag_spec=
5586 whole_archive_flag_spec=
5587 thread_safe_flag_spec=
5588 hardcode_into_libs=no
5589 hardcode_libdir_flag_spec=
5590 hardcode_libdir_separator=
5593 hardcode_shlibpath_var=unsupported
5595 link_all_deplibs=unknown
5596 always_export_symbols=no
5597 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5598 # include_expsyms should be a list of space-separated symbols to be *always*
5599 # included in the symbol list
5601 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5602 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5603 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5604 # as well as any symbol that contains `d'.
5605 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5606 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5607 # platforms (ab)use it in PIC code, but their linkers get confused if
5608 # the symbol is explicitly referenced. Since portable code cannot
5609 # rely on this symbol name, it's probably fine to never include it in
5610 # preloaded symbol tables.
5611 extract_expsyms_cmds=
5614 cygwin* | mingw* | pw32*)
5615 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5616 # When not using gcc, we currently assume that we are using
5617 # Microsoft Visual C++.
5618 if test "$GCC" != yes; then
5628 if test "$with_gnu_ld" = yes; then
5629 # If archive_cmds runs LD, not CC, wlarc should be empty
5632 # See if GNU ld supports shared libraries.
5634 aix3* | aix4* | aix5*)
5635 # On AIX, the GNU linker is very broken
5636 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5640 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5641 *** to be unable to reliably create shared libraries on AIX.
5642 *** Therefore, libtool is disabling shared libraries support. If you
5643 *** really care for shared libraries, you may want to modify your PATH
5644 *** so that a non-GNU linker is found, and then restart.
5650 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5651 hardcode_libdir_flag_spec='-L$libdir'
5652 hardcode_minus_L=yes
5654 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5655 # that the semantics of dynamic libraries on AmigaOS, at least up
5656 # to version 4, is to share data among multiple programs linked
5657 # with the same dynamic library. Since this doesn't match the
5658 # behavior of shared libraries on other platforms, we can use
5664 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5665 allow_undefined_flag=unsupported
5666 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5667 # support --undefined. This deserves some investigation. FIXME
5668 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5674 cygwin* | mingw* | pw32*)
5675 # hardcode_libdir_flag_spec is actually meaningless, as there is
5676 # no search path for DLLs.
5677 hardcode_libdir_flag_spec='-L$libdir'
5678 allow_undefined_flag=unsupported
5679 always_export_symbols=yes
5681 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5682 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5683 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5684 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5685 else $CC -o impgen impgen.c ; fi)~
5686 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5688 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5690 # cygwin and mingw dlls have different entry points and sets of symbols
5692 # FIXME: what about values for MSVC?
5693 dll_entry=__cygwin_dll_entry@12
5694 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5698 dll_entry=_DllMainCRTStartup@12
5699 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5703 # mingw and cygwin differ, and it's simplest to just exclude the union
5704 # of the two symbol sets.
5705 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5707 # recent cygwin and mingw systems supply a stub DllMain which the user
5708 # can override, but on older systems we have to supply one (in ltdll.c)
5709 if test "x$lt_cv_need_dllmain" = "xyes"; then
5710 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5711 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5712 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5718 # Extract the symbol export list from an `--export-all' def file,
5719 # then regenerate the def file from the symbol export list, so that
5720 # the compiled dll only exports the symbol export list.
5721 # Be careful not to strip the DATA tag left be newer dlltools.
5722 export_symbols_cmds="$ltdll_cmds"'
5723 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5724 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5726 # If the export-symbols file already is a .def file (1st line
5727 # is EXPORTS), use it as is.
5728 # If DATA tags from a recent dlltool are present, honour them!
5729 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5730 cp $export_symbols $output_objdir/$soname-def;
5732 echo EXPORTS > $output_objdir/$soname-def;
5734 cat $export_symbols | while read symbol; do
5737 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5738 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5739 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5741 _lt_hint=`expr 1 + \$_lt_hint`;
5745 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5746 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5747 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5748 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5749 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5754 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5757 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5758 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5763 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5767 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5768 *** create shared libraries on Solaris systems. Therefore, libtool
5769 *** is disabling shared libraries support. We urge you to upgrade GNU
5770 *** binutils to release 2.9.1 or newer. Another option is to modify
5771 *** your PATH or compiler configuration so that the native linker is
5772 *** used, and then restart.
5775 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5784 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5787 hardcode_shlibpath_var=no
5791 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5793 supports_anon_versioning=no
5794 case `$LD -v 2>/dev/null` in
5795 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5796 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5797 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5798 *\ 2.11.*) ;; # other 2.11 versions
5799 *) supports_anon_versioning=yes ;;
5801 if test $supports_anon_versioning = yes; then
5802 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5803 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5804 $echo "local: *; };" >> $output_objdir/$libname.ver~
5805 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5807 $archive_expsym_cmds="$archive_cmds"
5815 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5817 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5824 if test "$ld_shlibs" = yes; then
5825 runpath_var=LD_RUN_PATH
5826 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5827 export_dynamic_flag_spec='${wl}--export-dynamic'
5829 cygwin* | mingw* | pw32*)
5830 # dlltool doesn't understand --whole-archive et. al.
5831 whole_archive_flag_spec=
5834 # ancient GNU ld didn't support --whole-archive et. al.
5835 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5836 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5838 whole_archive_flag_spec=
5844 # PORTME fill in a description of your system's linker (not GNU ld)
5847 allow_undefined_flag=unsupported
5848 always_export_symbols=yes
5849 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5850 # Note: this linker hardcodes the directories in LIBPATH if there
5851 # are no directories specified by -L.
5852 hardcode_minus_L=yes
5853 if test "$GCC" = yes && test -z "$link_static_flag"; then
5854 # Neither direct hardcoding nor static linking is supported with a
5856 hardcode_direct=unsupported
5861 if test "$host_cpu" = ia64; then
5862 # On IA64, the linker does run time linking by default, so we don't
5863 # have to do anything special.
5864 aix_use_runtimelinking=no
5865 exp_sym_flag='-Bexport'
5868 aix_use_runtimelinking=no
5870 # Test if we are trying to use run time linking or normal
5871 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5872 # need to do runtime linking.
5873 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5874 for ld_flag in $LDFLAGS; do
5877 aix_use_runtimelinking=yes
5884 exp_sym_flag='-bexport'
5885 no_entry_flag='-bnoentry'
5888 # When large executables or shared objects are built, AIX ld can
5889 # have problems creating the table of contents. If linking a library
5890 # or program results in "error TOC overflow" add -mminimal-toc to
5891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5896 hardcode_libdir_separator=':'
5897 if test "$GCC" = yes; then
5898 case $host_os in aix4.[012]|aix4.[012].*)
5899 collect2name=`${CC} -print-prog-name=collect2`
5900 if test -f "$collect2name" && \
5901 strings "$collect2name" | grep resolve_lib_name >/dev/null
5903 # We have reworked collect2
5906 # We have old collect2
5907 hardcode_direct=unsupported
5908 # It fails to find uninstalled libraries when the uninstalled
5909 # path is not listed in the libpath. Setting hardcode_minus_L
5910 # to unsupported forces relinking
5911 hardcode_minus_L=yes
5912 hardcode_libdir_flag_spec='-L$libdir'
5913 hardcode_libdir_separator=
5917 shared_flag='-shared'
5920 if test "$host_cpu" = ia64; then
5921 shared_flag='${wl}-G'
5923 if test "$aix_use_runtimelinking" = yes; then
5924 shared_flag='${wl}-G'
5926 shared_flag='${wl}-bM:SRE'
5931 # It seems that -bexpall can do strange things, so it is better to
5932 # generate a list of symbols to export.
5933 always_export_symbols=yes
5934 if test "$aix_use_runtimelinking" = yes; then
5935 # Warning - without using the other runtime loading flags (-brtl),
5936 # -berok will link without error, but may produce a broken library.
5937 allow_undefined_flag='-berok'
5938 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5939 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5941 if test "$host_cpu" = ia64; then
5942 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5943 allow_undefined_flag="-z nodefs"
5944 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5946 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5947 # Warning - without using the other run time loading flags,
5948 # -berok will link without error, but may produce a broken library.
5949 allow_undefined_flag='${wl}-berok'
5950 # This is a bit strange, but is similar to how AIX traditionally builds
5951 # it's shared libraries.
5952 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5958 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5959 hardcode_libdir_flag_spec='-L$libdir'
5960 hardcode_minus_L=yes
5961 # see comment about different semantics on the GNU ld section
5965 cygwin* | mingw* | pw32*)
5966 # When not using gcc, we currently assume that we are using
5967 # Microsoft Visual C++.
5968 # hardcode_libdir_flag_spec is actually meaningless, as there is
5969 # no search path for DLLs.
5970 hardcode_libdir_flag_spec=' '
5971 allow_undefined_flag=unsupported
5972 # Tell ltmain to make .lib files, not .a files.
5974 # FIXME: Setting linknames here is a bad hack.
5975 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5976 # The linker will automatically build a .lib file if we build a DLL.
5977 old_archive_from_new_cmds='true'
5978 # FIXME: Should let the user specify the lib program.
5979 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5980 fix_srcfile_path='`cygpath -w "$srcfile"`'
5983 darwin* | rhapsody*)
5985 rhapsody* | darwin1.[012])
5986 allow_undefined_flag='-undefined suppress'
5989 allow_undefined_flag='-flat_namespace -undefined suppress'
5992 # FIXME: Relying on posixy $() will cause problems for
5993 # cross-compilation, but unfortunately the echo tests do not
5994 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5995 # `"' quotes if we put them in here... so don't!
5996 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5997 # We need to add '_' to the symbols in $export_symbols first
5998 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6000 hardcode_shlibpath_var=no
6001 whole_archive_flag_spec='-all_load $convenience'
6008 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6009 # support. Future versions do this automatically, but an explicit c++rt0.o
6010 # does not break anything, and helps significantly (at the cost of a little
6013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6014 hardcode_libdir_flag_spec='-R$libdir'
6016 hardcode_shlibpath_var=no
6019 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6023 hardcode_minus_L=yes
6024 hardcode_shlibpath_var=no
6027 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6029 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6030 hardcode_libdir_flag_spec='-R$libdir'
6032 hardcode_shlibpath_var=no
6035 hpux9* | hpux10* | hpux11*)
6037 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6038 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6040 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6041 hardcode_libdir_separator=:
6043 hardcode_minus_L=yes # Not in the search PATH, but as the default
6044 # location of the library.
6045 export_dynamic_flag_spec='${wl}-E'
6048 irix5* | irix6* | nonstopux*)
6049 if test "$GCC" = yes; then
6050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6053 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6054 hardcode_libdir_flag_spec='-rpath $libdir'
6056 hardcode_libdir_separator=:
6057 link_all_deplibs=yes
6061 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6064 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6066 hardcode_libdir_flag_spec='-R$libdir'
6068 hardcode_shlibpath_var=no
6072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6074 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6075 hardcode_libdir_separator=:
6076 hardcode_shlibpath_var=no
6081 hardcode_shlibpath_var=no
6082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6083 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6084 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6085 export_dynamic_flag_spec='${wl}-E'
6088 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6090 hardcode_libdir_flag_spec='-R$libdir'
6093 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6094 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6101 hardcode_libdir_flag_spec='-L$libdir'
6102 hardcode_minus_L=yes
6103 allow_undefined_flag=unsupported
6104 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6105 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6109 if test "$GCC" = yes; then
6110 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6111 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6113 allow_undefined_flag=' -expect_unresolved \*'
6114 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6117 hardcode_libdir_separator=:
6120 osf4* | osf5*) # as osf3* with the addition of -msym flag
6121 if test "$GCC" = yes; then
6122 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6123 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6126 allow_undefined_flag=' -expect_unresolved \*'
6127 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6128 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6129 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6131 #Both c and cxx compiler support -rpath directly
6132 hardcode_libdir_flag_spec='-rpath $libdir'
6134 hardcode_libdir_separator=:
6138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6139 hardcode_shlibpath_var=no
6140 runpath_var=LD_RUN_PATH
6141 hardcode_runpath_var=yes
6142 export_dynamic_flag_spec='${wl}-Bexport'
6146 # gcc --version < 3.0 without binutils cannot create self contained
6147 # shared libraries reliably, requiring libgcc.a to resolve some of
6148 # the object symbols generated in some cases. Libraries that use
6149 # assert need libgcc.a to resolve __eprintf, for example. Linking
6150 # a copy of libgcc.a into every shared library to guarantee resolving
6151 # such symbols causes other problems: According to Tim Van Holder
6152 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6153 # (to the application) exception stack for one thing.
6154 no_undefined_flag=' -z defs'
6155 if test "$GCC" = yes; then
6156 case `$CC --version 2>/dev/null` in
6160 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6161 *** create self contained shared libraries on Solaris systems, without
6162 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6163 *** -no-undefined support, which will at least allow you to build shared
6164 *** libraries. However, you may find that when you link such libraries
6165 *** into an application without using GCC, you have to manually add
6166 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6167 *** upgrade to a newer version of GCC. Another option is to rebuild your
6168 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6175 # $CC -shared without GNU ld will not create a library from C++
6176 # object files and a static libstdc++, better avoid it by now
6177 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6178 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6179 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6180 hardcode_libdir_flag_spec='-R$libdir'
6181 hardcode_shlibpath_var=no
6183 solaris2.[0-5] | solaris2.[0-5].*) ;;
6184 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6185 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6187 link_all_deplibs=yes
6191 if test "x$host_vendor" = xsequent; then
6192 # Use $CC to link under sequent, because it throws in some extra .o
6193 # files that make .init and .fini sections work.
6194 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6196 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6198 hardcode_libdir_flag_spec='-L$libdir'
6200 hardcode_minus_L=yes
6201 hardcode_shlibpath_var=no
6205 case $host_vendor in
6207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6208 hardcode_direct=yes # is this really true???
6211 ## LD is ld it makes a PLAMLIB
6212 ## CC just makes a GrossModule.
6213 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6214 reload_cmds='$CC -r -o $output$reload_objs'
6218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6219 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6222 runpath_var='LD_RUN_PATH'
6223 hardcode_shlibpath_var=no
6227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6228 hardcode_shlibpath_var=no
6229 export_dynamic_flag_spec='-Bexport'
6233 no_undefined_flag=' -z text'
6234 # $CC -shared without GNU ld will not create a library from C++
6235 # object files and a static libstdc++, better avoid it by now
6236 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6237 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6238 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6239 hardcode_libdir_flag_spec=
6240 hardcode_shlibpath_var=no
6241 runpath_var='LD_RUN_PATH'
6245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6246 hardcode_libdir_flag_spec='-L$libdir'
6247 hardcode_shlibpath_var=no
6251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6252 hardcode_libdir_flag_spec='-L$libdir'
6253 hardcode_shlibpath_var=no
6257 if test -d /usr/nec; then
6258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6259 hardcode_shlibpath_var=no
6260 runpath_var=LD_RUN_PATH
6261 hardcode_runpath_var=yes
6267 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6270 hardcode_shlibpath_var=no
6271 hardcode_runpath_var=yes
6272 runpath_var=LD_RUN_PATH
6275 sysv5uw7* | unixware7*)
6276 no_undefined_flag='${wl}-z ${wl}text'
6277 if test "$GCC" = yes; then
6278 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6280 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6282 runpath_var='LD_RUN_PATH'
6283 hardcode_shlibpath_var=no
6291 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6292 echo "${ECHO_T}$ld_shlibs" >&6
6293 test "$ld_shlibs" = no && can_build_shared=no
6295 # Check hardcoding attributes.
6296 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6297 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6299 if test -n "$hardcode_libdir_flag_spec" || \
6300 test -n "$runpath_var"; then
6302 # We can hardcode non-existant directories.
6303 if test "$hardcode_direct" != no &&
6304 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6305 # have to relink, otherwise we might link with an installed library
6306 # when we should be linking with a yet-to-be-installed one
6307 ## test "$hardcode_shlibpath_var" != no &&
6308 test "$hardcode_minus_L" != no; then
6309 # Linking always hardcodes the temporary library directory.
6310 hardcode_action=relink
6312 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6313 hardcode_action=immediate
6316 # We cannot hardcode anything, or else we can only hardcode existing
6318 hardcode_action=unsupported
6320 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6321 echo "${ECHO_T}$hardcode_action" >&6
6325 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6326 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6327 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6328 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6329 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6330 echo "$as_me:$LINENO: result: yes" >&5
6331 echo "${ECHO_T}yes" >&6
6333 echo "$as_me:$LINENO: result: no" >&5
6334 echo "${ECHO_T}no" >&6
6337 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6338 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6340 # PORTME Fill in your ld.so characteristics
6341 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6342 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6344 libname_spec='lib$name'
6351 shlibpath_overrides_runpath=unknown
6353 dynamic_linker="$host_os ld.so"
6354 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6355 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6360 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6361 shlibpath_var=LIBPATH
6363 # AIX has no versioning support, so we append a major version to the name.
6364 soname_spec='${libname}${release}.so$major'
6371 hardcode_into_libs=yes
6372 if test "$host_cpu" = ia64; then
6373 # AIX 5 supports IA64
6374 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6375 shlibpath_var=LD_LIBRARY_PATH
6377 # With GCC up to 2.95.x, collect2 would create an import file
6378 # for dependence libraries. The import file would start with
6379 # the line `#! .'. This would cause the generated library to
6380 # depend on `.', always an invalid library. This was fixed in
6381 # development snapshots of GCC prior to 3.0.
6383 aix4 | aix4.[01] | aix4.[01].*)
6384 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6386 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6393 # AIX (on Power*) has no versioning support, so currently we can
6394 # not hardcode correct soname into executable. Probably we can
6395 # add versioning support to collect2, so additional links can
6396 # be useful in future.
6397 if test "$aix_use_runtimelinking" = yes; then
6398 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6399 # instead of lib<name>.a to let people know that these are not
6400 # typical AIX shared libraries.
6401 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6403 # We preserve .a as extension for shared libraries through AIX4.2
6404 # and later when we are not doing run time linking.
6405 library_names_spec='${libname}${release}.a $libname.a'
6406 soname_spec='${libname}${release}.so$major'
6408 shlibpath_var=LIBPATH
6410 hardcode_into_libs=yes
6414 library_names_spec='$libname.ixlibrary $libname.a'
6415 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6416 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6420 library_names_spec='${libname}.so'
6421 dynamic_linker="$host_os ld.so"
6422 shlibpath_var=LIBRARY_PATH
6428 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6429 soname_spec='${libname}${release}.so$major'
6430 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6431 shlibpath_var=LD_LIBRARY_PATH
6432 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6433 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6434 export_dynamic_flag_spec=-rdynamic
6435 # the default ld.so.conf also contains /usr/contrib/lib and
6436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6437 # libtool to hard-code these into programs
6440 cygwin* | mingw* | pw32*)
6441 version_type=windows
6444 case $GCC,$host_os in
6446 library_names_spec='$libname.dll.a'
6447 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6448 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6449 dldir=$destdir/`dirname \$dlpath`~
6450 test -d \$dldir || mkdir -p \$dldir~
6451 $install_prog .libs/$dlname \$dldir/$dlname'
6452 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6453 dlpath=$dir/\$dldll~
6457 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6458 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6461 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6464 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6467 dynamic_linker='Win32 ld.exe'
6468 # FIXME: first we should search . and the directory the executable is in
6472 darwin* | rhapsody*)
6473 dynamic_linker="$host_os dyld"
6477 # FIXME: Relying on posixy $() will cause problems for
6478 # cross-compilation, but unfortunately the echo tests do not
6479 # yet detect zsh echo's removal of \ escapes.
6480 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6481 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6482 shlibpath_overrides_runpath=yes
6483 shlibpath_var=DYLD_LIBRARY_PATH
6491 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6492 version_type=freebsd-$objformat
6493 case $version_type in
6495 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6500 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6504 shlibpath_var=LD_LIBRARY_PATH
6507 shlibpath_overrides_runpath=yes
6510 shlibpath_overrides_runpath=no
6511 hardcode_into_libs=yes
6520 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6521 soname_spec='${libname}${release}.so$major'
6522 shlibpath_var=LD_LIBRARY_PATH
6523 hardcode_into_libs=yes
6526 hpux9* | hpux10* | hpux11*)
6527 # Give a soname corresponding to the major version so that dld.sl refuses to
6528 # link against other versions.
6529 dynamic_linker="$host_os dld.sl"
6533 shlibpath_var=SHLIB_PATH
6534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6535 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6536 soname_spec='${libname}${release}.sl$major'
6537 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6538 postinstall_cmds='chmod 555 $lib'
6541 irix5* | irix6* | nonstopux*)
6543 nonstopux*) version_type=nonstopux ;;
6544 *) version_type=irix ;;
6548 soname_spec='${libname}${release}.so$major'
6549 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6551 irix5* | nonstopux*)
6555 case $LD in # libtool.m4 will add one of these switches to LD
6556 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6557 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6558 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6559 *) libsuff= shlibsuff= libmagic=never-match;;
6563 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6564 shlibpath_overrides_runpath=no
6565 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6566 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6569 # No shared lib support for Linux oldld, aout, or coff.
6570 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6574 # This must be Linux ELF.
6579 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6580 soname_spec='${libname}${release}.so$major'
6581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6582 shlibpath_var=LD_LIBRARY_PATH
6583 shlibpath_overrides_runpath=no
6584 # This implies no fast_install, which is unacceptable.
6585 # Some rework will be needed to allow for fast_install
6586 # before this can be enabled.
6587 hardcode_into_libs=yes
6589 case $host_cpu:$lt_cv_cc_64bit_output in
6590 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6591 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6592 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6596 # We used to test for /lib/ld.so.1 and disable shared libraries on
6597 # powerpc, because MkLinux only supported shared libraries with the
6598 # GNU dynamic linker. Since this was broken with cross compilers,
6599 # most powerpc-linux boxes support dynamic linking these days and
6600 # people can always --disable-shared, the test was removed, and we
6601 # assume the GNU/Linux dynamic linker is in use.
6602 dynamic_linker='GNU/Linux ld.so'
6604 # Find out which ABI we are using (multilib Linux x86_64 hack).
6608 echo '#line 6608 "configure"' > conftest.$ac_ext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610 (eval $ac_compile) 2>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; then
6614 case `/usr/bin/file conftest.$ac_objext` in
6625 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6626 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6634 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6636 dynamic_linker='NetBSD (a.out) ld.so'
6638 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6639 soname_spec='${libname}${release}.so$major'
6640 dynamic_linker='NetBSD ld.elf_so'
6642 shlibpath_var=LD_LIBRARY_PATH
6643 shlibpath_overrides_runpath=yes
6644 hardcode_into_libs=yes
6649 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6650 shlibpath_var=LD_LIBRARY_PATH
6651 shlibpath_overrides_runpath=yes
6658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6660 openbsd2.[89] | openbsd2.[89].*)
6661 shlibpath_overrides_runpath=no
6664 shlibpath_overrides_runpath=yes
6668 shlibpath_overrides_runpath=yes
6670 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6672 shlibpath_var=LD_LIBRARY_PATH
6676 libname_spec='$name'
6678 library_names_spec='$libname.dll $libname.a'
6679 dynamic_linker='OS/2 ld.exe'
6680 shlibpath_var=LIBPATH
6683 osf3* | osf4* | osf5*)
6686 soname_spec='${libname}${release}.so$major'
6687 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6688 shlibpath_var=LD_LIBRARY_PATH
6689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6691 hardcode_into_libs=yes
6696 soname_spec='${libname}${release}.so$major'
6697 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6698 shlibpath_var=LD_LIBRARY_PATH
6705 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6706 soname_spec='${libname}${release}.so$major'
6707 shlibpath_var=LD_LIBRARY_PATH
6708 shlibpath_overrides_runpath=yes
6709 hardcode_into_libs=yes
6710 # ldd complains unless libraries are executable
6711 postinstall_cmds='chmod +x $lib'
6716 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6718 shlibpath_var=LD_LIBRARY_PATH
6719 shlibpath_overrides_runpath=yes
6720 if test "$with_gnu_ld" = yes; then
6726 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6728 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6729 soname_spec='${libname}${release}.so$major'
6730 shlibpath_var=LD_LIBRARY_PATH
6731 case $host_vendor in
6733 shlibpath_overrides_runpath=no
6735 export_dynamic_flag_spec='${wl}-Blargedynsym'
6736 runpath_var=LD_RUN_PATH
6744 shlibpath_overrides_runpath=no
6745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6752 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6753 soname_spec='${libname}${release}.so$major'
6754 shlibpath_var=LD_LIBRARY_PATH
6761 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6762 soname_spec='${libname}${release}.so$major'
6763 shlibpath_var=LD_LIBRARY_PATH
6767 if test -d /usr/nec ;then
6769 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6770 soname_spec='$libname.so.$major'
6771 shlibpath_var=LD_LIBRARY_PATH
6779 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6780 echo "${ECHO_T}$dynamic_linker" >&6
6781 test "$dynamic_linker" = no && can_build_shared=no
6783 # Report the final consequences.
6784 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6785 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6786 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6787 echo "${ECHO_T}$can_build_shared" >&6
6789 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6790 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6791 test "$can_build_shared" = "no" && enable_shared=no
6793 # On AIX, shared libraries and static libraries use the same namespace, and
6794 # are all built from PIC.
6797 test "$enable_shared" = yes && enable_static=no
6798 if test -n "$RANLIB"; then
6799 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6800 postinstall_cmds='$RANLIB $lib'
6805 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6806 test "$enable_shared" = yes && enable_static=no
6810 echo "$as_me:$LINENO: result: $enable_shared" >&5
6811 echo "${ECHO_T}$enable_shared" >&6
6813 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6814 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6815 # Make sure either enable_shared or enable_static is yes.
6816 test "$enable_shared" = yes || enable_static=yes
6817 echo "$as_me:$LINENO: result: $enable_static" >&5
6818 echo "${ECHO_T}$enable_static" >&6
6820 if test "$hardcode_action" = relink; then
6821 # Fast installation is not supported
6822 enable_fast_install=no
6823 elif test "$shlibpath_overrides_runpath" = yes ||
6824 test "$enable_shared" = no; then
6825 # Fast installation is not necessary
6826 enable_fast_install=needless
6829 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6830 if test "$GCC" = yes; then
6831 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6834 if test "x$enable_dlopen" != xyes; then
6835 enable_dlopen=unknown
6836 enable_dlopen_self=unknown
6837 enable_dlopen_self_static=unknown
6844 lt_cv_dlopen="load_add_on"
6846 lt_cv_dlopen_self=yes
6849 cygwin* | mingw* | pw32*)
6850 lt_cv_dlopen="LoadLibrary"
6855 echo "$as_me:$LINENO: checking for shl_load" >&5
6856 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6857 if test "${ac_cv_func_shl_load+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 cat >conftest.$ac_ext <<_ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6866 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6868 #define shl_load innocuous_shl_load
6870 /* System header to define __stub macros and hopefully few prototypes,
6871 which can conflict with char shl_load (); below.
6872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6873 <limits.h> exists even on freestanding compilers. */
6876 # include <limits.h>
6878 # include <assert.h>
6883 /* Override any gcc2 internal prototype to avoid an error. */
6888 /* We use char because int might match the return type of a gcc2
6889 builtin and then its argument prototype would still apply. */
6891 /* The GNU C library defines this for functions which it implements
6892 to always fail with ENOSYS. Some functions are actually named
6893 something starting with __ and the normal name is an alias. */
6894 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6897 char (*f) () = shl_load;
6906 return f != shl_load;
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6913 (eval $ac_link) 2>conftest.er1
6915 grep -v '^ *+' conftest.er1 >conftest.err
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -z "$ac_c_werror_flag"
6921 || test ! -s conftest.err'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; } &&
6927 { ac_try='test -s conftest$ac_exeext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 ac_cv_func_shl_load=yes
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6938 ac_cv_func_shl_load=no
6940 rm -f conftest.err conftest.$ac_objext \
6941 conftest$ac_exeext conftest.$ac_ext
6943 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6944 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6945 if test $ac_cv_func_shl_load = yes; then
6946 lt_cv_dlopen="shl_load"
6948 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6949 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6950 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 ac_check_lib_save_LIBS=$LIBS
6955 cat >conftest.$ac_ext <<_ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h. */
6962 /* Override any gcc2 internal prototype to avoid an error. */
6966 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */
6977 rm -f conftest.$ac_objext conftest$ac_exeext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6979 (eval $ac_link) 2>conftest.er1
6981 grep -v '^ *+' conftest.er1 >conftest.err
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try='test -z "$ac_c_werror_flag"
6987 || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest$ac_exeext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 ac_cv_lib_dld_shl_load=yes
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 ac_cv_lib_dld_shl_load=no
7006 rm -f conftest.err conftest.$ac_objext \
7007 conftest$ac_exeext conftest.$ac_ext
7008 LIBS=$ac_check_lib_save_LIBS
7010 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7011 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7012 if test $ac_cv_lib_dld_shl_load = yes; then
7013 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7015 echo "$as_me:$LINENO: checking for dlopen" >&5
7016 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7017 if test "${ac_cv_func_dlopen+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7028 #define dlopen innocuous_dlopen
7030 /* System header to define __stub macros and hopefully few prototypes,
7031 which can conflict with char dlopen (); below.
7032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7033 <limits.h> exists even on freestanding compilers. */
7036 # include <limits.h>
7038 # include <assert.h>
7043 /* Override any gcc2 internal prototype to avoid an error. */
7048 /* We use char because int might match the return type of a gcc2
7049 builtin and then its argument prototype would still apply. */
7051 /* The GNU C library defines this for functions which it implements
7052 to always fail with ENOSYS. Some functions are actually named
7053 something starting with __ and the normal name is an alias. */
7054 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7057 char (*f) () = dlopen;
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073 (eval $ac_link) 2>conftest.er1
7075 grep -v '^ *+' conftest.er1 >conftest.err
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } &&
7080 { ac_try='test -z "$ac_c_werror_flag"
7081 || test ! -s conftest.err'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; } &&
7087 { ac_try='test -s conftest$ac_exeext'
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; }; then
7093 ac_cv_func_dlopen=yes
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7098 ac_cv_func_dlopen=no
7100 rm -f conftest.err conftest.$ac_objext \
7101 conftest$ac_exeext conftest.$ac_ext
7103 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7104 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7105 if test $ac_cv_func_dlopen = yes; then
7106 lt_cv_dlopen="dlopen"
7108 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7109 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7110 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 ac_check_lib_save_LIBS=$LIBS
7115 cat >conftest.$ac_ext <<_ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7122 /* Override any gcc2 internal prototype to avoid an error. */
7126 /* We use char because int might match the return type of a gcc2
7127 builtin and then its argument prototype would still apply. */
7137 rm -f conftest.$ac_objext conftest$ac_exeext
7138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7139 (eval $ac_link) 2>conftest.er1
7141 grep -v '^ *+' conftest.er1 >conftest.err
7143 cat conftest.err >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } &&
7146 { ac_try='test -z "$ac_c_werror_flag"
7147 || test ! -s conftest.err'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; } &&
7153 { ac_try='test -s conftest$ac_exeext'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; }; then
7159 ac_cv_lib_dl_dlopen=yes
7161 echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7164 ac_cv_lib_dl_dlopen=no
7166 rm -f conftest.err conftest.$ac_objext \
7167 conftest$ac_exeext conftest.$ac_ext
7168 LIBS=$ac_check_lib_save_LIBS
7170 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7171 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7172 if test $ac_cv_lib_dl_dlopen = yes; then
7173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7175 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7176 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7177 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 ac_check_lib_save_LIBS=$LIBS
7182 cat >conftest.$ac_ext <<_ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7189 /* Override any gcc2 internal prototype to avoid an error. */
7193 /* We use char because int might match the return type of a gcc2
7194 builtin and then its argument prototype would still apply. */
7204 rm -f conftest.$ac_objext conftest$ac_exeext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7206 (eval $ac_link) 2>conftest.er1
7208 grep -v '^ *+' conftest.er1 >conftest.err
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try='test -s conftest$ac_exeext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_cv_lib_svld_dlopen=yes
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7231 ac_cv_lib_svld_dlopen=no
7233 rm -f conftest.err conftest.$ac_objext \
7234 conftest$ac_exeext conftest.$ac_ext
7235 LIBS=$ac_check_lib_save_LIBS
7237 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7238 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7239 if test $ac_cv_lib_svld_dlopen = yes; then
7240 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7242 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7243 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7244 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 ac_check_lib_save_LIBS=$LIBS
7249 cat >conftest.$ac_ext <<_ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7256 /* Override any gcc2 internal prototype to avoid an error. */
7260 /* We use char because int might match the return type of a gcc2
7261 builtin and then its argument prototype would still apply. */
7271 rm -f conftest.$ac_objext conftest$ac_exeext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273 (eval $ac_link) 2>conftest.er1
7275 grep -v '^ *+' conftest.er1 >conftest.err
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -z "$ac_c_werror_flag"
7281 || test ! -s conftest.err'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; } &&
7287 { ac_try='test -s conftest$ac_exeext'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; }; then
7293 ac_cv_lib_dld_dld_link=yes
7295 echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7298 ac_cv_lib_dld_dld_link=no
7300 rm -f conftest.err conftest.$ac_objext \
7301 conftest$ac_exeext conftest.$ac_ext
7302 LIBS=$ac_check_lib_save_LIBS
7304 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7305 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7306 if test $ac_cv_lib_dld_dld_link = yes; then
7307 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7328 if test "x$lt_cv_dlopen" != xno; then
7334 case $lt_cv_dlopen in
7336 save_CPPFLAGS="$CPPFLAGS"
7337 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7339 save_LDFLAGS="$LDFLAGS"
7340 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7343 LIBS="$lt_cv_dlopen_libs $LIBS"
7345 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7346 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7347 if test "${lt_cv_dlopen_self+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 if test "$cross_compiling" = yes; then :
7351 lt_cv_dlopen_self=cross
7353 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7354 lt_status=$lt_dlunknown
7355 cat > conftest.$ac_ext <<EOF
7356 #line 7356 "configure"
7357 #include "confdefs.h"
7366 # define LT_DLGLOBAL RTLD_GLOBAL
7369 # define LT_DLGLOBAL DL_GLOBAL
7371 # define LT_DLGLOBAL 0
7375 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7376 find out it does not work in some platform. */
7377 #ifndef LT_DLLAZY_OR_NOW
7379 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7382 # define LT_DLLAZY_OR_NOW DL_LAZY
7385 # define LT_DLLAZY_OR_NOW RTLD_NOW
7388 # define LT_DLLAZY_OR_NOW DL_NOW
7390 # define LT_DLLAZY_OR_NOW 0
7398 extern "C" void exit (int);
7401 void fnord() { int i=42;}
7404 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7405 int status = $lt_dlunknown;
7409 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7410 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7411 /* dlclose (self); */
7417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7418 (eval $ac_link) 2>&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7422 (./conftest; exit; ) 2>/dev/null
7425 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7426 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7427 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7430 # compilation failed
7431 lt_cv_dlopen_self=no
7438 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7439 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7441 if test "x$lt_cv_dlopen_self" = xyes; then
7442 LDFLAGS="$LDFLAGS $link_static_flag"
7443 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7444 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7445 if test "${lt_cv_dlopen_self_static+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 if test "$cross_compiling" = yes; then :
7449 lt_cv_dlopen_self_static=cross
7451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7452 lt_status=$lt_dlunknown
7453 cat > conftest.$ac_ext <<EOF
7454 #line 7454 "configure"
7455 #include "confdefs.h"
7464 # define LT_DLGLOBAL RTLD_GLOBAL
7467 # define LT_DLGLOBAL DL_GLOBAL
7469 # define LT_DLGLOBAL 0
7473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7474 find out it does not work in some platform. */
7475 #ifndef LT_DLLAZY_OR_NOW
7477 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7480 # define LT_DLLAZY_OR_NOW DL_LAZY
7483 # define LT_DLLAZY_OR_NOW RTLD_NOW
7486 # define LT_DLLAZY_OR_NOW DL_NOW
7488 # define LT_DLLAZY_OR_NOW 0
7496 extern "C" void exit (int);
7499 void fnord() { int i=42;}
7502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7503 int status = $lt_dlunknown;
7507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7509 /* dlclose (self); */
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516 (eval $ac_link) 2>&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7520 (./conftest; exit; ) 2>/dev/null
7523 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7524 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7525 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7528 # compilation failed
7529 lt_cv_dlopen_self_static=no
7536 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7537 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7540 CPPFLAGS="$save_CPPFLAGS"
7541 LDFLAGS="$save_LDFLAGS"
7546 case $lt_cv_dlopen_self in
7547 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7548 *) enable_dlopen_self=unknown ;;
7551 case $lt_cv_dlopen_self_static in
7552 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7553 *) enable_dlopen_self_static=unknown ;;
7558 if test "$enable_shared" = yes && test "$GCC" = yes; then
7559 case $archive_cmds in
7561 # FIXME: we may have to deal with multi-command sequences.
7564 # Test whether the compiler implicitly links with -lc since on some
7565 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7566 # to ld, don't add -lc before -lgcc.
7567 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7568 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7569 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 echo 'static int dummy;' > conftest.$ac_ext
7575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7576 (eval $ac_compile) 2>&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; then
7582 libobjs=conftest.$ac_objext
7584 wl=$lt_cv_prog_cc_wl
7590 save_allow_undefined_flag=$allow_undefined_flag
7591 allow_undefined_flag=
7592 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7593 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }
7598 lt_cv_archive_cmds_need_lc=no
7600 lt_cv_archive_cmds_need_lc=yes
7602 allow_undefined_flag=$save_allow_undefined_flag
7604 cat conftest.err 1>&5
7608 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7609 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7613 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7615 # The second clause should only fire when bootstrapping the
7616 # libtool distribution, otherwise you forgot to ship ltmain.sh
7617 # with your package, and you will get complaints that there are
7618 # no rules to generate ltmain.sh.
7619 if test -f "$ltmain"; then
7622 # If there is no Makefile yet, we rely on a make rule to execute
7623 # `config.status --recheck' to rerun these tests and create the
7624 # libtool script then.
7625 test -f Makefile && make "$ltmain"
7628 if test -f "$ltmain"; then
7629 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7632 echo creating $ofile
7634 # Now quote all the things that may contain metacharacters while being
7635 # careful not to overquote the AC_SUBSTed values. We take copies of the
7636 # variables and quote the copies for generation of the libtool script.
7637 for var in echo old_CC old_CFLAGS SED \
7638 AR AR_FLAGS CC LD LN_S NM SHELL \
7639 reload_flag reload_cmds wl \
7640 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7641 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7642 library_names_spec soname_spec \
7643 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7644 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7645 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7646 old_striplib striplib file_magic_cmd export_symbols_cmds \
7647 deplibs_check_method allow_undefined_flag no_undefined_flag \
7648 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7649 global_symbol_to_c_name_address \
7650 hardcode_libdir_flag_spec hardcode_libdir_separator \
7651 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7652 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7655 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7656 old_postinstall_cmds | old_postuninstall_cmds | \
7657 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7658 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7659 postinstall_cmds | postuninstall_cmds | \
7660 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7661 # Double-quote double-evaled strings.
7662 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7665 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7670 cat <<__EOF__ > "${ofile}T"
7673 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7674 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7675 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7677 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7678 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7680 # This program is free software; you can redistribute it and/or modify
7681 # it under the terms of the GNU General Public License as published by
7682 # the Free Software Foundation; either version 2 of the License, or
7683 # (at your option) any later version.
7685 # This program is distributed in the hope that it will be useful, but
7686 # WITHOUT ANY WARRANTY; without even the implied warranty of
7687 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7688 # General Public License for more details.
7690 # You should have received a copy of the GNU General Public License
7691 # along with this program; if not, write to the Free Software
7692 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7694 # As a special exception to the GNU General Public License, if you
7695 # distribute this file as part of a program that contains a
7696 # configuration script generated by Autoconf, you may include it under
7697 # the same distribution terms that you use for the rest of that program.
7699 # A sed that does not truncate output.
7702 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7703 Xsed="${SED} -e s/^X//"
7705 # The HP-UX ksh and POSIX shell print the target directory to stdout
7707 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7709 # ### BEGIN LIBTOOL CONFIG
7711 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7713 # Shell to use when invoking shell scripts.
7716 # Whether or not to build shared libraries.
7717 build_libtool_libs=$enable_shared
7719 # Whether or not to build static libraries.
7720 build_old_libs=$enable_static
7722 # Whether or not to add -lc for building shared libraries.
7723 build_libtool_need_lc=$need_lc
7725 # Whether or not to optimize for fast installation.
7726 fast_install=$enable_fast_install
7729 host_alias=$host_alias
7732 # An echo program that does not interpret backslashes.
7737 AR_FLAGS=$lt_AR_FLAGS
7739 # The default C compiler.
7742 # Is the compiler the GNU C compiler?
7745 # The linker used to build libraries.
7748 # Whether we need hard or soft links.
7751 # A BSD-compatible nm program.
7754 # A symbol stripping program
7757 # Used to examine libraries when file_magic_cmd begins "file"
7758 MAGIC_CMD=$MAGIC_CMD
7760 # Used on cygwin: DLL creation program.
7763 # Used on cygwin: object dumper.
7766 # Used on cygwin: assembler.
7769 # The name of the directory that contains temporary libtool files.
7772 # How to create reloadable object files.
7773 reload_flag=$lt_reload_flag
7774 reload_cmds=$lt_reload_cmds
7776 # How to pass a linker flag through the compiler.
7779 # Object file suffix (normally "o").
7782 # Old archive suffix (normally "a").
7785 # Executable file suffix (normally "").
7788 # Additional compiler flags for building library objects.
7789 pic_flag=$lt_pic_flag
7792 # Does compiler simultaneously support -c and -o options?
7793 compiler_c_o=$lt_compiler_c_o
7795 # Can we write directly to a .lo ?
7796 compiler_o_lo=$lt_compiler_o_lo
7798 # Must we lock files when doing compilation ?
7799 need_locks=$lt_need_locks
7801 # Do we need the lib prefix for modules?
7802 need_lib_prefix=$need_lib_prefix
7804 # Do we need a version for libraries?
7805 need_version=$need_version
7807 # Whether dlopen is supported.
7808 dlopen_support=$enable_dlopen
7810 # Whether dlopen of programs is supported.
7811 dlopen_self=$enable_dlopen_self
7813 # Whether dlopen of statically linked programs is supported.
7814 dlopen_self_static=$enable_dlopen_self_static
7816 # Compiler flag to prevent dynamic linking.
7817 link_static_flag=$lt_link_static_flag
7819 # Compiler flag to turn off builtin functions.
7820 no_builtin_flag=$lt_no_builtin_flag
7822 # Compiler flag to allow reflexive dlopens.
7823 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7825 # Compiler flag to generate shared objects directly from archives.
7826 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7828 # Compiler flag to generate thread-safe objects.
7829 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7831 # Library versioning type.
7832 version_type=$version_type
7834 # Format of library name prefix.
7835 libname_spec=$lt_libname_spec
7837 # List of archive names. First name is the real one, the rest are links.
7838 # The last name is the one that the linker finds with -lNAME.
7839 library_names_spec=$lt_library_names_spec
7841 # The coded name of the library, if different from the real name.
7842 soname_spec=$lt_soname_spec
7844 # Commands used to build and install an old-style archive.
7846 old_archive_cmds=$lt_old_archive_cmds
7847 old_postinstall_cmds=$lt_old_postinstall_cmds
7848 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7850 # Create an old-style archive from a shared archive.
7851 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7853 # Create a temporary old-style archive to link instead of a shared archive.
7854 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7856 # Commands used to build and install a shared archive.
7857 archive_cmds=$lt_archive_cmds
7858 archive_expsym_cmds=$lt_archive_expsym_cmds
7859 postinstall_cmds=$lt_postinstall_cmds
7860 postuninstall_cmds=$lt_postuninstall_cmds
7862 # Commands to strip libraries.
7863 old_striplib=$lt_old_striplib
7864 striplib=$lt_striplib
7866 # Method to check whether dependent libraries are shared objects.
7867 deplibs_check_method=$lt_deplibs_check_method
7869 # Command to use when deplibs_check_method == file_magic.
7870 file_magic_cmd=$lt_file_magic_cmd
7872 # Flag that allows shared libraries with undefined symbols to be built.
7873 allow_undefined_flag=$lt_allow_undefined_flag
7875 # Flag that forces no undefined symbols.
7876 no_undefined_flag=$lt_no_undefined_flag
7878 # Commands used to finish a libtool library installation in a directory.
7879 finish_cmds=$lt_finish_cmds
7881 # Same as above, but a single script fragment to be evaled but not shown.
7882 finish_eval=$lt_finish_eval
7884 # Take the output of nm and produce a listing of raw symbols and C names.
7885 global_symbol_pipe=$lt_global_symbol_pipe
7887 # Transform the output of nm in a proper C declaration
7888 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7890 # Transform the output of nm in a C name address pair
7891 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7893 # This is the shared library runtime path variable.
7894 runpath_var=$runpath_var
7896 # This is the shared library path variable.
7897 shlibpath_var=$shlibpath_var
7899 # Is shlibpath searched before the hard-coded library search path?
7900 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7902 # How to hardcode a shared library path into an executable.
7903 hardcode_action=$hardcode_action
7905 # Whether we should hardcode library paths into libraries.
7906 hardcode_into_libs=$hardcode_into_libs
7908 # Flag to hardcode \$libdir into a binary during linking.
7909 # This must work even if \$libdir does not exist.
7910 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7912 # Whether we need a single -rpath flag with a separated argument.
7913 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7915 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7917 hardcode_direct=$hardcode_direct
7919 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7921 hardcode_minus_L=$hardcode_minus_L
7923 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7924 # the resulting binary.
7925 hardcode_shlibpath_var=$hardcode_shlibpath_var
7927 # Variables whose values should be saved in libtool wrapper scripts and
7928 # restored at relink time.
7929 variables_saved_for_relink="$variables_saved_for_relink"
7931 # Whether libtool must link a program against all its dependency libraries.
7932 link_all_deplibs=$link_all_deplibs
7934 # Compile-time system search path for libraries
7935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7937 # Run-time system search path for libraries
7938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7940 # Fix the shell variable \$srcfile for the compiler.
7941 fix_srcfile_path="$fix_srcfile_path"
7943 # Set to yes if exported symbols are required.
7944 always_export_symbols=$always_export_symbols
7946 # The commands to list exported symbols.
7947 export_symbols_cmds=$lt_export_symbols_cmds
7949 # The commands to extract the exported symbol list from a shared archive.
7950 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7952 # Symbols that should not be listed in the preloaded symbols.
7953 exclude_expsyms=$lt_exclude_expsyms
7955 # Symbols that must always be exported.
7956 include_expsyms=$lt_include_expsyms
7958 # ### END LIBTOOL CONFIG
7964 cat <<\EOF >> "${ofile}T"
7966 # AIX sometimes has problems with the GCC collect2 program. For some
7967 # reason, if we set the COLLECT_NAMES environment variable, the problems
7968 # vanish in a puff of smoke.
7969 if test "X${COLLECT_NAMES+set}" != Xset; then
7971 export COLLECT_NAMES
7978 cygwin* | mingw* | pw32* | os2*)
7979 cat <<'EOF' >> "${ofile}T"
7980 # This is a source program that is used to create dlls on Windows
7981 # Don't remove nor modify the starting and closing comments
7982 # /* ltdll.c starts here */
7983 # #define WIN32_LEAN_AND_MEAN
7984 # #include <windows.h>
7985 # #undef WIN32_LEAN_AND_MEAN
7986 # #include <stdio.h>
7988 # #ifndef __CYGWIN__
7989 # # ifdef __CYGWIN32__
7990 # # define __CYGWIN__ __CYGWIN32__
7994 # #ifdef __cplusplus
7997 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7998 # #ifdef __cplusplus
8003 # #include <cygwin/cygwin_dll.h>
8004 # DECLARE_CYGWIN_DLL( DllMain );
8006 # HINSTANCE __hDllInstance_base;
8009 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8011 # __hDllInstance_base = hInst;
8014 # /* ltdll.c ends here */
8015 # This is a source program that is used to create import libraries
8016 # on Windows for dlls which lack them. Don't remove nor modify the
8017 # starting and closing comments
8018 # /* impgen.c starts here */
8019 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8021 # This file is part of GNU libtool.
8023 # This program is free software; you can redistribute it and/or modify
8024 # it under the terms of the GNU General Public License as published by
8025 # the Free Software Foundation; either version 2 of the License, or
8026 # (at your option) any later version.
8028 # This program is distributed in the hope that it will be useful,
8029 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8030 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8031 # GNU General Public License for more details.
8033 # You should have received a copy of the GNU General Public License
8034 # along with this program; if not, write to the Free Software
8035 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8038 # #include <stdio.h> /* for printf() */
8039 # #include <unistd.h> /* for open(), lseek(), read() */
8040 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8041 # #include <string.h> /* for strdup() */
8043 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8045 # #define O_BINARY 0
8048 # static unsigned int
8049 # pe_get16 (fd, offset)
8053 # unsigned char b[2];
8054 # lseek (fd, offset, SEEK_SET);
8056 # return b[0] + (b[1]<<8);
8059 # static unsigned int
8060 # pe_get32 (fd, offset)
8064 # unsigned char b[4];
8065 # lseek (fd, offset, SEEK_SET);
8067 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8070 # static unsigned int
8074 # unsigned char *b = ptr;
8075 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8084 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8085 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8086 # unsigned long name_rvas, nexp;
8087 # unsigned char *expdata, *erva;
8088 # char *filename, *dll_name;
8090 # filename = argv[1];
8092 # dll = open(filename, O_RDONLY|O_BINARY);
8096 # dll_name = filename;
8098 # for (i=0; filename[i]; i++)
8099 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8100 # dll_name = filename + i +1;
8102 # pe_header_offset = pe_get32 (dll, 0x3c);
8103 # opthdr_ofs = pe_header_offset + 4 + 20;
8104 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8106 # if (num_entries < 1) /* no exports */
8109 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8110 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8111 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8112 # secptr = (pe_header_offset + 4 + 20 +
8113 # pe_get16 (dll, pe_header_offset + 4 + 16));
8116 # for (i = 0; i < nsections; i++)
8119 # unsigned long secptr1 = secptr + 40 * i;
8120 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8121 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8122 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8123 # lseek(dll, secptr1, SEEK_SET);
8124 # read(dll, sname, 8);
8125 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8127 # expptr = fptr + (export_rva - vaddr);
8128 # if (export_rva + export_size > vaddr + vsize)
8129 # export_size = vsize - (export_rva - vaddr);
8134 # expdata = (unsigned char*)malloc(export_size);
8135 # lseek (dll, expptr, SEEK_SET);
8136 # read (dll, expdata, export_size);
8137 # erva = expdata - export_rva;
8139 # nexp = pe_as32 (expdata+24);
8140 # name_rvas = pe_as32 (expdata+32);
8142 # printf ("EXPORTS\n");
8143 # for (i = 0; i<nexp; i++)
8145 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8146 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8151 # /* impgen.c ends here */
8157 # We use sed instead of cat because bash on DJGPP gets confused if
8158 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8159 # text mode, it properly converts lines to CR/LF. This bash problem
8160 # is reportedly fixed, but why not run on old versions too?
8161 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8163 mv -f "${ofile}T" "$ofile" || \
8164 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8172 # This can be used to rebuild libtool when needed
8173 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8175 # Always use our own libtool.
8176 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8178 # Prevent multiple expansion
8181 for ac_prog in gzip uncompress compress
8183 # Extract the first word of "$ac_prog", so it can be a program name with args.
8184 set dummy $ac_prog; ac_word=$2
8185 echo "$as_me:$LINENO: checking for $ac_word" >&5
8186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8187 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 if test -n "$UNCOMPRESS"; then
8191 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200 ac_cv_prog_UNCOMPRESS="$ac_prog"
8201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8210 if test -n "$UNCOMPRESS"; then
8211 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8212 echo "${ECHO_T}$UNCOMPRESS" >&6
8214 echo "$as_me:$LINENO: result: no" >&5
8215 echo "${ECHO_T}no" >&6
8218 test -n "$UNCOMPRESS" && break
8228 echo "$as_me:$LINENO: checking for target system" >&5
8229 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8233 *cygwin* ) CYGWIN=yes;;
8234 *mingw* ) MINGW=yes;;
8238 if test "x$MINGW" = "xyes"; then
8239 #fix for the debian distribution of mingw
8240 if test -x "/usr/i586-mingw32msvc/bin/ar";then
8241 AR="/usr/i586-mingw32msvc/bin/ar"
8243 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8244 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8246 #fix for the gentoo distribution of mingw
8247 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8248 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8250 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8251 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8253 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8254 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8260 if test "x${CYGWIN}" = "xyes"; then
8261 cat >>confdefs.h <<_ACEOF
8265 echo "$as_me:$LINENO: result: cygwin" >&5
8266 echo "${ECHO_T}cygwin" >&6
8268 if test "x${MINGW}" = "xyes"; then
8269 cat >>confdefs.h <<_ACEOF
8274 cat >>confdefs.h <<_ACEOF
8278 LIBS="$LIBS -lws2_32"
8279 echo "$as_me:$LINENO: result: mingw" >&5
8280 echo "${ECHO_T}mingw" >&6
8284 cat >>confdefs.h <<_ACEOF
8288 echo "$as_me:$LINENO: result: " >&5
8289 echo "${ECHO_T}" >&6
8295 if test "x${MINGW}" != "xyes"; then
8297 cat >>confdefs.h <<_ACEOF
8308 # The following tries to make use of includes and libraries in
8309 # /usr/local, too. Notice: A -I/usr/local/include might break
8310 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8311 # especially on systems which link /usr/local to /usr, so it has yet
8312 # to be seen how useful this is.
8313 if test -d /usr/local/lib; then
8314 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8316 if test -d /usr/local/include; then
8317 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8318 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8321 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8322 # if the user has a special prefix (like /opt), there might also be $prefix/lib
8323 # and $prefix/include, which should be included in our search paths for libraries
8325 LDFLAGS="$LDFLAGS -L${libdir}"
8326 CPPFLAGS="$CPPFLAGS -I${includedir}"
8327 # TODO- test whether gcc still works after this
8330 # this must be done after (I believe) AC_PROG_MAKE_SET
8331 if test "x$DEBUG" '!=' "x";then
8332 STRIP="@echo debug enabled, not stripping "
8338 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8339 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8340 if test "${ac_cv_lib_m_sin+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 ac_check_lib_save_LIBS=$LIBS
8345 cat >conftest.$ac_ext <<_ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8352 /* Override any gcc2 internal prototype to avoid an error. */
8356 /* We use char because int might match the return type of a gcc2
8357 builtin and then its argument prototype would still apply. */
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369 (eval $ac_link) 2>conftest.er1
8371 grep -v '^ *+' conftest.er1 >conftest.err
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -z "$ac_c_werror_flag"
8377 || test ! -s conftest.err'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; } &&
8383 { ac_try='test -s conftest$ac_exeext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8391 echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8396 rm -f conftest.err conftest.$ac_objext \
8397 conftest$ac_exeext conftest.$ac_ext
8398 LIBS=$ac_check_lib_save_LIBS
8400 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8401 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8402 if test $ac_cv_lib_m_sin = yes; then
8403 cat >>confdefs.h <<_ACEOF
8410 echo "Error: Math library not found.";
8416 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8417 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8418 if test "${ac_cv_lib_z_deflate+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 ac_check_lib_save_LIBS=$LIBS
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8430 /* Override any gcc2 internal prototype to avoid an error. */
8434 /* We use char because int might match the return type of a gcc2
8435 builtin and then its argument prototype would still apply. */
8445 rm -f conftest.$ac_objext conftest$ac_exeext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8447 (eval $ac_link) 2>conftest.er1
8449 grep -v '^ *+' conftest.er1 >conftest.err
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag"
8455 || test ! -s conftest.err'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest$ac_exeext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_cv_lib_z_deflate=yes
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8472 ac_cv_lib_z_deflate=no
8474 rm -f conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
8476 LIBS=$ac_check_lib_save_LIBS
8478 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8479 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8480 if test $ac_cv_lib_z_deflate = yes; then
8481 cat >>confdefs.h <<_ACEOF
8492 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8493 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8494 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 ac_check_lib_save_LIBS=$LIBS
8499 cat >conftest.$ac_ext <<_ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8506 /* Override any gcc2 internal prototype to avoid an error. */
8510 /* We use char because int might match the return type of a gcc2
8511 builtin and then its argument prototype would still apply. */
8512 char jpeg_write_raw_data ();
8516 jpeg_write_raw_data ();
8521 rm -f conftest.$ac_objext conftest$ac_exeext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8523 (eval $ac_link) 2>conftest.er1
8525 grep -v '^ *+' conftest.er1 >conftest.err
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try='test -z "$ac_c_werror_flag"
8531 || test ! -s conftest.err'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest$ac_exeext'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8543 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8548 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8550 rm -f conftest.err conftest.$ac_objext \
8551 conftest$ac_exeext conftest.$ac_ext
8552 LIBS=$ac_check_lib_save_LIBS
8554 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8555 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8556 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8557 cat >>confdefs.h <<_ACEOF
8558 #define HAVE_LIBJPEG 1
8568 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8569 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8570 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 ac_check_lib_save_LIBS=$LIBS
8575 cat >conftest.$ac_ext <<_ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8582 /* Override any gcc2 internal prototype to avoid an error. */
8586 /* We use char because int might match the return type of a gcc2
8587 builtin and then its argument prototype would still apply. */
8588 char T1_LoadFont ();
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599 (eval $ac_link) 2>conftest.er1
8601 grep -v '^ *+' conftest.er1 >conftest.err
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag"
8607 || test ! -s conftest.err'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; } &&
8613 { ac_try='test -s conftest$ac_exeext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 ac_cv_lib_t1_T1_LoadFont=yes
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8624 ac_cv_lib_t1_T1_LoadFont=no
8626 rm -f conftest.err conftest.$ac_objext \
8627 conftest$ac_exeext conftest.$ac_ext
8628 LIBS=$ac_check_lib_save_LIBS
8630 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8631 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8632 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8633 cat >>confdefs.h <<_ACEOF
8634 #define HAVE_LIBT1 1
8645 echo "$as_me:$LINENO: checking for byte order" >&5
8646 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8647 if test "$cross_compiling" = yes; then
8650 cat >conftest.$ac_ext <<_ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8657 int main (int argc, char *argv[])
8664 rm -f conftest$ac_exeext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8666 (eval $ac_link) 2>&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; }; then
8677 echo "$as_me: program exited with status $ac_status" >&5
8678 echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8688 if test "x${CROSSCOMPILE}" = "x1"; then
8689 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
8690 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
8691 echo "$as_me:$LINENO: checking target system type" >&5
8692 echo $ECHO_N "checking target system type... $ECHO_C" >&6
8693 if test "${ac_cv_target+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 ac_cv_target_alias=$target_alias
8697 test "x$ac_cv_target_alias" = "x" &&
8698 ac_cv_target_alias=$ac_cv_host_alias
8699 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
8700 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
8701 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
8702 { (exit 1); exit 1; }; }
8705 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
8706 echo "${ECHO_T}$ac_cv_target" >&6
8707 target=$ac_cv_target
8708 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8709 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8710 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8713 # The aliases save the names the user supplied, while $host etc.
8714 # will get canonicalized.
8715 test -n "$target_alias" &&
8716 test "$program_prefix$program_suffix$program_transform_name" = \
8718 program_prefix=${target_alias}-
8719 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
8720 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
8725 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
8732 if test "x${LITTLEENDIAN}" = "x1"; then
8733 echo "$as_me:$LINENO: result: little endian" >&5
8734 echo "${ECHO_T}little endian" >&6
8738 if test "x${BIGENDIAN}" = "x1"; then
8739 echo "$as_me:$LINENO: result: big endian" >&5
8740 echo "${ECHO_T}big endian" >&6
8743 export WORDS_BIGENDIAN
8744 cat >>confdefs.h <<_ACEOF
8745 #define WORDS_BIGENDIAN 1
8749 if test "x${BYTEORDERCHECKOK}" != "x1"; then
8750 echo "$as_me:$LINENO: result: unknown" >&5
8751 echo "${ECHO_T}unknown" >&6
8752 echo Byte order could not determined.
8758 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
8759 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
8760 if test "$cross_compiling" = yes; then
8763 cat >conftest.$ac_ext <<_ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8771 int main (int argc, char*argv[])
8773 return system("test `touch config.tmp2`");
8777 rm -f conftest$ac_exeext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8779 (eval $ac_link) 2>&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8790 echo "$as_me: program exited with status $ac_status" >&5
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8798 if test "x${OK}" = "xOK";then
8799 test -f config.tmp2 || OK=
8802 if test "x${CROSSCOMPILE}" = "x1";then
8805 if test "x${OK}" = "xOK";then
8807 echo "$as_me:$LINENO: result: yes" >&5
8808 echo "${ECHO_T}yes" >&6
8810 export SYSTEM_BACKTICKS
8811 cat >>confdefs.h <<_ACEOF
8812 #define SYSTEM_BACKTICKS 1
8816 echo "$as_me:$LINENO: result: no" >&5
8817 echo "${ECHO_T}no" >&6
8822 test "$program_prefix" != NONE &&
8823 program_transform_name="s,^,$program_prefix,;$program_transform_name"
8824 # Use a double $ so make ignores it.
8825 test "$program_suffix" != NONE &&
8826 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8827 # Double any \ or $. echo might interpret backslashes.
8828 # By default was `s,x,x', remove it if useless.
8829 cat <<\_ACEOF >conftest.sed
8830 s/[\\$]/&&/g;s/;s,x,x,$//
8832 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8836 ac_config_headers="$ac_config_headers config.h"
8844 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8845 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8846 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8847 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 cat >conftest.$ac_ext <<_ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8857 #include <sys/types.h>
8869 rm -f conftest.$ac_objext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871 (eval $ac_compile) 2>conftest.er1
8873 grep -v '^ *+' conftest.er1 >conftest.err
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try='test -z "$ac_c_werror_flag"
8879 || test ! -s conftest.err'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try='test -s conftest.$ac_objext'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 eval "$as_ac_Header=yes"
8893 echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.$ac_ext >&5
8896 eval "$as_ac_Header=no"
8898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8903 cat >>confdefs.h <<_ACEOF
8904 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8907 ac_header_dirent=$ac_hdr; break
8911 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8912 if test $ac_header_dirent = dirent.h; then
8913 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8914 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8915 if test "${ac_cv_search_opendir+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 ac_func_search_save_LIBS=$LIBS
8919 ac_cv_search_opendir=no
8920 cat >conftest.$ac_ext <<_ACEOF
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h. */
8927 /* Override any gcc2 internal prototype to avoid an error. */
8931 /* We use char because int might match the return type of a gcc2
8932 builtin and then its argument prototype would still apply. */
8942 rm -f conftest.$ac_objext conftest$ac_exeext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944 (eval $ac_link) 2>conftest.er1
8946 grep -v '^ *+' conftest.er1 >conftest.err
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag"
8952 || test ! -s conftest.err'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; } &&
8958 { ac_try='test -s conftest$ac_exeext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 ac_cv_search_opendir="none required"
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8970 rm -f conftest.err conftest.$ac_objext \
8971 conftest$ac_exeext conftest.$ac_ext
8972 if test "$ac_cv_search_opendir" = no; then
8973 for ac_lib in dir; do
8974 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8975 cat >conftest.$ac_ext <<_ACEOF
8978 cat confdefs.h >>conftest.$ac_ext
8979 cat >>conftest.$ac_ext <<_ACEOF
8980 /* end confdefs.h. */
8982 /* Override any gcc2 internal prototype to avoid an error. */
8986 /* We use char because int might match the return type of a gcc2
8987 builtin and then its argument prototype would still apply. */
8997 rm -f conftest.$ac_objext conftest$ac_exeext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999 (eval $ac_link) 2>conftest.er1
9001 grep -v '^ *+' conftest.er1 >conftest.err
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try='test -z "$ac_c_werror_flag"
9007 || test ! -s conftest.err'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; } &&
9013 { ac_try='test -s conftest$ac_exeext'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; }; then
9019 ac_cv_search_opendir="-l$ac_lib"
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9026 rm -f conftest.err conftest.$ac_objext \
9027 conftest$ac_exeext conftest.$ac_ext
9030 LIBS=$ac_func_search_save_LIBS
9032 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9033 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9034 if test "$ac_cv_search_opendir" != no; then
9035 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9040 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9041 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9042 if test "${ac_cv_search_opendir+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 ac_func_search_save_LIBS=$LIBS
9046 ac_cv_search_opendir=no
9047 cat >conftest.$ac_ext <<_ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9054 /* Override any gcc2 internal prototype to avoid an error. */
9058 /* We use char because int might match the return type of a gcc2
9059 builtin and then its argument prototype would still apply. */
9069 rm -f conftest.$ac_objext conftest$ac_exeext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9071 (eval $ac_link) 2>conftest.er1
9073 grep -v '^ *+' conftest.er1 >conftest.err
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -z "$ac_c_werror_flag"
9079 || test ! -s conftest.err'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; } &&
9085 { ac_try='test -s conftest$ac_exeext'
9086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); }; }; then
9091 ac_cv_search_opendir="none required"
9093 echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9097 rm -f conftest.err conftest.$ac_objext \
9098 conftest$ac_exeext conftest.$ac_ext
9099 if test "$ac_cv_search_opendir" = no; then
9101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9102 cat >conftest.$ac_ext <<_ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h. */
9109 /* Override any gcc2 internal prototype to avoid an error. */
9113 /* We use char because int might match the return type of a gcc2
9114 builtin and then its argument prototype would still apply. */
9124 rm -f conftest.$ac_objext conftest$ac_exeext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9126 (eval $ac_link) 2>conftest.er1
9128 grep -v '^ *+' conftest.er1 >conftest.err
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
9133 { ac_try='test -z "$ac_c_werror_flag"
9134 || test ! -s conftest.err'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } &&
9140 { ac_try='test -s conftest$ac_exeext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 ac_cv_search_opendir="-l$ac_lib"
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9153 rm -f conftest.err conftest.$ac_objext \
9154 conftest$ac_exeext conftest.$ac_ext
9157 LIBS=$ac_func_search_save_LIBS
9159 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9160 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9161 if test "$ac_cv_search_opendir" != no; then
9162 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9168 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9169 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9170 if test "${ac_cv_header_stdc+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 cat >conftest.$ac_ext <<_ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9192 rm -f conftest.$ac_objext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194 (eval $ac_compile) 2>conftest.er1
9196 grep -v '^ *+' conftest.er1 >conftest.err
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try='test -z "$ac_c_werror_flag"
9202 || test ! -s conftest.err'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest.$ac_objext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_header_stdc=yes
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 ac_cv_header_stdc=no
9221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9223 if test $ac_cv_header_stdc = yes; then
9224 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9225 cat >conftest.$ac_ext <<_ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9235 $EGREP "memchr" >/dev/null 2>&1; then
9238 ac_cv_header_stdc=no
9244 if test $ac_cv_header_stdc = yes; then
9245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9246 cat >conftest.$ac_ext <<_ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9256 $EGREP "free" >/dev/null 2>&1; then
9259 ac_cv_header_stdc=no
9265 if test $ac_cv_header_stdc = yes; then
9266 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9267 if test "$cross_compiling" = yes; then
9270 cat >conftest.$ac_ext <<_ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h. */
9277 #if ((' ' & 0x0FF) == 0x020)
9278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9281 # define ISLOWER(c) \
9282 (('a' <= (c) && (c) <= 'i') \
9283 || ('j' <= (c) && (c) <= 'r') \
9284 || ('s' <= (c) && (c) <= 'z'))
9285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9293 for (i = 0; i < 256; i++)
9294 if (XOR (islower (i), ISLOWER (i))
9295 || toupper (i) != TOUPPER (i))
9300 rm -f conftest$ac_exeext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302 (eval $ac_link) 2>&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9313 echo "$as_me: program exited with status $ac_status" >&5
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9318 ac_cv_header_stdc=no
9320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9324 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9325 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9326 if test $ac_cv_header_stdc = yes; then
9328 cat >>confdefs.h <<\_ACEOF
9329 #define STDC_HEADERS 1
9348 for ac_header in zlib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
9350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9352 echo "$as_me:$LINENO: checking for $ac_header" >&5
9353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9360 # Is the header compilable?
9361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9363 cat >conftest.$ac_ext <<_ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369 $ac_includes_default
9370 #include <$ac_header>
9372 rm -f conftest.$ac_objext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9374 (eval $ac_compile) 2>conftest.er1
9376 grep -v '^ *+' conftest.er1 >conftest.err
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try='test -z "$ac_c_werror_flag"
9382 || test ! -s conftest.err'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; } &&
9388 { ac_try='test -s conftest.$ac_objext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 ac_header_compiler=yes
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9399 ac_header_compiler=no
9401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9403 echo "${ECHO_T}$ac_header_compiler" >&6
9405 # Is the header present?
9406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9408 cat >conftest.$ac_ext <<_ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9414 #include <$ac_header>
9416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9419 grep -v '^ *+' conftest.er1 >conftest.err
9421 cat conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } >/dev/null; then
9424 if test -s conftest.err; then
9425 ac_cpp_err=$ac_c_preproc_warn_flag
9426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9433 if test -z "$ac_cpp_err"; then
9434 ac_header_preproc=yes
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 ac_header_preproc=no
9441 rm -f conftest.err conftest.$ac_ext
9442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9443 echo "${ECHO_T}$ac_header_preproc" >&6
9445 # So? What about this header?
9446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9452 ac_header_preproc=yes
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9469 ## ------------------------------------------ ##
9470 ## Report this to the AC_PACKAGE_NAME lists. ##
9471 ## ------------------------------------------ ##
9474 sed "s/^/$as_me: WARNING: /" >&2
9477 echo "$as_me:$LINENO: checking for $ac_header" >&5
9478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 eval "$as_ac_Header=\$ac_header_preproc"
9484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9489 cat >>confdefs.h <<_ACEOF
9490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9498 cat >>confdefs.h <<_ACEOF
9499 #define PACKAGE "$PACKAGE"
9502 cat >>confdefs.h <<_ACEOF
9503 #define VERSION "$VERSION"
9512 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9513 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9514 if test "${ac_cv_c_const+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 cat >conftest.$ac_ext <<_ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9527 /* FIXME: Include the comments suggested by Paul. */
9529 /* Ultrix mips cc rejects this. */
9530 typedef int charset[2];
9532 /* SunOS 4.1.1 cc rejects this. */
9533 char const *const *ccp;
9535 /* NEC SVR4.0.2 mips cc rejects this. */
9536 struct point {int x, y;};
9537 static struct point const zero = {0,0};
9538 /* AIX XL C 1.02.0.0 rejects this.
9539 It does not let you subtract one const X* pointer from another in
9540 an arm of an if-expression whose if-part is not a constant
9542 const char *g = "string";
9543 ccp = &g + (g ? g-g : 0);
9544 /* HPUX 7.0 cc rejects these. */
9547 ccp = (char const *const *) p;
9548 { /* SCO 3.2v4 cc rejects this. */
9550 char const *s = 0 ? (char *) 0 : (char const *) 0;
9554 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9556 const int *foo = &x[0];
9559 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9560 typedef const int *iptr;
9564 { /* AIX XL C 1.02.0.0 rejects this saying
9565 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9566 struct s { int j; const int *ap[3]; };
9567 struct s *b; b->j = 5;
9569 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9578 rm -f conftest.$ac_objext
9579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9580 (eval $ac_compile) 2>conftest.er1
9582 grep -v '^ *+' conftest.er1 >conftest.err
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -z "$ac_c_werror_flag"
9588 || test ! -s conftest.err'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; } &&
9594 { ac_try='test -s conftest.$ac_objext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9609 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9610 echo "${ECHO_T}$ac_cv_c_const" >&6
9611 if test $ac_cv_c_const = no; then
9613 cat >>confdefs.h <<\_ACEOF
9619 echo "$as_me:$LINENO: checking for inline" >&5
9620 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9621 if test "${ac_cv_c_inline+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 for ac_kw in inline __inline__ __inline; do
9626 cat >conftest.$ac_ext <<_ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9634 static $ac_kw foo_t static_foo () {return 0; }
9635 $ac_kw foo_t foo () {return 0; }
9639 rm -f conftest.$ac_objext
9640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9641 (eval $ac_compile) 2>conftest.er1
9643 grep -v '^ *+' conftest.er1 >conftest.err
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try='test -z "$ac_c_werror_flag"
9649 || test ! -s conftest.err'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; } &&
9655 { ac_try='test -s conftest.$ac_objext'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; }; then
9661 ac_cv_c_inline=$ac_kw; break
9663 echo "$as_me: failed program was:" >&5
9664 sed 's/^/| /' conftest.$ac_ext >&5
9667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9671 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9672 echo "${ECHO_T}$ac_cv_c_inline" >&6
9675 case $ac_cv_c_inline in
9678 case $ac_cv_c_inline in
9680 *) ac_val=$ac_cv_c_inline;;
9682 cat >>confdefs.h <<_ACEOF
9684 #define inline $ac_val
9690 echo "$as_me:$LINENO: checking for off_t" >&5
9691 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9692 if test "${ac_cv_type_off_t+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 cat >conftest.$ac_ext <<_ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 $ac_includes_default
9713 rm -f conftest.$ac_objext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9715 (eval $ac_compile) 2>conftest.er1
9717 grep -v '^ *+' conftest.er1 >conftest.err
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -z "$ac_c_werror_flag"
9723 || test ! -s conftest.err'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try='test -s conftest.$ac_objext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_cv_type_off_t=yes
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9744 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9745 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9746 if test $ac_cv_type_off_t = yes; then
9750 cat >>confdefs.h <<_ACEOF
9756 echo "$as_me:$LINENO: checking for size_t" >&5
9757 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9758 if test "${ac_cv_type_size_t+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 cat >conftest.$ac_ext <<_ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 $ac_includes_default
9773 if (sizeof (size_t))
9779 rm -f conftest.$ac_objext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9781 (eval $ac_compile) 2>conftest.er1
9783 grep -v '^ *+' conftest.er1 >conftest.err
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag"
9789 || test ! -s conftest.err'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest.$ac_objext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801 ac_cv_type_size_t=yes
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9806 ac_cv_type_size_t=no
9808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9810 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9811 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9812 if test $ac_cv_type_size_t = yes; then
9816 cat >>confdefs.h <<_ACEOF
9817 #define size_t unsigned
9822 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9823 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9824 if test "${ac_cv_struct_tm+set}" = set; then
9825 echo $ECHO_N "(cached) $ECHO_C" >&6
9827 cat >conftest.$ac_ext <<_ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833 #include <sys/types.h>
9839 struct tm *tp; tp->tm_sec;
9844 rm -f conftest.$ac_objext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9846 (eval $ac_compile) 2>conftest.er1
9848 grep -v '^ *+' conftest.er1 >conftest.err
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
9853 { ac_try='test -z "$ac_c_werror_flag"
9854 || test ! -s conftest.err'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; } &&
9860 { ac_try='test -s conftest.$ac_objext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 ac_cv_struct_tm=time.h
9868 echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9871 ac_cv_struct_tm=sys/time.h
9873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9875 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9876 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9877 if test $ac_cv_struct_tm = sys/time.h; then
9879 cat >>confdefs.h <<\_ACEOF
9880 #define TM_IN_SYS_TIME 1
9885 echo "$as_me:$LINENO: checking for boolean" >&5
9886 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
9887 if test "${ac_cv_type_boolean+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 cat >conftest.$ac_ext <<_ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 $ac_includes_default
9902 if (sizeof (boolean))
9908 rm -f conftest.$ac_objext
9909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9910 (eval $ac_compile) 2>conftest.er1
9912 grep -v '^ *+' conftest.er1 >conftest.err
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try='test -z "$ac_c_werror_flag"
9918 || test ! -s conftest.err'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; } &&
9924 { ac_try='test -s conftest.$ac_objext'
9925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; }; then
9930 ac_cv_type_boolean=yes
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9935 ac_cv_type_boolean=no
9937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9939 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
9940 echo "${ECHO_T}$ac_cv_type_boolean" >&6
9941 if test $ac_cv_type_boolean = yes; then
9945 cat >>confdefs.h <<_ACEOF
9962 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
9964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9965 echo "$as_me:$LINENO: checking for $ac_func" >&5
9966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9967 if eval "test \"\${$as_ac_var+set}\" = set"; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 cat >conftest.$ac_ext <<_ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9978 #define $ac_func innocuous_$ac_func
9980 /* System header to define __stub macros and hopefully few prototypes,
9981 which can conflict with char $ac_func (); below.
9982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9983 <limits.h> exists even on freestanding compilers. */
9986 # include <limits.h>
9988 # include <assert.h>
9993 /* Override any gcc2 internal prototype to avoid an error. */
9998 /* We use char because int might match the return type of a gcc2
9999 builtin and then its argument prototype would still apply. */
10001 /* The GNU C library defines this for functions which it implements
10002 to always fail with ENOSYS. Some functions are actually named
10003 something starting with __ and the normal name is an alias. */
10004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10007 char (*f) () = $ac_func;
10016 return f != $ac_func;
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023 (eval $ac_link) 2>conftest.er1
10025 grep -v '^ *+' conftest.er1 >conftest.err
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try='test -z "$ac_c_werror_flag"
10031 || test ! -s conftest.err'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; } &&
10037 { ac_try='test -s conftest$ac_exeext'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 eval "$as_ac_var=yes"
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 eval "$as_ac_var=no"
10050 rm -f conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10055 if test `eval echo '${'$as_ac_var'}'` = yes; then
10056 cat >>confdefs.h <<_ACEOF
10057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10064 # ------------------------------------------------------------------
10067 for ac_prog in freetype-config
10069 # Extract the first word of "$ac_prog", so it can be a program name with args.
10070 set dummy $ac_prog; ac_word=$2
10071 echo "$as_me:$LINENO: checking for $ac_word" >&5
10072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10073 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 if test -n "$FREETYPE_CONFIG"; then
10077 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080 for as_dir in $PATH
10083 test -z "$as_dir" && as_dir=.
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10086 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
10087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
10096 if test -n "$FREETYPE_CONFIG"; then
10097 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
10098 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
10100 echo "$as_me:$LINENO: result: no" >&5
10101 echo "${ECHO_T}no" >&6
10104 test -n "$FREETYPE_CONFIG" && break
10107 OLDCPPFLAGS="${CPPFLAGS}"
10109 if test "x${FREETYPE_CONFIG}" != "x"; then
10110 CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
10111 else if test -d /usr/include/freetype2; then
10112 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
10113 else if test -d /usr/local/include/freetype2; then
10114 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
10119 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10120 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10121 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-lfreetype $LIBS"
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10133 /* Override any gcc2 internal prototype to avoid an error. */
10137 /* We use char because int might match the return type of a gcc2
10138 builtin and then its argument prototype would still apply. */
10139 char FT_Init_FreeType ();
10143 FT_Init_FreeType ();
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>conftest.er1
10152 grep -v '^ *+' conftest.er1 >conftest.err
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag"
10158 || test ! -s conftest.err'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; } &&
10164 { ac_try='test -s conftest$ac_exeext'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 ac_cv_lib_freetype_FT_Init_FreeType=yes
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 ac_cv_lib_freetype_FT_Init_FreeType=no
10177 rm -f conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10181 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10182 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10183 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10184 HAVE_LIB_FREETYPE=1
10188 for ac_header in freetype/freetype.h
10190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10192 echo "$as_me:$LINENO: checking for $ac_header" >&5
10193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10200 # Is the header compilable?
10201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10203 cat >conftest.$ac_ext <<_ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10209 $ac_includes_default
10210 #include <$ac_header>
10212 rm -f conftest.$ac_objext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10214 (eval $ac_compile) 2>conftest.er1
10216 grep -v '^ *+' conftest.er1 >conftest.err
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try='test -z "$ac_c_werror_flag"
10222 || test ! -s conftest.err'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest.$ac_objext'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; }; then
10234 ac_header_compiler=yes
10236 echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10239 ac_header_compiler=no
10241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10243 echo "${ECHO_T}$ac_header_compiler" >&6
10245 # Is the header present?
10246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10248 cat >conftest.$ac_ext <<_ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h. */
10254 #include <$ac_header>
10256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10259 grep -v '^ *+' conftest.er1 >conftest.err
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } >/dev/null; then
10264 if test -s conftest.err; then
10265 ac_cpp_err=$ac_c_preproc_warn_flag
10266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10273 if test -z "$ac_cpp_err"; then
10274 ac_header_preproc=yes
10276 echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10279 ac_header_preproc=no
10281 rm -f conftest.err conftest.$ac_ext
10282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10283 echo "${ECHO_T}$ac_header_preproc" >&6
10285 # So? What about this header?
10286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10292 ac_header_preproc=yes
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10309 ## ------------------------------------------ ##
10310 ## Report this to the AC_PACKAGE_NAME lists. ##
10311 ## ------------------------------------------ ##
10314 sed "s/^/$as_me: WARNING: /" >&2
10317 echo "$as_me:$LINENO: checking for $ac_header" >&5
10318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 eval "$as_ac_Header=\$ac_header_preproc"
10324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10329 cat >>confdefs.h <<_ACEOF
10330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10332 HAVE_FREETYPE_FREETYPE_H=1
10338 for ac_header in ft2build.h
10340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10342 echo "$as_me:$LINENO: checking for $ac_header" >&5
10343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10350 # Is the header compilable?
10351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10353 cat >conftest.$ac_ext <<_ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 $ac_includes_default
10360 #include <$ac_header>
10362 rm -f conftest.$ac_objext
10363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10364 (eval $ac_compile) 2>conftest.er1
10366 grep -v '^ *+' conftest.er1 >conftest.err
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } &&
10371 { ac_try='test -z "$ac_c_werror_flag"
10372 || test ! -s conftest.err'
10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; } &&
10378 { ac_try='test -s conftest.$ac_objext'
10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 ac_header_compiler=yes
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10389 ac_header_compiler=no
10391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10393 echo "${ECHO_T}$ac_header_compiler" >&6
10395 # Is the header present?
10396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10398 cat >conftest.$ac_ext <<_ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10404 #include <$ac_header>
10406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10409 grep -v '^ *+' conftest.er1 >conftest.err
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } >/dev/null; then
10414 if test -s conftest.err; then
10415 ac_cpp_err=$ac_c_preproc_warn_flag
10416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10423 if test -z "$ac_cpp_err"; then
10424 ac_header_preproc=yes
10426 echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 ac_header_preproc=no
10431 rm -f conftest.err conftest.$ac_ext
10432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10433 echo "${ECHO_T}$ac_header_preproc" >&6
10435 # So? What about this header?
10436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10442 ac_header_preproc=yes
10445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10459 ## ------------------------------------------ ##
10460 ## Report this to the AC_PACKAGE_NAME lists. ##
10461 ## ------------------------------------------ ##
10464 sed "s/^/$as_me: WARNING: /" >&2
10467 echo "$as_me:$LINENO: checking for $ac_header" >&5
10468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 eval "$as_ac_Header=\$ac_header_preproc"
10474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10479 cat >>confdefs.h <<_ACEOF
10480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10488 if test "x${HAVE_LIB_FREETYPE}" != "x";then
10489 if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
10494 if test "x${HAVE_FREETYPE}" = "x1"; then
10495 if test "x{$FREETYPE_CONFIG}" != "x"; then
10496 LIBS="$LIBS "`freetype-config --libs`
10498 LIBS="$LIBS -lfreetype"
10501 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
10502 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
10505 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
10506 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
10508 cat > conftest.c << EOF
10509 $HAVE_FT2BUILD_H_DEFINE
10511 #ifdef HAVE_FT2BUILD_H
10512 #include <ft2build.h>
10513 #include FT_FREETYPE_H
10514 #include FT_GLYPH_H
10515 #include FT_SIZES_H
10516 #include FT_SFNT_NAMES_H
10517 #include FT_TRUETYPE_IDS_H
10518 #include FT_OUTLINE_H
10520 #include <freetype/freetype.h>
10521 #include <freetype/ftglyph.h>
10522 #include <freetype/ftsizes.h>
10523 #include <freetype/ftsnames.h>
10524 #include <freetype/ttnameid.h>
10525 #include <freetype/ftoutln.h>
10530 FT_Library ftlibrary;
10542 FT_Init_FreeType(&ftlibrary);
10543 FT_New_Face(ftlibrary, "filename", 0, &face);
10544 i = face->num_glyphs - 1;
10545 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
10546 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
10547 FT_Get_Postscript_Name(face);
10548 FT_Get_Char_Index(face, 33);
10549 FT_Get_First_Char(face, &i);
10550 FT_Get_Next_Char(face, 33, &i);
10551 if(FT_HAS_GLYPH_NAMES(face)) {
10552 FT_Get_Glyph_Name(face, 33, name, 127);
10554 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
10555 FT_Get_Glyph(face->glyph, &glyph);
10556 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
10557 FT_Done_Glyph(glyph);
10558 FT_Done_Face(face);
10559 FT_Done_FreeType(ftlibrary);
10564 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10565 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10566 echo "$as_me:$LINENO: result: yes" >&5
10567 echo "${ECHO_T}yes" >&6
10568 cat >>confdefs.h <<_ACEOF
10569 #define HAVE_FREETYPE 1
10572 cat >>confdefs.h <<_ACEOF
10573 #define USE_FREETYPE 1
10577 echo "configure: failed program was:" >&5
10580 echo "$as_me:$LINENO: result: no" >&5
10581 echo "${ECHO_T}no" >&6
10586 # if the above didn't work out, reset all changes to the compiler variables.
10587 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
10588 CPPFLAGS=$OLDCPPFLAGS
10593 # ------------------------------------------------------------------
10597 if test "x${DISABLE_LAME}" = "xtrue"; then
10598 echo "*" Disabling lame support...
10600 # old lame code at lib/lame
10601 if test -f lib/lame/Makefile.in; then
10602 lame_objects="lame/psymodel.o lame/fft.o lame/newmdct.o lame/quantize.o lame/takehiro.o lame/reservoir.o lame/quantize_pvt.o lame/vbrquantize.o lame/encoder.o lame/id3tag.o lame/version.o lame/tables.o lame/util.o lame/bitstream.o lame/set_get.o lame/VbrTag.o lame/lame.o"
10603 lame_makefile="lib/lame/Makefile"
10604 CPPFLAGS="$CPPFLAGS -Ilame"
10605 cat >>confdefs.h <<_ACEOF
10606 #define HAVE_LAME 1
10610 if test -d /usr/include/lame; then
10611 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
10613 if test -d /usr/local/include/lame; then
10614 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
10618 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
10619 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
10620 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 ac_check_lib_save_LIBS=$LIBS
10624 LIBS="-lmp3lame $LIBS"
10625 cat >conftest.$ac_ext <<_ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10632 /* Override any gcc2 internal prototype to avoid an error. */
10636 /* We use char because int might match the return type of a gcc2
10637 builtin and then its argument prototype would still apply. */
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649 (eval $ac_link) 2>conftest.er1
10651 grep -v '^ *+' conftest.er1 >conftest.err
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag"
10657 || test ! -s conftest.err'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 ac_cv_lib_mp3lame_lame_init=yes
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 ac_cv_lib_mp3lame_lame_init=no
10676 rm -f conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10678 LIBS=$ac_check_lib_save_LIBS
10680 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
10681 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
10682 if test $ac_cv_lib_mp3lame_lame_init = yes; then
10683 cat >>confdefs.h <<_ACEOF
10684 #define HAVE_LIBMP3LAME 1
10687 LIBS="-lmp3lame $LIBS"
10694 for ac_header in lame.h
10696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10698 echo "$as_me:$LINENO: checking for $ac_header" >&5
10699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10706 # Is the header compilable?
10707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10709 cat >conftest.$ac_ext <<_ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 $ac_includes_default
10716 #include <$ac_header>
10718 rm -f conftest.$ac_objext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10720 (eval $ac_compile) 2>conftest.er1
10722 grep -v '^ *+' conftest.er1 >conftest.err
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } &&
10727 { ac_try='test -z "$ac_c_werror_flag"
10728 || test ! -s conftest.err'
10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 (eval $ac_try) 2>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; } &&
10734 { ac_try='test -s conftest.$ac_objext'
10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736 (eval $ac_try) 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 ac_header_compiler=yes
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 ac_header_compiler=no
10747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10749 echo "${ECHO_T}$ac_header_compiler" >&6
10751 # Is the header present?
10752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10754 cat >conftest.$ac_ext <<_ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 #include <$ac_header>
10762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10765 grep -v '^ *+' conftest.er1 >conftest.err
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } >/dev/null; then
10770 if test -s conftest.err; then
10771 ac_cpp_err=$ac_c_preproc_warn_flag
10772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10779 if test -z "$ac_cpp_err"; then
10780 ac_header_preproc=yes
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10785 ac_header_preproc=no
10787 rm -f conftest.err conftest.$ac_ext
10788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789 echo "${ECHO_T}$ac_header_preproc" >&6
10791 # So? What about this header?
10792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798 ac_header_preproc=yes
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10815 ## ------------------------------------------ ##
10816 ## Report this to the AC_PACKAGE_NAME lists. ##
10817 ## ------------------------------------------ ##
10820 sed "s/^/$as_me: WARNING: /" >&2
10823 echo "$as_me:$LINENO: checking for $ac_header" >&5
10824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 eval "$as_ac_Header=\$ac_header_preproc"
10830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10835 cat >>confdefs.h <<_ACEOF
10836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10843 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
10844 cat >>confdefs.h <<_ACEOF
10845 #define HAVE_LAME 1
10853 # ------------------------------------------------------------------
10857 for ac_prog in avifile-config
10859 # Extract the first word of "$ac_prog", so it can be a program name with args.
10860 set dummy $ac_prog; ac_word=$2
10861 echo "$as_me:$LINENO: checking for $ac_word" >&5
10862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10863 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 if test -n "$AVIFILE_CONFIG"; then
10867 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870 for as_dir in $PATH
10873 test -z "$as_dir" && as_dir=.
10874 for ac_exec_ext in '' $ac_executable_extensions; do
10875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10876 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10886 if test -n "$AVIFILE_CONFIG"; then
10887 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10888 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
10890 echo "$as_me:$LINENO: result: no" >&5
10891 echo "${ECHO_T}no" >&6
10894 test -n "$AVIFILE_CONFIG" && break
10898 if test "x$AVIFILE_CONFIG" '!=' "x";then
10899 OLDCPPFLAGS="$CPPFLAGS"
10900 #OLDLDFLAGS="$LDFLAGS"
10901 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10902 #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
10905 for ac_header in avifile/version.h version.h
10907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10909 echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10917 # Is the header compilable?
10918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10920 cat >conftest.$ac_ext <<_ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 $ac_includes_default
10927 #include <$ac_header>
10929 rm -f conftest.$ac_objext
10930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10931 (eval $ac_compile) 2>conftest.er1
10933 grep -v '^ *+' conftest.er1 >conftest.err
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
10938 { ac_try='test -z "$ac_c_werror_flag"
10939 || test ! -s conftest.err'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; } &&
10945 { ac_try='test -s conftest.$ac_objext'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_header_compiler=yes
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 ac_header_compiler=no
10958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10960 echo "${ECHO_T}$ac_header_compiler" >&6
10962 # Is the header present?
10963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10965 cat >conftest.$ac_ext <<_ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971 #include <$ac_header>
10973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10976 grep -v '^ *+' conftest.er1 >conftest.err
10978 cat conftest.err >&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } >/dev/null; then
10981 if test -s conftest.err; then
10982 ac_cpp_err=$ac_c_preproc_warn_flag
10983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10990 if test -z "$ac_cpp_err"; then
10991 ac_header_preproc=yes
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10996 ac_header_preproc=no
10998 rm -f conftest.err conftest.$ac_ext
10999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11000 echo "${ECHO_T}$ac_header_preproc" >&6
11002 # So? What about this header?
11003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11009 ac_header_preproc=yes
11012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11026 ## ------------------------------------------ ##
11027 ## Report this to the AC_PACKAGE_NAME lists. ##
11028 ## ------------------------------------------ ##
11031 sed "s/^/$as_me: WARNING: /" >&2
11034 echo "$as_me:$LINENO: checking for $ac_header" >&5
11035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 eval "$as_ac_Header=\$ac_header_preproc"
11041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11046 cat >>confdefs.h <<_ACEOF
11047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11054 #LDFLAGS="$OLDLDFLAGS"
11055 CPPFLAGS="$OLDCPPFLAGS"
11058 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11059 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
11061 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11062 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11064 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11065 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11068 cat > conftest.cpp << EOF
11070 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11071 // so we have to introduce them this way
11072 $HAVE_VERSION_H_DEFINE
11073 $HAVE_AVIFILE_VERSION_H_DEFINE
11075 #ifdef HAVE_VERSION_H
11076 #include <version.h>
11078 #ifdef HAVE_AVIFILE_VERSION_H
11079 #include <avifile/version.h>
11082 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11083 #include <avifile.h>
11084 #include <aviplay.h>
11085 #include <fourcc.h>
11086 #include <creators.h>
11087 #include <StreamInfo.h>
11090 #include <avifile.h>
11091 #include <aviplay.h>
11092 #include <aviutil.h>
11093 #define Width width
11094 #define Height height
11101 IAviReadFile* player;
11102 IAviReadStream* astream;
11103 IAviReadStream* vstream;
11104 player = CreateIAviReadFile(0);
11105 astream = player->GetStream(0, AviStream::Audio);
11106 vstream = player->GetStream(0, AviStream::Video);
11107 vstream -> StartStreaming();
11108 astream -> StartStreaming();
11110 MainAVIHeader head;
11111 player->GetFileHeader(&head);
11112 head.dwMicroSecPerFrame;
11113 head.dwTotalFrames;
11117 head.dwMicroSecPerFrame;
11118 astream->GetEndPos(),
11119 astream->GetEndTime());
11120 player->StreamCount();
11122 StreamInfo*audioinfo;
11123 StreamInfo*videoinfo;
11124 audioinfo = astream->GetStreamInfo();
11125 videoinfo = vstream->GetStreamInfo();
11126 videoinfo->GetVideoWidth();
11127 videoinfo->GetVideoHeight();
11128 audioinfo->GetAudioSamplesPerSec();
11129 videoinfo->GetFps();
11131 CImage*img = vstream->GetFrame();
11138 astream->GetAudioFormatInfo(&wave,0);
11140 astream->ReadFrames(0,0,0,a,b);
11142 int main (int argc, char*argv)
11148 if test "x$AVIFILE_CONFIG" '!=' "x";then
11149 ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
11150 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11151 echo "$as_me:$LINENO: result: yes" >&5
11152 echo "${ECHO_T}yes" >&6
11155 cat >>confdefs.h <<_ACEOF
11156 #define AVIFILE true
11160 echo "configure: failed program was:" >&5
11161 cat conftest.cpp >&5
11162 echo "$as_me:$LINENO: result: no" >&5
11163 echo "${ECHO_T}no" >&6
11166 echo "$as_me:$LINENO: result: no" >&5
11167 echo "${ECHO_T}no" >&6
11172 # ------------------------------------------------------------------
11174 if test "x${UNCOMPRESS}" = "xgzip"; then
11175 cat >>confdefs.h <<_ACEOF
11182 # ------------------------------------------------------------------
11185 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11186 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11187 # should we support python versions below 2.2?
11188 if test -f "/usr/lib/python2.2/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.2/Python.h";then
11191 if test -f "/usr/lib/python2.3/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.3/Python.h";then
11194 if test -f "/usr/lib/python2.4/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.4/Python.h";then
11198 if test "x$PY_VERSION" "!=" "x"; then
11199 echo "$as_me:$LINENO: result: python$PY_VERSION" >&5
11200 echo "${ECHO_T}python$PY_VERSION" >&6
11201 if test "x$PYTHON_LIB" = "x";then
11202 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11204 if test "x$PYTHON_INCLUDES" = "x";then
11205 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11207 export PYTHON_INCLUDES PYTHON_LIB
11210 echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11211 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11213 cat > conftest.c << EOF
11214 #include <Python.h>
11215 #include <Imaging.h>
11217 int main(int argn, char*argv)
11219 return Py_Main(argn, argv);
11223 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11224 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11225 echo "$as_me:$LINENO: result: yes" >&5
11226 echo "${ECHO_T}yes" >&6
11229 echo "configure: failed program was:" >&5
11231 echo "$as_me:$LINENO: result: no" >&5
11232 echo "${ECHO_T}no" >&6
11236 echo "$as_me:$LINENO: result: nope" >&5
11237 echo "${ECHO_T}nope" >&6
11241 if test "x$PYTHON_OK" '!=' "xyes";then
11242 echo all install uninstall clean: > lib/python/Makefile
11243 # fail silently- the most users won't have any need for the
11244 # python interface anyway
11246 pythonrfxswf="lib/python/Makefile"
11249 # ------------------------------------------------------------------
11251 echo "$as_me:$LINENO: checking for missing libraries" >&5
11252 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
11254 if test "x$ZLIBMISSING" = "xtrue";then
11255 MISSINGLIBS="${MISSINGLIBS} zlib"
11256 DISABLEPNG2SWF=true;
11258 if test "x$JPEGLIBMISSING" = "xtrue";then
11259 MISSINGLIBS="${MISSINGLIBS} jpeglib"
11260 DISABLEPDF2SWF=true;
11261 DISABLEJPEG2SWF=true;
11263 if test "x$T1LIBMISSING" = "xtrue";then
11264 MISSINGLIBS="${MISSINGLIBS} t1lib"
11267 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
11268 DISABLEPDF2SWF=true;
11269 DISABLEJPEG2SWF=true;
11270 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11272 if test "x$HAVE_FREETYPE" != "x1"; then
11273 DISABLEPDF2SWF=true;
11274 MISSINGLIBS="${MISSINGLIBS} freetype"
11276 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
11277 DISABLEPDF2SWF=true;
11278 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11280 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
11281 DISABLEPNG2SWF=true;
11282 MISSINGLIBS="${MISSINGLIBS} zlib.h"
11284 if test "x${AVIFILE}" != "xtrue"; then
11285 MISSINGLIBS="${MISSINGLIBS} avifile"
11288 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11289 echo "${ECHO_T}${MISSINGLIBS}" >&6
11291 # ------------------------------------------------------------------
11293 if test "x${MISSINGLIBS}" '!=' "x"; then
11294 echo "***************************************************"
11295 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11298 avi2swf="avi2swf/Makefile"
11299 if test "x${AVIFILE}" != "xtrue"; then
11300 echo "* Disabling avi2swf tool..."
11301 echo all install uninstall clean: > avi2swf/Makefile
11305 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
11306 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11307 echo "* Disabling pdf2swf tool..."
11308 rm -f pdf2swf/Makefile
11309 echo all install uninstall clean: > pdf2swf/Makefile
11310 pdf2swf_makefile=""
11313 if test "x${ZLIBMISSING}" = "xtrue"; then
11315 echo "* Warning! Without zlib, you will not be able to read"
11316 echo "* or write compressed Flash MX files!"
11319 JPEG2SWF='jpeg2swf$(E)'
11320 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11321 echo "* Disabling jpeg2swf tool..."
11327 PNG2SWF='png2swf$(E)'
11328 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11329 echo "* Disabling png2swf tool..."
11335 if test "x${MISSINGLIBS}" '!=' "x"; then
11336 echo "***************************************************"
11339 # ------------------------------------------------------------------
11341 FILES="./release Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11343 ac_config_files="$ac_config_files ${FILES}"
11345 cat >confcache <<\_ACEOF
11346 # This file is a shell script that caches the results of configure
11347 # tests run on this system so they can be shared between configure
11348 # scripts and configure runs, see configure's option --config-cache.
11349 # It is not useful on other systems. If it contains results you don't
11350 # want to keep, you may remove or edit it.
11352 # config.status only pays attention to the cache file if you give it
11353 # the --recheck option to rerun configure.
11355 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11356 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11357 # following values.
11361 # The following way of writing the cache mishandles newlines in values,
11362 # but we know of no workaround that is simple, portable, and efficient.
11363 # So, don't put newlines in cache variables' values.
11364 # Ultrix sh set writes to stderr and can't be redirected directly,
11365 # and sets the high bit in the cache file unless we assign to the vars.
11368 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11370 # `set' does not quote correctly, so add quotes (double-quote
11371 # substitution turns \\\\ into \\, and sed turns \\ into \).
11374 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11377 # `set' quotes correctly as required by POSIX, so do not add quotes.
11379 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11386 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11388 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11390 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11391 if test -w $cache_file; then
11392 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11393 cat confcache >$cache_file
11395 echo "not updating unwritable cache $cache_file"
11400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11401 # Let make expand exec_prefix.
11402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11404 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11405 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11406 # trailing colons and then remove the whole line if VPATH becomes empty
11407 # (actually we leave an empty line to preserve line numbers).
11408 if test "x$srcdir" = x.; then
11409 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11410 s/:*\$(srcdir):*/:/;
11411 s/:*\${srcdir}:*/:/;
11413 s/^\([^=]*=[ ]*\):*/\1/;
11419 DEFS=-DHAVE_CONFIG_H
11423 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11424 # 1. Remove the extension, and $U if already installed.
11425 ac_i=`echo "$ac_i" |
11426 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11428 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11429 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11431 LIBOBJS=$ac_libobjs
11433 LTLIBOBJS=$ac_ltlibobjs
11437 : ${CONFIG_STATUS=./config.status}
11438 ac_clean_files_save=$ac_clean_files
11439 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11440 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11441 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11442 cat >$CONFIG_STATUS <<_ACEOF
11444 # Generated by $as_me.
11445 # Run this file to recreate the current configuration.
11446 # Compiler output produced by configure, useful for debugging
11447 # configure, is in config.log if it exists.
11450 ac_cs_recheck=false
11452 SHELL=\${CONFIG_SHELL-$SHELL}
11455 cat >>$CONFIG_STATUS <<\_ACEOF
11456 ## --------------------- ##
11457 ## M4sh Initialization. ##
11458 ## --------------------- ##
11460 # Be Bourne compatible
11461 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11464 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11465 # is contrary to our usage. Disable this feature.
11466 alias -g '${1+"$@"}'='"$@"'
11467 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11470 DUALCASE=1; export DUALCASE # for MKS sh
11472 # Support unset when possible.
11473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11480 # Work around bugs in pre-3.0 UWIN ksh.
11481 $as_unset ENV MAIL MAILPATH
11488 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11489 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11490 LC_TELEPHONE LC_TIME
11492 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11493 eval $as_var=C; export $as_var
11499 # Required to use basename.
11500 if expr a : '\(a\)' >/dev/null 2>&1; then
11506 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11507 as_basename=basename
11513 # Name of the executable.
11514 as_me=`$as_basename "$0" ||
11515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11516 X"$0" : 'X\(//\)$' \| \
11517 X"$0" : 'X\(/\)$' \| \
11518 . : '\(.\)' 2>/dev/null ||
11520 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11521 /^X\/\(\/\/\)$/{ s//\1/; q; }
11522 /^X\/\(\/\).*/{ s//\1/; q; }
11526 # PATH needs CR, and LINENO needs CR and PATH.
11527 # Avoid depending upon Character Ranges.
11528 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11529 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11530 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11531 as_cr_digits='0123456789'
11532 as_cr_alnum=$as_cr_Letters$as_cr_digits
11534 # The user is always right.
11535 if test "${PATH_SEPARATOR+set}" != set; then
11536 echo "#! /bin/sh" >conf$$.sh
11537 echo "exit 0" >>conf$$.sh
11539 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11548 as_lineno_1=$LINENO
11549 as_lineno_2=$LINENO
11550 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11551 test "x$as_lineno_1" != "x$as_lineno_2" &&
11552 test "x$as_lineno_3" = "x$as_lineno_2" || {
11553 # Find who we are. Look in the path if we contain no path at all
11556 *[\\/]* ) as_myself=$0 ;;
11557 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in $PATH
11561 test -z "$as_dir" && as_dir=.
11562 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11567 # We did not find ourselves, most probably we were run as `sh COMMAND'
11568 # in which case we are not to be found in the path.
11569 if test "x$as_myself" = x; then
11572 if test ! -f "$as_myself"; then
11573 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11574 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11575 { (exit 1); exit 1; }; }
11577 case $CONFIG_SHELL in
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11583 test -z "$as_dir" && as_dir=.
11584 for as_base in sh bash ksh sh5; do
11587 if ("$as_dir/$as_base" -c '
11588 as_lineno_1=$LINENO
11589 as_lineno_2=$LINENO
11590 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11591 test "x$as_lineno_1" != "x$as_lineno_2" &&
11592 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11593 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11594 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11595 CONFIG_SHELL=$as_dir/$as_base
11596 export CONFIG_SHELL
11597 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11606 # uniformly replaced by the line number. The first 'sed' inserts a
11607 # line-number line before each line; the second 'sed' does the real
11608 # work. The second script uses 'N' to pair each line-number line
11609 # with the numbered line, and appends trailing '-' during
11610 # substitution so that $LINENO is not a special case at line end.
11611 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11612 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11613 sed '=' <$as_myself |
11618 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11621 s,^['$as_cr_digits']*\n,,
11622 ' >$as_me.lineno &&
11623 chmod +x $as_me.lineno ||
11624 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11625 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11626 { (exit 1); exit 1; }; }
11628 # Don't try to exec as it changes $[0], causing all sort of problems
11629 # (the dirname of $[0] is not the place where we might find the
11630 # original and so on. Autoconf is especially sensible to this).
11632 # Exit status is that of the last command.
11637 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11638 *c*,-n*) ECHO_N= ECHO_C='
11640 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11641 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11644 if expr a : '\(a\)' >/dev/null 2>&1; then
11650 rm -f conf$$ conf$$.exe conf$$.file
11652 if ln -s conf$$.file conf$$ 2>/dev/null; then
11653 # We could just check for DJGPP; but this test a) works b) is more generic
11654 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11655 if test -f conf$$.exe; then
11656 # Don't use ln at all; we don't have any links
11661 elif ln conf$$.file conf$$ 2>/dev/null; then
11666 rm -f conf$$ conf$$.exe conf$$.file
11668 if mkdir -p . 2>/dev/null; then
11671 test -d ./-p && rmdir ./-p
11675 as_executable_p="test -f"
11677 # Sed expression to map a string onto a valid CPP name.
11678 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11680 # Sed expression to map a string onto a valid variable name.
11681 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11685 # We need space, tab and new line, in precisely that order.
11695 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11696 # report actual input values of CONFIG_FILES etc. instead of their
11697 # values after options handling. Logging --version etc. is OK.
11701 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11702 ## Running $as_me. ##
11707 This file was extended by $as_me, which was
11708 generated by GNU Autoconf 2.59. Invocation command line was
11710 CONFIG_FILES = $CONFIG_FILES
11711 CONFIG_HEADERS = $CONFIG_HEADERS
11712 CONFIG_LINKS = $CONFIG_LINKS
11713 CONFIG_COMMANDS = $CONFIG_COMMANDS
11717 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11721 # Files that config.status was made for.
11722 if test -n "$ac_config_files"; then
11723 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11726 if test -n "$ac_config_headers"; then
11727 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11730 if test -n "$ac_config_links"; then
11731 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11734 if test -n "$ac_config_commands"; then
11735 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11738 cat >>$CONFIG_STATUS <<\_ACEOF
11741 \`$as_me' instantiates files from templates according to the
11742 current configuration.
11744 Usage: $0 [OPTIONS] [FILE]...
11746 -h, --help print this help, then exit
11747 -V, --version print version number, then exit
11748 -q, --quiet do not print progress messages
11749 -d, --debug don't remove temporary files
11750 --recheck update $as_me by reconfiguring in the same conditions
11751 --file=FILE[:TEMPLATE]
11752 instantiate the configuration file FILE
11753 --header=FILE[:TEMPLATE]
11754 instantiate the configuration header FILE
11756 Configuration files:
11759 Configuration headers:
11762 Report bugs to <bug-autoconf@gnu.org>."
11765 cat >>$CONFIG_STATUS <<_ACEOF
11768 configured by $0, generated by GNU Autoconf 2.59,
11769 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11771 Copyright (C) 2003 Free Software Foundation, Inc.
11772 This config.status script is free software; the Free Software Foundation
11773 gives unlimited permission to copy, distribute and modify it."
11778 cat >>$CONFIG_STATUS <<\_ACEOF
11779 # If no file are specified by the user, then we need to provide default
11780 # value. By we need to know if files were specified by the user.
11786 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11787 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11795 *) # This is not an option, so the user has probably given explicit
11798 ac_need_defaults=false;;
11802 # Handling of the options.
11804 cat >>$CONFIG_STATUS <<\_ACEOF
11805 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11807 --version | --vers* | -V )
11808 echo "$ac_cs_version"; exit 0 ;;
11810 # Conflict between --help and --header
11811 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11812 Try \`$0 --help' for more information." >&5
11813 echo "$as_me: error: ambiguous option: $1
11814 Try \`$0 --help' for more information." >&2;}
11815 { (exit 1); exit 1; }; };;
11816 --help | --hel | -h )
11817 echo "$ac_cs_usage"; exit 0 ;;
11818 --debug | --d* | -d )
11820 --file | --fil | --fi | --f )
11822 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11823 ac_need_defaults=false;;
11824 --header | --heade | --head | --hea )
11826 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11827 ac_need_defaults=false;;
11828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11829 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11832 # This is an error.
11833 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11834 Try \`$0 --help' for more information." >&5
11835 echo "$as_me: error: unrecognized option: $1
11836 Try \`$0 --help' for more information." >&2;}
11837 { (exit 1); exit 1; }; } ;;
11839 *) ac_config_targets="$ac_config_targets $1" ;;
11845 ac_configure_extra_args=
11847 if $ac_cs_silent; then
11849 ac_configure_extra_args="$ac_configure_extra_args --silent"
11853 cat >>$CONFIG_STATUS <<_ACEOF
11854 if \$ac_cs_recheck; then
11855 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11856 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11865 cat >>$CONFIG_STATUS <<\_ACEOF
11866 for ac_config_target in $ac_config_targets
11868 case "$ac_config_target" in
11869 # Handling of arguments.
11870 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11871 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11872 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11873 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11874 { (exit 1); exit 1; }; };;
11878 # If the user did not use the arguments to specify the items to instantiate,
11879 # then the envvar interface is used. Set only those that are not.
11880 # We use the long form for the default assignment because of an extremely
11881 # bizarre bug on SunOS 4.1.3.
11882 if $ac_need_defaults; then
11883 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11884 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11887 # Have a temporary directory for convenience. Make it in the build tree
11888 # simply because there is no reason to put it here, and in addition,
11889 # creating and moving files from /tmp can sometimes cause problems.
11890 # Create a temporary directory, and hook for its removal unless debugging.
11893 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11894 trap '{ (exit 1); exit 1; }' 1 2 13 15
11897 # Create a (secure) tmp directory for tmp files.
11900 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11901 test -n "$tmp" && test -d "$tmp"
11904 tmp=./confstat$$-$RANDOM
11905 (umask 077 && mkdir $tmp)
11908 echo "$me: cannot create a temporary directory in ." >&2
11909 { (exit 1); exit 1; }
11914 cat >>$CONFIG_STATUS <<_ACEOF
11917 # CONFIG_FILES section.
11920 # No need to generate the scripts if there are no CONFIG_FILES.
11921 # This happens for instance when ./config.status config.h
11922 if test -n "\$CONFIG_FILES"; then
11923 # Protect against being on the right side of a sed subst in config.status.
11924 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11925 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11926 s,@SHELL@,$SHELL,;t t
11927 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11928 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11929 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11930 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11931 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11932 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11933 s,@exec_prefix@,$exec_prefix,;t t
11934 s,@prefix@,$prefix,;t t
11935 s,@program_transform_name@,$program_transform_name,;t t
11936 s,@bindir@,$bindir,;t t
11937 s,@sbindir@,$sbindir,;t t
11938 s,@libexecdir@,$libexecdir,;t t
11939 s,@datadir@,$datadir,;t t
11940 s,@sysconfdir@,$sysconfdir,;t t
11941 s,@sharedstatedir@,$sharedstatedir,;t t
11942 s,@localstatedir@,$localstatedir,;t t
11943 s,@libdir@,$libdir,;t t
11944 s,@includedir@,$includedir,;t t
11945 s,@oldincludedir@,$oldincludedir,;t t
11946 s,@infodir@,$infodir,;t t
11947 s,@mandir@,$mandir,;t t
11948 s,@build_alias@,$build_alias,;t t
11949 s,@host_alias@,$host_alias,;t t
11950 s,@target_alias@,$target_alias,;t t
11951 s,@DEFS@,$DEFS,;t t
11952 s,@ECHO_C@,$ECHO_C,;t t
11953 s,@ECHO_N@,$ECHO_N,;t t
11954 s,@ECHO_T@,$ECHO_T,;t t
11955 s,@LIBS@,$LIBS,;t t
11956 s,@build@,$build,;t t
11957 s,@build_cpu@,$build_cpu,;t t
11958 s,@build_vendor@,$build_vendor,;t t
11959 s,@build_os@,$build_os,;t t
11960 s,@host@,$host,;t t
11961 s,@host_cpu@,$host_cpu,;t t
11962 s,@host_vendor@,$host_vendor,;t t
11963 s,@host_os@,$host_os,;t t
11965 s,@CFLAGS@,$CFLAGS,;t t
11966 s,@LDFLAGS@,$LDFLAGS,;t t
11967 s,@CPPFLAGS@,$CPPFLAGS,;t t
11968 s,@ac_ct_CC@,$ac_ct_CC,;t t
11969 s,@EXEEXT@,$EXEEXT,;t t
11970 s,@OBJEXT@,$OBJEXT,;t t
11972 s,@CXXFLAGS@,$CXXFLAGS,;t t
11973 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11975 s,@RANLIB@,$RANLIB,;t t
11976 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11977 s,@SET_MAKE@,$SET_MAKE,;t t
11978 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11979 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11980 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11981 s,@LN_S@,$LN_S,;t t
11982 s,@ECHO@,$ECHO,;t t
11983 s,@STRIP@,$STRIP,;t t
11984 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11985 s,@EGREP@,$EGREP,;t t
11986 s,@LIBTOOL@,$LIBTOOL,;t t
11987 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
11989 s,@SLEXT@,$SLEXT,;t t
11990 s,@target@,$target,;t t
11991 s,@target_cpu@,$target_cpu,;t t
11992 s,@target_vendor@,$target_vendor,;t t
11993 s,@target_os@,$target_os,;t t
11994 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
11995 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
11996 s,@PACKAGE@,$PACKAGE,;t t
11997 s,@VERSION@,$VERSION,;t t
11998 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
11999 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
12000 s,@lame_objects@,$lame_objects,;t t
12001 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
12002 s,@USE_GZIP@,$USE_GZIP,;t t
12003 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
12004 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
12005 s,@JPEG2SWF@,$JPEG2SWF,;t t
12006 s,@PNG2SWF@,$PNG2SWF,;t t
12007 s,@LIBOBJS@,$LIBOBJS,;t t
12008 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12013 cat >>$CONFIG_STATUS <<\_ACEOF
12014 # Split the substitutions into bite-sized pieces for seds with
12015 # small command number limits, like on Digital OSF/1 and HP-UX.
12016 ac_max_sed_lines=48
12017 ac_sed_frag=1 # Number of current file.
12018 ac_beg=1 # First line for current file.
12019 ac_end=$ac_max_sed_lines # Line after last line for current file.
12022 while $ac_more_lines; do
12023 if test $ac_beg -gt 1; then
12024 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12026 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12028 if test ! -s $tmp/subs.frag; then
12029 ac_more_lines=false
12031 # The purpose of the label and of the branching condition is to
12032 # speed up the sed processing (if there are no `@' at all, there
12033 # is no need to browse any of the substitutions).
12034 # These are the two extra sed commands mentioned above.
12036 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12037 if test -z "$ac_sed_cmds"; then
12038 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12040 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12042 ac_sed_frag=`expr $ac_sed_frag + 1`
12044 ac_end=`expr $ac_end + $ac_max_sed_lines`
12047 if test -z "$ac_sed_cmds"; then
12050 fi # test -n "$CONFIG_FILES"
12053 cat >>$CONFIG_STATUS <<\_ACEOF
12054 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12055 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12057 - | *:- | *:-:* ) # input from stdin
12059 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12060 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12061 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12062 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12063 * ) ac_file_in=$ac_file.in ;;
12066 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12067 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12069 X"$ac_file" : 'X\(//\)[^/]' \| \
12070 X"$ac_file" : 'X\(//\)$' \| \
12071 X"$ac_file" : 'X\(/\)' \| \
12072 . : '\(.\)' 2>/dev/null ||
12074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12076 /^X\(\/\/\)$/{ s//\1/; q; }
12077 /^X\(\/\).*/{ s//\1/; q; }
12079 { if $as_mkdir_p; then
12084 while test ! -d "$as_dir"; do
12085 as_dirs="$as_dir $as_dirs"
12086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12088 X"$as_dir" : 'X\(//\)[^/]' \| \
12089 X"$as_dir" : 'X\(//\)$' \| \
12090 X"$as_dir" : 'X\(/\)' \| \
12091 . : '\(.\)' 2>/dev/null ||
12093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12095 /^X\(\/\/\)$/{ s//\1/; q; }
12096 /^X\(\/\).*/{ s//\1/; q; }
12099 test ! -n "$as_dirs" || mkdir $as_dirs
12100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12101 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12102 { (exit 1); exit 1; }; }; }
12106 if test "$ac_dir" != .; then
12107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12108 # A "../" for each directory in $ac_dir_suffix.
12109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12111 ac_dir_suffix= ac_top_builddir=
12115 .) # No --srcdir option. We are building in place.
12117 if test -z "$ac_top_builddir"; then
12120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12122 [\\/]* | ?:[\\/]* ) # Absolute path.
12123 ac_srcdir=$srcdir$ac_dir_suffix;
12124 ac_top_srcdir=$srcdir ;;
12125 *) # Relative path.
12126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12130 # Do not use `cd foo && pwd` to compute absolute paths, because
12131 # the directories may not exist.
12133 .) ac_abs_builddir="$ac_dir";;
12136 .) ac_abs_builddir=`pwd`;;
12137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12141 case $ac_abs_builddir in
12142 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12144 case ${ac_top_builddir}. in
12145 .) ac_abs_top_builddir=$ac_abs_builddir;;
12146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12150 case $ac_abs_builddir in
12151 .) ac_abs_srcdir=$ac_srcdir;;
12154 .) ac_abs_srcdir=$ac_abs_builddir;;
12155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12159 case $ac_abs_builddir in
12160 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12162 case $ac_top_srcdir in
12163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12171 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12172 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12175 if test x"$ac_file" != x-; then
12176 { echo "$as_me:$LINENO: creating $ac_file" >&5
12177 echo "$as_me: creating $ac_file" >&6;}
12180 # Let's still pretend it is `configure' which instantiates (i.e., don't
12181 # use $as_me), people would be surprised to read:
12182 # /* config.h. Generated by config.status. */
12183 if test x"$ac_file" = x-; then
12186 configure_input="$ac_file. "
12188 configure_input=$configure_input"Generated from `echo $ac_file_in |
12189 sed 's,.*/,,'` by configure."
12191 # First look for the input files in the build tree, otherwise in the
12193 ac_file_inputs=`IFS=:
12194 for f in $ac_file_in; do
12196 -) echo $tmp/stdin ;;
12198 # Absolute (can't be DOS-style, as IFS=:)
12199 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12200 echo "$as_me: error: cannot find input file: $f" >&2;}
12201 { (exit 1); exit 1; }; }
12204 if test -f "$f"; then
12207 elif test -f "$srcdir/$f"; then
12212 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12213 echo "$as_me: error: cannot find input file: $f" >&2;}
12214 { (exit 1); exit 1; }; }
12217 done` || { (exit 1); exit 1; }
12219 cat >>$CONFIG_STATUS <<_ACEOF
12223 cat >>$CONFIG_STATUS <<\_ACEOF
12225 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12226 s,@configure_input@,$configure_input,;t t
12227 s,@srcdir@,$ac_srcdir,;t t
12228 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12229 s,@top_srcdir@,$ac_top_srcdir,;t t
12230 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12231 s,@builddir@,$ac_builddir,;t t
12232 s,@abs_builddir@,$ac_abs_builddir,;t t
12233 s,@top_builddir@,$ac_top_builddir,;t t
12234 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12235 s,@INSTALL@,$ac_INSTALL,;t t
12236 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12238 if test x"$ac_file" != x-; then
12239 mv $tmp/out $ac_file
12247 cat >>$CONFIG_STATUS <<\_ACEOF
12250 # CONFIG_HEADER section.
12253 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12254 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12256 # ac_d sets the value in "#define NAME VALUE" lines.
12257 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12258 ac_dB='[ ].*$,\1#\2'
12261 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12262 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12263 ac_uB='$,\1#\2define\3'
12267 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12268 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12270 - | *:- | *:-:* ) # input from stdin
12272 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12273 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12274 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12275 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12276 * ) ac_file_in=$ac_file.in ;;
12279 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12280 echo "$as_me: creating $ac_file" >&6;}
12282 # First look for the input files in the build tree, otherwise in the
12284 ac_file_inputs=`IFS=:
12285 for f in $ac_file_in; do
12287 -) echo $tmp/stdin ;;
12289 # Absolute (can't be DOS-style, as IFS=:)
12290 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12291 echo "$as_me: error: cannot find input file: $f" >&2;}
12292 { (exit 1); exit 1; }; }
12293 # Do quote $f, to prevent DOS paths from being IFS'd.
12296 if test -f "$f"; then
12299 elif test -f "$srcdir/$f"; then
12304 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12305 echo "$as_me: error: cannot find input file: $f" >&2;}
12306 { (exit 1); exit 1; }; }
12309 done` || { (exit 1); exit 1; }
12310 # Remove the trailing spaces.
12311 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12315 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12316 # `conftest.undefs', that substitutes the proper values into
12317 # config.h.in to produce config.h. The first handles `#define'
12318 # templates, and the second `#undef' templates.
12319 # And first: Protect against being on the right side of a sed subst in
12320 # config.status. Protect against being in an unquoted here document
12321 # in config.status.
12322 rm -f conftest.defines conftest.undefs
12323 # Using a here document instead of a string reduces the quoting nightmare.
12324 # Putting comments in sed scripts is not portable.
12326 # `end' is used to avoid that the second main sed command (meant for
12327 # 0-ary CPP macros) applies to n-ary macro definitions.
12328 # See the Autoconf documentation for `clear'.
12329 cat >confdef2sed.sed <<\_ACEOF
12334 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12336 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12339 # If some macros were called several times there might be several times
12340 # the same #defines, which is useless. Nevertheless, we may not want to
12341 # sort them, since we want the *last* AC-DEFINE to be honored.
12342 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12343 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12344 rm -f confdef2sed.sed
12346 # This sed command replaces #undef with comments. This is necessary, for
12347 # example, in the case of _POSIX_SOURCE, which is predefined and required
12348 # on some systems where configure will not decide to define it.
12349 cat >>conftest.undefs <<\_ACEOF
12350 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12353 # Break up conftest.defines because some shells have a limit on the size
12354 # of here documents, and old seds have small limits too (100 cmds).
12355 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12356 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12357 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12358 echo ' :' >>$CONFIG_STATUS
12359 rm -f conftest.tail
12360 while grep . conftest.defines >/dev/null
12362 # Write a limited-size here document to $tmp/defines.sed.
12363 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12364 # Speed up: don't consider the non `#define' lines.
12365 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12366 # Work around the forget-to-reset-the-flag bug.
12367 echo 't clr' >>$CONFIG_STATUS
12368 echo ': clr' >>$CONFIG_STATUS
12369 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12371 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12373 mv $tmp/out $tmp/in
12375 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12376 rm -f conftest.defines
12377 mv conftest.tail conftest.defines
12379 rm -f conftest.defines
12380 echo ' fi # grep' >>$CONFIG_STATUS
12381 echo >>$CONFIG_STATUS
12383 # Break up conftest.undefs because some shells have a limit on the size
12384 # of here documents, and old seds have small limits too (100 cmds).
12385 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12386 rm -f conftest.tail
12387 while grep . conftest.undefs >/dev/null
12389 # Write a limited-size here document to $tmp/undefs.sed.
12390 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12391 # Speed up: don't consider the non `#undef'
12392 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12393 # Work around the forget-to-reset-the-flag bug.
12394 echo 't clr' >>$CONFIG_STATUS
12395 echo ': clr' >>$CONFIG_STATUS
12396 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12398 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12400 mv $tmp/out $tmp/in
12402 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12403 rm -f conftest.undefs
12404 mv conftest.tail conftest.undefs
12406 rm -f conftest.undefs
12408 cat >>$CONFIG_STATUS <<\_ACEOF
12409 # Let's still pretend it is `configure' which instantiates (i.e., don't
12410 # use $as_me), people would be surprised to read:
12411 # /* config.h. Generated by config.status. */
12412 if test x"$ac_file" = x-; then
12413 echo "/* Generated by configure. */" >$tmp/config.h
12415 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12417 cat $tmp/in >>$tmp/config.h
12419 if test x"$ac_file" != x-; then
12420 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12421 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12422 echo "$as_me: $ac_file is unchanged" >&6;}
12424 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12425 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12426 X"$ac_file" : 'X\(//\)[^/]' \| \
12427 X"$ac_file" : 'X\(//\)$' \| \
12428 X"$ac_file" : 'X\(/\)' \| \
12429 . : '\(.\)' 2>/dev/null ||
12431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12432 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12433 /^X\(\/\/\)$/{ s//\1/; q; }
12434 /^X\(\/\).*/{ s//\1/; q; }
12436 { if $as_mkdir_p; then
12441 while test ! -d "$as_dir"; do
12442 as_dirs="$as_dir $as_dirs"
12443 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12444 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12445 X"$as_dir" : 'X\(//\)[^/]' \| \
12446 X"$as_dir" : 'X\(//\)$' \| \
12447 X"$as_dir" : 'X\(/\)' \| \
12448 . : '\(.\)' 2>/dev/null ||
12450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12451 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12452 /^X\(\/\/\)$/{ s//\1/; q; }
12453 /^X\(\/\).*/{ s//\1/; q; }
12456 test ! -n "$as_dirs" || mkdir $as_dirs
12457 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12458 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12459 { (exit 1); exit 1; }; }; }
12462 mv $tmp/config.h $ac_file
12466 rm -f $tmp/config.h
12471 cat >>$CONFIG_STATUS <<\_ACEOF
12473 { (exit 0); exit 0; }
12475 chmod +x $CONFIG_STATUS
12476 ac_clean_files=$ac_clean_files_save
12479 # configure is writing to config.log, and then calls config.status.
12480 # config.status does its own redirection, appending to config.log.
12481 # Unfortunately, on DOS this fails, as config.log is still kept open
12482 # by configure, so config.status won't be able to write to it; its
12483 # output is simply discarded. So we exec the FD to /dev/null,
12484 # effectively closing config.log, so it can be properly (re)opened and
12485 # appended to by config.status. When coming back to configure, we
12486 # need to make the FD available again.
12487 if test "$no_create" != yes; then
12489 ac_config_status_args=
12490 test "$silent" = yes &&
12491 ac_config_status_args="$ac_config_status_args --quiet"
12493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12496 # would make configure fail if this is the last instruction.
12497 $ac_cs_success || { (exit 1); exit 1; }