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 FREETYPE_CONFIG target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H 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"
1518 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1519 if test "x$ENABLE_WARNINGS" '!=' "x";then
1520 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1523 if test "x$CHECKMEM" '!=' "x";then
1526 if test "x$DEBUG" '!=' "x";then
1527 CFLAGS="$WARNINGS -g $CFLAGS"
1528 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1529 else if test "x$OPTIMIZE" '!=' "x"; then
1530 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1531 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1533 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1534 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1538 #if test "x$OLDGCC" '!=' "x";then
1539 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1540 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1541 # CFLAGS="$CFLAGS -ansi -pendantic"
1542 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1545 export PACKAGE VERSION CFLAGS CXXFLAGS
1548 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1549 if test -f $ac_dir/install-sh; then
1551 ac_install_sh="$ac_aux_dir/install-sh -c"
1553 elif test -f $ac_dir/install.sh; then
1555 ac_install_sh="$ac_aux_dir/install.sh -c"
1557 elif test -f $ac_dir/shtool; then
1559 ac_install_sh="$ac_aux_dir/shtool install -c"
1563 if test -z "$ac_aux_dir"; then
1564 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1565 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1566 { (exit 1); exit 1; }; }
1568 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1569 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1570 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1572 # Make sure we can run config.sub.
1573 $ac_config_sub sun4 >/dev/null 2>&1 ||
1574 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1575 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1576 { (exit 1); exit 1; }; }
1578 echo "$as_me:$LINENO: checking build system type" >&5
1579 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1580 if test "${ac_cv_build+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 ac_cv_build_alias=$build_alias
1584 test -z "$ac_cv_build_alias" &&
1585 ac_cv_build_alias=`$ac_config_guess`
1586 test -z "$ac_cv_build_alias" &&
1587 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1588 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1589 { (exit 1); exit 1; }; }
1590 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1591 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1592 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1593 { (exit 1); exit 1; }; }
1596 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1597 echo "${ECHO_T}$ac_cv_build" >&6
1599 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604 echo "$as_me:$LINENO: checking host system type" >&5
1605 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1606 if test "${ac_cv_host+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 ac_cv_host_alias=$host_alias
1610 test -z "$ac_cv_host_alias" &&
1611 ac_cv_host_alias=$ac_cv_build_alias
1612 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1613 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1614 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1615 { (exit 1); exit 1; }; }
1618 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1619 echo "${ECHO_T}$ac_cv_host" >&6
1621 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630 CFLAGS="$CFLAGS -fno-rtti"
1631 CXXFLAGS="$CXXFLAGS -fno-rtti"
1635 ac_cpp='$CPP $CPPFLAGS'
1636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1639 if test -n "$ac_tool_prefix"; then
1640 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_CC+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 if test -n "$CC"; then
1648 ac_cv_prog_CC="$CC" # Let the user override the test.
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 if test -n "$CC"; then
1668 echo "$as_me:$LINENO: result: $CC" >&5
1669 echo "${ECHO_T}$CC" >&6
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1676 if test -z "$ac_cv_prog_CC"; then
1678 # Extract the first word of "gcc", so it can be a program name with args.
1679 set dummy gcc; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 if test -n "$ac_ct_CC"; then
1686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_ac_ct_CC="gcc"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1705 if test -n "$ac_ct_CC"; then
1706 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1707 echo "${ECHO_T}$ac_ct_CC" >&6
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1718 if test -z "$CC"; then
1719 if test -n "$ac_tool_prefix"; then
1720 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1721 set dummy ${ac_tool_prefix}cc; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_CC+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 if test -n "$CC"; then
1728 ac_cv_prog_CC="$CC" # Let the user override the test.
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_CC="${ac_tool_prefix}cc"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747 if test -n "$CC"; then
1748 echo "$as_me:$LINENO: result: $CC" >&5
1749 echo "${ECHO_T}$CC" >&6
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1756 if test -z "$ac_cv_prog_CC"; then
1758 # Extract the first word of "cc", so it can be a program name with args.
1759 set dummy cc; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1765 if test -n "$ac_ct_CC"; then
1766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_ac_ct_CC="cc"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1785 if test -n "$ac_ct_CC"; then
1786 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1787 echo "${ECHO_T}$ac_ct_CC" >&6
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1799 if test -z "$CC"; then
1800 # Extract the first word of "cc", so it can be a program name with args.
1801 set dummy cc; ac_word=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_CC+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 if test -n "$CC"; then
1808 ac_cv_prog_CC="$CC" # Let the user override the test.
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1819 ac_prog_rejected=yes
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 if test $ac_prog_rejected = yes; then
1830 # We found a bogon in the path, so make sure we never use it.
1831 set dummy $ac_cv_prog_CC
1833 if test $# != 0; then
1834 # We chose a different compiler from the bogus one.
1835 # However, it has the same basename, so the bogon will be chosen
1836 # first if we set CC to just the basename; use the full file name.
1838 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1844 if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1853 if test -z "$CC"; then
1854 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC="$CC" # Let the user override the test.
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1892 test -n "$CC" && break
1895 if test -z "$CC"; then
1899 # Extract the first word of "$ac_prog", so it can be a program name with args.
1900 set dummy $ac_prog; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 if test -n "$ac_ct_CC"; then
1907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 test -z "$as_dir" && as_dir=.
1914 for ac_exec_ext in '' $ac_executable_extensions; do
1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916 ac_cv_prog_ac_ct_CC="$ac_prog"
1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1926 if test -n "$ac_ct_CC"; then
1927 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1928 echo "${ECHO_T}$ac_ct_CC" >&6
1930 echo "$as_me:$LINENO: result: no" >&5
1931 echo "${ECHO_T}no" >&6
1934 test -n "$ac_ct_CC" && break
1943 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1944 See \`config.log' for more details." >&5
1945 echo "$as_me: error: no acceptable C compiler found in \$PATH
1946 See \`config.log' for more details." >&2;}
1947 { (exit 1); exit 1; }; }
1949 # Provide some information about the compiler.
1950 echo "$as_me:$LINENO:" \
1951 "checking for C compiler version" >&5
1952 ac_compiler=`set X $ac_compile; echo $2`
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1954 (eval $ac_compiler --version </dev/null >&5) 2>&5
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1959 (eval $ac_compiler -v </dev/null >&5) 2>&5
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }
1963 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1964 (eval $ac_compiler -V </dev/null >&5) 2>&5
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }
1969 cat >conftest.$ac_ext <<_ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1984 ac_clean_files_save=$ac_clean_files
1985 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1986 # Try to create an executable without -o first, disregard a.out.
1987 # It will help us diagnose broken compilers, and finding out an intuition
1989 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1990 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1991 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1992 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1993 (eval $ac_link_default) 2>&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }; then
1997 # Find the output, starting from the most likely. This scheme is
1998 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2001 # Be careful to initialize this variable, since it used to be cached.
2002 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2004 # b.out is created by i960 compilers.
2005 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2007 test -f "$ac_file" || continue
2009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2012 # This is the source file.
2015 # We found the default executable, but exeext='' is most
2019 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2020 # FIXME: I believe we export ac_cv_exeext for Libtool,
2021 # but it would be cool to find out if it's true. Does anybody
2022 # maintain Libtool? --akim.
2030 echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: C compiler cannot create executables
2036 See \`config.log' for more details." >&2;}
2037 { (exit 77); exit 77; }; }
2040 ac_exeext=$ac_cv_exeext
2041 echo "$as_me:$LINENO: result: $ac_file" >&5
2042 echo "${ECHO_T}$ac_file" >&6
2044 # Check the compiler produces executables we can run. If not, either
2045 # the compiler is broken, or we cross compile.
2046 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2047 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2048 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2049 # If not cross compiling, check that we can run a simple program.
2050 if test "$cross_compiling" != yes; then
2051 if { ac_try='./$ac_file'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2059 if test "$cross_compiling" = maybe; then
2062 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2063 If you meant to cross compile, use \`--host'.
2064 See \`config.log' for more details." >&5
2065 echo "$as_me: error: cannot run C compiled programs.
2066 If you meant to cross compile, use \`--host'.
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2072 echo "$as_me:$LINENO: result: yes" >&5
2073 echo "${ECHO_T}yes" >&6
2075 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2076 ac_clean_files=$ac_clean_files_save
2077 # Check the compiler produces executables we can run. If not, either
2078 # the compiler is broken, or we cross compile.
2079 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2080 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2081 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2082 echo "${ECHO_T}$cross_compiling" >&6
2084 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2085 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2087 (eval $ac_link) 2>&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; then
2091 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2092 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2093 # work properly (i.e., refer to `conftest.exe'), while it won't with
2095 for ac_file in conftest.exe conftest conftest.*; do
2096 test -f "$ac_file" || continue
2098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2099 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2106 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2109 See \`config.log' for more details." >&2;}
2110 { (exit 1); exit 1; }; }
2113 rm -f conftest$ac_cv_exeext
2114 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2115 echo "${ECHO_T}$ac_cv_exeext" >&6
2117 rm -f conftest.$ac_ext
2118 EXEEXT=$ac_cv_exeext
2120 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2121 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2122 if test "${ac_cv_objext+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 cat >conftest.$ac_ext <<_ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2140 rm -f conftest.o conftest.obj
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2149 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2154 echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2157 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2158 See \`config.log' for more details." >&5
2159 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2160 See \`config.log' for more details." >&2;}
2161 { (exit 1); exit 1; }; }
2164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2166 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2167 echo "${ECHO_T}$ac_cv_objext" >&6
2168 OBJEXT=$ac_cv_objext
2170 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2171 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2172 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 cat >conftest.$ac_ext <<_ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h. */
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2197 grep -v '^ *+' conftest.er1 >conftest.err
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2223 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2226 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2227 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2228 GCC=`test $ac_compiler_gnu = yes && echo yes`
2229 ac_test_CFLAGS=${CFLAGS+set}
2230 ac_save_CFLAGS=$CFLAGS
2232 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2233 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2234 if test "${ac_cv_prog_cc_g+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 cat >conftest.$ac_ext <<_ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>conftest.er1
2256 grep -v '^ *+' conftest.er1 >conftest.err
2258 cat conftest.err >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } &&
2261 { ac_try='test -z "$ac_c_werror_flag"
2262 || test ! -s conftest.err'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; } &&
2268 { ac_try='test -s conftest.$ac_objext'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; }; then
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2285 if test "$ac_test_CFLAGS" = set; then
2286 CFLAGS=$ac_save_CFLAGS
2287 elif test $ac_cv_prog_cc_g = yes; then
2288 if test "$GCC" = yes; then
2294 if test "$GCC" = yes; then
2300 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2301 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2302 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 ac_cv_prog_cc_stdc=no
2307 cat >conftest.$ac_ext <<_ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2315 #include <sys/types.h>
2316 #include <sys/stat.h>
2317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2318 struct buf { int x; };
2319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2320 static char *e (p, i)
2326 static char *f (char * (*g) (char **, int), char **p, ...)
2331 s = g (p, va_arg (v,int));
2336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2337 function prototypes and stuff, but not '\xHH' hex character constants.
2338 These don't provoke an error unfortunately, instead are silently treated
2339 as 'x'. The following induces an error, until -std1 is added to get
2340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2341 array size at least. It's necessary to write '\x00'==0 to get something
2342 that's true only with -std1. */
2343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2345 int test (int i, double x);
2346 struct s1 {int (*f) (int a);};
2347 struct s2 {int (*f) (double a);};
2348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2354 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2359 # Don't try gcc -ansi; that turns off useful extensions and
2360 # breaks some systems' header files.
2361 # AIX -qlanglvl=ansi
2362 # Ultrix and OSF/1 -std1
2363 # HP-UX 10.20 and later -Ae
2364 # HP-UX older versions -Aa -D_HPUX_SOURCE
2365 # SVR4 -Xc -D__EXTENSIONS__
2366 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2368 CC="$ac_save_CC $ac_arg"
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>conftest.er1
2373 grep -v '^ *+' conftest.er1 >conftest.err
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_c_werror_flag"
2379 || test ! -s conftest.err'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2391 ac_cv_prog_cc_stdc=$ac_arg
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2398 rm -f conftest.err conftest.$ac_objext
2400 rm -f conftest.$ac_ext conftest.$ac_objext
2405 case "x$ac_cv_prog_cc_stdc" in
2407 echo "$as_me:$LINENO: result: none needed" >&5
2408 echo "${ECHO_T}none needed" >&6 ;;
2410 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2411 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2412 CC="$CC $ac_cv_prog_cc_stdc" ;;
2415 # Some people use a C++ compiler to compile C. Since we use `exit',
2416 # in C++ we need to declare it. In case someone uses the same compiler
2417 # for both compiling C and C++ we need to have the C++ compiler decide
2418 # the declaration of exit, since it's the most demanding environment.
2419 cat >conftest.$ac_ext <<_ACEOF
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426 (eval $ac_compile) 2>conftest.er1
2428 grep -v '^ *+' conftest.er1 >conftest.err
2430 cat conftest.err >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -z "$ac_c_werror_flag"
2434 || test ! -s conftest.err'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; } &&
2440 { ac_try='test -s conftest.$ac_objext'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
2446 for ac_declaration in \
2448 'extern "C" void std::exit (int) throw (); using std::exit;' \
2449 'extern "C" void std::exit (int); using std::exit;' \
2450 'extern "C" void exit (int) throw ();' \
2451 'extern "C" void exit (int);' \
2454 cat >conftest.$ac_ext <<_ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>conftest.er1
2474 grep -v '^ *+' conftest.er1 >conftest.err
2476 cat conftest.err >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } &&
2479 { ac_try='test -z "$ac_c_werror_flag"
2480 || test ! -s conftest.err'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; } &&
2486 { ac_try='test -s conftest.$ac_objext'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2500 cat >conftest.$ac_ext <<_ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2515 rm -f conftest.$ac_objext
2516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517 (eval $ac_compile) 2>conftest.er1
2519 grep -v '^ *+' conftest.er1 >conftest.err
2521 cat conftest.err >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } &&
2524 { ac_try='test -z "$ac_c_werror_flag"
2525 || test ! -s conftest.err'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2546 if test -n "$ac_declaration"; then
2547 echo '#ifdef __cplusplus' >>confdefs.h
2548 echo $ac_declaration >>confdefs.h
2549 echo '#endif' >>confdefs.h
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2565 ac_cpp='$CXXCPP $CPPFLAGS'
2566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2569 if test -n "$ac_tool_prefix"; then
2570 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2574 echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2576 if test "${ac_cv_prog_CXX+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 if test -n "$CXX"; then
2580 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 if test -n "$CXX"; then
2600 echo "$as_me:$LINENO: result: $CXX" >&5
2601 echo "${ECHO_T}$CXX" >&6
2603 echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6
2607 test -n "$CXX" && break
2610 if test -z "$CXX"; then
2612 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2614 # Extract the first word of "$ac_prog", so it can be a program name with args.
2615 set dummy $ac_prog; ac_word=$2
2616 echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2618 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 if test -n "$ac_ct_CXX"; then
2622 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631 ac_cv_prog_ac_ct_CXX="$ac_prog"
2632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2641 if test -n "$ac_ct_CXX"; then
2642 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2643 echo "${ECHO_T}$ac_ct_CXX" >&6
2645 echo "$as_me:$LINENO: result: no" >&5
2646 echo "${ECHO_T}no" >&6
2649 test -n "$ac_ct_CXX" && break
2651 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2657 # Provide some information about the compiler.
2658 echo "$as_me:$LINENO:" \
2659 "checking for C++ compiler version" >&5
2660 ac_compiler=`set X $ac_compile; echo $2`
2661 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2662 (eval $ac_compiler --version </dev/null >&5) 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }
2666 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2667 (eval $ac_compiler -v </dev/null >&5) 2>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }
2671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2672 (eval $ac_compiler -V </dev/null >&5) 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2677 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2678 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_cxx_werror_flag"
2710 || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2733 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2734 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2735 GXX=`test $ac_compiler_gnu = yes && echo yes`
2736 ac_test_CXXFLAGS=${CXXFLAGS+set}
2737 ac_save_CXXFLAGS=$CXXFLAGS
2739 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2740 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2741 if test "${ac_cv_prog_cxx_g+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 cat >conftest.$ac_ext <<_ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>conftest.er1
2763 grep -v '^ *+' conftest.er1 >conftest.err
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -z "$ac_cxx_werror_flag"
2769 || test ! -s conftest.err'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; } &&
2775 { ac_try='test -s conftest.$ac_objext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 ac_cv_prog_cxx_g=yes
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2790 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2791 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2792 if test "$ac_test_CXXFLAGS" = set; then
2793 CXXFLAGS=$ac_save_CXXFLAGS
2794 elif test $ac_cv_prog_cxx_g = yes; then
2795 if test "$GXX" = yes; then
2801 if test "$GXX" = yes; then
2807 for ac_declaration in \
2809 'extern "C" void std::exit (int) throw (); using std::exit;' \
2810 'extern "C" void std::exit (int); using std::exit;' \
2811 'extern "C" void exit (int) throw ();' \
2812 'extern "C" void exit (int);' \
2815 cat >conftest.$ac_ext <<_ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h. */
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_cxx_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 cat >conftest.$ac_ext <<_ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2876 rm -f conftest.$ac_objext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878 (eval $ac_compile) 2>conftest.er1
2880 grep -v '^ *+' conftest.er1 >conftest.err
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try='test -z "$ac_cxx_werror_flag"
2886 || test ! -s conftest.err'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; } &&
2892 { ac_try='test -s conftest.$ac_objext'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 if test -n "$ac_declaration"; then
2908 echo '#ifdef __cplusplus' >>confdefs.h
2909 echo $ac_declaration >>confdefs.h
2910 echo '#endif' >>confdefs.h
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 if test "x$CHECKMEM" '!=' "x";then
2924 #unset ac_cv_prog_CC
2925 #unset ac_cv_prog_CXX
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2935 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2936 # On Suns, sometimes $CPP names a directory.
2937 if test -n "$CPP" && test -d "$CPP"; then
2940 if test -z "$CPP"; then
2941 if test "${ac_cv_prog_CPP+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 # Double quotes because CPP needs to be expanded
2945 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2948 for ac_c_preproc_warn_flag in '' yes
2950 # Use a header file that comes with gcc, so configuring glibc
2951 # with a fresh cross-compiler works.
2952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2953 # <limits.h> exists even on freestanding compilers.
2954 # On the NeXT, cc -E runs the code through the compiler's parser,
2955 # not just through cpp. "Syntax error" is here to catch this case.
2956 cat >conftest.$ac_ext <<_ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2963 # include <limits.h>
2965 # include <assert.h>
2969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2972 grep -v '^ *+' conftest.er1 >conftest.err
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } >/dev/null; then
2977 if test -s conftest.err; then
2978 ac_cpp_err=$ac_c_preproc_warn_flag
2979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2986 if test -z "$ac_cpp_err"; then
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2992 # Broken: fails on valid input.
2995 rm -f conftest.err conftest.$ac_ext
2997 # OK, works on sane cases. Now check whether non-existent headers
2998 # can be detected and how.
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3005 #include <ac_nonexistent.h>
3007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } >/dev/null; then
3015 if test -s conftest.err; then
3016 ac_cpp_err=$ac_c_preproc_warn_flag
3017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3024 if test -z "$ac_cpp_err"; then
3025 # Broken: success on invalid input.
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 # Passes both tests.
3035 rm -f conftest.err conftest.$ac_ext
3038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3039 rm -f conftest.err conftest.$ac_ext
3040 if $ac_preproc_ok; then
3052 echo "$as_me:$LINENO: result: $CPP" >&5
3053 echo "${ECHO_T}$CPP" >&6
3055 for ac_c_preproc_warn_flag in '' yes
3057 # Use a header file that comes with gcc, so configuring glibc
3058 # with a fresh cross-compiler works.
3059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3060 # <limits.h> exists even on freestanding compilers.
3061 # On the NeXT, cc -E runs the code through the compiler's parser,
3062 # not just through cpp. "Syntax error" is here to catch this case.
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3070 # include <limits.h>
3072 # include <assert.h>
3076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } >/dev/null; then
3084 if test -s conftest.err; then
3085 ac_cpp_err=$ac_c_preproc_warn_flag
3086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3093 if test -z "$ac_cpp_err"; then
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 # Broken: fails on valid input.
3102 rm -f conftest.err conftest.$ac_ext
3104 # OK, works on sane cases. Now check whether non-existent headers
3105 # can be detected and how.
3106 cat >conftest.$ac_ext <<_ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3112 #include <ac_nonexistent.h>
3114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3117 grep -v '^ *+' conftest.er1 >conftest.err
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } >/dev/null; then
3122 if test -s conftest.err; then
3123 ac_cpp_err=$ac_c_preproc_warn_flag
3124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3131 if test -z "$ac_cpp_err"; then
3132 # Broken: success on invalid input.
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 # Passes both tests.
3142 rm -f conftest.err conftest.$ac_ext
3145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3146 rm -f conftest.err conftest.$ac_ext
3147 if $ac_preproc_ok; then
3150 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3151 See \`config.log' for more details." >&5
3152 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3153 See \`config.log' for more details." >&2;}
3154 { (exit 1); exit 1; }; }
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164 if test -n "$ac_tool_prefix"; then
3165 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3166 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3167 echo "$as_me:$LINENO: checking for $ac_word" >&5
3168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169 if test "${ac_cv_prog_RANLIB+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 if test -n "$RANLIB"; then
3173 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 RANLIB=$ac_cv_prog_RANLIB
3192 if test -n "$RANLIB"; then
3193 echo "$as_me:$LINENO: result: $RANLIB" >&5
3194 echo "${ECHO_T}$RANLIB" >&6
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3201 if test -z "$ac_cv_prog_RANLIB"; then
3202 ac_ct_RANLIB=$RANLIB
3203 # Extract the first word of "ranlib", so it can be a program name with args.
3204 set dummy ranlib; ac_word=$2
3205 echo "$as_me:$LINENO: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 if test -n "$ac_ct_RANLIB"; then
3211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_ac_ct_RANLIB="ranlib"
3221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3231 if test -n "$ac_ct_RANLIB"; then
3232 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3233 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3235 echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3239 RANLIB=$ac_ct_RANLIB
3241 RANLIB="$ac_cv_prog_RANLIB"
3244 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3245 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3246 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3247 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 cat >conftest.make <<\_ACEOF
3252 @echo 'ac_maketemp="$(MAKE)"'
3254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3255 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3256 if test -n "$ac_maketemp"; then
3257 eval ac_cv_prog_make_${ac_make}_set=yes
3259 eval ac_cv_prog_make_${ac_make}_set=no
3263 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3264 echo "$as_me:$LINENO: result: yes" >&5
3265 echo "${ECHO_T}yes" >&6
3268 echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6
3270 SET_MAKE="MAKE=${MAKE-make}"
3273 # Find a good install program. We prefer a C program (faster),
3274 # so one script is as good as another. But avoid the broken or
3275 # incompatible versions:
3276 # SysV /etc/install, /usr/sbin/install
3277 # SunOS /usr/etc/install
3278 # IRIX /sbin/install
3280 # AmigaOS /C/install, which installs bootblocks on floppy discs
3281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3284 # OS/2's system install, which has a completely different semantic
3285 # ./install, which can be erroneously created by make from ./install.sh.
3286 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3287 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3288 if test -z "$INSTALL"; then
3289 if test "${ac_cv_path_install+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir=.
3297 # Account for people who put trailing slashes in PATH elements.
3299 ./ | .// | /cC/* | \
3300 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3301 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3304 # OSF1 and SCO ODT 3.0 have their own names for install.
3305 # Don't use installbsd from OSF since it installs stuff as root
3307 for ac_prog in ginstall scoinst install; do
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3310 if test $ac_prog = install &&
3311 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3312 # AIX install. It has an incompatible calling convention.
3314 elif test $ac_prog = install &&
3315 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3316 # program-specific install script used by HP pwplus--don't use.
3319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3331 if test "${ac_cv_path_install+set}" = set; then
3332 INSTALL=$ac_cv_path_install
3334 # As a last resort, use the slow shell script. We don't cache a
3335 # path for INSTALL within a source directory, because that will
3336 # break other packages using the cache if that directory is
3337 # removed, or if the path is relative.
3338 INSTALL=$ac_install_sh
3341 echo "$as_me:$LINENO: result: $INSTALL" >&5
3342 echo "${ECHO_T}$INSTALL" >&6
3344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3345 # It thinks the first close brace ends the variable substitution.
3346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3352 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3353 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3355 if test "$LN_S" = "ln -s"; then
3356 echo "$as_me:$LINENO: result: yes" >&5
3357 echo "${ECHO_T}yes" >&6
3359 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3360 echo "${ECHO_T}no, using $LN_S" >&6
3363 # Check whether --enable-shared or --disable-shared was given.
3364 if test "${enable_shared+set}" = set; then
3365 enableval="$enable_shared"
3366 p=${PACKAGE-default}
3368 yes) enable_shared=yes ;;
3369 no) enable_shared=no ;;
3372 # Look at the argument we got. We use all the common list separators.
3373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3374 for pkg in $enableval; do
3375 if test "X$pkg" = "X$p"; then
3385 # Check whether --enable-static or --disable-static was given.
3386 if test "${enable_static+set}" = set; then
3387 enableval="$enable_static"
3388 p=${PACKAGE-default}
3390 yes) enable_static=yes ;;
3391 no) enable_static=no ;;
3394 # Look at the argument we got. We use all the common list separators.
3395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3396 for pkg in $enableval; do
3397 if test "X$pkg" = "X$p"; then
3407 # Check whether --enable-fast-install or --disable-fast-install was given.
3408 if test "${enable_fast_install+set}" = set; then
3409 enableval="$enable_fast_install"
3410 p=${PACKAGE-default}
3412 yes) enable_fast_install=yes ;;
3413 no) enable_fast_install=no ;;
3415 enable_fast_install=no
3416 # Look at the argument we got. We use all the common list separators.
3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3418 for pkg in $enableval; do
3419 if test "X$pkg" = "X$p"; then
3420 enable_fast_install=yes
3427 enable_fast_install=yes
3429 # Find the correct PATH separator. Usually this is `:', but
3430 # DJGPP uses `;' like DOS.
3431 if test "X${PATH_SEPARATOR+set}" != Xset; then
3432 UNAME=${UNAME-`uname 2>/dev/null`}
3434 *-DOS) lt_cv_sys_path_separator=';' ;;
3435 *) lt_cv_sys_path_separator=':' ;;
3437 PATH_SEPARATOR=$lt_cv_sys_path_separator
3441 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3442 if test "${with_gnu_ld+set}" = set; then
3443 withval="$with_gnu_ld"
3444 test "$withval" = no || with_gnu_ld=yes
3449 if test "$GCC" = yes; then
3450 # Check if gcc -print-prog-name=ld gives a path.
3451 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3452 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3455 # gcc leaves a trailing carriage return which upsets mingw
3456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3461 # Accept absolute paths.
3462 [\\/]* | [A-Za-z]:[\\/]*)
3463 re_direlt='/[^/][^/]*/\.\./'
3464 # Canonicalize the path of ld
3465 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3466 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3467 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3469 test -z "$LD" && LD="$ac_prog"
3472 # If it fails, then pretend we aren't using GCC.
3476 # If it is relative, then search for the first ld in PATH.
3480 elif test "$with_gnu_ld" = yes; then
3481 echo "$as_me:$LINENO: checking for GNU ld" >&5
3482 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3484 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3485 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3487 if test "${lt_cv_path_LD+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 if test -z "$LD"; then
3491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3492 for ac_dir in $PATH; do
3493 test -z "$ac_dir" && ac_dir=.
3494 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3495 lt_cv_path_LD="$ac_dir/$ac_prog"
3496 # Check to see if the program is GNU ld. I'd rather use --version,
3497 # but apparently some GNU ld's only accept -v.
3498 # Break only if it was the GNU/non-GNU ld that we prefer.
3499 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3500 test "$with_gnu_ld" != no && break
3502 test "$with_gnu_ld" != yes && break
3508 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3513 if test -n "$LD"; then
3514 echo "$as_me:$LINENO: result: $LD" >&5
3515 echo "${ECHO_T}$LD" >&6
3517 echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3520 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3521 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3522 { (exit 1); exit 1; }; }
3523 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3524 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3525 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3529 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3530 lt_cv_prog_gnu_ld=yes
3532 lt_cv_prog_gnu_ld=no
3535 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3536 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3537 with_gnu_ld=$lt_cv_prog_gnu_ld
3540 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3541 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3542 if test "${lt_cv_ld_reload_flag+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 lt_cv_ld_reload_flag='-r'
3547 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3548 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3549 reload_flag=$lt_cv_ld_reload_flag
3550 test -n "$reload_flag" && reload_flag=" $reload_flag"
3552 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3553 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3554 if test "${lt_cv_path_NM+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 if test -n "$NM"; then
3558 # Let the user override the test.
3561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3562 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3563 test -z "$ac_dir" && ac_dir=.
3564 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3565 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3566 # Check to see if the nm accepts a BSD-compat flag.
3567 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3568 # nm: unknown option "B" ignored
3569 # Tru64's nm complains that /dev/null is an invalid object file
3570 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3571 lt_cv_path_NM="$tmp_nm -B"
3573 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3574 lt_cv_path_NM="$tmp_nm -p"
3577 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3578 continue # so that we can try to find one that supports BSD flags
3583 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3588 echo "$as_me:$LINENO: result: $NM" >&5
3589 echo "${ECHO_T}$NM" >&6
3591 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3592 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3593 if test "${lt_cv_path_SED+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 # Loop through the user's path and test for sed and gsed.
3597 # Then use that list of sed's as ones to test for truncation.
3598 as_executable_p="test -f"
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir=.
3604 for ac_prog in sed gsed; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3613 # Create a temporary directory, and hook for its removal unless debugging.
3616 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3617 trap '{ (exit 1); exit 1; }' 1 2 13 15
3620 # Create a (secure) tmp directory for tmp files.
3623 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3624 test -n "$tmp" && test -d "$tmp"
3627 tmp=$TMPDIR/sed$$-$RANDOM
3628 (umask 077 && mkdir $tmp)
3631 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3632 { (exit 1); exit 1; }
3636 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3637 # along with /bin/sed that truncates output.
3638 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3639 test ! -f ${_sed} && break
3640 cat /dev/null > "$tmp/sed.in"
3642 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3643 # Check for GNU sed and select it if it is found.
3644 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3645 lt_cv_path_SED=${_sed}
3649 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3650 mv "$tmp/sed.tmp" "$tmp/sed.in"
3651 cp "$tmp/sed.in" "$tmp/sed.nl"
3652 echo >>"$tmp/sed.nl"
3653 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3654 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3655 # 40000 chars as input seems more than enough
3656 test $_count -gt 10 && break
3657 _count=`expr $_count + 1`
3658 if test $_count -gt $_max; then
3660 lt_cv_path_SED=$_sed
3668 if test "X$SED" != "X"; then
3673 echo "$as_me:$LINENO: result: $SED" >&5
3674 echo "${ECHO_T}$SED" >&6
3676 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3677 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3678 if test "${lt_cv_deplibs_check_method+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 lt_cv_file_magic_cmd='$MAGIC_CMD'
3682 lt_cv_file_magic_test_file=
3683 lt_cv_deplibs_check_method='unknown'
3684 # Need to set the preceding variable on all platforms that support
3685 # interlibrary dependencies.
3686 # 'none' -- dependencies not supported.
3687 # `unknown' -- same as none, but documents that we really don't know.
3688 # 'pass_all' -- all dependencies passed with no checks.
3689 # 'test_compile' -- check by making test program.
3690 # 'file_magic [[regex]]' -- check by looking for files in library path
3691 # which responds to the $file_magic_cmd with a given egrep regex.
3692 # If you have `file' or equivalent on your system and you're not sure
3693 # whether `pass_all' will *always* work, you probably want this one.
3697 lt_cv_deplibs_check_method=pass_all
3701 lt_cv_deplibs_check_method=pass_all
3705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3706 lt_cv_file_magic_cmd='/usr/bin/file -L'
3707 lt_cv_file_magic_test_file=/shlib/libc.so
3710 cygwin* | mingw* | pw32*)
3711 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3712 lt_cv_file_magic_cmd='$OBJDUMP -f'
3715 darwin* | rhapsody*)
3716 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3717 lt_cv_file_magic_cmd='/usr/bin/file -L'
3719 rhapsody* | darwin1.[012])
3720 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3723 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3729 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3732 # Not sure whether the presence of OpenBSD here was a mistake.
3733 # Let's accept both of them until this is cleared up.
3734 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3735 lt_cv_file_magic_cmd=/usr/bin/file
3736 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3740 lt_cv_deplibs_check_method=pass_all
3745 lt_cv_deplibs_check_method=pass_all
3749 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3750 lt_cv_file_magic_cmd=/usr/bin/file
3751 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3754 irix5* | irix6* | nonstopux*)
3756 irix5* | nonstopux*)
3757 # this will be overridden with pass_all, but let us keep it just in case
3758 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3762 *-32|*"-32 ") libmagic=32-bit;;
3763 *-n32|*"-n32 ") libmagic=N32;;
3764 *-64|*"-64 ") libmagic=64-bit;;
3765 *) libmagic=never-match;;
3767 # this will be overridden with pass_all, but let us keep it just in case
3768 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3771 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3772 lt_cv_deplibs_check_method=pass_all
3775 # This must be Linux ELF.
3778 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3779 lt_cv_deplibs_check_method=pass_all ;;
3781 # glibc up to 2.1.1 does not perform some relocations on ARM
3782 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3784 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3788 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3789 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3791 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3796 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3797 lt_cv_file_magic_cmd=/usr/bin/file
3798 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3802 lt_cv_file_magic_cmd=/usr/bin/file
3803 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3804 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3805 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3807 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3811 osf3* | osf4* | osf5*)
3812 # this will be overridden with pass_all, but let us keep it just in case
3813 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3814 lt_cv_file_magic_test_file=/shlib/libc.so
3815 lt_cv_deplibs_check_method=pass_all
3819 lt_cv_deplibs_check_method=pass_all
3823 lt_cv_deplibs_check_method=pass_all
3824 lt_cv_file_magic_test_file=/lib/libc.so
3827 sysv5uw[78]* | sysv4*uw2*)
3828 lt_cv_deplibs_check_method=pass_all
3831 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3832 case $host_vendor in
3834 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]'
3835 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3838 lt_cv_deplibs_check_method=pass_all
3841 lt_cv_file_magic_cmd='/bin/file'
3842 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3845 lt_cv_file_magic_cmd='/bin/file'
3846 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3847 lt_cv_file_magic_test_file=/lib/libc.so
3850 lt_cv_deplibs_check_method=pass_all
3857 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3858 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3859 file_magic_cmd=$lt_cv_file_magic_cmd
3860 deplibs_check_method=$lt_cv_deplibs_check_method
3869 # Check for command to grab the raw symbol name followed by C symbol from nm.
3870 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3871 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3872 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 # These are sane defaults that work on at least a few old systems.
3877 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3879 # Character class describing NM global symbol codes.
3880 symcode='[BCDEGRST]'
3882 # Regexp to match symbols that can be accessed directly from C.
3883 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3885 # Transform the above into a raw symbol and a C symbol.
3886 symxfrm='\1 \2\3 \3'
3888 # Transform an extracted symbol line into a proper C declaration
3889 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3891 # Transform an extracted symbol line into symbol name and symbol address
3892 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'"
3894 # Define system-specific variables.
3899 cygwin* | mingw* | pw32*)
3900 symcode='[ABCDGISTW]'
3902 hpux*) # Its linker distinguishes data from code symbols
3903 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3904 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'"
3907 symcode='[BCDEGRST]'
3910 symcode='[BCDEGQRST]'
3920 # Handle CRLF in mingw tool chain
3924 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3928 # If we're using GNU nm, then use its standard symbol codes.
3929 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3930 symcode='[ABCDGISTW]'
3933 # Try without a prefix undercore, then with it.
3934 for ac_symprfx in "" "_"; do
3936 # Write the raw and C identifiers.
3937 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3939 # Check to see that the pipe works correctly.
3942 cat > conftest.$ac_ext <<EOF
3947 void nm_test_func(){}
3951 int main(){nm_test_var='a';nm_test_func();return(0);}
3954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955 (eval $ac_compile) 2>&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; then
3959 # Now try to grab the symbols.
3961 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3962 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && test -s "$nlist"; then
3966 # Try sorting and uniquifying the output.
3967 if sort "$nlist" | uniq > "$nlist"T; then
3968 mv -f "$nlist"T "$nlist"
3973 # Make sure that we snagged all the symbols we need.
3974 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3975 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3976 cat <<EOF > conftest.$ac_ext
3982 # Now generate the symbol file.
3983 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3985 cat <<EOF >> conftest.$ac_ext
3986 #if defined (__STDC__) && __STDC__
3987 # define lt_ptr void *
3989 # define lt_ptr char *
3993 /* The mapping between symbol names and symbols. */
3998 lt_preloaded_symbols[] =
4001 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4002 cat <<\EOF >> conftest.$ac_ext
4010 # Now try linking the two files.
4011 mv conftest.$ac_objext conftstm.$ac_objext
4013 save_CFLAGS="$CFLAGS"
4014 LIBS="conftstm.$ac_objext"
4015 CFLAGS="$CFLAGS$no_builtin_flag"
4016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4017 (eval $ac_link) 2>&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } && test -s conftest$ac_exeext; then
4024 CFLAGS="$save_CFLAGS"
4026 echo "cannot find nm_test_func in $nlist" >&5
4029 echo "cannot find nm_test_var in $nlist" >&5
4032 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4035 echo "$progname: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4038 rm -f conftest* conftst*
4040 # Do not use the global_symbol_pipe unless it works.
4041 if test "$pipe_works" = yes; then
4044 lt_cv_sys_global_symbol_pipe=
4050 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4051 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4052 global_symbol_to_cdecl=
4053 global_symbol_to_c_name_address=
4055 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4056 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4058 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4060 echo "$as_me:$LINENO: result: failed" >&5
4061 echo "${ECHO_T}failed" >&6
4063 echo "$as_me:$LINENO: result: ok" >&5
4064 echo "${ECHO_T}ok" >&6
4068 echo "$as_me:$LINENO: checking for egrep" >&5
4069 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4070 if test "${ac_cv_prog_egrep+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4074 then ac_cv_prog_egrep='grep -E'
4075 else ac_cv_prog_egrep='egrep'
4078 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4079 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4080 EGREP=$ac_cv_prog_egrep
4083 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4084 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4085 if test "${ac_cv_header_stdc+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 cat >conftest.$ac_ext <<_ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4107 rm -f conftest.$ac_objext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try='test -z "$ac_c_werror_flag"
4117 || test ! -s conftest.err'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 ac_cv_header_stdc=yes
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 ac_cv_header_stdc=no
4136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4138 if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "memchr" >/dev/null 2>&1; then
4153 ac_cv_header_stdc=no
4159 if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "free" >/dev/null 2>&1; then
4174 ac_cv_header_stdc=no
4180 if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182 if test "$cross_compiling" = yes; then
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4192 #if ((' ' & 0x0FF) == 0x020)
4193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196 # define ISLOWER(c) \
4197 (('a' <= (c) && (c) <= 'i') \
4198 || ('j' <= (c) && (c) <= 'r') \
4199 || ('s' <= (c) && (c) <= 'z'))
4200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4208 for (i = 0; i < 256; i++)
4209 if (XOR (islower (i), ISLOWER (i))
4210 || toupper (i) != TOUPPER (i))
4215 rm -f conftest$ac_exeext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217 (eval $ac_link) 2>&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4228 echo "$as_me: program exited with status $ac_status" >&5
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4233 ac_cv_header_stdc=no
4235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4239 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4240 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4241 if test $ac_cv_header_stdc = yes; then
4243 cat >>confdefs.h <<\_ACEOF
4244 #define STDC_HEADERS 1
4249 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4259 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4260 inttypes.h stdint.h unistd.h
4262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4263 echo "$as_me:$LINENO: checking for $ac_header" >&5
4264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 cat >conftest.$ac_ext <<_ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 $ac_includes_default
4276 #include <$ac_header>
4278 rm -f conftest.$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag"
4288 || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 eval "$as_ac_Header=yes"
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 eval "$as_ac_Header=no"
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4312 cat >>confdefs.h <<_ACEOF
4313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4322 for ac_header in dlfcn.h
4324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326 echo "$as_me:$LINENO: checking for $ac_header" >&5
4327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4334 # Is the header compilable?
4335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4337 cat >conftest.$ac_ext <<_ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 $ac_includes_default
4344 #include <$ac_header>
4346 rm -f conftest.$ac_objext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>conftest.er1
4350 grep -v '^ *+' conftest.er1 >conftest.err
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag"
4356 || test ! -s conftest.err'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 ac_header_compiler=yes
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4373 ac_header_compiler=no
4375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4377 echo "${ECHO_T}$ac_header_compiler" >&6
4379 # Is the header present?
4380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 #include <$ac_header>
4390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4393 grep -v '^ *+' conftest.er1 >conftest.err
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null; then
4398 if test -s conftest.err; then
4399 ac_cpp_err=$ac_c_preproc_warn_flag
4400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4407 if test -z "$ac_cpp_err"; then
4408 ac_header_preproc=yes
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 ac_header_preproc=no
4415 rm -f conftest.err conftest.$ac_ext
4416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4417 echo "${ECHO_T}$ac_header_preproc" >&6
4419 # So? What about this header?
4420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4426 ac_header_preproc=yes
4429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4443 ## ------------------------------------------ ##
4444 ## Report this to the AC_PACKAGE_NAME lists. ##
4445 ## ------------------------------------------ ##
4448 sed "s/^/$as_me: WARNING: /" >&2
4451 echo "$as_me:$LINENO: checking for $ac_header" >&5
4452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 eval "$as_ac_Header=\$ac_header_preproc"
4458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4463 cat >>confdefs.h <<_ACEOF
4464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4476 # Only perform the check for file, if the check method requires it
4477 case $deplibs_check_method in
4479 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4480 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4481 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4482 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4490 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4493 ac_save_MAGIC_CMD="$MAGIC_CMD"
4494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4495 ac_dummy="/usr/bin:$PATH"
4496 for ac_dir in $ac_dummy; do
4497 test -z "$ac_dir" && ac_dir=.
4498 if test -f $ac_dir/${ac_tool_prefix}file; then
4499 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4500 if test -n "$file_magic_test_file"; then
4501 case $deplibs_check_method in
4503 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4505 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4506 egrep "$file_magic_regex" > /dev/null; then
4511 *** Warning: the command libtool uses to detect shared libraries,
4512 *** $file_magic_cmd, produces output that libtool cannot recognize.
4513 *** The result is that libtool may fail to recognize shared libraries
4514 *** as such. This will affect the creation of libtool libraries that
4515 *** depend on shared libraries, but programs linked with such libtool
4516 *** libraries will work regardless of this problem. Nevertheless, you
4517 *** may want to report the problem to your system manager and/or to
4518 *** bug-libtool@gnu.org
4528 MAGIC_CMD="$ac_save_MAGIC_CMD"
4533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4534 if test -n "$MAGIC_CMD"; then
4535 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4536 echo "${ECHO_T}$MAGIC_CMD" >&6
4538 echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4542 if test -z "$lt_cv_path_MAGIC_CMD"; then
4543 if test -n "$ac_tool_prefix"; then
4544 echo "$as_me:$LINENO: checking for file" >&5
4545 echo $ECHO_N "checking for file... $ECHO_C" >&6
4546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4554 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4557 ac_save_MAGIC_CMD="$MAGIC_CMD"
4558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4559 ac_dummy="/usr/bin:$PATH"
4560 for ac_dir in $ac_dummy; do
4561 test -z "$ac_dir" && ac_dir=.
4562 if test -f $ac_dir/file; then
4563 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4564 if test -n "$file_magic_test_file"; then
4565 case $deplibs_check_method in
4567 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4570 egrep "$file_magic_regex" > /dev/null; then
4575 *** Warning: the command libtool uses to detect shared libraries,
4576 *** $file_magic_cmd, produces output that libtool cannot recognize.
4577 *** The result is that libtool may fail to recognize shared libraries
4578 *** as such. This will affect the creation of libtool libraries that
4579 *** depend on shared libraries, but programs linked with such libtool
4580 *** libraries will work regardless of this problem. Nevertheless, you
4581 *** may want to report the problem to your system manager and/or to
4582 *** bug-libtool@gnu.org
4592 MAGIC_CMD="$ac_save_MAGIC_CMD"
4597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4598 if test -n "$MAGIC_CMD"; then
4599 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4600 echo "${ECHO_T}$MAGIC_CMD" >&6
4602 echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6
4615 if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4618 echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620 if test "${ac_cv_prog_RANLIB+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 if test -n "$RANLIB"; then
4624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 RANLIB=$ac_cv_prog_RANLIB
4643 if test -n "$RANLIB"; then
4644 echo "$as_me:$LINENO: result: $RANLIB" >&5
4645 echo "${ECHO_T}$RANLIB" >&6
4647 echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6
4652 if test -z "$ac_cv_prog_RANLIB"; then
4653 ac_ct_RANLIB=$RANLIB
4654 # Extract the first word of "ranlib", so it can be a program name with args.
4655 set dummy ranlib; ac_word=$2
4656 echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 if test -n "$ac_ct_RANLIB"; then
4662 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671 ac_cv_prog_ac_ct_RANLIB="ranlib"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4682 if test -n "$ac_ct_RANLIB"; then
4683 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4684 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4686 echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6
4690 RANLIB=$ac_ct_RANLIB
4692 RANLIB="$ac_cv_prog_RANLIB"
4695 if test -n "$ac_tool_prefix"; then
4696 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4697 set dummy ${ac_tool_prefix}strip; ac_word=$2
4698 echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4700 if test "${ac_cv_prog_STRIP+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 if test -n "$STRIP"; then
4704 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 STRIP=$ac_cv_prog_STRIP
4723 if test -n "$STRIP"; then
4724 echo "$as_me:$LINENO: result: $STRIP" >&5
4725 echo "${ECHO_T}$STRIP" >&6
4727 echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6
4732 if test -z "$ac_cv_prog_STRIP"; then
4734 # Extract the first word of "strip", so it can be a program name with args.
4735 set dummy strip; ac_word=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 if test -n "$ac_ct_STRIP"; then
4742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_ac_ct_STRIP="strip"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4762 if test -n "$ac_ct_STRIP"; then
4763 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4764 echo "${ECHO_T}$ac_ct_STRIP" >&6
4766 echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6
4772 STRIP="$ac_cv_prog_STRIP"
4779 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4780 if test "${enable_libtool_lock+set}" = set; then
4781 enableval="$enable_libtool_lock"
4784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4786 # Some flags need to be propagated to the compiler or linker for good
4790 # Find out which ABI we are using.
4791 echo '#line 4791 "configure"' > conftest.$ac_ext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; then
4797 case `/usr/bin/file conftest.$ac_objext` in
4813 # Test if the compiler is 64bit
4814 echo 'int i;' > conftest.$ac_ext
4815 lt_cv_cc_64bit_output=no
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; then
4821 case `/usr/bin/file conftest.$ac_objext` in
4823 lt_cv_cc_64bit_output=yes
4831 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4832 SAVE_CFLAGS="$CFLAGS"
4833 CFLAGS="$CFLAGS -belf"
4834 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4835 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4836 if test "${lt_cv_cc_needs_belf+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847 cat >conftest.$ac_ext <<_ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4862 rm -f conftest.$ac_objext conftest$ac_exeext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4864 (eval $ac_link) 2>conftest.er1
4866 grep -v '^ *+' conftest.er1 >conftest.err
4868 cat conftest.err >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } &&
4871 { ac_try='test -z "$ac_c_werror_flag"
4872 || test ! -s conftest.err'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; } &&
4878 { ac_try='test -s conftest$ac_exeext'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 lt_cv_cc_needs_belf=yes
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 lt_cv_cc_needs_belf=no
4891 rm -f conftest.err conftest.$ac_objext \
4892 conftest$ac_exeext conftest.$ac_ext
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4901 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4902 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4903 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4904 CFLAGS="$SAVE_CFLAGS"
4911 # Sed substitution that helps us do robust quoting. It backslashifies
4912 # metacharacters that are still active within double-quoted strings.
4913 Xsed='sed -e s/^X//'
4914 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4916 # Same as above, but do not quote variable references.
4917 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4919 # Sed substitution to delay expansion of an escaped shell variable in a
4920 # double_quote_subst'ed string.
4921 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4927 default_ofile=libtool
4928 can_build_shared=yes
4930 # All known linkers require a `.a' archive for static linking (except M$VC,
4931 # which needs '.lib').
4933 ltmain="$ac_aux_dir/ltmain.sh"
4934 ofile="$default_ofile"
4935 with_gnu_ld="$lt_cv_prog_gnu_ld"
4936 need_locks="$enable_libtool_lock"
4939 old_CFLAGS="$CFLAGS"
4941 # Set sane defaults for various variables
4942 test -z "$AR" && AR=ar
4943 test -z "$AR_FLAGS" && AR_FLAGS=cru
4944 test -z "$AS" && AS=as
4945 test -z "$CC" && CC=cc
4946 test -z "$DLLTOOL" && DLLTOOL=dlltool
4947 test -z "$LD" && LD=ld
4948 test -z "$LN_S" && LN_S="ln -s"
4949 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4950 test -z "$NM" && NM=nm
4951 test -z "$OBJDUMP" && OBJDUMP=objdump
4952 test -z "$RANLIB" && RANLIB=:
4953 test -z "$STRIP" && STRIP=:
4954 test -z "$ac_objext" && ac_objext=o
4956 if test x"$host" != x"$build"; then
4957 ac_tool_prefix=${host_alias}-
4962 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4965 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4970 # AIX sometimes has problems with the GCC collect2 program. For some
4971 # reason, if we set the COLLECT_NAMES environment variable, the problems
4972 # vanish in a puff of smoke.
4973 if test "X${COLLECT_NAMES+set}" != Xset; then
4975 export COLLECT_NAMES
4980 # Determine commands to create old-style static archives.
4981 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4982 old_postinstall_cmds='chmod 644 $oldlib'
4983 old_postuninstall_cmds=
4985 if test -n "$RANLIB"; then
4988 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4991 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4994 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4997 # Allow CC to be a program name with arguments.
5001 echo "$as_me:$LINENO: checking for objdir" >&5
5002 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5003 rm -f .libs 2>/dev/null
5004 mkdir .libs 2>/dev/null
5005 if test -d .libs; then
5008 # MS-DOS does not allow filenames that begin with a dot.
5011 rmdir .libs 2>/dev/null
5012 echo "$as_me:$LINENO: result: $objdir" >&5
5013 echo "${ECHO_T}$objdir" >&6
5017 # Check whether --with-pic or --without-pic was given.
5018 if test "${with_pic+set}" = set; then
5024 test -z "$pic_mode" && pic_mode=default
5026 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5027 # in isolation, and that seeing it set (from the cache) indicates that
5028 # the associated values are set (in the cache) correctly too.
5029 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5030 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5031 if test "${lt_cv_prog_cc_pic+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 lt_cv_prog_cc_shlib=
5037 lt_cv_prog_cc_static=
5038 lt_cv_prog_cc_no_builtin=
5039 lt_cv_prog_cc_can_build_shared=$can_build_shared
5041 if test "$GCC" = yes; then
5042 lt_cv_prog_cc_wl='-Wl,'
5043 lt_cv_prog_cc_static='-static'
5047 # Below there is a dirty hack to force normal static linking with -ldl
5048 # The problem is because libdl dynamically linked with both libc and
5049 # libC (AIX C++ library), which obviously doesn't included in libraries
5050 # list by gcc. This cause undefined symbols with -static flags.
5051 # This hack allows C programs to be linked with "-static -ldl", but
5052 # not sure about C++ programs.
5053 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5056 # FIXME: we need at least 68020 code to build shared libraries, but
5057 # adding the `-m68020' flag to GCC prevents building anything better,
5059 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5062 # PIC is the default for these OSes.
5064 darwin* | rhapsody*)
5065 # PIC is the default on this platform
5066 # Common symbols not allowed in MH_DYLIB files
5067 lt_cv_prog_cc_pic='-fno-common'
5069 cygwin* | mingw* | pw32* | os2*)
5070 # This hack is so that the source file can tell whether it is being
5071 # built for inclusion in a dll (and should export symbols for example).
5072 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5075 if test -d /usr/nec; then
5076 lt_cv_prog_cc_pic=-Kconform_pic
5080 lt_cv_prog_cc_pic='-fPIC'
5084 # PORTME Check for PIC flags for the system compiler.
5086 aix3* | aix4* | aix5*)
5087 lt_cv_prog_cc_wl='-Wl,'
5088 # All AIX code is PIC.
5089 if test "$host_cpu" = ia64; then
5090 # AIX 5 now supports IA64 processor
5091 lt_cv_prog_cc_static='-Bstatic'
5093 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5097 hpux9* | hpux10* | hpux11*)
5098 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5099 lt_cv_prog_cc_wl='-Wl,'
5100 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5101 lt_cv_prog_cc_pic='+Z'
5104 irix5* | irix6* | nonstopux*)
5105 lt_cv_prog_cc_wl='-Wl,'
5106 lt_cv_prog_cc_static='-non_shared'
5107 # PIC (with -KPIC) is the default.
5110 cygwin* | mingw* | pw32* | os2*)
5111 # This hack is so that the source file can tell whether it is being
5112 # built for inclusion in a dll (and should export symbols for example).
5113 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5117 lt_cv_prog_cc_pic='-KPIC'
5118 lt_cv_prog_cc_static='-Bstatic'
5121 osf3* | osf4* | osf5*)
5122 # All OSF/1 code is PIC.
5123 lt_cv_prog_cc_wl='-Wl,'
5124 lt_cv_prog_cc_static='-non_shared'
5128 lt_cv_prog_cc_pic='-Kpic'
5129 lt_cv_prog_cc_static='-dn'
5130 lt_cv_prog_cc_shlib='-belf'
5134 lt_cv_prog_cc_pic='-KPIC'
5135 lt_cv_prog_cc_static='-Bstatic'
5136 lt_cv_prog_cc_wl='-Wl,'
5140 lt_cv_prog_cc_pic='-PIC'
5141 lt_cv_prog_cc_static='-Bstatic'
5142 lt_cv_prog_cc_wl='-Qoption ld '
5145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5146 lt_cv_prog_cc_pic='-KPIC'
5147 lt_cv_prog_cc_static='-Bstatic'
5148 lt_cv_prog_cc_wl='-Wl,'
5152 lt_cv_prog_cc_pic='-pic'
5153 lt_cv_prog_cc_static='-Bstatic'
5157 if test -d /usr/nec ;then
5158 lt_cv_prog_cc_pic='-Kconform_pic'
5159 lt_cv_prog_cc_static='-Bstatic'
5164 lt_cv_prog_cc_can_build_shared=no
5171 if test -z "$lt_cv_prog_cc_pic"; then
5172 echo "$as_me:$LINENO: result: none" >&5
5173 echo "${ECHO_T}none" >&6
5175 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5176 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5178 # Check to make sure the pic_flag actually works.
5179 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5180 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5181 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 save_CFLAGS="$CFLAGS"
5185 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5186 cat >conftest.$ac_ext <<_ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5201 rm -f conftest.$ac_objext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5203 (eval $ac_compile) 2>conftest.er1
5205 grep -v '^ *+' conftest.er1 >conftest.err
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } &&
5210 { ac_try='test -z "$ac_c_werror_flag"
5211 || test ! -s conftest.err'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; } &&
5217 { ac_try='test -s conftest.$ac_objext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5224 hpux9* | hpux10* | hpux11*)
5225 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5226 # they create non-PIC objects. So, if there were any warnings, we
5227 # assume that PIC is not supported.
5228 if test -s conftest.err; then
5229 lt_cv_prog_cc_pic_works=no
5231 lt_cv_prog_cc_pic_works=yes
5235 lt_cv_prog_cc_pic_works=yes
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5243 lt_cv_prog_cc_pic_works=no
5246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247 CFLAGS="$save_CFLAGS"
5252 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5254 lt_cv_prog_cc_can_build_shared=no
5256 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5259 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5260 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5263 # Check for any special shared library compilation flags.
5264 if test -n "$lt_cv_prog_cc_shlib"; then
5265 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5266 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5267 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5269 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5270 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5271 lt_cv_prog_cc_can_build_shared=no
5275 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5276 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5277 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 lt_cv_prog_cc_static_works=no
5281 save_LDFLAGS="$LDFLAGS"
5282 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5283 cat >conftest.$ac_ext <<_ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5298 rm -f conftest.$ac_objext conftest$ac_exeext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300 (eval $ac_link) 2>conftest.er1
5302 grep -v '^ *+' conftest.er1 >conftest.err
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try='test -s conftest$ac_exeext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 lt_cv_prog_cc_static_works=yes
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5326 rm -f conftest.err conftest.$ac_objext \
5327 conftest$ac_exeext conftest.$ac_ext
5328 LDFLAGS="$save_LDFLAGS"
5333 # Belt *and* braces to stop my trousers falling down:
5334 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5335 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5336 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5338 pic_flag="$lt_cv_prog_cc_pic"
5339 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5340 wl="$lt_cv_prog_cc_wl"
5341 link_static_flag="$lt_cv_prog_cc_static"
5342 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5343 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5346 # Check to see if options -o and -c are simultaneously supported by compiler
5347 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5348 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5349 if test "${lt_cv_compiler_c_o+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 $rm -r conftest 2>/dev/null
5356 echo "int some_variable = 0;" > conftest.$ac_ext
5358 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5359 # that will create temporary files in the current directory regardless of
5360 # the output directory. Thus, making CWD read-only will cause this test
5361 # to fail, enabling locking or at least warning the user not to do parallel
5364 save_CFLAGS="$CFLAGS"
5365 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5367 if { (eval echo configure:5367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5368 # The compiler can only warn and ignore the option if not recognized
5369 # So say no if there are warnings
5370 if test -s out/conftest.err; then
5371 lt_cv_compiler_c_o=no
5373 lt_cv_compiler_c_o=yes
5376 # Append any errors to the config.log.
5377 cat out/conftest.err 1>&5
5378 lt_cv_compiler_c_o=no
5380 CFLAGS="$save_CFLAGS"
5386 $rm -r conftest 2>/dev/null
5390 compiler_c_o=$lt_cv_compiler_c_o
5391 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5392 echo "${ECHO_T}$compiler_c_o" >&6
5394 if test x"$compiler_c_o" = x"yes"; then
5395 # Check to see if we can write to a .lo
5396 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5397 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5398 if test "${lt_cv_compiler_o_lo+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 lt_cv_compiler_o_lo=no
5403 save_CFLAGS="$CFLAGS"
5404 CFLAGS="$CFLAGS -c -o conftest.lo"
5405 save_objext="$ac_objext"
5407 cat >conftest.$ac_ext <<_ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5417 int some_variable = 0;
5422 rm -f conftest.$ac_objext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>conftest.er1
5426 grep -v '^ *+' conftest.er1 >conftest.err
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try='test -z "$ac_c_werror_flag"
5432 || test ! -s conftest.err'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 # The compiler can only warn and ignore the option if not recognized
5445 # So say no if there are warnings
5446 if test -s conftest.err; then
5447 lt_cv_compiler_o_lo=no
5449 lt_cv_compiler_o_lo=yes
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5458 ac_objext="$save_objext"
5459 CFLAGS="$save_CFLAGS"
5463 compiler_o_lo=$lt_cv_compiler_o_lo
5464 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5465 echo "${ECHO_T}$compiler_o_lo" >&6
5470 # Check to see if we can do hard links to lock some files if needed
5471 hard_links="nottested"
5472 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5473 # do not overwrite the value of need_locks provided by the user
5474 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5475 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5480 ln conftest.a conftest.b 2>&5 || hard_links=no
5481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5482 echo "$as_me:$LINENO: result: $hard_links" >&5
5483 echo "${ECHO_T}$hard_links" >&6
5484 if test "$hard_links" = no; then
5485 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5486 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5493 if test "$GCC" = yes; then
5494 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5495 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5496 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5497 echo "int some_variable = 0;" > conftest.$ac_ext
5498 save_CFLAGS="$CFLAGS"
5499 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5500 compiler_rtti_exceptions=no
5501 cat >conftest.$ac_ext <<_ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5511 int some_variable = 0;
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>conftest.er1
5520 grep -v '^ *+' conftest.er1 >conftest.err
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try='test -z "$ac_c_werror_flag"
5526 || test ! -s conftest.err'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; } &&
5532 { ac_try='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 # The compiler can only warn and ignore the option if not recognized
5539 # So say no if there are warnings
5540 if test -s conftest.err; then
5541 compiler_rtti_exceptions=no
5543 compiler_rtti_exceptions=yes
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5552 CFLAGS="$save_CFLAGS"
5553 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5554 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5556 if test "$compiler_rtti_exceptions" = "yes"; then
5557 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5559 no_builtin_flag=' -fno-builtin'
5563 # See if the linker supports building shared libraries.
5564 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5565 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5567 allow_undefined_flag=
5569 need_lib_prefix=unknown
5570 need_version=unknown
5571 # when you set need_version to no, make sure it does not cause -set_version
5572 # flags to be left without arguments
5574 archive_expsym_cmds=
5575 old_archive_from_new_cmds=
5576 old_archive_from_expsyms_cmds=
5577 export_dynamic_flag_spec=
5578 whole_archive_flag_spec=
5579 thread_safe_flag_spec=
5580 hardcode_into_libs=no
5581 hardcode_libdir_flag_spec=
5582 hardcode_libdir_separator=
5585 hardcode_shlibpath_var=unsupported
5587 link_all_deplibs=unknown
5588 always_export_symbols=no
5589 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5590 # include_expsyms should be a list of space-separated symbols to be *always*
5591 # included in the symbol list
5593 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5594 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5595 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5596 # as well as any symbol that contains `d'.
5597 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5598 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5599 # platforms (ab)use it in PIC code, but their linkers get confused if
5600 # the symbol is explicitly referenced. Since portable code cannot
5601 # rely on this symbol name, it's probably fine to never include it in
5602 # preloaded symbol tables.
5603 extract_expsyms_cmds=
5606 cygwin* | mingw* | pw32*)
5607 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5608 # When not using gcc, we currently assume that we are using
5609 # Microsoft Visual C++.
5610 if test "$GCC" != yes; then
5620 if test "$with_gnu_ld" = yes; then
5621 # If archive_cmds runs LD, not CC, wlarc should be empty
5624 # See if GNU ld supports shared libraries.
5626 aix3* | aix4* | aix5*)
5627 # On AIX, the GNU linker is very broken
5628 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5632 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5633 *** to be unable to reliably create shared libraries on AIX.
5634 *** Therefore, libtool is disabling shared libraries support. If you
5635 *** really care for shared libraries, you may want to modify your PATH
5636 *** so that a non-GNU linker is found, and then restart.
5642 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)'
5643 hardcode_libdir_flag_spec='-L$libdir'
5644 hardcode_minus_L=yes
5646 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5647 # that the semantics of dynamic libraries on AmigaOS, at least up
5648 # to version 4, is to share data among multiple programs linked
5649 # with the same dynamic library. Since this doesn't match the
5650 # behavior of shared libraries on other platforms, we can use
5656 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5657 allow_undefined_flag=unsupported
5658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5659 # support --undefined. This deserves some investigation. FIXME
5660 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5666 cygwin* | mingw* | pw32*)
5667 # hardcode_libdir_flag_spec is actually meaningless, as there is
5668 # no search path for DLLs.
5669 hardcode_libdir_flag_spec='-L$libdir'
5670 allow_undefined_flag=unsupported
5671 always_export_symbols=yes
5673 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5674 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5675 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5676 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5677 else $CC -o impgen impgen.c ; fi)~
5678 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5680 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5682 # cygwin and mingw dlls have different entry points and sets of symbols
5684 # FIXME: what about values for MSVC?
5685 dll_entry=__cygwin_dll_entry@12
5686 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5690 dll_entry=_DllMainCRTStartup@12
5691 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5695 # mingw and cygwin differ, and it's simplest to just exclude the union
5696 # of the two symbol sets.
5697 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5699 # recent cygwin and mingw systems supply a stub DllMain which the user
5700 # can override, but on older systems we have to supply one (in ltdll.c)
5701 if test "x$lt_cv_need_dllmain" = "xyes"; then
5702 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5703 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~
5704 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5710 # Extract the symbol export list from an `--export-all' def file,
5711 # then regenerate the def file from the symbol export list, so that
5712 # the compiled dll only exports the symbol export list.
5713 # Be careful not to strip the DATA tag left be newer dlltools.
5714 export_symbols_cmds="$ltdll_cmds"'
5715 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5716 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5718 # If the export-symbols file already is a .def file (1st line
5719 # is EXPORTS), use it as is.
5720 # If DATA tags from a recent dlltool are present, honour them!
5721 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5722 cp $export_symbols $output_objdir/$soname-def;
5724 echo EXPORTS > $output_objdir/$soname-def;
5726 cat $export_symbols | while read symbol; do
5729 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5730 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5731 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5733 _lt_hint=`expr 1 + \$_lt_hint`;
5737 $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~
5738 $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~
5739 $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~
5740 $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~
5741 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5745 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5746 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5749 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5750 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5755 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5759 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5760 *** create shared libraries on Solaris systems. Therefore, libtool
5761 *** is disabling shared libraries support. We urge you to upgrade GNU
5762 *** binutils to release 2.9.1 or newer. Another option is to modify
5763 *** your PATH or compiler configuration so that the native linker is
5764 *** used, and then restart.
5767 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5769 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5776 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5779 hardcode_shlibpath_var=no
5783 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5785 supports_anon_versioning=no
5786 case `$LD -v 2>/dev/null` in
5787 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5788 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5789 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5790 *\ 2.11.*) ;; # other 2.11 versions
5791 *) supports_anon_versioning=yes ;;
5793 if test $supports_anon_versioning = yes; then
5794 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5796 $echo "local: *; };" >> $output_objdir/$libname.ver~
5797 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5799 $archive_expsym_cmds="$archive_cmds"
5807 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5809 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5816 if test "$ld_shlibs" = yes; then
5817 runpath_var=LD_RUN_PATH
5818 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5819 export_dynamic_flag_spec='${wl}--export-dynamic'
5821 cygwin* | mingw* | pw32*)
5822 # dlltool doesn't understand --whole-archive et. al.
5823 whole_archive_flag_spec=
5826 # ancient GNU ld didn't support --whole-archive et. al.
5827 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5828 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5830 whole_archive_flag_spec=
5836 # PORTME fill in a description of your system's linker (not GNU ld)
5839 allow_undefined_flag=unsupported
5840 always_export_symbols=yes
5841 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'
5842 # Note: this linker hardcodes the directories in LIBPATH if there
5843 # are no directories specified by -L.
5844 hardcode_minus_L=yes
5845 if test "$GCC" = yes && test -z "$link_static_flag"; then
5846 # Neither direct hardcoding nor static linking is supported with a
5848 hardcode_direct=unsupported
5853 if test "$host_cpu" = ia64; then
5854 # On IA64, the linker does run time linking by default, so we don't
5855 # have to do anything special.
5856 aix_use_runtimelinking=no
5857 exp_sym_flag='-Bexport'
5860 aix_use_runtimelinking=no
5862 # Test if we are trying to use run time linking or normal
5863 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5864 # need to do runtime linking.
5865 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5866 for ld_flag in $LDFLAGS; do
5869 aix_use_runtimelinking=yes
5876 exp_sym_flag='-bexport'
5877 no_entry_flag='-bnoentry'
5880 # When large executables or shared objects are built, AIX ld can
5881 # have problems creating the table of contents. If linking a library
5882 # or program results in "error TOC overflow" add -mminimal-toc to
5883 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5884 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5888 hardcode_libdir_separator=':'
5889 if test "$GCC" = yes; then
5890 case $host_os in aix4.[012]|aix4.[012].*)
5891 collect2name=`${CC} -print-prog-name=collect2`
5892 if test -f "$collect2name" && \
5893 strings "$collect2name" | grep resolve_lib_name >/dev/null
5895 # We have reworked collect2
5898 # We have old collect2
5899 hardcode_direct=unsupported
5900 # It fails to find uninstalled libraries when the uninstalled
5901 # path is not listed in the libpath. Setting hardcode_minus_L
5902 # to unsupported forces relinking
5903 hardcode_minus_L=yes
5904 hardcode_libdir_flag_spec='-L$libdir'
5905 hardcode_libdir_separator=
5909 shared_flag='-shared'
5912 if test "$host_cpu" = ia64; then
5913 shared_flag='${wl}-G'
5915 if test "$aix_use_runtimelinking" = yes; then
5916 shared_flag='${wl}-G'
5918 shared_flag='${wl}-bM:SRE'
5923 # It seems that -bexpall can do strange things, so it is better to
5924 # generate a list of symbols to export.
5925 always_export_symbols=yes
5926 if test "$aix_use_runtimelinking" = yes; then
5927 # Warning - without using the other runtime loading flags (-brtl),
5928 # -berok will link without error, but may produce a broken library.
5929 allow_undefined_flag='-berok'
5930 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5931 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"
5933 if test "$host_cpu" = ia64; then
5934 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5935 allow_undefined_flag="-z nodefs"
5936 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"
5938 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5939 # Warning - without using the other run time loading flags,
5940 # -berok will link without error, but may produce a broken library.
5941 allow_undefined_flag='${wl}-berok'
5942 # This is a bit strange, but is similar to how AIX traditionally builds
5943 # it's shared libraries.
5944 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'
5950 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)'
5951 hardcode_libdir_flag_spec='-L$libdir'
5952 hardcode_minus_L=yes
5953 # see comment about different semantics on the GNU ld section
5957 cygwin* | mingw* | pw32*)
5958 # When not using gcc, we currently assume that we are using
5959 # Microsoft Visual C++.
5960 # hardcode_libdir_flag_spec is actually meaningless, as there is
5961 # no search path for DLLs.
5962 hardcode_libdir_flag_spec=' '
5963 allow_undefined_flag=unsupported
5964 # Tell ltmain to make .lib files, not .a files.
5966 # FIXME: Setting linknames here is a bad hack.
5967 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5968 # The linker will automatically build a .lib file if we build a DLL.
5969 old_archive_from_new_cmds='true'
5970 # FIXME: Should let the user specify the lib program.
5971 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5972 fix_srcfile_path='`cygpath -w "$srcfile"`'
5975 darwin* | rhapsody*)
5977 rhapsody* | darwin1.[012])
5978 allow_undefined_flag='-undefined suppress'
5981 allow_undefined_flag='-flat_namespace -undefined suppress'
5984 # FIXME: Relying on posixy $() will cause problems for
5985 # cross-compilation, but unfortunately the echo tests do not
5986 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5987 # `"' quotes if we put them in here... so don't!
5988 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)'
5989 # We need to add '_' to the symbols in $export_symbols first
5990 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5992 hardcode_shlibpath_var=no
5993 whole_archive_flag_spec='-all_load $convenience'
6000 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6001 # support. Future versions do this automatically, but an explicit c++rt0.o
6002 # does not break anything, and helps significantly (at the cost of a little
6005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6006 hardcode_libdir_flag_spec='-R$libdir'
6008 hardcode_shlibpath_var=no
6011 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6015 hardcode_minus_L=yes
6016 hardcode_shlibpath_var=no
6019 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6021 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6022 hardcode_libdir_flag_spec='-R$libdir'
6024 hardcode_shlibpath_var=no
6027 hpux9* | hpux10* | hpux11*)
6029 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' ;;
6030 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6032 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6033 hardcode_libdir_separator=:
6035 hardcode_minus_L=yes # Not in the search PATH, but as the default
6036 # location of the library.
6037 export_dynamic_flag_spec='${wl}-E'
6040 irix5* | irix6* | nonstopux*)
6041 if test "$GCC" = yes; then
6042 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'
6043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6045 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'
6046 hardcode_libdir_flag_spec='-rpath $libdir'
6048 hardcode_libdir_separator=:
6049 link_all_deplibs=yes
6053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6054 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6056 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6058 hardcode_libdir_flag_spec='-R$libdir'
6060 hardcode_shlibpath_var=no
6064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6067 hardcode_libdir_separator=:
6068 hardcode_shlibpath_var=no
6073 hardcode_shlibpath_var=no
6074 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6075 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6076 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6077 export_dynamic_flag_spec='${wl}-E'
6080 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6082 hardcode_libdir_flag_spec='-R$libdir'
6085 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6086 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6093 hardcode_libdir_flag_spec='-L$libdir'
6094 hardcode_minus_L=yes
6095 allow_undefined_flag=unsupported
6096 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'
6097 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6101 if test "$GCC" = yes; then
6102 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6103 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'
6105 allow_undefined_flag=' -expect_unresolved \*'
6106 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'
6108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6109 hardcode_libdir_separator=:
6112 osf4* | osf5*) # as osf3* with the addition of -msym flag
6113 if test "$GCC" = yes; then
6114 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6115 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'
6116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6118 allow_undefined_flag=' -expect_unresolved \*'
6119 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'
6120 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6121 $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'
6123 #Both c and cxx compiler support -rpath directly
6124 hardcode_libdir_flag_spec='-rpath $libdir'
6126 hardcode_libdir_separator=:
6130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6131 hardcode_shlibpath_var=no
6132 runpath_var=LD_RUN_PATH
6133 hardcode_runpath_var=yes
6134 export_dynamic_flag_spec='${wl}-Bexport'
6138 # gcc --version < 3.0 without binutils cannot create self contained
6139 # shared libraries reliably, requiring libgcc.a to resolve some of
6140 # the object symbols generated in some cases. Libraries that use
6141 # assert need libgcc.a to resolve __eprintf, for example. Linking
6142 # a copy of libgcc.a into every shared library to guarantee resolving
6143 # such symbols causes other problems: According to Tim Van Holder
6144 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6145 # (to the application) exception stack for one thing.
6146 no_undefined_flag=' -z defs'
6147 if test "$GCC" = yes; then
6148 case `$CC --version 2>/dev/null` in
6152 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6153 *** create self contained shared libraries on Solaris systems, without
6154 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6155 *** -no-undefined support, which will at least allow you to build shared
6156 *** libraries. However, you may find that when you link such libraries
6157 *** into an application without using GCC, you have to manually add
6158 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6159 *** upgrade to a newer version of GCC. Another option is to rebuild your
6160 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6167 # $CC -shared without GNU ld will not create a library from C++
6168 # object files and a static libstdc++, better avoid it by now
6169 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6170 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6171 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6172 hardcode_libdir_flag_spec='-R$libdir'
6173 hardcode_shlibpath_var=no
6175 solaris2.[0-5] | solaris2.[0-5].*) ;;
6176 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6177 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6179 link_all_deplibs=yes
6183 if test "x$host_vendor" = xsequent; then
6184 # Use $CC to link under sequent, because it throws in some extra .o
6185 # files that make .init and .fini sections work.
6186 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6188 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6190 hardcode_libdir_flag_spec='-L$libdir'
6192 hardcode_minus_L=yes
6193 hardcode_shlibpath_var=no
6197 case $host_vendor in
6199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6200 hardcode_direct=yes # is this really true???
6203 ## LD is ld it makes a PLAMLIB
6204 ## CC just makes a GrossModule.
6205 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6206 reload_cmds='$CC -r -o $output$reload_objs'
6210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6211 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6214 runpath_var='LD_RUN_PATH'
6215 hardcode_shlibpath_var=no
6219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6220 hardcode_shlibpath_var=no
6221 export_dynamic_flag_spec='-Bexport'
6225 no_undefined_flag=' -z text'
6226 # $CC -shared without GNU ld will not create a library from C++
6227 # object files and a static libstdc++, better avoid it by now
6228 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6229 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6230 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6231 hardcode_libdir_flag_spec=
6232 hardcode_shlibpath_var=no
6233 runpath_var='LD_RUN_PATH'
6237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6238 hardcode_libdir_flag_spec='-L$libdir'
6239 hardcode_shlibpath_var=no
6243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6244 hardcode_libdir_flag_spec='-L$libdir'
6245 hardcode_shlibpath_var=no
6249 if test -d /usr/nec; then
6250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6251 hardcode_shlibpath_var=no
6252 runpath_var=LD_RUN_PATH
6253 hardcode_runpath_var=yes
6259 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6262 hardcode_shlibpath_var=no
6263 hardcode_runpath_var=yes
6264 runpath_var=LD_RUN_PATH
6267 sysv5uw7* | unixware7*)
6268 no_undefined_flag='${wl}-z ${wl}text'
6269 if test "$GCC" = yes; then
6270 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6272 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6274 runpath_var='LD_RUN_PATH'
6275 hardcode_shlibpath_var=no
6283 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6284 echo "${ECHO_T}$ld_shlibs" >&6
6285 test "$ld_shlibs" = no && can_build_shared=no
6287 # Check hardcoding attributes.
6288 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6289 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6291 if test -n "$hardcode_libdir_flag_spec" || \
6292 test -n "$runpath_var"; then
6294 # We can hardcode non-existant directories.
6295 if test "$hardcode_direct" != no &&
6296 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6297 # have to relink, otherwise we might link with an installed library
6298 # when we should be linking with a yet-to-be-installed one
6299 ## test "$hardcode_shlibpath_var" != no &&
6300 test "$hardcode_minus_L" != no; then
6301 # Linking always hardcodes the temporary library directory.
6302 hardcode_action=relink
6304 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6305 hardcode_action=immediate
6308 # We cannot hardcode anything, or else we can only hardcode existing
6310 hardcode_action=unsupported
6312 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6313 echo "${ECHO_T}$hardcode_action" >&6
6317 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6318 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6319 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6320 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6321 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6322 echo "$as_me:$LINENO: result: yes" >&5
6323 echo "${ECHO_T}yes" >&6
6325 echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6
6329 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6330 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6332 # PORTME Fill in your ld.so characteristics
6333 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6334 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6336 libname_spec='lib$name'
6343 shlibpath_overrides_runpath=unknown
6345 dynamic_linker="$host_os ld.so"
6346 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6347 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6352 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6353 shlibpath_var=LIBPATH
6355 # AIX has no versioning support, so we append a major version to the name.
6356 soname_spec='${libname}${release}.so$major'
6363 hardcode_into_libs=yes
6364 if test "$host_cpu" = ia64; then
6365 # AIX 5 supports IA64
6366 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6367 shlibpath_var=LD_LIBRARY_PATH
6369 # With GCC up to 2.95.x, collect2 would create an import file
6370 # for dependence libraries. The import file would start with
6371 # the line `#! .'. This would cause the generated library to
6372 # depend on `.', always an invalid library. This was fixed in
6373 # development snapshots of GCC prior to 3.0.
6375 aix4 | aix4.[01] | aix4.[01].*)
6376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6378 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6385 # AIX (on Power*) has no versioning support, so currently we can
6386 # not hardcode correct soname into executable. Probably we can
6387 # add versioning support to collect2, so additional links can
6388 # be useful in future.
6389 if test "$aix_use_runtimelinking" = yes; then
6390 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6391 # instead of lib<name>.a to let people know that these are not
6392 # typical AIX shared libraries.
6393 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6395 # We preserve .a as extension for shared libraries through AIX4.2
6396 # and later when we are not doing run time linking.
6397 library_names_spec='${libname}${release}.a $libname.a'
6398 soname_spec='${libname}${release}.so$major'
6400 shlibpath_var=LIBPATH
6402 hardcode_into_libs=yes
6406 library_names_spec='$libname.ixlibrary $libname.a'
6407 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6408 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'
6412 library_names_spec='${libname}.so'
6413 dynamic_linker="$host_os ld.so"
6414 shlibpath_var=LIBRARY_PATH
6420 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6421 soname_spec='${libname}${release}.so$major'
6422 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6423 shlibpath_var=LD_LIBRARY_PATH
6424 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6425 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6426 export_dynamic_flag_spec=-rdynamic
6427 # the default ld.so.conf also contains /usr/contrib/lib and
6428 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6429 # libtool to hard-code these into programs
6432 cygwin* | mingw* | pw32*)
6433 version_type=windows
6436 case $GCC,$host_os in
6438 library_names_spec='$libname.dll.a'
6439 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6440 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6441 dldir=$destdir/`dirname \$dlpath`~
6442 test -d \$dldir || mkdir -p \$dldir~
6443 $install_prog .libs/$dlname \$dldir/$dlname'
6444 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6445 dlpath=$dir/\$dldll~
6449 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6450 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6453 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6456 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6459 dynamic_linker='Win32 ld.exe'
6460 # FIXME: first we should search . and the directory the executable is in
6464 darwin* | rhapsody*)
6465 dynamic_linker="$host_os dyld"
6469 # FIXME: Relying on posixy $() will cause problems for
6470 # cross-compilation, but unfortunately the echo tests do not
6471 # yet detect zsh echo's removal of \ escapes.
6472 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)'
6473 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6474 shlibpath_overrides_runpath=yes
6475 shlibpath_var=DYLD_LIBRARY_PATH
6483 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6484 version_type=freebsd-$objformat
6485 case $version_type in
6487 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6492 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6496 shlibpath_var=LD_LIBRARY_PATH
6499 shlibpath_overrides_runpath=yes
6502 shlibpath_overrides_runpath=no
6503 hardcode_into_libs=yes
6512 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6513 soname_spec='${libname}${release}.so$major'
6514 shlibpath_var=LD_LIBRARY_PATH
6515 hardcode_into_libs=yes
6518 hpux9* | hpux10* | hpux11*)
6519 # Give a soname corresponding to the major version so that dld.sl refuses to
6520 # link against other versions.
6521 dynamic_linker="$host_os dld.sl"
6525 shlibpath_var=SHLIB_PATH
6526 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6527 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6528 soname_spec='${libname}${release}.sl$major'
6529 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6530 postinstall_cmds='chmod 555 $lib'
6533 irix5* | irix6* | nonstopux*)
6535 nonstopux*) version_type=nonstopux ;;
6536 *) version_type=irix ;;
6540 soname_spec='${libname}${release}.so$major'
6541 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6543 irix5* | nonstopux*)
6547 case $LD in # libtool.m4 will add one of these switches to LD
6548 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6549 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6550 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6551 *) libsuff= shlibsuff= libmagic=never-match;;
6555 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6556 shlibpath_overrides_runpath=no
6557 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6558 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6561 # No shared lib support for Linux oldld, aout, or coff.
6562 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6566 # This must be Linux ELF.
6571 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6572 soname_spec='${libname}${release}.so$major'
6573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6574 shlibpath_var=LD_LIBRARY_PATH
6575 shlibpath_overrides_runpath=no
6576 # This implies no fast_install, which is unacceptable.
6577 # Some rework will be needed to allow for fast_install
6578 # before this can be enabled.
6579 hardcode_into_libs=yes
6581 case $host_cpu:$lt_cv_cc_64bit_output in
6582 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6583 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6584 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6588 # We used to test for /lib/ld.so.1 and disable shared libraries on
6589 # powerpc, because MkLinux only supported shared libraries with the
6590 # GNU dynamic linker. Since this was broken with cross compilers,
6591 # most powerpc-linux boxes support dynamic linking these days and
6592 # people can always --disable-shared, the test was removed, and we
6593 # assume the GNU/Linux dynamic linker is in use.
6594 dynamic_linker='GNU/Linux ld.so'
6596 # Find out which ABI we are using (multilib Linux x86_64 hack).
6600 echo '#line 6600 "configure"' > conftest.$ac_ext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6602 (eval $ac_compile) 2>&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; then
6606 case `/usr/bin/file conftest.$ac_objext` in
6617 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6618 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6626 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6628 dynamic_linker='NetBSD (a.out) ld.so'
6630 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6631 soname_spec='${libname}${release}.so$major'
6632 dynamic_linker='NetBSD ld.elf_so'
6634 shlibpath_var=LD_LIBRARY_PATH
6635 shlibpath_overrides_runpath=yes
6636 hardcode_into_libs=yes
6641 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6642 shlibpath_var=LD_LIBRARY_PATH
6643 shlibpath_overrides_runpath=yes
6650 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6652 openbsd2.[89] | openbsd2.[89].*)
6653 shlibpath_overrides_runpath=no
6656 shlibpath_overrides_runpath=yes
6660 shlibpath_overrides_runpath=yes
6662 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6664 shlibpath_var=LD_LIBRARY_PATH
6668 libname_spec='$name'
6670 library_names_spec='$libname.dll $libname.a'
6671 dynamic_linker='OS/2 ld.exe'
6672 shlibpath_var=LIBPATH
6675 osf3* | osf4* | osf5*)
6678 soname_spec='${libname}${release}.so$major'
6679 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6680 shlibpath_var=LD_LIBRARY_PATH
6681 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6682 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6683 hardcode_into_libs=yes
6688 soname_spec='${libname}${release}.so$major'
6689 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6690 shlibpath_var=LD_LIBRARY_PATH
6697 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6698 soname_spec='${libname}${release}.so$major'
6699 shlibpath_var=LD_LIBRARY_PATH
6700 shlibpath_overrides_runpath=yes
6701 hardcode_into_libs=yes
6702 # ldd complains unless libraries are executable
6703 postinstall_cmds='chmod +x $lib'
6708 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6709 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6710 shlibpath_var=LD_LIBRARY_PATH
6711 shlibpath_overrides_runpath=yes
6712 if test "$with_gnu_ld" = yes; then
6718 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6720 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6721 soname_spec='${libname}${release}.so$major'
6722 shlibpath_var=LD_LIBRARY_PATH
6723 case $host_vendor in
6725 shlibpath_overrides_runpath=no
6727 export_dynamic_flag_spec='${wl}-Blargedynsym'
6728 runpath_var=LD_RUN_PATH
6736 shlibpath_overrides_runpath=no
6737 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6744 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6745 soname_spec='${libname}${release}.so$major'
6746 shlibpath_var=LD_LIBRARY_PATH
6753 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6754 soname_spec='${libname}${release}.so$major'
6755 shlibpath_var=LD_LIBRARY_PATH
6759 if test -d /usr/nec ;then
6761 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6762 soname_spec='$libname.so.$major'
6763 shlibpath_var=LD_LIBRARY_PATH
6771 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6772 echo "${ECHO_T}$dynamic_linker" >&6
6773 test "$dynamic_linker" = no && can_build_shared=no
6775 # Report the final consequences.
6776 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6777 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6778 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6779 echo "${ECHO_T}$can_build_shared" >&6
6781 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6782 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6783 test "$can_build_shared" = "no" && enable_shared=no
6785 # On AIX, shared libraries and static libraries use the same namespace, and
6786 # are all built from PIC.
6789 test "$enable_shared" = yes && enable_static=no
6790 if test -n "$RANLIB"; then
6791 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6792 postinstall_cmds='$RANLIB $lib'
6797 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6798 test "$enable_shared" = yes && enable_static=no
6802 echo "$as_me:$LINENO: result: $enable_shared" >&5
6803 echo "${ECHO_T}$enable_shared" >&6
6805 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6806 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6807 # Make sure either enable_shared or enable_static is yes.
6808 test "$enable_shared" = yes || enable_static=yes
6809 echo "$as_me:$LINENO: result: $enable_static" >&5
6810 echo "${ECHO_T}$enable_static" >&6
6812 if test "$hardcode_action" = relink; then
6813 # Fast installation is not supported
6814 enable_fast_install=no
6815 elif test "$shlibpath_overrides_runpath" = yes ||
6816 test "$enable_shared" = no; then
6817 # Fast installation is not necessary
6818 enable_fast_install=needless
6821 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6822 if test "$GCC" = yes; then
6823 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6826 if test "x$enable_dlopen" != xyes; then
6827 enable_dlopen=unknown
6828 enable_dlopen_self=unknown
6829 enable_dlopen_self_static=unknown
6836 lt_cv_dlopen="load_add_on"
6838 lt_cv_dlopen_self=yes
6841 cygwin* | mingw* | pw32*)
6842 lt_cv_dlopen="LoadLibrary"
6847 echo "$as_me:$LINENO: checking for shl_load" >&5
6848 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6849 if test "${ac_cv_func_shl_load+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 cat >conftest.$ac_ext <<_ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6860 #define shl_load innocuous_shl_load
6862 /* System header to define __stub macros and hopefully few prototypes,
6863 which can conflict with char shl_load (); below.
6864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6865 <limits.h> exists even on freestanding compilers. */
6868 # include <limits.h>
6870 # include <assert.h>
6875 /* Override any gcc2 internal prototype to avoid an error. */
6880 /* We use char because int might match the return type of a gcc2
6881 builtin and then its argument prototype would still apply. */
6883 /* The GNU C library defines this for functions which it implements
6884 to always fail with ENOSYS. Some functions are actually named
6885 something starting with __ and the normal name is an alias. */
6886 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6889 char (*f) () = shl_load;
6898 return f != shl_load;
6903 rm -f conftest.$ac_objext conftest$ac_exeext
6904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6905 (eval $ac_link) 2>conftest.er1
6907 grep -v '^ *+' conftest.er1 >conftest.err
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } &&
6912 { ac_try='test -z "$ac_c_werror_flag"
6913 || test ! -s conftest.err'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; } &&
6919 { ac_try='test -s conftest$ac_exeext'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6925 ac_cv_func_shl_load=yes
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6930 ac_cv_func_shl_load=no
6932 rm -f conftest.err conftest.$ac_objext \
6933 conftest$ac_exeext conftest.$ac_ext
6935 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6936 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6937 if test $ac_cv_func_shl_load = yes; then
6938 lt_cv_dlopen="shl_load"
6940 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6941 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6942 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 ac_check_lib_save_LIBS=$LIBS
6947 cat >conftest.$ac_ext <<_ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6954 /* Override any gcc2 internal prototype to avoid an error. */
6958 /* We use char because int might match the return type of a gcc2
6959 builtin and then its argument prototype would still apply. */
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6971 (eval $ac_link) 2>conftest.er1
6973 grep -v '^ *+' conftest.er1 >conftest.err
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -z "$ac_c_werror_flag"
6979 || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try='test -s conftest$ac_exeext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 ac_cv_lib_dld_shl_load=yes
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 ac_cv_lib_dld_shl_load=no
6998 rm -f conftest.err conftest.$ac_objext \
6999 conftest$ac_exeext conftest.$ac_ext
7000 LIBS=$ac_check_lib_save_LIBS
7002 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7003 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7004 if test $ac_cv_lib_dld_shl_load = yes; then
7005 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7007 echo "$as_me:$LINENO: checking for dlopen" >&5
7008 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7009 if test "${ac_cv_func_dlopen+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 cat >conftest.$ac_ext <<_ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7020 #define dlopen innocuous_dlopen
7022 /* System header to define __stub macros and hopefully few prototypes,
7023 which can conflict with char dlopen (); below.
7024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7025 <limits.h> exists even on freestanding compilers. */
7028 # include <limits.h>
7030 # include <assert.h>
7035 /* Override any gcc2 internal prototype to avoid an error. */
7040 /* We use char because int might match the return type of a gcc2
7041 builtin and then its argument prototype would still apply. */
7043 /* The GNU C library defines this for functions which it implements
7044 to always fail with ENOSYS. Some functions are actually named
7045 something starting with __ and the normal name is an alias. */
7046 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7049 char (*f) () = dlopen;
7063 rm -f conftest.$ac_objext conftest$ac_exeext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065 (eval $ac_link) 2>conftest.er1
7067 grep -v '^ *+' conftest.er1 >conftest.err
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } &&
7072 { ac_try='test -z "$ac_c_werror_flag"
7073 || test ! -s conftest.err'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; } &&
7079 { ac_try='test -s conftest$ac_exeext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 ac_cv_func_dlopen=yes
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_func_dlopen=no
7092 rm -f conftest.err conftest.$ac_objext \
7093 conftest$ac_exeext conftest.$ac_ext
7095 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7096 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7097 if test $ac_cv_func_dlopen = yes; then
7098 lt_cv_dlopen="dlopen"
7100 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7101 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7102 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 ac_check_lib_save_LIBS=$LIBS
7107 cat >conftest.$ac_ext <<_ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7114 /* Override any gcc2 internal prototype to avoid an error. */
7118 /* We use char because int might match the return type of a gcc2
7119 builtin and then its argument prototype would still apply. */
7129 rm -f conftest.$ac_objext conftest$ac_exeext
7130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7131 (eval $ac_link) 2>conftest.er1
7133 grep -v '^ *+' conftest.er1 >conftest.err
7135 cat conftest.err >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try='test -z "$ac_c_werror_flag"
7139 || test ! -s conftest.err'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; } &&
7145 { ac_try='test -s conftest$ac_exeext'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7151 ac_cv_lib_dl_dlopen=yes
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7156 ac_cv_lib_dl_dlopen=no
7158 rm -f conftest.err conftest.$ac_objext \
7159 conftest$ac_exeext conftest.$ac_ext
7160 LIBS=$ac_check_lib_save_LIBS
7162 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7163 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7164 if test $ac_cv_lib_dl_dlopen = yes; then
7165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7167 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7168 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7169 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 ac_check_lib_save_LIBS=$LIBS
7174 cat >conftest.$ac_ext <<_ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7181 /* Override any gcc2 internal prototype to avoid an error. */
7185 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */
7196 rm -f conftest.$ac_objext conftest$ac_exeext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7198 (eval $ac_link) 2>conftest.er1
7200 grep -v '^ *+' conftest.er1 >conftest.err
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -z "$ac_c_werror_flag"
7206 || test ! -s conftest.err'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; } &&
7212 { ac_try='test -s conftest$ac_exeext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 ac_cv_lib_svld_dlopen=yes
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7223 ac_cv_lib_svld_dlopen=no
7225 rm -f conftest.err conftest.$ac_objext \
7226 conftest$ac_exeext conftest.$ac_ext
7227 LIBS=$ac_check_lib_save_LIBS
7229 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7230 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7231 if test $ac_cv_lib_svld_dlopen = yes; then
7232 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7234 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7235 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7236 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 ac_check_lib_save_LIBS=$LIBS
7241 cat >conftest.$ac_ext <<_ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7248 /* Override any gcc2 internal prototype to avoid an error. */
7252 /* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */
7263 rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265 (eval $ac_link) 2>conftest.er1
7267 grep -v '^ *+' conftest.er1 >conftest.err
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } &&
7272 { ac_try='test -z "$ac_c_werror_flag"
7273 || test ! -s conftest.err'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; } &&
7279 { ac_try='test -s conftest$ac_exeext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 ac_cv_lib_dld_dld_link=yes
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7290 ac_cv_lib_dld_dld_link=no
7292 rm -f conftest.err conftest.$ac_objext \
7293 conftest$ac_exeext conftest.$ac_ext
7294 LIBS=$ac_check_lib_save_LIBS
7296 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7297 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7298 if test $ac_cv_lib_dld_dld_link = yes; then
7299 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7320 if test "x$lt_cv_dlopen" != xno; then
7326 case $lt_cv_dlopen in
7328 save_CPPFLAGS="$CPPFLAGS"
7329 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7331 save_LDFLAGS="$LDFLAGS"
7332 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7335 LIBS="$lt_cv_dlopen_libs $LIBS"
7337 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7338 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7339 if test "${lt_cv_dlopen_self+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 if test "$cross_compiling" = yes; then :
7343 lt_cv_dlopen_self=cross
7345 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7346 lt_status=$lt_dlunknown
7347 cat > conftest.$ac_ext <<EOF
7348 #line 7348 "configure"
7349 #include "confdefs.h"
7358 # define LT_DLGLOBAL RTLD_GLOBAL
7361 # define LT_DLGLOBAL DL_GLOBAL
7363 # define LT_DLGLOBAL 0
7367 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7368 find out it does not work in some platform. */
7369 #ifndef LT_DLLAZY_OR_NOW
7371 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7374 # define LT_DLLAZY_OR_NOW DL_LAZY
7377 # define LT_DLLAZY_OR_NOW RTLD_NOW
7380 # define LT_DLLAZY_OR_NOW DL_NOW
7382 # define LT_DLLAZY_OR_NOW 0
7390 extern "C" void exit (int);
7393 void fnord() { int i=42;}
7396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7397 int status = $lt_dlunknown;
7401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7402 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7403 /* dlclose (self); */
7409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7410 (eval $ac_link) 2>&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7414 (./conftest; exit; ) 2>/dev/null
7417 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7418 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7419 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7422 # compilation failed
7423 lt_cv_dlopen_self=no
7430 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7431 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7433 if test "x$lt_cv_dlopen_self" = xyes; then
7434 LDFLAGS="$LDFLAGS $link_static_flag"
7435 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7436 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7437 if test "${lt_cv_dlopen_self_static+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 if test "$cross_compiling" = yes; then :
7441 lt_cv_dlopen_self_static=cross
7443 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7444 lt_status=$lt_dlunknown
7445 cat > conftest.$ac_ext <<EOF
7446 #line 7446 "configure"
7447 #include "confdefs.h"
7456 # define LT_DLGLOBAL RTLD_GLOBAL
7459 # define LT_DLGLOBAL DL_GLOBAL
7461 # define LT_DLGLOBAL 0
7465 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7466 find out it does not work in some platform. */
7467 #ifndef LT_DLLAZY_OR_NOW
7469 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7472 # define LT_DLLAZY_OR_NOW DL_LAZY
7475 # define LT_DLLAZY_OR_NOW RTLD_NOW
7478 # define LT_DLLAZY_OR_NOW DL_NOW
7480 # define LT_DLLAZY_OR_NOW 0
7488 extern "C" void exit (int);
7491 void fnord() { int i=42;}
7494 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7495 int status = $lt_dlunknown;
7499 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7500 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7501 /* dlclose (self); */
7507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508 (eval $ac_link) 2>&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7512 (./conftest; exit; ) 2>/dev/null
7515 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7516 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7517 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7520 # compilation failed
7521 lt_cv_dlopen_self_static=no
7528 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7529 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7532 CPPFLAGS="$save_CPPFLAGS"
7533 LDFLAGS="$save_LDFLAGS"
7538 case $lt_cv_dlopen_self in
7539 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7540 *) enable_dlopen_self=unknown ;;
7543 case $lt_cv_dlopen_self_static in
7544 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7545 *) enable_dlopen_self_static=unknown ;;
7550 if test "$enable_shared" = yes && test "$GCC" = yes; then
7551 case $archive_cmds in
7553 # FIXME: we may have to deal with multi-command sequences.
7556 # Test whether the compiler implicitly links with -lc since on some
7557 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7558 # to ld, don't add -lc before -lgcc.
7559 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7560 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7561 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 echo 'static int dummy;' > conftest.$ac_ext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7568 (eval $ac_compile) 2>&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); }; then
7574 libobjs=conftest.$ac_objext
7576 wl=$lt_cv_prog_cc_wl
7582 save_allow_undefined_flag=$allow_undefined_flag
7583 allow_undefined_flag=
7584 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7585 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }
7590 lt_cv_archive_cmds_need_lc=no
7592 lt_cv_archive_cmds_need_lc=yes
7594 allow_undefined_flag=$save_allow_undefined_flag
7596 cat conftest.err 1>&5
7600 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7601 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7605 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7607 # The second clause should only fire when bootstrapping the
7608 # libtool distribution, otherwise you forgot to ship ltmain.sh
7609 # with your package, and you will get complaints that there are
7610 # no rules to generate ltmain.sh.
7611 if test -f "$ltmain"; then
7614 # If there is no Makefile yet, we rely on a make rule to execute
7615 # `config.status --recheck' to rerun these tests and create the
7616 # libtool script then.
7617 test -f Makefile && make "$ltmain"
7620 if test -f "$ltmain"; then
7621 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7624 echo creating $ofile
7626 # Now quote all the things that may contain metacharacters while being
7627 # careful not to overquote the AC_SUBSTed values. We take copies of the
7628 # variables and quote the copies for generation of the libtool script.
7629 for var in echo old_CC old_CFLAGS SED \
7630 AR AR_FLAGS CC LD LN_S NM SHELL \
7631 reload_flag reload_cmds wl \
7632 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7633 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7634 library_names_spec soname_spec \
7635 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7636 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7637 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7638 old_striplib striplib file_magic_cmd export_symbols_cmds \
7639 deplibs_check_method allow_undefined_flag no_undefined_flag \
7640 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7641 global_symbol_to_c_name_address \
7642 hardcode_libdir_flag_spec hardcode_libdir_separator \
7643 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7644 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7647 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7648 old_postinstall_cmds | old_postuninstall_cmds | \
7649 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7650 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7651 postinstall_cmds | postuninstall_cmds | \
7652 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7653 # Double-quote double-evaled strings.
7654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7657 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7662 cat <<__EOF__ > "${ofile}T"
7665 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7666 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7667 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7669 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7670 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7672 # This program is free software; you can redistribute it and/or modify
7673 # it under the terms of the GNU General Public License as published by
7674 # the Free Software Foundation; either version 2 of the License, or
7675 # (at your option) any later version.
7677 # This program is distributed in the hope that it will be useful, but
7678 # WITHOUT ANY WARRANTY; without even the implied warranty of
7679 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7680 # General Public License for more details.
7682 # You should have received a copy of the GNU General Public License
7683 # along with this program; if not, write to the Free Software
7684 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7686 # As a special exception to the GNU General Public License, if you
7687 # distribute this file as part of a program that contains a
7688 # configuration script generated by Autoconf, you may include it under
7689 # the same distribution terms that you use for the rest of that program.
7691 # A sed that does not truncate output.
7694 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7695 Xsed="${SED} -e s/^X//"
7697 # The HP-UX ksh and POSIX shell print the target directory to stdout
7699 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7701 # ### BEGIN LIBTOOL CONFIG
7703 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7705 # Shell to use when invoking shell scripts.
7708 # Whether or not to build shared libraries.
7709 build_libtool_libs=$enable_shared
7711 # Whether or not to build static libraries.
7712 build_old_libs=$enable_static
7714 # Whether or not to add -lc for building shared libraries.
7715 build_libtool_need_lc=$need_lc
7717 # Whether or not to optimize for fast installation.
7718 fast_install=$enable_fast_install
7721 host_alias=$host_alias
7724 # An echo program that does not interpret backslashes.
7729 AR_FLAGS=$lt_AR_FLAGS
7731 # The default C compiler.
7734 # Is the compiler the GNU C compiler?
7737 # The linker used to build libraries.
7740 # Whether we need hard or soft links.
7743 # A BSD-compatible nm program.
7746 # A symbol stripping program
7749 # Used to examine libraries when file_magic_cmd begins "file"
7750 MAGIC_CMD=$MAGIC_CMD
7752 # Used on cygwin: DLL creation program.
7755 # Used on cygwin: object dumper.
7758 # Used on cygwin: assembler.
7761 # The name of the directory that contains temporary libtool files.
7764 # How to create reloadable object files.
7765 reload_flag=$lt_reload_flag
7766 reload_cmds=$lt_reload_cmds
7768 # How to pass a linker flag through the compiler.
7771 # Object file suffix (normally "o").
7774 # Old archive suffix (normally "a").
7777 # Executable file suffix (normally "").
7780 # Additional compiler flags for building library objects.
7781 pic_flag=$lt_pic_flag
7784 # Does compiler simultaneously support -c and -o options?
7785 compiler_c_o=$lt_compiler_c_o
7787 # Can we write directly to a .lo ?
7788 compiler_o_lo=$lt_compiler_o_lo
7790 # Must we lock files when doing compilation ?
7791 need_locks=$lt_need_locks
7793 # Do we need the lib prefix for modules?
7794 need_lib_prefix=$need_lib_prefix
7796 # Do we need a version for libraries?
7797 need_version=$need_version
7799 # Whether dlopen is supported.
7800 dlopen_support=$enable_dlopen
7802 # Whether dlopen of programs is supported.
7803 dlopen_self=$enable_dlopen_self
7805 # Whether dlopen of statically linked programs is supported.
7806 dlopen_self_static=$enable_dlopen_self_static
7808 # Compiler flag to prevent dynamic linking.
7809 link_static_flag=$lt_link_static_flag
7811 # Compiler flag to turn off builtin functions.
7812 no_builtin_flag=$lt_no_builtin_flag
7814 # Compiler flag to allow reflexive dlopens.
7815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7817 # Compiler flag to generate shared objects directly from archives.
7818 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7820 # Compiler flag to generate thread-safe objects.
7821 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7823 # Library versioning type.
7824 version_type=$version_type
7826 # Format of library name prefix.
7827 libname_spec=$lt_libname_spec
7829 # List of archive names. First name is the real one, the rest are links.
7830 # The last name is the one that the linker finds with -lNAME.
7831 library_names_spec=$lt_library_names_spec
7833 # The coded name of the library, if different from the real name.
7834 soname_spec=$lt_soname_spec
7836 # Commands used to build and install an old-style archive.
7838 old_archive_cmds=$lt_old_archive_cmds
7839 old_postinstall_cmds=$lt_old_postinstall_cmds
7840 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7842 # Create an old-style archive from a shared archive.
7843 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7845 # Create a temporary old-style archive to link instead of a shared archive.
7846 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7848 # Commands used to build and install a shared archive.
7849 archive_cmds=$lt_archive_cmds
7850 archive_expsym_cmds=$lt_archive_expsym_cmds
7851 postinstall_cmds=$lt_postinstall_cmds
7852 postuninstall_cmds=$lt_postuninstall_cmds
7854 # Commands to strip libraries.
7855 old_striplib=$lt_old_striplib
7856 striplib=$lt_striplib
7858 # Method to check whether dependent libraries are shared objects.
7859 deplibs_check_method=$lt_deplibs_check_method
7861 # Command to use when deplibs_check_method == file_magic.
7862 file_magic_cmd=$lt_file_magic_cmd
7864 # Flag that allows shared libraries with undefined symbols to be built.
7865 allow_undefined_flag=$lt_allow_undefined_flag
7867 # Flag that forces no undefined symbols.
7868 no_undefined_flag=$lt_no_undefined_flag
7870 # Commands used to finish a libtool library installation in a directory.
7871 finish_cmds=$lt_finish_cmds
7873 # Same as above, but a single script fragment to be evaled but not shown.
7874 finish_eval=$lt_finish_eval
7876 # Take the output of nm and produce a listing of raw symbols and C names.
7877 global_symbol_pipe=$lt_global_symbol_pipe
7879 # Transform the output of nm in a proper C declaration
7880 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7882 # Transform the output of nm in a C name address pair
7883 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7885 # This is the shared library runtime path variable.
7886 runpath_var=$runpath_var
7888 # This is the shared library path variable.
7889 shlibpath_var=$shlibpath_var
7891 # Is shlibpath searched before the hard-coded library search path?
7892 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7894 # How to hardcode a shared library path into an executable.
7895 hardcode_action=$hardcode_action
7897 # Whether we should hardcode library paths into libraries.
7898 hardcode_into_libs=$hardcode_into_libs
7900 # Flag to hardcode \$libdir into a binary during linking.
7901 # This must work even if \$libdir does not exist.
7902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7904 # Whether we need a single -rpath flag with a separated argument.
7905 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7907 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7909 hardcode_direct=$hardcode_direct
7911 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7913 hardcode_minus_L=$hardcode_minus_L
7915 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7916 # the resulting binary.
7917 hardcode_shlibpath_var=$hardcode_shlibpath_var
7919 # Variables whose values should be saved in libtool wrapper scripts and
7920 # restored at relink time.
7921 variables_saved_for_relink="$variables_saved_for_relink"
7923 # Whether libtool must link a program against all its dependency libraries.
7924 link_all_deplibs=$link_all_deplibs
7926 # Compile-time system search path for libraries
7927 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7929 # Run-time system search path for libraries
7930 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7932 # Fix the shell variable \$srcfile for the compiler.
7933 fix_srcfile_path="$fix_srcfile_path"
7935 # Set to yes if exported symbols are required.
7936 always_export_symbols=$always_export_symbols
7938 # The commands to list exported symbols.
7939 export_symbols_cmds=$lt_export_symbols_cmds
7941 # The commands to extract the exported symbol list from a shared archive.
7942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7944 # Symbols that should not be listed in the preloaded symbols.
7945 exclude_expsyms=$lt_exclude_expsyms
7947 # Symbols that must always be exported.
7948 include_expsyms=$lt_include_expsyms
7950 # ### END LIBTOOL CONFIG
7956 cat <<\EOF >> "${ofile}T"
7958 # AIX sometimes has problems with the GCC collect2 program. For some
7959 # reason, if we set the COLLECT_NAMES environment variable, the problems
7960 # vanish in a puff of smoke.
7961 if test "X${COLLECT_NAMES+set}" != Xset; then
7963 export COLLECT_NAMES
7970 cygwin* | mingw* | pw32* | os2*)
7971 cat <<'EOF' >> "${ofile}T"
7972 # This is a source program that is used to create dlls on Windows
7973 # Don't remove nor modify the starting and closing comments
7974 # /* ltdll.c starts here */
7975 # #define WIN32_LEAN_AND_MEAN
7976 # #include <windows.h>
7977 # #undef WIN32_LEAN_AND_MEAN
7978 # #include <stdio.h>
7980 # #ifndef __CYGWIN__
7981 # # ifdef __CYGWIN32__
7982 # # define __CYGWIN__ __CYGWIN32__
7986 # #ifdef __cplusplus
7989 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7990 # #ifdef __cplusplus
7995 # #include <cygwin/cygwin_dll.h>
7996 # DECLARE_CYGWIN_DLL( DllMain );
7998 # HINSTANCE __hDllInstance_base;
8001 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8003 # __hDllInstance_base = hInst;
8006 # /* ltdll.c ends here */
8007 # This is a source program that is used to create import libraries
8008 # on Windows for dlls which lack them. Don't remove nor modify the
8009 # starting and closing comments
8010 # /* impgen.c starts here */
8011 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8013 # This file is part of GNU libtool.
8015 # This program is free software; you can redistribute it and/or modify
8016 # it under the terms of the GNU General Public License as published by
8017 # the Free Software Foundation; either version 2 of the License, or
8018 # (at your option) any later version.
8020 # This program is distributed in the hope that it will be useful,
8021 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8022 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8023 # GNU General Public License for more details.
8025 # You should have received a copy of the GNU General Public License
8026 # along with this program; if not, write to the Free Software
8027 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8030 # #include <stdio.h> /* for printf() */
8031 # #include <unistd.h> /* for open(), lseek(), read() */
8032 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8033 # #include <string.h> /* for strdup() */
8035 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8037 # #define O_BINARY 0
8040 # static unsigned int
8041 # pe_get16 (fd, offset)
8045 # unsigned char b[2];
8046 # lseek (fd, offset, SEEK_SET);
8048 # return b[0] + (b[1]<<8);
8051 # static unsigned int
8052 # pe_get32 (fd, offset)
8056 # unsigned char b[4];
8057 # lseek (fd, offset, SEEK_SET);
8059 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8062 # static unsigned int
8066 # unsigned char *b = ptr;
8067 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8076 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8077 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8078 # unsigned long name_rvas, nexp;
8079 # unsigned char *expdata, *erva;
8080 # char *filename, *dll_name;
8082 # filename = argv[1];
8084 # dll = open(filename, O_RDONLY|O_BINARY);
8088 # dll_name = filename;
8090 # for (i=0; filename[i]; i++)
8091 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8092 # dll_name = filename + i +1;
8094 # pe_header_offset = pe_get32 (dll, 0x3c);
8095 # opthdr_ofs = pe_header_offset + 4 + 20;
8096 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8098 # if (num_entries < 1) /* no exports */
8101 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8102 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8103 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8104 # secptr = (pe_header_offset + 4 + 20 +
8105 # pe_get16 (dll, pe_header_offset + 4 + 16));
8108 # for (i = 0; i < nsections; i++)
8111 # unsigned long secptr1 = secptr + 40 * i;
8112 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8113 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8114 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8115 # lseek(dll, secptr1, SEEK_SET);
8116 # read(dll, sname, 8);
8117 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8119 # expptr = fptr + (export_rva - vaddr);
8120 # if (export_rva + export_size > vaddr + vsize)
8121 # export_size = vsize - (export_rva - vaddr);
8126 # expdata = (unsigned char*)malloc(export_size);
8127 # lseek (dll, expptr, SEEK_SET);
8128 # read (dll, expdata, export_size);
8129 # erva = expdata - export_rva;
8131 # nexp = pe_as32 (expdata+24);
8132 # name_rvas = pe_as32 (expdata+32);
8134 # printf ("EXPORTS\n");
8135 # for (i = 0; i<nexp; i++)
8137 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8138 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8143 # /* impgen.c ends here */
8149 # We use sed instead of cat because bash on DJGPP gets confused if
8150 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8151 # text mode, it properly converts lines to CR/LF. This bash problem
8152 # is reportedly fixed, but why not run on old versions too?
8153 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8155 mv -f "${ofile}T" "$ofile" || \
8156 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8164 # This can be used to rebuild libtool when needed
8165 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8167 # Always use our own libtool.
8168 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8170 # Prevent multiple expansion
8173 for ac_prog in gzip uncompress compress
8175 # Extract the first word of "$ac_prog", so it can be a program name with args.
8176 set dummy $ac_prog; ac_word=$2
8177 echo "$as_me:$LINENO: checking for $ac_word" >&5
8178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8179 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 if test -n "$UNCOMPRESS"; then
8183 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8192 ac_cv_prog_UNCOMPRESS="$ac_prog"
8193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8202 if test -n "$UNCOMPRESS"; then
8203 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8204 echo "${ECHO_T}$UNCOMPRESS" >&6
8206 echo "$as_me:$LINENO: result: no" >&5
8207 echo "${ECHO_T}no" >&6
8210 test -n "$UNCOMPRESS" && break
8220 echo "$as_me:$LINENO: checking for target system" >&5
8221 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8225 *cygwin* ) CYGWIN=yes;;
8226 *mingw* ) MINGW=yes;;
8230 if test "x$MINGW" = "xyes"; then
8231 #fix for the debian distribution of mingw
8232 if test -x "/usr/i586-mingw32msvc/bin/ar";then
8233 AR="/usr/i586-mingw32msvc/bin/ar"
8235 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8236 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8238 #fix for the gentoo distribution of mingw
8239 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8240 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8242 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8243 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8245 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8246 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8252 if test "x${CYGWIN}" = "xyes"; then
8253 cat >>confdefs.h <<_ACEOF
8257 echo "$as_me:$LINENO: result: cygwin" >&5
8258 echo "${ECHO_T}cygwin" >&6
8260 if test "x${MINGW}" = "xyes"; then
8261 cat >>confdefs.h <<_ACEOF
8266 cat >>confdefs.h <<_ACEOF
8270 LIBS="$LIBS -lws2_32"
8271 echo "$as_me:$LINENO: result: mingw" >&5
8272 echo "${ECHO_T}mingw" >&6
8276 cat >>confdefs.h <<_ACEOF
8280 echo "$as_me:$LINENO: result: " >&5
8281 echo "${ECHO_T}" >&6
8287 if test "x${MINGW}" != "xyes"; then
8289 cat >>confdefs.h <<_ACEOF
8300 # The following tries to make use of includes and libraries in
8301 # /usr/local, too. Notice: A -I/usr/local/include might break
8302 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8303 # especially on systems which link /usr/local to /usr, so it has yet
8304 # to be seen how useful this is.
8305 if test -d /usr/local/lib; then
8306 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8308 if test -d /usr/local/include; then
8309 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8310 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8313 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8314 # if the user has a special prefix (like /opt), there might also be $prefix/lib
8315 # and $prefix/include, which should be included in our search paths for libraries
8317 LDFLAGS="$LDFLAGS -L${libdir}"
8318 CPPFLAGS="$CPPFLAGS -I${includedir}"
8319 # TODO- test whether gcc still works after this
8322 # this must be done after (I believe) AC_PROG_MAKE_SET
8323 if test "x$DEBUG" '!=' "x";then
8324 STRIP="@echo debug enabled, not stripping "
8330 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8331 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8332 if test "${ac_cv_lib_m_sin+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 ac_check_lib_save_LIBS=$LIBS
8337 cat >conftest.$ac_ext <<_ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8344 /* Override any gcc2 internal prototype to avoid an error. */
8348 /* We use char because int might match the return type of a gcc2
8349 builtin and then its argument prototype would still apply. */
8359 rm -f conftest.$ac_objext conftest$ac_exeext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361 (eval $ac_link) 2>conftest.er1
8363 grep -v '^ *+' conftest.er1 >conftest.err
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try='test -z "$ac_c_werror_flag"
8369 || test ! -s conftest.err'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; } &&
8375 { ac_try='test -s conftest$ac_exeext'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8383 echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8388 rm -f conftest.err conftest.$ac_objext \
8389 conftest$ac_exeext conftest.$ac_ext
8390 LIBS=$ac_check_lib_save_LIBS
8392 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8393 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8394 if test $ac_cv_lib_m_sin = yes; then
8395 cat >>confdefs.h <<_ACEOF
8402 echo "Error: Math library not found.";
8408 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8409 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8410 if test "${ac_cv_lib_z_deflate+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 ac_check_lib_save_LIBS=$LIBS
8415 cat >conftest.$ac_ext <<_ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8422 /* Override any gcc2 internal prototype to avoid an error. */
8426 /* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439 (eval $ac_link) 2>conftest.er1
8441 grep -v '^ *+' conftest.er1 >conftest.err
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag"
8447 || test ! -s conftest.err'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_lib_z_deflate=yes
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8464 ac_cv_lib_z_deflate=no
8466 rm -f conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_lib_save_LIBS
8470 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8471 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8472 if test $ac_cv_lib_z_deflate = yes; then
8473 cat >>confdefs.h <<_ACEOF
8480 DISABLEPNG2SWF=true;
8481 MISSINGLIBS="${MISSINGLIBS} zlib"
8487 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8488 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8489 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 ac_check_lib_save_LIBS=$LIBS
8494 cat >conftest.$ac_ext <<_ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8501 /* Override any gcc2 internal prototype to avoid an error. */
8505 /* We use char because int might match the return type of a gcc2
8506 builtin and then its argument prototype would still apply. */
8507 char jpeg_write_raw_data ();
8511 jpeg_write_raw_data ();
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518 (eval $ac_link) 2>conftest.er1
8520 grep -v '^ *+' conftest.er1 >conftest.err
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_c_werror_flag"
8526 || test ! -s conftest.err'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try='test -s conftest$ac_exeext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8538 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8545 rm -f conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 LIBS=$ac_check_lib_save_LIBS
8549 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8550 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8551 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8552 cat >>confdefs.h <<_ACEOF
8553 #define HAVE_LIBJPEG 1
8559 DISABLEPDF2SWF=true;
8560 DISABLEJPEG2SWF=true;
8561 MISSINGLIBS="${MISSINGLIBS} jpeglib"
8566 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8567 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8568 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 ac_check_lib_save_LIBS=$LIBS
8573 cat >conftest.$ac_ext <<_ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8580 /* Override any gcc2 internal prototype to avoid an error. */
8584 /* We use char because int might match the return type of a gcc2
8585 builtin and then its argument prototype would still apply. */
8586 char T1_LoadFont ();
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597 (eval $ac_link) 2>conftest.er1
8599 grep -v '^ *+' conftest.er1 >conftest.err
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -z "$ac_c_werror_flag"
8605 || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_lib_t1_T1_LoadFont=yes
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 ac_cv_lib_t1_T1_LoadFont=no
8624 rm -f conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
8626 LIBS=$ac_check_lib_save_LIBS
8628 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8629 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8630 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8631 cat >>confdefs.h <<_ACEOF
8632 #define HAVE_LIBT1 1
8638 DISABLEPDF2SWF=true;
8639 MISSINGLIBS="${MISSINGLIBS} t1lib"
8645 for ac_prog in freetype-config
8647 # Extract the first word of "$ac_prog", so it can be a program name with args.
8648 set dummy $ac_prog; ac_word=$2
8649 echo "$as_me:$LINENO: checking for $ac_word" >&5
8650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8651 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 if test -n "$FREETYPE_CONFIG"; then
8655 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8664 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
8665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
8674 if test -n "$FREETYPE_CONFIG"; then
8675 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8676 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
8678 echo "$as_me:$LINENO: result: no" >&5
8679 echo "${ECHO_T}no" >&6
8682 test -n "$FREETYPE_CONFIG" && break
8685 OLDCPPFLAGS="${CPPFLAGS}"
8687 if test "x${FREETYPE_CONFIG}" != "x"; then
8688 CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
8689 else if test -d /usr/include/freetype2; then
8690 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8691 else if test -d /usr/local/include/freetype2; then
8692 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8696 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8697 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8698 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 ac_check_lib_save_LIBS=$LIBS
8702 LIBS="-lfreetype $LIBS"
8703 cat >conftest.$ac_ext <<_ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8710 /* Override any gcc2 internal prototype to avoid an error. */
8714 /* We use char because int might match the return type of a gcc2
8715 builtin and then its argument prototype would still apply. */
8716 char FT_Init_FreeType ();
8720 FT_Init_FreeType ();
8725 rm -f conftest.$ac_objext conftest$ac_exeext
8726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8727 (eval $ac_link) 2>conftest.er1
8729 grep -v '^ *+' conftest.er1 >conftest.err
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try='test -z "$ac_c_werror_flag"
8735 || test ! -s conftest.err'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; } &&
8741 { ac_try='test -s conftest$ac_exeext'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8747 ac_cv_lib_freetype_FT_Init_FreeType=yes
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8752 ac_cv_lib_freetype_FT_Init_FreeType=no
8754 rm -f conftest.err conftest.$ac_objext \
8755 conftest$ac_exeext conftest.$ac_ext
8756 LIBS=$ac_check_lib_save_LIBS
8758 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8759 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8760 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8765 for ac_header in freetype/freetype.h
8767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8769 echo "$as_me:$LINENO: checking for $ac_header" >&5
8770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8777 # Is the header compilable?
8778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8780 cat >conftest.$ac_ext <<_ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 $ac_includes_default
8787 #include <$ac_header>
8789 rm -f conftest.$ac_objext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8791 (eval $ac_compile) 2>conftest.er1
8793 grep -v '^ *+' conftest.er1 >conftest.err
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try='test -z "$ac_c_werror_flag"
8799 || test ! -s conftest.err'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; } &&
8805 { ac_try='test -s conftest.$ac_objext'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 ac_header_compiler=yes
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8816 ac_header_compiler=no
8818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8820 echo "${ECHO_T}$ac_header_compiler" >&6
8822 # Is the header present?
8823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8825 cat >conftest.$ac_ext <<_ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8831 #include <$ac_header>
8833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8836 grep -v '^ *+' conftest.er1 >conftest.err
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } >/dev/null; then
8841 if test -s conftest.err; then
8842 ac_cpp_err=$ac_c_preproc_warn_flag
8843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8850 if test -z "$ac_cpp_err"; then
8851 ac_header_preproc=yes
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 ac_header_preproc=no
8858 rm -f conftest.err conftest.$ac_ext
8859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8860 echo "${ECHO_T}$ac_header_preproc" >&6
8862 # So? What about this header?
8863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8869 ac_header_preproc=yes
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8886 ## ------------------------------------------ ##
8887 ## Report this to the AC_PACKAGE_NAME lists. ##
8888 ## ------------------------------------------ ##
8891 sed "s/^/$as_me: WARNING: /" >&2
8894 echo "$as_me:$LINENO: checking for $ac_header" >&5
8895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 eval "$as_ac_Header=\$ac_header_preproc"
8901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8906 cat >>confdefs.h <<_ACEOF
8907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8909 HAVE_FREETYPE_FREETYPE_H=1
8914 if test "x${HAVE_LIB_FREETYPE}" != "x";then
8915 if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
8920 if test "x${HAVE_FREETYPE}" = "x1"; then
8921 if test "x{$FREETYPE_CONFIG}" != "x"; then
8922 LIBS="$LIBS "`freetype-config --libs`
8924 LIBS="$LIBS -lfreetype"
8927 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8928 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
8930 cat > conftest.c << EOF
8931 #include <freetype/freetype.h>
8932 #include <freetype/ftglyph.h>
8933 #include <freetype/ftsnames.h>
8934 #include <freetype/ttnameid.h>
8935 #include <freetype/ftoutln.h>
8939 FT_Library ftlibrary;
8951 FT_Init_FreeType(&ftlibrary);
8952 FT_New_Face(ftlibrary, "filename", 0, &face);
8953 i = face->num_glyphs - 1;
8954 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8955 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8956 FT_Get_Postscript_Name(face);
8957 FT_Get_Char_Index(face, 33);
8958 FT_Get_First_Char(face, &i);
8959 FT_Get_Next_Char(face, 33, &i);
8960 if(FT_HAS_GLYPH_NAMES(face)) {
8961 FT_Get_Glyph_Name(face, 33, name, 127);
8963 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8964 FT_Get_Glyph(face->glyph, &glyph);
8965 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8966 FT_Done_Glyph(glyph);
8968 FT_Done_FreeType(ftlibrary);
8973 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8974 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8975 echo "$as_me:$LINENO: result: yes" >&5
8976 echo "${ECHO_T}yes" >&6
8977 cat >>confdefs.h <<_ACEOF
8978 #define HAVE_FREETYPE 1
8981 cat >>confdefs.h <<_ACEOF
8982 #define USE_FREETYPE 1
8986 echo "configure: failed program was:" >&5
8989 echo "$as_me:$LINENO: result: no" >&5
8990 echo "${ECHO_T}no" >&6
8995 # if the above didn't work out, reset all changes to the compiler variables.
8996 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
8997 CPPFLAGS=$OLDCPPFLAGS
9003 echo "$as_me:$LINENO: checking for byte order" >&5
9004 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
9005 if test "$cross_compiling" = yes; then
9008 cat >conftest.$ac_ext <<_ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9015 int main (int argc, char *argv[])
9022 rm -f conftest$ac_exeext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024 (eval $ac_link) 2>&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; }; then
9035 echo "$as_me: program exited with status $ac_status" >&5
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9046 if test "x${CROSSCOMPILE}" = "x1"; then
9047 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
9048 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
9049 echo "$as_me:$LINENO: checking target system type" >&5
9050 echo $ECHO_N "checking target system type... $ECHO_C" >&6
9051 if test "${ac_cv_target+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 ac_cv_target_alias=$target_alias
9055 test "x$ac_cv_target_alias" = "x" &&
9056 ac_cv_target_alias=$ac_cv_host_alias
9057 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
9058 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
9059 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
9060 { (exit 1); exit 1; }; }
9063 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
9064 echo "${ECHO_T}$ac_cv_target" >&6
9065 target=$ac_cv_target
9066 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9067 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9068 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9071 # The aliases save the names the user supplied, while $host etc.
9072 # will get canonicalized.
9073 test -n "$target_alias" &&
9074 test "$program_prefix$program_suffix$program_transform_name" = \
9076 program_prefix=${target_alias}-
9077 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
9078 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
9083 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
9090 if test "x${LITTLEENDIAN}" = "x1"; then
9091 echo "$as_me:$LINENO: result: little endian" >&5
9092 echo "${ECHO_T}little endian" >&6
9096 if test "x${BIGENDIAN}" = "x1"; then
9097 echo "$as_me:$LINENO: result: big endian" >&5
9098 echo "${ECHO_T}big endian" >&6
9101 export WORDS_BIGENDIAN
9102 cat >>confdefs.h <<_ACEOF
9103 #define WORDS_BIGENDIAN 1
9107 if test "x${BYTEORDERCHECKOK}" != "x1"; then
9108 echo "$as_me:$LINENO: result: unknown" >&5
9109 echo "${ECHO_T}unknown" >&6
9110 echo Byte order could not determined.
9116 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
9117 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
9118 if test "$cross_compiling" = yes; then
9121 cat >conftest.$ac_ext <<_ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9129 int main (int argc, char*argv[])
9131 return system("test `touch config.tmp2`");
9135 rm -f conftest$ac_exeext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9137 (eval $ac_link) 2>&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } && { ac_try='./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
9148 echo "$as_me: program exited with status $ac_status" >&5
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9153 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9156 if test "x${OK}" = "xOK";then
9157 test -f config.tmp2 || OK=
9160 if test "x${CROSSCOMPILE}" = "x1";then
9163 if test "x${OK}" = "xOK";then
9165 echo "$as_me:$LINENO: result: yes" >&5
9166 echo "${ECHO_T}yes" >&6
9168 export SYSTEM_BACKTICKS
9169 cat >>confdefs.h <<_ACEOF
9170 #define SYSTEM_BACKTICKS 1
9174 echo "$as_me:$LINENO: result: no" >&5
9175 echo "${ECHO_T}no" >&6
9180 test "$program_prefix" != NONE &&
9181 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9182 # Use a double $ so make ignores it.
9183 test "$program_suffix" != NONE &&
9184 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9185 # Double any \ or $. echo might interpret backslashes.
9186 # By default was `s,x,x', remove it if useless.
9187 cat <<\_ACEOF >conftest.sed
9188 s/[\\$]/&&/g;s/;s,x,x,$//
9190 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
9194 ac_config_headers="$ac_config_headers config.h"
9202 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9203 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9204 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9205 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 cat >conftest.$ac_ext <<_ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9215 #include <sys/types.h>
9227 rm -f conftest.$ac_objext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9229 (eval $ac_compile) 2>conftest.er1
9231 grep -v '^ *+' conftest.er1 >conftest.err
9233 cat conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try='test -z "$ac_c_werror_flag"
9237 || test ! -s conftest.err'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; } &&
9243 { ac_try='test -s conftest.$ac_objext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 eval "$as_ac_Header=yes"
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 eval "$as_ac_Header=no"
9256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9261 cat >>confdefs.h <<_ACEOF
9262 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9265 ac_header_dirent=$ac_hdr; break
9269 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9270 if test $ac_header_dirent = dirent.h; then
9271 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9272 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9273 if test "${ac_cv_search_opendir+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 ac_func_search_save_LIBS=$LIBS
9277 ac_cv_search_opendir=no
9278 cat >conftest.$ac_ext <<_ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9285 /* Override any gcc2 internal prototype to avoid an error. */
9289 /* We use char because int might match the return type of a gcc2
9290 builtin and then its argument prototype would still apply. */
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302 (eval $ac_link) 2>conftest.er1
9304 grep -v '^ *+' conftest.er1 >conftest.err
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try='test -z "$ac_c_werror_flag"
9310 || test ! -s conftest.err'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; } &&
9316 { ac_try='test -s conftest$ac_exeext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_cv_search_opendir="none required"
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9328 rm -f conftest.err conftest.$ac_objext \
9329 conftest$ac_exeext conftest.$ac_ext
9330 if test "$ac_cv_search_opendir" = no; then
9331 for ac_lib in dir; do
9332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9333 cat >conftest.$ac_ext <<_ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9340 /* Override any gcc2 internal prototype to avoid an error. */
9344 /* We use char because int might match the return type of a gcc2
9345 builtin and then its argument prototype would still apply. */
9355 rm -f conftest.$ac_objext conftest$ac_exeext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357 (eval $ac_link) 2>conftest.er1
9359 grep -v '^ *+' conftest.er1 >conftest.err
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -z "$ac_c_werror_flag"
9365 || test ! -s conftest.err'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; } &&
9371 { ac_try='test -s conftest$ac_exeext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 ac_cv_search_opendir="-l$ac_lib"
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9384 rm -f conftest.err conftest.$ac_objext \
9385 conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_func_search_save_LIBS
9390 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9391 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9392 if test "$ac_cv_search_opendir" != no; then
9393 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9398 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9399 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9400 if test "${ac_cv_search_opendir+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 ac_func_search_save_LIBS=$LIBS
9404 ac_cv_search_opendir=no
9405 cat >conftest.$ac_ext <<_ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9412 /* Override any gcc2 internal prototype to avoid an error. */
9416 /* We use char because int might match the return type of a gcc2
9417 builtin and then its argument prototype would still apply. */
9427 rm -f conftest.$ac_objext conftest$ac_exeext
9428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9429 (eval $ac_link) 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } &&
9436 { ac_try='test -z "$ac_c_werror_flag"
9437 || test ! -s conftest.err'
9438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); }; } &&
9443 { ac_try='test -s conftest$ac_exeext'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; }; then
9449 ac_cv_search_opendir="none required"
9451 echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9455 rm -f conftest.err conftest.$ac_objext \
9456 conftest$ac_exeext conftest.$ac_ext
9457 if test "$ac_cv_search_opendir" = no; then
9459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9460 cat >conftest.$ac_ext <<_ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9467 /* Override any gcc2 internal prototype to avoid an error. */
9471 /* We use char because int might match the return type of a gcc2
9472 builtin and then its argument prototype would still apply. */
9482 rm -f conftest.$ac_objext conftest$ac_exeext
9483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9484 (eval $ac_link) 2>conftest.er1
9486 grep -v '^ *+' conftest.er1 >conftest.err
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } &&
9491 { ac_try='test -z "$ac_c_werror_flag"
9492 || test ! -s conftest.err'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; } &&
9498 { ac_try='test -s conftest$ac_exeext'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; }; then
9504 ac_cv_search_opendir="-l$ac_lib"
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9511 rm -f conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
9515 LIBS=$ac_func_search_save_LIBS
9517 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9518 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9519 if test "$ac_cv_search_opendir" != no; then
9520 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9526 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9527 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9528 if test "${ac_cv_header_stdc+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 cat >conftest.$ac_ext <<_ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9550 rm -f conftest.$ac_objext
9551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9552 (eval $ac_compile) 2>conftest.er1
9554 grep -v '^ *+' conftest.er1 >conftest.err
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } &&
9559 { ac_try='test -z "$ac_c_werror_flag"
9560 || test ! -s conftest.err'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; } &&
9566 { ac_try='test -s conftest.$ac_objext'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 ac_cv_header_stdc=yes
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9577 ac_cv_header_stdc=no
9579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9581 if test $ac_cv_header_stdc = yes; then
9582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9583 cat >conftest.$ac_ext <<_ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9593 $EGREP "memchr" >/dev/null 2>&1; then
9596 ac_cv_header_stdc=no
9602 if test $ac_cv_header_stdc = yes; then
9603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9604 cat >conftest.$ac_ext <<_ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9614 $EGREP "free" >/dev/null 2>&1; then
9617 ac_cv_header_stdc=no
9623 if test $ac_cv_header_stdc = yes; then
9624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9625 if test "$cross_compiling" = yes; then
9628 cat >conftest.$ac_ext <<_ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9635 #if ((' ' & 0x0FF) == 0x020)
9636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9639 # define ISLOWER(c) \
9640 (('a' <= (c) && (c) <= 'i') \
9641 || ('j' <= (c) && (c) <= 'r') \
9642 || ('s' <= (c) && (c) <= 'z'))
9643 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9651 for (i = 0; i < 256; i++)
9652 if (XOR (islower (i), ISLOWER (i))
9653 || toupper (i) != TOUPPER (i))
9658 rm -f conftest$ac_exeext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660 (eval $ac_link) 2>&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; }; then
9671 echo "$as_me: program exited with status $ac_status" >&5
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9676 ac_cv_header_stdc=no
9678 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9682 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9683 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9684 if test $ac_cv_header_stdc = yes; then
9686 cat >>confdefs.h <<\_ACEOF
9687 #define STDC_HEADERS 1
9706 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
9708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9710 echo "$as_me:$LINENO: checking for $ac_header" >&5
9711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9718 # Is the header compilable?
9719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9721 cat >conftest.$ac_ext <<_ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 $ac_includes_default
9728 #include <$ac_header>
9730 rm -f conftest.$ac_objext
9731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9732 (eval $ac_compile) 2>conftest.er1
9734 grep -v '^ *+' conftest.er1 >conftest.err
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -z "$ac_c_werror_flag"
9740 || test ! -s conftest.err'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest.$ac_objext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 ac_header_compiler=yes
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 ac_header_compiler=no
9759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9761 echo "${ECHO_T}$ac_header_compiler" >&6
9763 # Is the header present?
9764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9766 cat >conftest.$ac_ext <<_ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9772 #include <$ac_header>
9774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9777 grep -v '^ *+' conftest.er1 >conftest.err
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } >/dev/null; then
9782 if test -s conftest.err; then
9783 ac_cpp_err=$ac_c_preproc_warn_flag
9784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9791 if test -z "$ac_cpp_err"; then
9792 ac_header_preproc=yes
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9797 ac_header_preproc=no
9799 rm -f conftest.err conftest.$ac_ext
9800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9801 echo "${ECHO_T}$ac_header_preproc" >&6
9803 # So? What about this header?
9804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9810 ac_header_preproc=yes
9813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9827 ## ------------------------------------------ ##
9828 ## Report this to the AC_PACKAGE_NAME lists. ##
9829 ## ------------------------------------------ ##
9832 sed "s/^/$as_me: WARNING: /" >&2
9835 echo "$as_me:$LINENO: checking for $ac_header" >&5
9836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 eval "$as_ac_Header=\$ac_header_preproc"
9842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9847 cat >>confdefs.h <<_ACEOF
9848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9856 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
9857 DISABLEPDF2SWF=true;
9858 DISABLEJPEG2SWF=true;
9859 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9861 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
9862 DISABLEPDF2SWF=true;
9863 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9865 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
9866 DISABLEPNG2SWF=true;
9867 MISSINGLIBS="${MISSINGLIBS} zlib.h"
9871 cat >>confdefs.h <<_ACEOF
9872 #define PACKAGE "$PACKAGE"
9875 cat >>confdefs.h <<_ACEOF
9876 #define VERSION "$VERSION"
9885 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9886 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9887 if test "${ac_cv_c_const+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. */
9900 /* FIXME: Include the comments suggested by Paul. */
9902 /* Ultrix mips cc rejects this. */
9903 typedef int charset[2];
9905 /* SunOS 4.1.1 cc rejects this. */
9906 char const *const *ccp;
9908 /* NEC SVR4.0.2 mips cc rejects this. */
9909 struct point {int x, y;};
9910 static struct point const zero = {0,0};
9911 /* AIX XL C 1.02.0.0 rejects this.
9912 It does not let you subtract one const X* pointer from another in
9913 an arm of an if-expression whose if-part is not a constant
9915 const char *g = "string";
9916 ccp = &g + (g ? g-g : 0);
9917 /* HPUX 7.0 cc rejects these. */
9920 ccp = (char const *const *) p;
9921 { /* SCO 3.2v4 cc rejects this. */
9923 char const *s = 0 ? (char *) 0 : (char const *) 0;
9927 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9929 const int *foo = &x[0];
9932 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9933 typedef const int *iptr;
9937 { /* AIX XL C 1.02.0.0 rejects this saying
9938 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9939 struct s { int j; const int *ap[3]; };
9940 struct s *b; b->j = 5;
9942 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9951 rm -f conftest.$ac_objext
9952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9953 (eval $ac_compile) 2>conftest.er1
9955 grep -v '^ *+' conftest.er1 >conftest.err
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } &&
9960 { ac_try='test -z "$ac_c_werror_flag"
9961 || test ! -s conftest.err'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; } &&
9967 { ac_try='test -s conftest.$ac_objext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9982 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9983 echo "${ECHO_T}$ac_cv_c_const" >&6
9984 if test $ac_cv_c_const = no; then
9986 cat >>confdefs.h <<\_ACEOF
9992 echo "$as_me:$LINENO: checking for inline" >&5
9993 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9994 if test "${ac_cv_c_inline+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 for ac_kw in inline __inline__ __inline; do
9999 cat >conftest.$ac_ext <<_ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10005 #ifndef __cplusplus
10007 static $ac_kw foo_t static_foo () {return 0; }
10008 $ac_kw foo_t foo () {return 0; }
10012 rm -f conftest.$ac_objext
10013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10014 (eval $ac_compile) 2>conftest.er1
10016 grep -v '^ *+' conftest.er1 >conftest.err
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } &&
10021 { ac_try='test -z "$ac_c_werror_flag"
10022 || test ! -s conftest.err'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; } &&
10028 { ac_try='test -s conftest.$ac_objext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_cv_c_inline=$ac_kw; break
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10044 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10045 echo "${ECHO_T}$ac_cv_c_inline" >&6
10048 case $ac_cv_c_inline in
10051 case $ac_cv_c_inline in
10053 *) ac_val=$ac_cv_c_inline;;
10055 cat >>confdefs.h <<_ACEOF
10056 #ifndef __cplusplus
10057 #define inline $ac_val
10063 echo "$as_me:$LINENO: checking for off_t" >&5
10064 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10065 if test "${ac_cv_type_off_t+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 cat >conftest.$ac_ext <<_ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10080 if (sizeof (off_t))
10086 rm -f conftest.$ac_objext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10088 (eval $ac_compile) 2>conftest.er1
10090 grep -v '^ *+' conftest.er1 >conftest.err
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_c_werror_flag"
10096 || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest.$ac_objext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 ac_cv_type_off_t=yes
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_cv_type_off_t=no
10115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10117 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10118 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10119 if test $ac_cv_type_off_t = yes; then
10123 cat >>confdefs.h <<_ACEOF
10129 echo "$as_me:$LINENO: checking for size_t" >&5
10130 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10131 if test "${ac_cv_type_size_t+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 cat >conftest.$ac_ext <<_ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10140 $ac_includes_default
10146 if (sizeof (size_t))
10152 rm -f conftest.$ac_objext
10153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10154 (eval $ac_compile) 2>conftest.er1
10156 grep -v '^ *+' conftest.er1 >conftest.err
10158 cat conftest.err >&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try='test -z "$ac_c_werror_flag"
10162 || test ! -s conftest.err'
10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164 (eval $ac_try) 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; } &&
10168 { ac_try='test -s conftest.$ac_objext'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; }; then
10174 ac_cv_type_size_t=yes
10176 echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10179 ac_cv_type_size_t=no
10181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10183 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10184 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10185 if test $ac_cv_type_size_t = yes; then
10189 cat >>confdefs.h <<_ACEOF
10190 #define size_t unsigned
10195 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10196 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10197 if test "${ac_cv_struct_tm+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 cat >conftest.$ac_ext <<_ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 #include <sys/types.h>
10212 struct tm *tp; tp->tm_sec;
10217 rm -f conftest.$ac_objext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219 (eval $ac_compile) 2>conftest.er1
10221 grep -v '^ *+' conftest.er1 >conftest.err
10223 cat conftest.err >&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } &&
10226 { ac_try='test -z "$ac_c_werror_flag"
10227 || test ! -s conftest.err'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; } &&
10233 { ac_try='test -s conftest.$ac_objext'
10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); }; }; then
10239 ac_cv_struct_tm=time.h
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10244 ac_cv_struct_tm=sys/time.h
10246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10248 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10249 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10250 if test $ac_cv_struct_tm = sys/time.h; then
10252 cat >>confdefs.h <<\_ACEOF
10253 #define TM_IN_SYS_TIME 1
10258 echo "$as_me:$LINENO: checking for boolean" >&5
10259 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
10260 if test "${ac_cv_type_boolean+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 cat >conftest.$ac_ext <<_ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10269 $ac_includes_default
10275 if (sizeof (boolean))
10281 rm -f conftest.$ac_objext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283 (eval $ac_compile) 2>conftest.er1
10285 grep -v '^ *+' conftest.er1 >conftest.err
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest.$ac_objext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_type_boolean=yes
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10308 ac_cv_type_boolean=no
10310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10312 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10313 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10314 if test $ac_cv_type_boolean = yes; then
10318 cat >>confdefs.h <<_ACEOF
10319 #define boolean int
10324 echo "$as_me:$LINENO: checking for bool" >&5
10325 echo $ECHO_N "checking for bool... $ECHO_C" >&6
10326 if test "${ac_cv_type_bool+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 cat >conftest.$ac_ext <<_ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10335 $ac_includes_default
10347 rm -f conftest.$ac_objext
10348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10349 (eval $ac_compile) 2>conftest.er1
10351 grep -v '^ *+' conftest.er1 >conftest.err
10353 cat conftest.err >&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } &&
10356 { ac_try='test -z "$ac_c_werror_flag"
10357 || test ! -s conftest.err'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; } &&
10363 { ac_try='test -s conftest.$ac_objext'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_type_bool=yes
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10378 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10379 echo "${ECHO_T}$ac_cv_type_bool" >&6
10380 if test $ac_cv_type_bool = yes; then
10384 cat >>confdefs.h <<_ACEOF
10401 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10404 echo "$as_me:$LINENO: checking for $ac_func" >&5
10405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10406 if eval "test \"\${$as_ac_var+set}\" = set"; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 cat >conftest.$ac_ext <<_ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10417 #define $ac_func innocuous_$ac_func
10419 /* System header to define __stub macros and hopefully few prototypes,
10420 which can conflict with char $ac_func (); below.
10421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10422 <limits.h> exists even on freestanding compilers. */
10425 # include <limits.h>
10427 # include <assert.h>
10432 /* Override any gcc2 internal prototype to avoid an error. */
10437 /* We use char because int might match the return type of a gcc2
10438 builtin and then its argument prototype would still apply. */
10440 /* The GNU C library defines this for functions which it implements
10441 to always fail with ENOSYS. Some functions are actually named
10442 something starting with __ and the normal name is an alias. */
10443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10446 char (*f) () = $ac_func;
10455 return f != $ac_func;
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>conftest.er1
10464 grep -v '^ *+' conftest.er1 >conftest.err
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -z "$ac_c_werror_flag"
10470 || test ! -s conftest.err'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; } &&
10476 { ac_try='test -s conftest$ac_exeext'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; }; then
10482 eval "$as_ac_var=yes"
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10487 eval "$as_ac_var=no"
10489 rm -f conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10494 if test `eval echo '${'$as_ac_var'}'` = yes; then
10495 cat >>confdefs.h <<_ACEOF
10496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10503 # ------------------------------------------------------------------
10507 if test "x${DISABLE_LAME}" = "xtrue"; then
10508 echo "*" Disabling lame support...
10510 # old lame code at lib/lame
10511 if test -f lib/lame/Makefile.in; then
10512 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"
10513 lame_makefile="lib/lame/Makefile"
10514 CPPFLAGS="$CPPFLAGS -Ilame"
10515 cat >>confdefs.h <<_ACEOF
10516 #define HAVE_LAME 1
10520 if test -d /usr/include/lame; then
10521 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
10523 if test -d /usr/local/include/lame; then
10524 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
10528 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
10529 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
10530 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 ac_check_lib_save_LIBS=$LIBS
10534 LIBS="-lmp3lame $LIBS"
10535 cat >conftest.$ac_ext <<_ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10542 /* Override any gcc2 internal prototype to avoid an error. */
10546 /* We use char because int might match the return type of a gcc2
10547 builtin and then its argument prototype would still apply. */
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559 (eval $ac_link) 2>conftest.er1
10561 grep -v '^ *+' conftest.er1 >conftest.err
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -z "$ac_c_werror_flag"
10567 || test ! -s conftest.err'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; } &&
10573 { ac_try='test -s conftest$ac_exeext'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 ac_cv_lib_mp3lame_lame_init=yes
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10584 ac_cv_lib_mp3lame_lame_init=no
10586 rm -f conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_lib_save_LIBS
10590 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
10591 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
10592 if test $ac_cv_lib_mp3lame_lame_init = yes; then
10593 cat >>confdefs.h <<_ACEOF
10594 #define HAVE_LIBMP3LAME 1
10597 LIBS="-lmp3lame $LIBS"
10604 for ac_header in lame.h
10606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10608 echo "$as_me:$LINENO: checking for $ac_header" >&5
10609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10616 # Is the header compilable?
10617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10619 cat >conftest.$ac_ext <<_ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10625 $ac_includes_default
10626 #include <$ac_header>
10628 rm -f conftest.$ac_objext
10629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10630 (eval $ac_compile) 2>conftest.er1
10632 grep -v '^ *+' conftest.er1 >conftest.err
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } &&
10637 { ac_try='test -z "$ac_c_werror_flag"
10638 || test ! -s conftest.err'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest.$ac_objext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_header_compiler=yes
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 ac_header_compiler=no
10657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10659 echo "${ECHO_T}$ac_header_compiler" >&6
10661 # Is the header present?
10662 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10664 cat >conftest.$ac_ext <<_ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10670 #include <$ac_header>
10672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10675 grep -v '^ *+' conftest.er1 >conftest.err
10677 cat conftest.err >&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } >/dev/null; then
10680 if test -s conftest.err; then
10681 ac_cpp_err=$ac_c_preproc_warn_flag
10682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10689 if test -z "$ac_cpp_err"; then
10690 ac_header_preproc=yes
10692 echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10695 ac_header_preproc=no
10697 rm -f conftest.err conftest.$ac_ext
10698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10699 echo "${ECHO_T}$ac_header_preproc" >&6
10701 # So? What about this header?
10702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10708 ac_header_preproc=yes
10711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10718 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10725 ## ------------------------------------------ ##
10726 ## Report this to the AC_PACKAGE_NAME lists. ##
10727 ## ------------------------------------------ ##
10730 sed "s/^/$as_me: WARNING: /" >&2
10733 echo "$as_me:$LINENO: checking for $ac_header" >&5
10734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 eval "$as_ac_Header=\$ac_header_preproc"
10740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10745 cat >>confdefs.h <<_ACEOF
10746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10753 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
10754 cat >>confdefs.h <<_ACEOF
10755 #define HAVE_LAME 1
10763 # ------------------------------------------------------------------
10767 for ac_prog in avifile-config
10769 # Extract the first word of "$ac_prog", so it can be a program name with args.
10770 set dummy $ac_prog; ac_word=$2
10771 echo "$as_me:$LINENO: checking for $ac_word" >&5
10772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10773 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 if test -n "$AVIFILE_CONFIG"; then
10777 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780 for as_dir in $PATH
10783 test -z "$as_dir" && as_dir=.
10784 for ac_exec_ext in '' $ac_executable_extensions; do
10785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10786 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10795 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10796 if test -n "$AVIFILE_CONFIG"; then
10797 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10798 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
10800 echo "$as_me:$LINENO: result: no" >&5
10801 echo "${ECHO_T}no" >&6
10804 test -n "$AVIFILE_CONFIG" && break
10808 if test "x$AVIFILE_CONFIG" '!=' "x";then
10809 OLDCPPFLAGS="$CPPFLAGS"
10810 #OLDLDFLAGS="$LDFLAGS"
10811 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10812 #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
10815 for ac_header in avifile/version.h version.h
10817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10819 echo "$as_me:$LINENO: checking for $ac_header" >&5
10820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10827 # Is the header compilable?
10828 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10830 cat >conftest.$ac_ext <<_ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 $ac_includes_default
10837 #include <$ac_header>
10839 rm -f conftest.$ac_objext
10840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10841 (eval $ac_compile) 2>conftest.er1
10843 grep -v '^ *+' conftest.er1 >conftest.err
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } &&
10848 { ac_try='test -z "$ac_c_werror_flag"
10849 || test ! -s conftest.err'
10850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10851 (eval $ac_try) 2>&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); }; } &&
10855 { ac_try='test -s conftest.$ac_objext'
10856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857 (eval $ac_try) 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; }; then
10861 ac_header_compiler=yes
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ac_header_compiler=no
10868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10870 echo "${ECHO_T}$ac_header_compiler" >&6
10872 # Is the header present?
10873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10875 cat >conftest.$ac_ext <<_ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 #include <$ac_header>
10883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10886 grep -v '^ *+' conftest.er1 >conftest.err
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } >/dev/null; then
10891 if test -s conftest.err; then
10892 ac_cpp_err=$ac_c_preproc_warn_flag
10893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10900 if test -z "$ac_cpp_err"; then
10901 ac_header_preproc=yes
10903 echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10906 ac_header_preproc=no
10908 rm -f conftest.err conftest.$ac_ext
10909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10910 echo "${ECHO_T}$ac_header_preproc" >&6
10912 # So? What about this header?
10913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10919 ac_header_preproc=yes
10922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10936 ## ------------------------------------------ ##
10937 ## Report this to the AC_PACKAGE_NAME lists. ##
10938 ## ------------------------------------------ ##
10941 sed "s/^/$as_me: WARNING: /" >&2
10944 echo "$as_me:$LINENO: checking for $ac_header" >&5
10945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 eval "$as_ac_Header=\$ac_header_preproc"
10951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10956 cat >>confdefs.h <<_ACEOF
10957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10964 #LDFLAGS="$OLDLDFLAGS"
10965 CPPFLAGS="$OLDCPPFLAGS"
10968 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10969 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
10971 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10972 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10974 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10975 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10978 cat > conftest.cpp << EOF
10980 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10981 // so we have to introduce them this way
10982 $HAVE_VERSION_H_DEFINE
10983 $HAVE_AVIFILE_VERSION_H_DEFINE
10985 #ifdef HAVE_VERSION_H
10986 #include <version.h>
10988 #ifdef HAVE_AVIFILE_VERSION_H
10989 #include <avifile/version.h>
10992 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10993 #include <avifile.h>
10994 #include <aviplay.h>
10995 #include <fourcc.h>
10996 #include <creators.h>
10997 #include <StreamInfo.h>
11000 #include <avifile.h>
11001 #include <aviplay.h>
11002 #include <aviutil.h>
11003 #define Width width
11004 #define Height height
11011 IAviReadFile* player;
11012 IAviReadStream* astream;
11013 IAviReadStream* vstream;
11014 player = CreateIAviReadFile(0);
11015 astream = player->GetStream(0, AviStream::Audio);
11016 vstream = player->GetStream(0, AviStream::Video);
11017 vstream -> StartStreaming();
11018 astream -> StartStreaming();
11020 MainAVIHeader head;
11021 player->GetFileHeader(&head);
11022 head.dwMicroSecPerFrame;
11023 head.dwTotalFrames;
11027 head.dwMicroSecPerFrame;
11028 astream->GetEndPos(),
11029 astream->GetEndTime());
11030 player->StreamCount();
11032 StreamInfo*audioinfo;
11033 StreamInfo*videoinfo;
11034 audioinfo = astream->GetStreamInfo();
11035 videoinfo = vstream->GetStreamInfo();
11036 videoinfo->GetVideoWidth();
11037 videoinfo->GetVideoHeight();
11038 audioinfo->GetAudioSamplesPerSec();
11039 videoinfo->GetFps();
11041 CImage*img = vstream->GetFrame();
11048 astream->GetAudioFormatInfo(&wave,0);
11050 astream->ReadFrames(0,0,0,a,b);
11052 int main (int argc, char*argv)
11058 if test "x$AVIFILE_CONFIG" '!=' "x";then
11059 ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
11060 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11061 echo "$as_me:$LINENO: result: yes" >&5
11062 echo "${ECHO_T}yes" >&6
11065 cat >>confdefs.h <<_ACEOF
11066 #define AVIFILE true
11070 echo "configure: failed program was:" >&5
11071 cat conftest.cpp >&5
11072 echo "$as_me:$LINENO: result: no" >&5
11073 echo "${ECHO_T}no" >&6
11076 echo "$as_me:$LINENO: result: no" >&5
11077 echo "${ECHO_T}no" >&6
11082 avi2swf="avi2swf/Makefile"
11083 if test "x${AVIFILE}" != "xtrue"; then
11084 echo "* Couldn't compile the avifile test program."
11085 echo "* Disabling avi2swf tool..."
11086 echo all install uninstall clean: > avi2swf/Makefile
11090 # ------------------------------------------------------------------
11092 if test "x${UNCOMPRESS}" = "xgzip"; then
11093 cat >>confdefs.h <<_ACEOF
11100 # ------------------------------------------------------------------
11103 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11104 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11105 # should we support python versions below 2.2?
11106 if test -f "/usr/lib/python2.2/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.2/Python.h";then
11109 if test -f "/usr/lib/python2.3/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.3/Python.h";then
11112 if test -f "/usr/lib/python2.4/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.4/Python.h";then
11116 if test "x$PY_VERSION" "!=" "x"; then
11117 echo "$as_me:$LINENO: result: python$PY_VERSION" >&5
11118 echo "${ECHO_T}python$PY_VERSION" >&6
11119 pythonrfxswf="lib/python/Makefile"
11120 if test "x$PYTHON_LIB" = "x";then
11121 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11123 if test "x$PYTHON_INCLUDES" = "x";then
11124 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11126 export PYTHON_INCLUDES PYTHON_LIB
11129 echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11130 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11132 cat > conftest.c << EOF
11133 #include <Python.h>
11134 #include <Imaging.h>
11136 int main(int argn, char*argv)
11138 return Py_Main(argn, argv);
11141 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11142 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11143 echo "$as_me:$LINENO: result: yes" >&5
11144 echo "${ECHO_T}yes" >&6
11147 echo "configure: failed program was:" >&5
11149 echo "$as_me:$LINENO: result: no" >&5
11150 echo "${ECHO_T}no" >&6
11154 echo "$as_me:$LINENO: result: nope" >&5
11155 echo "${ECHO_T}nope" >&6
11159 if test "x$PYTHON_OK" '!=' "xyes";then
11160 echo all install uninstall clean: > lib/python/Makefile
11161 echo "* No usable python installation found"
11162 echo "* Not compiling the python interface"
11165 # ------------------------------------------------------------------
11167 JPEG2SWF='jpeg2swf$(E)'
11169 PNG2SWF='png2swf$(E)'
11172 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11173 echo "***************************************************"
11174 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
11175 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11176 echo "Disabling pdf2swf tool..."
11177 rm -f pdf2swf/Makefile
11178 echo all install uninstall clean: > pdf2swf/Makefile
11180 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11181 echo "Disabling jpeg2swf tool..."
11185 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11186 echo "Disabling png2swf tool..."
11190 if test "x${ZLIBMISSING}" = "xtrue"; then
11192 echo "Warning! Without zlib, you will not be able to read"
11193 echo "or write compressed Flash MX files!"
11195 echo "***************************************************"
11196 FILES="./release Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11198 FILES="./release Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11203 ac_config_files="$ac_config_files ${FILES}"
11205 cat >confcache <<\_ACEOF
11206 # This file is a shell script that caches the results of configure
11207 # tests run on this system so they can be shared between configure
11208 # scripts and configure runs, see configure's option --config-cache.
11209 # It is not useful on other systems. If it contains results you don't
11210 # want to keep, you may remove or edit it.
11212 # config.status only pays attention to the cache file if you give it
11213 # the --recheck option to rerun configure.
11215 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11216 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11217 # following values.
11221 # The following way of writing the cache mishandles newlines in values,
11222 # but we know of no workaround that is simple, portable, and efficient.
11223 # So, don't put newlines in cache variables' values.
11224 # Ultrix sh set writes to stderr and can't be redirected directly,
11225 # and sets the high bit in the cache file unless we assign to the vars.
11228 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11230 # `set' does not quote correctly, so add quotes (double-quote
11231 # substitution turns \\\\ into \\, and sed turns \\ into \).
11234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11237 # `set' quotes correctly as required by POSIX, so do not add quotes.
11239 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11246 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11248 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11250 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11251 if test -w $cache_file; then
11252 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11253 cat confcache >$cache_file
11255 echo "not updating unwritable cache $cache_file"
11260 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11261 # Let make expand exec_prefix.
11262 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11264 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11265 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11266 # trailing colons and then remove the whole line if VPATH becomes empty
11267 # (actually we leave an empty line to preserve line numbers).
11268 if test "x$srcdir" = x.; then
11269 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11270 s/:*\$(srcdir):*/:/;
11271 s/:*\${srcdir}:*/:/;
11273 s/^\([^=]*=[ ]*\):*/\1/;
11279 DEFS=-DHAVE_CONFIG_H
11283 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11284 # 1. Remove the extension, and $U if already installed.
11285 ac_i=`echo "$ac_i" |
11286 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11288 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11289 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11291 LIBOBJS=$ac_libobjs
11293 LTLIBOBJS=$ac_ltlibobjs
11297 : ${CONFIG_STATUS=./config.status}
11298 ac_clean_files_save=$ac_clean_files
11299 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11300 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11301 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11302 cat >$CONFIG_STATUS <<_ACEOF
11304 # Generated by $as_me.
11305 # Run this file to recreate the current configuration.
11306 # Compiler output produced by configure, useful for debugging
11307 # configure, is in config.log if it exists.
11310 ac_cs_recheck=false
11312 SHELL=\${CONFIG_SHELL-$SHELL}
11315 cat >>$CONFIG_STATUS <<\_ACEOF
11316 ## --------------------- ##
11317 ## M4sh Initialization. ##
11318 ## --------------------- ##
11320 # Be Bourne compatible
11321 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11324 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11325 # is contrary to our usage. Disable this feature.
11326 alias -g '${1+"$@"}'='"$@"'
11327 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11330 DUALCASE=1; export DUALCASE # for MKS sh
11332 # Support unset when possible.
11333 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11340 # Work around bugs in pre-3.0 UWIN ksh.
11341 $as_unset ENV MAIL MAILPATH
11348 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11349 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11350 LC_TELEPHONE LC_TIME
11352 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11353 eval $as_var=C; export $as_var
11359 # Required to use basename.
11360 if expr a : '\(a\)' >/dev/null 2>&1; then
11366 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11367 as_basename=basename
11373 # Name of the executable.
11374 as_me=`$as_basename "$0" ||
11375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11376 X"$0" : 'X\(//\)$' \| \
11377 X"$0" : 'X\(/\)$' \| \
11378 . : '\(.\)' 2>/dev/null ||
11380 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11381 /^X\/\(\/\/\)$/{ s//\1/; q; }
11382 /^X\/\(\/\).*/{ s//\1/; q; }
11386 # PATH needs CR, and LINENO needs CR and PATH.
11387 # Avoid depending upon Character Ranges.
11388 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11389 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11390 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11391 as_cr_digits='0123456789'
11392 as_cr_alnum=$as_cr_Letters$as_cr_digits
11394 # The user is always right.
11395 if test "${PATH_SEPARATOR+set}" != set; then
11396 echo "#! /bin/sh" >conf$$.sh
11397 echo "exit 0" >>conf$$.sh
11399 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11408 as_lineno_1=$LINENO
11409 as_lineno_2=$LINENO
11410 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11411 test "x$as_lineno_1" != "x$as_lineno_2" &&
11412 test "x$as_lineno_3" = "x$as_lineno_2" || {
11413 # Find who we are. Look in the path if we contain no path at all
11416 *[\\/]* ) as_myself=$0 ;;
11417 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11418 for as_dir in $PATH
11421 test -z "$as_dir" && as_dir=.
11422 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11427 # We did not find ourselves, most probably we were run as `sh COMMAND'
11428 # in which case we are not to be found in the path.
11429 if test "x$as_myself" = x; then
11432 if test ! -f "$as_myself"; then
11433 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11434 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11435 { (exit 1); exit 1; }; }
11437 case $CONFIG_SHELL in
11439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11443 test -z "$as_dir" && as_dir=.
11444 for as_base in sh bash ksh sh5; do
11447 if ("$as_dir/$as_base" -c '
11448 as_lineno_1=$LINENO
11449 as_lineno_2=$LINENO
11450 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11451 test "x$as_lineno_1" != "x$as_lineno_2" &&
11452 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11453 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11454 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11455 CONFIG_SHELL=$as_dir/$as_base
11456 export CONFIG_SHELL
11457 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11465 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11466 # uniformly replaced by the line number. The first 'sed' inserts a
11467 # line-number line before each line; the second 'sed' does the real
11468 # work. The second script uses 'N' to pair each line-number line
11469 # with the numbered line, and appends trailing '-' during
11470 # substitution so that $LINENO is not a special case at line end.
11471 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11472 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11473 sed '=' <$as_myself |
11478 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11481 s,^['$as_cr_digits']*\n,,
11482 ' >$as_me.lineno &&
11483 chmod +x $as_me.lineno ||
11484 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11485 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11486 { (exit 1); exit 1; }; }
11488 # Don't try to exec as it changes $[0], causing all sort of problems
11489 # (the dirname of $[0] is not the place where we might find the
11490 # original and so on. Autoconf is especially sensible to this).
11492 # Exit status is that of the last command.
11497 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11498 *c*,-n*) ECHO_N= ECHO_C='
11500 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11501 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11504 if expr a : '\(a\)' >/dev/null 2>&1; then
11510 rm -f conf$$ conf$$.exe conf$$.file
11512 if ln -s conf$$.file conf$$ 2>/dev/null; then
11513 # We could just check for DJGPP; but this test a) works b) is more generic
11514 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11515 if test -f conf$$.exe; then
11516 # Don't use ln at all; we don't have any links
11521 elif ln conf$$.file conf$$ 2>/dev/null; then
11526 rm -f conf$$ conf$$.exe conf$$.file
11528 if mkdir -p . 2>/dev/null; then
11531 test -d ./-p && rmdir ./-p
11535 as_executable_p="test -f"
11537 # Sed expression to map a string onto a valid CPP name.
11538 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11540 # Sed expression to map a string onto a valid variable name.
11541 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11545 # We need space, tab and new line, in precisely that order.
11555 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11556 # report actual input values of CONFIG_FILES etc. instead of their
11557 # values after options handling. Logging --version etc. is OK.
11561 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11562 ## Running $as_me. ##
11567 This file was extended by $as_me, which was
11568 generated by GNU Autoconf 2.59. Invocation command line was
11570 CONFIG_FILES = $CONFIG_FILES
11571 CONFIG_HEADERS = $CONFIG_HEADERS
11572 CONFIG_LINKS = $CONFIG_LINKS
11573 CONFIG_COMMANDS = $CONFIG_COMMANDS
11577 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11581 # Files that config.status was made for.
11582 if test -n "$ac_config_files"; then
11583 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11586 if test -n "$ac_config_headers"; then
11587 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11590 if test -n "$ac_config_links"; then
11591 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11594 if test -n "$ac_config_commands"; then
11595 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11598 cat >>$CONFIG_STATUS <<\_ACEOF
11601 \`$as_me' instantiates files from templates according to the
11602 current configuration.
11604 Usage: $0 [OPTIONS] [FILE]...
11606 -h, --help print this help, then exit
11607 -V, --version print version number, then exit
11608 -q, --quiet do not print progress messages
11609 -d, --debug don't remove temporary files
11610 --recheck update $as_me by reconfiguring in the same conditions
11611 --file=FILE[:TEMPLATE]
11612 instantiate the configuration file FILE
11613 --header=FILE[:TEMPLATE]
11614 instantiate the configuration header FILE
11616 Configuration files:
11619 Configuration headers:
11622 Report bugs to <bug-autoconf@gnu.org>."
11625 cat >>$CONFIG_STATUS <<_ACEOF
11628 configured by $0, generated by GNU Autoconf 2.59,
11629 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11631 Copyright (C) 2003 Free Software Foundation, Inc.
11632 This config.status script is free software; the Free Software Foundation
11633 gives unlimited permission to copy, distribute and modify it."
11638 cat >>$CONFIG_STATUS <<\_ACEOF
11639 # If no file are specified by the user, then we need to provide default
11640 # value. By we need to know if files were specified by the user.
11646 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11647 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11655 *) # This is not an option, so the user has probably given explicit
11658 ac_need_defaults=false;;
11662 # Handling of the options.
11664 cat >>$CONFIG_STATUS <<\_ACEOF
11665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11667 --version | --vers* | -V )
11668 echo "$ac_cs_version"; exit 0 ;;
11670 # Conflict between --help and --header
11671 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11672 Try \`$0 --help' for more information." >&5
11673 echo "$as_me: error: ambiguous option: $1
11674 Try \`$0 --help' for more information." >&2;}
11675 { (exit 1); exit 1; }; };;
11676 --help | --hel | -h )
11677 echo "$ac_cs_usage"; exit 0 ;;
11678 --debug | --d* | -d )
11680 --file | --fil | --fi | --f )
11682 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11683 ac_need_defaults=false;;
11684 --header | --heade | --head | --hea )
11686 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11687 ac_need_defaults=false;;
11688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11689 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11692 # This is an error.
11693 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11694 Try \`$0 --help' for more information." >&5
11695 echo "$as_me: error: unrecognized option: $1
11696 Try \`$0 --help' for more information." >&2;}
11697 { (exit 1); exit 1; }; } ;;
11699 *) ac_config_targets="$ac_config_targets $1" ;;
11705 ac_configure_extra_args=
11707 if $ac_cs_silent; then
11709 ac_configure_extra_args="$ac_configure_extra_args --silent"
11713 cat >>$CONFIG_STATUS <<_ACEOF
11714 if \$ac_cs_recheck; then
11715 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11716 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11725 cat >>$CONFIG_STATUS <<\_ACEOF
11726 for ac_config_target in $ac_config_targets
11728 case "$ac_config_target" in
11729 # Handling of arguments.
11730 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11731 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11732 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11733 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11734 { (exit 1); exit 1; }; };;
11738 # If the user did not use the arguments to specify the items to instantiate,
11739 # then the envvar interface is used. Set only those that are not.
11740 # We use the long form for the default assignment because of an extremely
11741 # bizarre bug on SunOS 4.1.3.
11742 if $ac_need_defaults; then
11743 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11744 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11747 # Have a temporary directory for convenience. Make it in the build tree
11748 # simply because there is no reason to put it here, and in addition,
11749 # creating and moving files from /tmp can sometimes cause problems.
11750 # Create a temporary directory, and hook for its removal unless debugging.
11753 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11754 trap '{ (exit 1); exit 1; }' 1 2 13 15
11757 # Create a (secure) tmp directory for tmp files.
11760 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11761 test -n "$tmp" && test -d "$tmp"
11764 tmp=./confstat$$-$RANDOM
11765 (umask 077 && mkdir $tmp)
11768 echo "$me: cannot create a temporary directory in ." >&2
11769 { (exit 1); exit 1; }
11774 cat >>$CONFIG_STATUS <<_ACEOF
11777 # CONFIG_FILES section.
11780 # No need to generate the scripts if there are no CONFIG_FILES.
11781 # This happens for instance when ./config.status config.h
11782 if test -n "\$CONFIG_FILES"; then
11783 # Protect against being on the right side of a sed subst in config.status.
11784 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11785 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11786 s,@SHELL@,$SHELL,;t t
11787 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11788 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11789 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11790 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11791 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11792 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11793 s,@exec_prefix@,$exec_prefix,;t t
11794 s,@prefix@,$prefix,;t t
11795 s,@program_transform_name@,$program_transform_name,;t t
11796 s,@bindir@,$bindir,;t t
11797 s,@sbindir@,$sbindir,;t t
11798 s,@libexecdir@,$libexecdir,;t t
11799 s,@datadir@,$datadir,;t t
11800 s,@sysconfdir@,$sysconfdir,;t t
11801 s,@sharedstatedir@,$sharedstatedir,;t t
11802 s,@localstatedir@,$localstatedir,;t t
11803 s,@libdir@,$libdir,;t t
11804 s,@includedir@,$includedir,;t t
11805 s,@oldincludedir@,$oldincludedir,;t t
11806 s,@infodir@,$infodir,;t t
11807 s,@mandir@,$mandir,;t t
11808 s,@build_alias@,$build_alias,;t t
11809 s,@host_alias@,$host_alias,;t t
11810 s,@target_alias@,$target_alias,;t t
11811 s,@DEFS@,$DEFS,;t t
11812 s,@ECHO_C@,$ECHO_C,;t t
11813 s,@ECHO_N@,$ECHO_N,;t t
11814 s,@ECHO_T@,$ECHO_T,;t t
11815 s,@LIBS@,$LIBS,;t t
11816 s,@build@,$build,;t t
11817 s,@build_cpu@,$build_cpu,;t t
11818 s,@build_vendor@,$build_vendor,;t t
11819 s,@build_os@,$build_os,;t t
11820 s,@host@,$host,;t t
11821 s,@host_cpu@,$host_cpu,;t t
11822 s,@host_vendor@,$host_vendor,;t t
11823 s,@host_os@,$host_os,;t t
11825 s,@CFLAGS@,$CFLAGS,;t t
11826 s,@LDFLAGS@,$LDFLAGS,;t t
11827 s,@CPPFLAGS@,$CPPFLAGS,;t t
11828 s,@ac_ct_CC@,$ac_ct_CC,;t t
11829 s,@EXEEXT@,$EXEEXT,;t t
11830 s,@OBJEXT@,$OBJEXT,;t t
11832 s,@CXXFLAGS@,$CXXFLAGS,;t t
11833 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11835 s,@RANLIB@,$RANLIB,;t t
11836 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11837 s,@SET_MAKE@,$SET_MAKE,;t t
11838 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11839 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11840 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11841 s,@LN_S@,$LN_S,;t t
11842 s,@ECHO@,$ECHO,;t t
11843 s,@STRIP@,$STRIP,;t t
11844 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11845 s,@EGREP@,$EGREP,;t t
11846 s,@LIBTOOL@,$LIBTOOL,;t t
11847 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
11849 s,@SLEXT@,$SLEXT,;t t
11850 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
11851 s,@target@,$target,;t t
11852 s,@target_cpu@,$target_cpu,;t t
11853 s,@target_vendor@,$target_vendor,;t t
11854 s,@target_os@,$target_os,;t t
11855 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
11856 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
11857 s,@PACKAGE@,$PACKAGE,;t t
11858 s,@VERSION@,$VERSION,;t t
11859 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
11860 s,@lame_objects@,$lame_objects,;t t
11861 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
11862 s,@USE_GZIP@,$USE_GZIP,;t t
11863 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
11864 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
11865 s,@JPEG2SWF@,$JPEG2SWF,;t t
11866 s,@PNG2SWF@,$PNG2SWF,;t t
11867 s,@LIBOBJS@,$LIBOBJS,;t t
11868 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11873 cat >>$CONFIG_STATUS <<\_ACEOF
11874 # Split the substitutions into bite-sized pieces for seds with
11875 # small command number limits, like on Digital OSF/1 and HP-UX.
11876 ac_max_sed_lines=48
11877 ac_sed_frag=1 # Number of current file.
11878 ac_beg=1 # First line for current file.
11879 ac_end=$ac_max_sed_lines # Line after last line for current file.
11882 while $ac_more_lines; do
11883 if test $ac_beg -gt 1; then
11884 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11886 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11888 if test ! -s $tmp/subs.frag; then
11889 ac_more_lines=false
11891 # The purpose of the label and of the branching condition is to
11892 # speed up the sed processing (if there are no `@' at all, there
11893 # is no need to browse any of the substitutions).
11894 # These are the two extra sed commands mentioned above.
11896 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11897 if test -z "$ac_sed_cmds"; then
11898 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11900 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11902 ac_sed_frag=`expr $ac_sed_frag + 1`
11904 ac_end=`expr $ac_end + $ac_max_sed_lines`
11907 if test -z "$ac_sed_cmds"; then
11910 fi # test -n "$CONFIG_FILES"
11913 cat >>$CONFIG_STATUS <<\_ACEOF
11914 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11915 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11917 - | *:- | *:-:* ) # input from stdin
11919 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11920 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11921 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11923 * ) ac_file_in=$ac_file.in ;;
11926 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11927 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11928 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11929 X"$ac_file" : 'X\(//\)[^/]' \| \
11930 X"$ac_file" : 'X\(//\)$' \| \
11931 X"$ac_file" : 'X\(/\)' \| \
11932 . : '\(.\)' 2>/dev/null ||
11934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11935 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11936 /^X\(\/\/\)$/{ s//\1/; q; }
11937 /^X\(\/\).*/{ s//\1/; q; }
11939 { if $as_mkdir_p; then
11944 while test ! -d "$as_dir"; do
11945 as_dirs="$as_dir $as_dirs"
11946 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11948 X"$as_dir" : 'X\(//\)[^/]' \| \
11949 X"$as_dir" : 'X\(//\)$' \| \
11950 X"$as_dir" : 'X\(/\)' \| \
11951 . : '\(.\)' 2>/dev/null ||
11953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11955 /^X\(\/\/\)$/{ s//\1/; q; }
11956 /^X\(\/\).*/{ s//\1/; q; }
11959 test ! -n "$as_dirs" || mkdir $as_dirs
11960 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11961 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11962 { (exit 1); exit 1; }; }; }
11966 if test "$ac_dir" != .; then
11967 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11968 # A "../" for each directory in $ac_dir_suffix.
11969 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11971 ac_dir_suffix= ac_top_builddir=
11975 .) # No --srcdir option. We are building in place.
11977 if test -z "$ac_top_builddir"; then
11980 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11982 [\\/]* | ?:[\\/]* ) # Absolute path.
11983 ac_srcdir=$srcdir$ac_dir_suffix;
11984 ac_top_srcdir=$srcdir ;;
11985 *) # Relative path.
11986 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11987 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11990 # Do not use `cd foo && pwd` to compute absolute paths, because
11991 # the directories may not exist.
11993 .) ac_abs_builddir="$ac_dir";;
11996 .) ac_abs_builddir=`pwd`;;
11997 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11998 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12001 case $ac_abs_builddir in
12002 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12004 case ${ac_top_builddir}. in
12005 .) ac_abs_top_builddir=$ac_abs_builddir;;
12006 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12007 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12010 case $ac_abs_builddir in
12011 .) ac_abs_srcdir=$ac_srcdir;;
12014 .) ac_abs_srcdir=$ac_abs_builddir;;
12015 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12016 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12019 case $ac_abs_builddir in
12020 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12022 case $ac_top_srcdir in
12023 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12024 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12025 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12031 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12032 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12035 if test x"$ac_file" != x-; then
12036 { echo "$as_me:$LINENO: creating $ac_file" >&5
12037 echo "$as_me: creating $ac_file" >&6;}
12040 # Let's still pretend it is `configure' which instantiates (i.e., don't
12041 # use $as_me), people would be surprised to read:
12042 # /* config.h. Generated by config.status. */
12043 if test x"$ac_file" = x-; then
12046 configure_input="$ac_file. "
12048 configure_input=$configure_input"Generated from `echo $ac_file_in |
12049 sed 's,.*/,,'` by configure."
12051 # First look for the input files in the build tree, otherwise in the
12053 ac_file_inputs=`IFS=:
12054 for f in $ac_file_in; do
12056 -) echo $tmp/stdin ;;
12058 # Absolute (can't be DOS-style, as IFS=:)
12059 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12060 echo "$as_me: error: cannot find input file: $f" >&2;}
12061 { (exit 1); exit 1; }; }
12064 if test -f "$f"; then
12067 elif test -f "$srcdir/$f"; then
12072 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12073 echo "$as_me: error: cannot find input file: $f" >&2;}
12074 { (exit 1); exit 1; }; }
12077 done` || { (exit 1); exit 1; }
12079 cat >>$CONFIG_STATUS <<_ACEOF
12083 cat >>$CONFIG_STATUS <<\_ACEOF
12085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12086 s,@configure_input@,$configure_input,;t t
12087 s,@srcdir@,$ac_srcdir,;t t
12088 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12089 s,@top_srcdir@,$ac_top_srcdir,;t t
12090 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12091 s,@builddir@,$ac_builddir,;t t
12092 s,@abs_builddir@,$ac_abs_builddir,;t t
12093 s,@top_builddir@,$ac_top_builddir,;t t
12094 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12095 s,@INSTALL@,$ac_INSTALL,;t t
12096 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12098 if test x"$ac_file" != x-; then
12099 mv $tmp/out $ac_file
12107 cat >>$CONFIG_STATUS <<\_ACEOF
12110 # CONFIG_HEADER section.
12113 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12114 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12116 # ac_d sets the value in "#define NAME VALUE" lines.
12117 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12118 ac_dB='[ ].*$,\1#\2'
12121 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12122 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12123 ac_uB='$,\1#\2define\3'
12127 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12128 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12130 - | *:- | *:-:* ) # input from stdin
12132 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12133 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12134 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12135 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12136 * ) ac_file_in=$ac_file.in ;;
12139 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12140 echo "$as_me: creating $ac_file" >&6;}
12142 # First look for the input files in the build tree, otherwise in the
12144 ac_file_inputs=`IFS=:
12145 for f in $ac_file_in; do
12147 -) echo $tmp/stdin ;;
12149 # Absolute (can't be DOS-style, as IFS=:)
12150 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12151 echo "$as_me: error: cannot find input file: $f" >&2;}
12152 { (exit 1); exit 1; }; }
12153 # Do quote $f, to prevent DOS paths from being IFS'd.
12156 if test -f "$f"; then
12159 elif test -f "$srcdir/$f"; then
12164 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12165 echo "$as_me: error: cannot find input file: $f" >&2;}
12166 { (exit 1); exit 1; }; }
12169 done` || { (exit 1); exit 1; }
12170 # Remove the trailing spaces.
12171 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12175 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12176 # `conftest.undefs', that substitutes the proper values into
12177 # config.h.in to produce config.h. The first handles `#define'
12178 # templates, and the second `#undef' templates.
12179 # And first: Protect against being on the right side of a sed subst in
12180 # config.status. Protect against being in an unquoted here document
12181 # in config.status.
12182 rm -f conftest.defines conftest.undefs
12183 # Using a here document instead of a string reduces the quoting nightmare.
12184 # Putting comments in sed scripts is not portable.
12186 # `end' is used to avoid that the second main sed command (meant for
12187 # 0-ary CPP macros) applies to n-ary macro definitions.
12188 # See the Autoconf documentation for `clear'.
12189 cat >confdef2sed.sed <<\_ACEOF
12194 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12196 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12199 # If some macros were called several times there might be several times
12200 # the same #defines, which is useless. Nevertheless, we may not want to
12201 # sort them, since we want the *last* AC-DEFINE to be honored.
12202 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12203 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12204 rm -f confdef2sed.sed
12206 # This sed command replaces #undef with comments. This is necessary, for
12207 # example, in the case of _POSIX_SOURCE, which is predefined and required
12208 # on some systems where configure will not decide to define it.
12209 cat >>conftest.undefs <<\_ACEOF
12210 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12213 # Break up conftest.defines because some shells have a limit on the size
12214 # of here documents, and old seds have small limits too (100 cmds).
12215 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12216 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12217 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12218 echo ' :' >>$CONFIG_STATUS
12219 rm -f conftest.tail
12220 while grep . conftest.defines >/dev/null
12222 # Write a limited-size here document to $tmp/defines.sed.
12223 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12224 # Speed up: don't consider the non `#define' lines.
12225 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12226 # Work around the forget-to-reset-the-flag bug.
12227 echo 't clr' >>$CONFIG_STATUS
12228 echo ': clr' >>$CONFIG_STATUS
12229 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12231 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12233 mv $tmp/out $tmp/in
12235 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12236 rm -f conftest.defines
12237 mv conftest.tail conftest.defines
12239 rm -f conftest.defines
12240 echo ' fi # grep' >>$CONFIG_STATUS
12241 echo >>$CONFIG_STATUS
12243 # Break up conftest.undefs because some shells have a limit on the size
12244 # of here documents, and old seds have small limits too (100 cmds).
12245 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12246 rm -f conftest.tail
12247 while grep . conftest.undefs >/dev/null
12249 # Write a limited-size here document to $tmp/undefs.sed.
12250 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12251 # Speed up: don't consider the non `#undef'
12252 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12253 # Work around the forget-to-reset-the-flag bug.
12254 echo 't clr' >>$CONFIG_STATUS
12255 echo ': clr' >>$CONFIG_STATUS
12256 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12258 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12260 mv $tmp/out $tmp/in
12262 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12263 rm -f conftest.undefs
12264 mv conftest.tail conftest.undefs
12266 rm -f conftest.undefs
12268 cat >>$CONFIG_STATUS <<\_ACEOF
12269 # Let's still pretend it is `configure' which instantiates (i.e., don't
12270 # use $as_me), people would be surprised to read:
12271 # /* config.h. Generated by config.status. */
12272 if test x"$ac_file" = x-; then
12273 echo "/* Generated by configure. */" >$tmp/config.h
12275 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12277 cat $tmp/in >>$tmp/config.h
12279 if test x"$ac_file" != x-; then
12280 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12281 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12282 echo "$as_me: $ac_file is unchanged" >&6;}
12284 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12286 X"$ac_file" : 'X\(//\)[^/]' \| \
12287 X"$ac_file" : 'X\(//\)$' \| \
12288 X"$ac_file" : 'X\(/\)' \| \
12289 . : '\(.\)' 2>/dev/null ||
12291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12292 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12293 /^X\(\/\/\)$/{ s//\1/; q; }
12294 /^X\(\/\).*/{ s//\1/; q; }
12296 { if $as_mkdir_p; then
12301 while test ! -d "$as_dir"; do
12302 as_dirs="$as_dir $as_dirs"
12303 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12305 X"$as_dir" : 'X\(//\)[^/]' \| \
12306 X"$as_dir" : 'X\(//\)$' \| \
12307 X"$as_dir" : 'X\(/\)' \| \
12308 . : '\(.\)' 2>/dev/null ||
12310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12312 /^X\(\/\/\)$/{ s//\1/; q; }
12313 /^X\(\/\).*/{ s//\1/; q; }
12316 test ! -n "$as_dirs" || mkdir $as_dirs
12317 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12318 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12319 { (exit 1); exit 1; }; }; }
12322 mv $tmp/config.h $ac_file
12326 rm -f $tmp/config.h
12331 cat >>$CONFIG_STATUS <<\_ACEOF
12333 { (exit 0); exit 0; }
12335 chmod +x $CONFIG_STATUS
12336 ac_clean_files=$ac_clean_files_save
12339 # configure is writing to config.log, and then calls config.status.
12340 # config.status does its own redirection, appending to config.log.
12341 # Unfortunately, on DOS this fails, as config.log is still kept open
12342 # by configure, so config.status won't be able to write to it; its
12343 # output is simply discarded. So we exec the FD to /dev/null,
12344 # effectively closing config.log, so it can be properly (re)opened and
12345 # appended to by config.status. When coming back to configure, we
12346 # need to make the FD available again.
12347 if test "$no_create" != yes; then
12349 ac_config_status_args=
12350 test "$silent" = yes &&
12351 ac_config_status_args="$ac_config_status_args --quiet"
12353 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12355 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12356 # would make configure fail if this is the last instruction.
12357 $ac_cs_success || { (exit 1); exit 1; }
12361 if test "x${srcdir}" != "x."; then
12362 echo "Warning: --srcdir is not supported"