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 SHARED 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 AREXT AR SLEXT target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H FREETYPE_CONFIG lame_objects AVIFILE_CONFIG VIDEO_LIBS VIDEO_CFLAGS USE_GZIP PYTHON_LIB PYTHON_INCLUDES JPEG2SWF GIF2SWF 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-profiling turn on profiling
1023 --enable-warnings turn on compiler warnings
1024 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1025 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1026 --enable-shared=PKGS build shared libraries default=yes
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1032 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1033 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1034 --with-gnu-ld assume the C compiler uses GNU ld default=no
1035 --with-pic try to use only PIC/non-PIC objects default=use both
1037 Some influential environment variables:
1038 CC C compiler command
1039 CFLAGS C compiler flags
1040 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1041 nonstandard directory <lib dir>
1042 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1043 headers in a nonstandard directory <include dir>
1044 CXX C++ compiler command
1045 CXXFLAGS C++ compiler flags
1048 Use these variables to override the choices made by `configure' or to help
1049 it to find libraries and programs with nonstandard names/locations.
1054 if test "$ac_init_help" = "recursive"; then
1055 # If there are subdirs, report their specific --help.
1057 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058 test -d $ac_dir || continue
1061 if test "$ac_dir" != .; then
1062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063 # A "../" for each directory in $ac_dir_suffix.
1064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1066 ac_dir_suffix= ac_top_builddir=
1070 .) # No --srcdir option. We are building in place.
1072 if test -z "$ac_top_builddir"; then
1075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1077 [\\/]* | ?:[\\/]* ) # Absolute path.
1078 ac_srcdir=$srcdir$ac_dir_suffix;
1079 ac_top_srcdir=$srcdir ;;
1081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1085 # Do not use `cd foo && pwd` to compute absolute paths, because
1086 # the directories may not exist.
1088 .) ac_abs_builddir="$ac_dir";;
1091 .) ac_abs_builddir=`pwd`;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1096 case $ac_abs_builddir in
1097 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1099 case ${ac_top_builddir}. in
1100 .) ac_abs_top_builddir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1105 case $ac_abs_builddir in
1106 .) ac_abs_srcdir=$ac_srcdir;;
1109 .) ac_abs_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1117 case $ac_top_srcdir in
1118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1125 # Check for guested configure; otherwise get Cygnus style configure.
1126 if test -f $ac_srcdir/configure.gnu; then
1128 $SHELL $ac_srcdir/configure.gnu --help=recursive
1129 elif test -f $ac_srcdir/configure; then
1131 $SHELL $ac_srcdir/configure --help=recursive
1132 elif test -f $ac_srcdir/configure.ac ||
1133 test -f $ac_srcdir/configure.in; then
1135 $ac_configure --help
1137 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1143 test -n "$ac_init_help" && exit 0
1144 if $ac_init_version; then
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1158 It was created by $as_me, which was
1159 generated by GNU Autoconf 2.59. Invocation command line was
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1218 ac_must_keep_next=false
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1247 -* ) ac_must_keep_next=true ;;
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log. We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1276 # The following way of writing the cache mishandles newlines in values,
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1299 for ac_var in $ac_subst_vars
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1306 if test -n "$ac_subst_files"; then
1313 for ac_var in $ac_subst_files
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1321 if test -s confdefs.h; then
1328 sed "/^$/d" confdefs.h | sort
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1339 for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1349 # Predefined preprocessor variables.
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1385 for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1394 if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1411 # Check that the precious variables saved in the cache have kept the same
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
1432 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1433 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1434 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1435 echo "$as_me: former value: $ac_old_val" >&2;}
1436 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1437 echo "$as_me: current value: $ac_new_val" >&2;}
1438 ac_cache_corrupted=:
1441 # Pass precious variables to config.status.
1442 if test "$ac_new_set" = set; then
1444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 *) ac_arg=$ac_var=$ac_new_val ;;
1448 case " $ac_configure_args " in
1449 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1450 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1454 if $ac_cache_corrupted; then
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1488 # Check whether --enable-checkmem or --disable-checkmem was given.
1489 if test "${enable_checkmem+set}" = set; then
1490 enableval="$enable_checkmem"
1493 # Check whether --enable-debug or --disable-debug was given.
1494 if test "${enable_debug+set}" = set; then
1495 enableval="$enable_debug"
1498 # Check whether --enable-profiling or --disable-profiling was given.
1499 if test "${enable_profiling+set}" = set; then
1500 enableval="$enable_profiling"
1503 # Check whether --enable-warnings or --disable-warnings was given.
1504 if test "${enable_warnings+set}" = set; then
1505 enableval="$enable_warnings"
1506 ENABLE_WARNINGS=true
1508 # Check whether --enable-optimizations or --disable-optimizations was given.
1509 if test "${enable_optimizations+set}" = set; then
1510 enableval="$enable_optimizations"
1513 # Check whether --enable-lame or --disable-lame was given.
1514 if test "${enable_lame+set}" = set; then
1515 enableval="$enable_lame"
1520 VERSION=2005-06-25-1446
1523 # ------------------------------------------------------------------
1525 if test "x${srcdir}" != "x."; then
1526 echo "--srcdir is not supported"
1530 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1531 if test "x$ENABLE_WARNINGS" '!=' "x";then
1532 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1535 if test "x$CHECKMEM" '!=' "x";then
1538 if test "x$PROFILING" '!=' "x";then
1541 if test "x$DEBUG" '!=' "x";then
1542 if test "x$PROFILING" = "x";then
1543 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1544 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1546 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1547 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1548 LDFLAGS="-g -pg $LIBS"
1550 else if test "x$OPTIMIZE" '!=' "x"; then
1551 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1552 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1554 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1555 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1559 #if test "x$OLDGCC" '!=' "x";then
1560 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1561 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1562 # CFLAGS="$CFLAGS -ansi -pendantic"
1563 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1566 export PACKAGE VERSION CFLAGS CXXFLAGS
1570 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1571 if test -f $ac_dir/install-sh; then
1573 ac_install_sh="$ac_aux_dir/install-sh -c"
1575 elif test -f $ac_dir/install.sh; then
1577 ac_install_sh="$ac_aux_dir/install.sh -c"
1579 elif test -f $ac_dir/shtool; then
1581 ac_install_sh="$ac_aux_dir/shtool install -c"
1585 if test -z "$ac_aux_dir"; then
1586 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1587 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1588 { (exit 1); exit 1; }; }
1590 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1591 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1592 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1594 # Make sure we can run config.sub.
1595 $ac_config_sub sun4 >/dev/null 2>&1 ||
1596 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1597 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1598 { (exit 1); exit 1; }; }
1600 echo "$as_me:$LINENO: checking build system type" >&5
1601 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1602 if test "${ac_cv_build+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 ac_cv_build_alias=$build_alias
1606 test -z "$ac_cv_build_alias" &&
1607 ac_cv_build_alias=`$ac_config_guess`
1608 test -z "$ac_cv_build_alias" &&
1609 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1610 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1611 { (exit 1); exit 1; }; }
1612 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1613 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1614 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1615 { (exit 1); exit 1; }; }
1618 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1619 echo "${ECHO_T}$ac_cv_build" >&6
1621 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626 echo "$as_me:$LINENO: checking host system type" >&5
1627 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1628 if test "${ac_cv_host+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 ac_cv_host_alias=$host_alias
1632 test -z "$ac_cv_host_alias" &&
1633 ac_cv_host_alias=$ac_cv_build_alias
1634 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1640 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1641 echo "${ECHO_T}$ac_cv_host" >&6
1643 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1655 CXXFLAGS="$CXXFLAGS -fno-rtti"
1657 # Use fink packages if available.
1658 #if test -d /sw/include && test -d /sw/lib; then
1659 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
1660 # LDFLAGS="${LDFLAGS} -L/sw/lib"
1668 ac_cpp='$CPP $CPPFLAGS'
1669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1672 if test -n "$ac_tool_prefix"; then
1673 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1674 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 if test -n "$CC"; then
1681 ac_cv_prog_CC="$CC" # Let the user override the test.
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 if test -n "$CC"; then
1701 echo "$as_me:$LINENO: result: $CC" >&5
1702 echo "${ECHO_T}$CC" >&6
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1709 if test -z "$ac_cv_prog_CC"; then
1711 # Extract the first word of "gcc", so it can be a program name with args.
1712 set dummy gcc; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 if test -n "$ac_ct_CC"; then
1719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 test -z "$as_dir" && as_dir=.
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_ac_ct_CC="gcc"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1738 if test -n "$ac_ct_CC"; then
1739 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1740 echo "${ECHO_T}$ac_ct_CC" >&6
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1751 if test -z "$CC"; then
1752 if test -n "$ac_tool_prefix"; then
1753 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1754 set dummy ${ac_tool_prefix}cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 if test -n "$CC"; then
1761 ac_cv_prog_CC="$CC" # Let the user override the test.
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_CC="${ac_tool_prefix}cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 if test -n "$CC"; then
1781 echo "$as_me:$LINENO: result: $CC" >&5
1782 echo "${ECHO_T}$CC" >&6
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1789 if test -z "$ac_cv_prog_CC"; then
1791 # Extract the first word of "cc", so it can be a program name with args.
1792 set dummy cc; ac_word=$2
1793 echo "$as_me:$LINENO: checking for $ac_word" >&5
1794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 if test -n "$ac_ct_CC"; then
1799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 test -z "$as_dir" && as_dir=.
1806 for ac_exec_ext in '' $ac_executable_extensions; do
1807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808 ac_cv_prog_ac_ct_CC="cc"
1809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1818 if test -n "$ac_ct_CC"; then
1819 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1820 echo "${ECHO_T}$ac_ct_CC" >&6
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1832 if test -z "$CC"; then
1833 # Extract the first word of "cc", so it can be a program name with args.
1834 set dummy cc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 test -z "$as_dir" && as_dir=.
1849 for ac_exec_ext in '' $ac_executable_extensions; do
1850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1852 ac_prog_rejected=yes
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 if test $ac_prog_rejected = yes; then
1863 # We found a bogon in the path, so make sure we never use it.
1864 set dummy $ac_cv_prog_CC
1866 if test $# != 0; then
1867 # We chose a different compiler from the bogus one.
1868 # However, it has the same basename, so the bogon will be chosen
1869 # first if we set CC to just the basename; use the full file name.
1871 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1886 if test -z "$CC"; then
1887 if test -n "$ac_tool_prefix"; then
1890 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1891 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 if test -n "$CC"; then
1898 ac_cv_prog_CC="$CC" # Let the user override the test.
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 if test -n "$CC"; then
1918 echo "$as_me:$LINENO: result: $CC" >&5
1919 echo "${ECHO_T}$CC" >&6
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1925 test -n "$CC" && break
1928 if test -z "$CC"; then
1932 # Extract the first word of "$ac_prog", so it can be a program name with args.
1933 set dummy $ac_prog; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test -n "$ac_ct_CC"; then
1940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_ac_ct_CC="$ac_prog"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1959 if test -n "$ac_ct_CC"; then
1960 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1961 echo "${ECHO_T}$ac_ct_CC" >&6
1963 echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1967 test -n "$ac_ct_CC" && break
1976 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1977 See \`config.log' for more details." >&5
1978 echo "$as_me: error: no acceptable C compiler found in \$PATH
1979 See \`config.log' for more details." >&2;}
1980 { (exit 1); exit 1; }; }
1982 # Provide some information about the compiler.
1983 echo "$as_me:$LINENO:" \
1984 "checking for C compiler version" >&5
1985 ac_compiler=`set X $ac_compile; echo $2`
1986 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1987 (eval $ac_compiler --version </dev/null >&5) 2>&5
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); }
1991 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1992 (eval $ac_compiler -v </dev/null >&5) 2>&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }
1996 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1997 (eval $ac_compiler -V </dev/null >&5) 2>&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }
2002 cat >conftest.$ac_ext <<_ACEOF
2005 cat confdefs.h >>conftest.$ac_ext
2006 cat >>conftest.$ac_ext <<_ACEOF
2007 /* end confdefs.h. */
2017 ac_clean_files_save=$ac_clean_files
2018 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2019 # Try to create an executable without -o first, disregard a.out.
2020 # It will help us diagnose broken compilers, and finding out an intuition
2022 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2023 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2024 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2025 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2026 (eval $ac_link_default) 2>&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; then
2030 # Find the output, starting from the most likely. This scheme is
2031 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2034 # Be careful to initialize this variable, since it used to be cached.
2035 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2037 # b.out is created by i960 compilers.
2038 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2040 test -f "$ac_file" || continue
2042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2045 # This is the source file.
2048 # We found the default executable, but exeext='' is most
2052 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2053 # FIXME: I believe we export ac_cv_exeext for Libtool,
2054 # but it would be cool to find out if it's true. Does anybody
2055 # maintain Libtool? --akim.
2063 echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2066 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2067 See \`config.log' for more details." >&5
2068 echo "$as_me: error: C compiler cannot create executables
2069 See \`config.log' for more details." >&2;}
2070 { (exit 77); exit 77; }; }
2073 ac_exeext=$ac_cv_exeext
2074 echo "$as_me:$LINENO: result: $ac_file" >&5
2075 echo "${ECHO_T}$ac_file" >&6
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 the C compiler works" >&5
2080 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2081 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2082 # If not cross compiling, check that we can run a simple program.
2083 if test "$cross_compiling" != yes; then
2084 if { ac_try='./$ac_file'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2092 if test "$cross_compiling" = maybe; then
2095 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2096 If you meant to cross compile, use \`--host'.
2097 See \`config.log' for more details." >&5
2098 echo "$as_me: error: cannot run C compiled programs.
2099 If you meant to cross compile, use \`--host'.
2100 See \`config.log' for more details." >&2;}
2101 { (exit 1); exit 1; }; }
2105 echo "$as_me:$LINENO: result: yes" >&5
2106 echo "${ECHO_T}yes" >&6
2108 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2109 ac_clean_files=$ac_clean_files_save
2110 # Check the compiler produces executables we can run. If not, either
2111 # the compiler is broken, or we cross compile.
2112 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2113 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2114 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2115 echo "${ECHO_T}$cross_compiling" >&6
2117 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2118 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2120 (eval $ac_link) 2>&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; then
2124 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2125 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2126 # work properly (i.e., refer to `conftest.exe'), while it won't with
2128 for ac_file in conftest.exe conftest conftest.*; do
2129 test -f "$ac_file" || continue
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2132 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2142 See \`config.log' for more details." >&2;}
2143 { (exit 1); exit 1; }; }
2146 rm -f conftest$ac_cv_exeext
2147 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2148 echo "${ECHO_T}$ac_cv_exeext" >&6
2150 rm -f conftest.$ac_ext
2151 EXEEXT=$ac_cv_exeext
2153 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2154 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2155 if test "${ac_cv_objext+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 cat >conftest.$ac_ext <<_ACEOF
2161 cat confdefs.h >>conftest.$ac_ext
2162 cat >>conftest.$ac_ext <<_ACEOF
2163 /* end confdefs.h. */
2173 rm -f conftest.o conftest.obj
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2190 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2193 See \`config.log' for more details." >&2;}
2194 { (exit 1); exit 1; }; }
2197 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2199 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2200 echo "${ECHO_T}$ac_cv_objext" >&6
2201 OBJEXT=$ac_cv_objext
2203 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2204 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2205 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 cat >conftest.$ac_ext <<_ACEOF
2211 cat confdefs.h >>conftest.$ac_ext
2212 cat >>conftest.$ac_ext <<_ACEOF
2213 /* end confdefs.h. */
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2230 grep -v '^ *+' conftest.er1 >conftest.err
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2256 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2259 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2260 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2261 GCC=`test $ac_compiler_gnu = yes && echo yes`
2262 ac_test_CFLAGS=${CFLAGS+set}
2263 ac_save_CFLAGS=$CFLAGS
2265 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2266 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2267 if test "${ac_cv_prog_cc_g+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 cat >conftest.$ac_ext <<_ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>conftest.er1
2289 grep -v '^ *+' conftest.er1 >conftest.err
2291 cat conftest.err >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try='test -z "$ac_c_werror_flag"
2295 || test ! -s conftest.err'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; } &&
2301 { ac_try='test -s conftest.$ac_objext'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; }; then
2309 echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2316 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2317 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2318 if test "$ac_test_CFLAGS" = set; then
2319 CFLAGS=$ac_save_CFLAGS
2320 elif test $ac_cv_prog_cc_g = yes; then
2321 if test "$GCC" = yes; then
2327 if test "$GCC" = yes; then
2333 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2334 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2335 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 ac_cv_prog_cc_stdc=no
2340 cat >conftest.$ac_ext <<_ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2348 #include <sys/types.h>
2349 #include <sys/stat.h>
2350 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2351 struct buf { int x; };
2352 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2353 static char *e (p, i)
2359 static char *f (char * (*g) (char **, int), char **p, ...)
2364 s = g (p, va_arg (v,int));
2369 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2370 function prototypes and stuff, but not '\xHH' hex character constants.
2371 These don't provoke an error unfortunately, instead are silently treated
2372 as 'x'. The following induces an error, until -std1 is added to get
2373 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2374 array size at least. It's necessary to write '\x00'==0 to get something
2375 that's true only with -std1. */
2376 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2378 int test (int i, double x);
2379 struct s1 {int (*f) (int a);};
2380 struct s2 {int (*f) (double a);};
2381 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2387 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2392 # Don't try gcc -ansi; that turns off useful extensions and
2393 # breaks some systems' header files.
2394 # AIX -qlanglvl=ansi
2395 # Ultrix and OSF/1 -std1
2396 # HP-UX 10.20 and later -Ae
2397 # HP-UX older versions -Aa -D_HPUX_SOURCE
2398 # SVR4 -Xc -D__EXTENSIONS__
2399 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2401 CC="$ac_save_CC $ac_arg"
2402 rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 (eval $ac_compile) 2>conftest.er1
2406 grep -v '^ *+' conftest.er1 >conftest.err
2408 cat conftest.err >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } &&
2411 { ac_try='test -z "$ac_c_werror_flag"
2412 || test ! -s conftest.err'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 ac_cv_prog_cc_stdc=$ac_arg
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2431 rm -f conftest.err conftest.$ac_objext
2433 rm -f conftest.$ac_ext conftest.$ac_objext
2438 case "x$ac_cv_prog_cc_stdc" in
2440 echo "$as_me:$LINENO: result: none needed" >&5
2441 echo "${ECHO_T}none needed" >&6 ;;
2443 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2444 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2445 CC="$CC $ac_cv_prog_cc_stdc" ;;
2448 # Some people use a C++ compiler to compile C. Since we use `exit',
2449 # in C++ we need to declare it. In case someone uses the same compiler
2450 # for both compiling C and C++ we need to have the C++ compiler decide
2451 # the declaration of exit, since it's the most demanding environment.
2452 cat >conftest.$ac_ext <<_ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459 (eval $ac_compile) 2>conftest.er1
2461 grep -v '^ *+' conftest.er1 >conftest.err
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } &&
2466 { ac_try='test -z "$ac_c_werror_flag"
2467 || test ! -s conftest.err'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2479 for ac_declaration in \
2481 'extern "C" void std::exit (int) throw (); using std::exit;' \
2482 'extern "C" void std::exit (int); using std::exit;' \
2483 'extern "C" void exit (int) throw ();' \
2484 'extern "C" void exit (int);' \
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2503 rm -f conftest.$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>conftest.er1
2507 grep -v '^ *+' conftest.er1 >conftest.err
2509 cat conftest.err >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try='test -z "$ac_c_werror_flag"
2513 || test ! -s conftest.err'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; } &&
2519 { ac_try='test -s conftest.$ac_objext'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; }; then
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2533 cat >conftest.$ac_ext <<_ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h. */
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>conftest.er1
2552 grep -v '^ *+' conftest.er1 >conftest.err
2554 cat conftest.err >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } &&
2557 { ac_try='test -z "$ac_c_werror_flag"
2558 || test ! -s conftest.err'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2579 if test -n "$ac_declaration"; then
2580 echo '#ifdef __cplusplus' >>confdefs.h
2581 echo $ac_declaration >>confdefs.h
2582 echo '#endif' >>confdefs.h
2586 echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598 ac_cpp='$CXXCPP $CPPFLAGS'
2599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2602 if test -n "$ac_tool_prefix"; then
2603 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2607 echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609 if test "${ac_cv_prog_CXX+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 if test -n "$CXX"; then
2613 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 if test -n "$CXX"; then
2633 echo "$as_me:$LINENO: result: $CXX" >&5
2634 echo "${ECHO_T}$CXX" >&6
2636 echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6
2640 test -n "$CXX" && break
2643 if test -z "$CXX"; then
2645 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2647 # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 if test -n "$ac_ct_CXX"; then
2655 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_ac_ct_CXX="$ac_prog"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2674 if test -n "$ac_ct_CXX"; then
2675 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2676 echo "${ECHO_T}$ac_ct_CXX" >&6
2678 echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6
2682 test -n "$ac_ct_CXX" && break
2684 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2690 # Provide some information about the compiler.
2691 echo "$as_me:$LINENO:" \
2692 "checking for C++ compiler version" >&5
2693 ac_compiler=`set X $ac_compile; echo $2`
2694 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2695 (eval $ac_compiler --version </dev/null >&5) 2>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2700 (eval $ac_compiler -v </dev/null >&5) 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }
2704 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2705 (eval $ac_compiler -V </dev/null >&5) 2>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }
2710 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2711 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2712 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 cat >conftest.$ac_ext <<_ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2733 rm -f conftest.$ac_objext
2734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735 (eval $ac_compile) 2>conftest.er1
2737 grep -v '^ *+' conftest.er1 >conftest.err
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -z "$ac_cxx_werror_flag"
2743 || test ! -s conftest.err'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; } &&
2749 { ac_try='test -s conftest.$ac_objext'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; }; then
2757 echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2763 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2766 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2767 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2768 GXX=`test $ac_compiler_gnu = yes && echo yes`
2769 ac_test_CXXFLAGS=${CXXFLAGS+set}
2770 ac_save_CXXFLAGS=$CXXFLAGS
2772 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2773 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2774 if test "${ac_cv_prog_cxx_g+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 cat >conftest.$ac_ext <<_ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794 (eval $ac_compile) 2>conftest.er1
2796 grep -v '^ *+' conftest.er1 >conftest.err
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 { ac_try='test -z "$ac_cxx_werror_flag"
2802 || test ! -s conftest.err'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; } &&
2808 { ac_try='test -s conftest.$ac_objext'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2814 ac_cv_prog_cxx_g=yes
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2824 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2825 if test "$ac_test_CXXFLAGS" = set; then
2826 CXXFLAGS=$ac_save_CXXFLAGS
2827 elif test $ac_cv_prog_cxx_g = yes; then
2828 if test "$GXX" = yes; then
2834 if test "$GXX" = yes; then
2840 for ac_declaration in \
2842 'extern "C" void std::exit (int) throw (); using std::exit;' \
2843 'extern "C" void std::exit (int); using std::exit;' \
2844 'extern "C" void exit (int) throw ();' \
2845 'extern "C" void exit (int);' \
2848 cat >conftest.$ac_ext <<_ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>conftest.er1
2868 grep -v '^ *+' conftest.er1 >conftest.err
2870 cat conftest.err >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); } &&
2873 { ac_try='test -z "$ac_cxx_werror_flag"
2874 || test ! -s conftest.err'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; } &&
2880 { ac_try='test -s conftest.$ac_objext'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2894 cat >conftest.$ac_ext <<_ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911 (eval $ac_compile) 2>conftest.er1
2913 grep -v '^ *+' conftest.er1 >conftest.err
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } &&
2918 { ac_try='test -z "$ac_cxx_werror_flag"
2919 || test ! -s conftest.err'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; } &&
2925 { ac_try='test -s conftest.$ac_objext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2940 if test -n "$ac_declaration"; then
2941 echo '#ifdef __cplusplus' >>confdefs.h
2942 echo $ac_declaration >>confdefs.h
2943 echo '#endif' >>confdefs.h
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953 if test "x$CHECKMEM" '!=' "x";then
2957 #unset ac_cv_prog_CC
2958 #unset ac_cv_prog_CXX
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2968 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2969 # On Suns, sometimes $CPP names a directory.
2970 if test -n "$CPP" && test -d "$CPP"; then
2973 if test -z "$CPP"; then
2974 if test "${ac_cv_prog_CPP+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 # Double quotes because CPP needs to be expanded
2978 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2981 for ac_c_preproc_warn_flag in '' yes
2983 # Use a header file that comes with gcc, so configuring glibc
2984 # with a fresh cross-compiler works.
2985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2986 # <limits.h> exists even on freestanding compilers.
2987 # On the NeXT, cc -E runs the code through the compiler's parser,
2988 # not just through cpp. "Syntax error" is here to catch this case.
2989 cat >conftest.$ac_ext <<_ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
2996 # include <limits.h>
2998 # include <assert.h>
3002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3005 grep -v '^ *+' conftest.er1 >conftest.err
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } >/dev/null; then
3010 if test -s conftest.err; then
3011 ac_cpp_err=$ac_c_preproc_warn_flag
3012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3019 if test -z "$ac_cpp_err"; then
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3025 # Broken: fails on valid input.
3028 rm -f conftest.err conftest.$ac_ext
3030 # OK, works on sane cases. Now check whether non-existent headers
3031 # can be detected and how.
3032 cat >conftest.$ac_ext <<_ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3038 #include <ac_nonexistent.h>
3040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3043 grep -v '^ *+' conftest.er1 >conftest.err
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } >/dev/null; then
3048 if test -s conftest.err; then
3049 ac_cpp_err=$ac_c_preproc_warn_flag
3050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3057 if test -z "$ac_cpp_err"; then
3058 # Broken: success on invalid input.
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3064 # Passes both tests.
3068 rm -f conftest.err conftest.$ac_ext
3071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3072 rm -f conftest.err conftest.$ac_ext
3073 if $ac_preproc_ok; then
3085 echo "$as_me:$LINENO: result: $CPP" >&5
3086 echo "${ECHO_T}$CPP" >&6
3088 for ac_c_preproc_warn_flag in '' yes
3090 # Use a header file that comes with gcc, so configuring glibc
3091 # with a fresh cross-compiler works.
3092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3093 # <limits.h> exists even on freestanding compilers.
3094 # On the NeXT, cc -E runs the code through the compiler's parser,
3095 # not just through cpp. "Syntax error" is here to catch this case.
3096 cat >conftest.$ac_ext <<_ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3103 # include <limits.h>
3105 # include <assert.h>
3109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3112 grep -v '^ *+' conftest.er1 >conftest.err
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } >/dev/null; then
3117 if test -s conftest.err; then
3118 ac_cpp_err=$ac_c_preproc_warn_flag
3119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3126 if test -z "$ac_cpp_err"; then
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3132 # Broken: fails on valid input.
3135 rm -f conftest.err conftest.$ac_ext
3137 # OK, works on sane cases. Now check whether non-existent headers
3138 # can be detected and how.
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3145 #include <ac_nonexistent.h>
3147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3150 grep -v '^ *+' conftest.er1 >conftest.err
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } >/dev/null; then
3155 if test -s conftest.err; then
3156 ac_cpp_err=$ac_c_preproc_warn_flag
3157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3164 if test -z "$ac_cpp_err"; then
3165 # Broken: success on invalid input.
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 # Passes both tests.
3175 rm -f conftest.err conftest.$ac_ext
3178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3179 rm -f conftest.err conftest.$ac_ext
3180 if $ac_preproc_ok; then
3183 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3184 See \`config.log' for more details." >&5
3185 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3186 See \`config.log' for more details." >&2;}
3187 { (exit 1); exit 1; }; }
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197 if test -n "$ac_tool_prefix"; then
3198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3199 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3200 echo "$as_me:$LINENO: checking for $ac_word" >&5
3201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202 if test "${ac_cv_prog_RANLIB+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 if test -n "$RANLIB"; then
3206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 RANLIB=$ac_cv_prog_RANLIB
3225 if test -n "$RANLIB"; then
3226 echo "$as_me:$LINENO: result: $RANLIB" >&5
3227 echo "${ECHO_T}$RANLIB" >&6
3229 echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3234 if test -z "$ac_cv_prog_RANLIB"; then
3235 ac_ct_RANLIB=$RANLIB
3236 # Extract the first word of "ranlib", so it can be a program name with args.
3237 set dummy ranlib; ac_word=$2
3238 echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3240 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 if test -n "$ac_ct_RANLIB"; then
3244 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_ac_ct_RANLIB="ranlib"
3254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3263 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3264 if test -n "$ac_ct_RANLIB"; then
3265 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3266 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3268 echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6
3272 RANLIB=$ac_ct_RANLIB
3274 RANLIB="$ac_cv_prog_RANLIB"
3277 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3278 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3279 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3280 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 cat >conftest.make <<\_ACEOF
3285 @echo 'ac_maketemp="$(MAKE)"'
3287 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3288 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3289 if test -n "$ac_maketemp"; then
3290 eval ac_cv_prog_make_${ac_make}_set=yes
3292 eval ac_cv_prog_make_${ac_make}_set=no
3296 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3297 echo "$as_me:$LINENO: result: yes" >&5
3298 echo "${ECHO_T}yes" >&6
3301 echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3303 SET_MAKE="MAKE=${MAKE-make}"
3306 # Find a good install program. We prefer a C program (faster),
3307 # so one script is as good as another. But avoid the broken or
3308 # incompatible versions:
3309 # SysV /etc/install, /usr/sbin/install
3310 # SunOS /usr/etc/install
3311 # IRIX /sbin/install
3313 # AmigaOS /C/install, which installs bootblocks on floppy discs
3314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3317 # OS/2's system install, which has a completely different semantic
3318 # ./install, which can be erroneously created by make from ./install.sh.
3319 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3320 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3321 if test -z "$INSTALL"; then
3322 if test "${ac_cv_path_install+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 test -z "$as_dir" && as_dir=.
3330 # Account for people who put trailing slashes in PATH elements.
3332 ./ | .// | /cC/* | \
3333 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3334 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3337 # OSF1 and SCO ODT 3.0 have their own names for install.
3338 # Don't use installbsd from OSF since it installs stuff as root
3340 for ac_prog in ginstall scoinst install; do
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3343 if test $ac_prog = install &&
3344 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3345 # AIX install. It has an incompatible calling convention.
3347 elif test $ac_prog = install &&
3348 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3349 # program-specific install script used by HP pwplus--don't use.
3352 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3364 if test "${ac_cv_path_install+set}" = set; then
3365 INSTALL=$ac_cv_path_install
3367 # As a last resort, use the slow shell script. We don't cache a
3368 # path for INSTALL within a source directory, because that will
3369 # break other packages using the cache if that directory is
3370 # removed, or if the path is relative.
3371 INSTALL=$ac_install_sh
3374 echo "$as_me:$LINENO: result: $INSTALL" >&5
3375 echo "${ECHO_T}$INSTALL" >&6
3377 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3378 # It thinks the first close brace ends the variable substitution.
3379 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3381 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3383 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3385 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3386 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3388 if test "$LN_S" = "ln -s"; then
3389 echo "$as_me:$LINENO: result: yes" >&5
3390 echo "${ECHO_T}yes" >&6
3392 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3393 echo "${ECHO_T}no, using $LN_S" >&6
3396 # Check whether --enable-shared or --disable-shared was given.
3397 if test "${enable_shared+set}" = set; then
3398 enableval="$enable_shared"
3399 p=${PACKAGE-default}
3401 yes) enable_shared=yes ;;
3402 no) enable_shared=no ;;
3405 # Look at the argument we got. We use all the common list separators.
3406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3407 for pkg in $enableval; do
3408 if test "X$pkg" = "X$p"; then
3418 # Check whether --enable-static or --disable-static was given.
3419 if test "${enable_static+set}" = set; then
3420 enableval="$enable_static"
3421 p=${PACKAGE-default}
3423 yes) enable_static=yes ;;
3424 no) enable_static=no ;;
3427 # Look at the argument we got. We use all the common list separators.
3428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3429 for pkg in $enableval; do
3430 if test "X$pkg" = "X$p"; then
3440 # Check whether --enable-fast-install or --disable-fast-install was given.
3441 if test "${enable_fast_install+set}" = set; then
3442 enableval="$enable_fast_install"
3443 p=${PACKAGE-default}
3445 yes) enable_fast_install=yes ;;
3446 no) enable_fast_install=no ;;
3448 enable_fast_install=no
3449 # Look at the argument we got. We use all the common list separators.
3450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3451 for pkg in $enableval; do
3452 if test "X$pkg" = "X$p"; then
3453 enable_fast_install=yes
3460 enable_fast_install=yes
3462 # Find the correct PATH separator. Usually this is `:', but
3463 # DJGPP uses `;' like DOS.
3464 if test "X${PATH_SEPARATOR+set}" != Xset; then
3465 UNAME=${UNAME-`uname 2>/dev/null`}
3467 *-DOS) lt_cv_sys_path_separator=';' ;;
3468 *) lt_cv_sys_path_separator=':' ;;
3470 PATH_SEPARATOR=$lt_cv_sys_path_separator
3474 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3475 if test "${with_gnu_ld+set}" = set; then
3476 withval="$with_gnu_ld"
3477 test "$withval" = no || with_gnu_ld=yes
3482 if test "$GCC" = yes; then
3483 # Check if gcc -print-prog-name=ld gives a path.
3484 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3485 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3488 # gcc leaves a trailing carriage return which upsets mingw
3489 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3491 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3494 # Accept absolute paths.
3495 [\\/]* | [A-Za-z]:[\\/]*)
3496 re_direlt='/[^/][^/]*/\.\./'
3497 # Canonicalize the path of ld
3498 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3499 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3500 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3502 test -z "$LD" && LD="$ac_prog"
3505 # If it fails, then pretend we aren't using GCC.
3509 # If it is relative, then search for the first ld in PATH.
3513 elif test "$with_gnu_ld" = yes; then
3514 echo "$as_me:$LINENO: checking for GNU ld" >&5
3515 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3517 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3518 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3520 if test "${lt_cv_path_LD+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 if test -z "$LD"; then
3524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3525 for ac_dir in $PATH; do
3526 test -z "$ac_dir" && ac_dir=.
3527 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3528 lt_cv_path_LD="$ac_dir/$ac_prog"
3529 # Check to see if the program is GNU ld. I'd rather use --version,
3530 # but apparently some GNU ld's only accept -v.
3531 # Break only if it was the GNU/non-GNU ld that we prefer.
3532 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3533 test "$with_gnu_ld" != no && break
3535 test "$with_gnu_ld" != yes && break
3541 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3546 if test -n "$LD"; then
3547 echo "$as_me:$LINENO: result: $LD" >&5
3548 echo "${ECHO_T}$LD" >&6
3550 echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3553 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3554 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3555 { (exit 1); exit 1; }; }
3556 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3557 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3558 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3562 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3563 lt_cv_prog_gnu_ld=yes
3565 lt_cv_prog_gnu_ld=no
3568 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3569 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3570 with_gnu_ld=$lt_cv_prog_gnu_ld
3573 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3574 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3575 if test "${lt_cv_ld_reload_flag+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 lt_cv_ld_reload_flag='-r'
3580 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3581 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3582 reload_flag=$lt_cv_ld_reload_flag
3583 test -n "$reload_flag" && reload_flag=" $reload_flag"
3585 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3586 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3587 if test "${lt_cv_path_NM+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 if test -n "$NM"; then
3591 # Let the user override the test.
3594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3595 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3596 test -z "$ac_dir" && ac_dir=.
3597 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3598 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3599 # Check to see if the nm accepts a BSD-compat flag.
3600 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3601 # nm: unknown option "B" ignored
3602 # Tru64's nm complains that /dev/null is an invalid object file
3603 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3604 lt_cv_path_NM="$tmp_nm -B"
3606 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3607 lt_cv_path_NM="$tmp_nm -p"
3610 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3611 continue # so that we can try to find one that supports BSD flags
3616 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3621 echo "$as_me:$LINENO: result: $NM" >&5
3622 echo "${ECHO_T}$NM" >&6
3624 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3625 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3626 if test "${lt_cv_path_SED+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 # Loop through the user's path and test for sed and gsed.
3630 # Then use that list of sed's as ones to test for truncation.
3631 as_executable_p="test -f"
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 test -z "$as_dir" && as_dir=.
3637 for ac_prog in sed gsed; do
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3640 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3646 # Create a temporary directory, and hook for its removal unless debugging.
3649 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3650 trap '{ (exit 1); exit 1; }' 1 2 13 15
3653 # Create a (secure) tmp directory for tmp files.
3656 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3657 test -n "$tmp" && test -d "$tmp"
3660 tmp=$TMPDIR/sed$$-$RANDOM
3661 (umask 077 && mkdir $tmp)
3664 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3665 { (exit 1); exit 1; }
3669 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3670 # along with /bin/sed that truncates output.
3671 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3672 test ! -f ${_sed} && break
3673 cat /dev/null > "$tmp/sed.in"
3675 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3676 # Check for GNU sed and select it if it is found.
3677 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3678 lt_cv_path_SED=${_sed}
3682 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3683 mv "$tmp/sed.tmp" "$tmp/sed.in"
3684 cp "$tmp/sed.in" "$tmp/sed.nl"
3685 echo >>"$tmp/sed.nl"
3686 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3687 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3688 # 40000 chars as input seems more than enough
3689 test $_count -gt 10 && break
3690 _count=`expr $_count + 1`
3691 if test $_count -gt $_max; then
3693 lt_cv_path_SED=$_sed
3701 if test "X$SED" != "X"; then
3706 echo "$as_me:$LINENO: result: $SED" >&5
3707 echo "${ECHO_T}$SED" >&6
3709 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3710 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3711 if test "${lt_cv_deplibs_check_method+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 lt_cv_file_magic_cmd='$MAGIC_CMD'
3715 lt_cv_file_magic_test_file=
3716 lt_cv_deplibs_check_method='unknown'
3717 # Need to set the preceding variable on all platforms that support
3718 # interlibrary dependencies.
3719 # 'none' -- dependencies not supported.
3720 # `unknown' -- same as none, but documents that we really don't know.
3721 # 'pass_all' -- all dependencies passed with no checks.
3722 # 'test_compile' -- check by making test program.
3723 # 'file_magic [[regex]]' -- check by looking for files in library path
3724 # which responds to the $file_magic_cmd with a given egrep regex.
3725 # If you have `file' or equivalent on your system and you're not sure
3726 # whether `pass_all' will *always* work, you probably want this one.
3730 lt_cv_deplibs_check_method=pass_all
3734 lt_cv_deplibs_check_method=pass_all
3738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3739 lt_cv_file_magic_cmd='/usr/bin/file -L'
3740 lt_cv_file_magic_test_file=/shlib/libc.so
3743 cygwin* | mingw* | pw32*)
3744 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3745 lt_cv_file_magic_cmd='$OBJDUMP -f'
3748 darwin* | rhapsody*)
3749 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3750 lt_cv_file_magic_cmd='/usr/bin/file -L'
3752 rhapsody* | darwin1.[012])
3753 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3756 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3762 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3765 # Not sure whether the presence of OpenBSD here was a mistake.
3766 # Let's accept both of them until this is cleared up.
3767 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3768 lt_cv_file_magic_cmd=/usr/bin/file
3769 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3773 lt_cv_deplibs_check_method=pass_all
3778 lt_cv_deplibs_check_method=pass_all
3782 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3783 lt_cv_file_magic_cmd=/usr/bin/file
3784 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3787 irix5* | irix6* | nonstopux*)
3789 irix5* | nonstopux*)
3790 # this will be overridden with pass_all, but let us keep it just in case
3791 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3795 *-32|*"-32 ") libmagic=32-bit;;
3796 *-n32|*"-n32 ") libmagic=N32;;
3797 *-64|*"-64 ") libmagic=64-bit;;
3798 *) libmagic=never-match;;
3800 # this will be overridden with pass_all, but let us keep it just in case
3801 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3804 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3805 lt_cv_deplibs_check_method=pass_all
3808 # This must be Linux ELF.
3811 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3812 lt_cv_deplibs_check_method=pass_all ;;
3814 # glibc up to 2.1.1 does not perform some relocations on ARM
3815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3817 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3821 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3822 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3824 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3829 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3830 lt_cv_file_magic_cmd=/usr/bin/file
3831 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3835 lt_cv_file_magic_cmd=/usr/bin/file
3836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3837 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3840 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3844 osf3* | osf4* | osf5*)
3845 # this will be overridden with pass_all, but let us keep it just in case
3846 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3847 lt_cv_file_magic_test_file=/shlib/libc.so
3848 lt_cv_deplibs_check_method=pass_all
3852 lt_cv_deplibs_check_method=pass_all
3856 lt_cv_deplibs_check_method=pass_all
3857 lt_cv_file_magic_test_file=/lib/libc.so
3860 sysv5uw[78]* | sysv4*uw2*)
3861 lt_cv_deplibs_check_method=pass_all
3864 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3865 case $host_vendor in
3867 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]'
3868 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3871 lt_cv_deplibs_check_method=pass_all
3874 lt_cv_file_magic_cmd='/bin/file'
3875 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3878 lt_cv_file_magic_cmd='/bin/file'
3879 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3880 lt_cv_file_magic_test_file=/lib/libc.so
3883 lt_cv_deplibs_check_method=pass_all
3890 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3891 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3892 file_magic_cmd=$lt_cv_file_magic_cmd
3893 deplibs_check_method=$lt_cv_deplibs_check_method
3902 # Check for command to grab the raw symbol name followed by C symbol from nm.
3903 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3904 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3905 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 # These are sane defaults that work on at least a few old systems.
3910 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3912 # Character class describing NM global symbol codes.
3913 symcode='[BCDEGRST]'
3915 # Regexp to match symbols that can be accessed directly from C.
3916 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3918 # Transform the above into a raw symbol and a C symbol.
3919 symxfrm='\1 \2\3 \3'
3921 # Transform an extracted symbol line into a proper C declaration
3922 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3924 # Transform an extracted symbol line into symbol name and symbol address
3925 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'"
3927 # Define system-specific variables.
3932 cygwin* | mingw* | pw32*)
3933 symcode='[ABCDGISTW]'
3935 hpux*) # Its linker distinguishes data from code symbols
3936 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3937 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'"
3940 symcode='[BCDEGRST]'
3943 symcode='[BCDEGQRST]'
3953 # Handle CRLF in mingw tool chain
3957 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3961 # If we're using GNU nm, then use its standard symbol codes.
3962 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3963 symcode='[ABCDGISTW]'
3966 # Try without a prefix undercore, then with it.
3967 for ac_symprfx in "" "_"; do
3969 # Write the raw and C identifiers.
3970 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3972 # Check to see that the pipe works correctly.
3975 cat > conftest.$ac_ext <<EOF
3980 void nm_test_func(){}
3984 int main(){nm_test_var='a';nm_test_func();return(0);}
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; then
3992 # Now try to grab the symbols.
3994 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3995 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && test -s "$nlist"; then
3999 # Try sorting and uniquifying the output.
4000 if sort "$nlist" | uniq > "$nlist"T; then
4001 mv -f "$nlist"T "$nlist"
4006 # Make sure that we snagged all the symbols we need.
4007 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4008 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4009 cat <<EOF > conftest.$ac_ext
4015 # Now generate the symbol file.
4016 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4018 cat <<EOF >> conftest.$ac_ext
4019 #if defined (__STDC__) && __STDC__
4020 # define lt_ptr void *
4022 # define lt_ptr char *
4026 /* The mapping between symbol names and symbols. */
4031 lt_preloaded_symbols[] =
4034 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4035 cat <<\EOF >> conftest.$ac_ext
4043 # Now try linking the two files.
4044 mv conftest.$ac_objext conftstm.$ac_objext
4046 save_CFLAGS="$CFLAGS"
4047 LIBS="conftstm.$ac_objext"
4048 CFLAGS="$CFLAGS$no_builtin_flag"
4049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4050 (eval $ac_link) 2>&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } && test -s conftest$ac_exeext; then
4057 CFLAGS="$save_CFLAGS"
4059 echo "cannot find nm_test_func in $nlist" >&5
4062 echo "cannot find nm_test_var in $nlist" >&5
4065 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4068 echo "$progname: failed program was:" >&5
4069 cat conftest.$ac_ext >&5
4071 rm -f conftest* conftst*
4073 # Do not use the global_symbol_pipe unless it works.
4074 if test "$pipe_works" = yes; then
4077 lt_cv_sys_global_symbol_pipe=
4083 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4084 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4085 global_symbol_to_cdecl=
4086 global_symbol_to_c_name_address=
4088 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4089 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4091 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4093 echo "$as_me:$LINENO: result: failed" >&5
4094 echo "${ECHO_T}failed" >&6
4096 echo "$as_me:$LINENO: result: ok" >&5
4097 echo "${ECHO_T}ok" >&6
4101 echo "$as_me:$LINENO: checking for egrep" >&5
4102 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4103 if test "${ac_cv_prog_egrep+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4107 then ac_cv_prog_egrep='grep -E'
4108 else ac_cv_prog_egrep='egrep'
4111 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4112 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4113 EGREP=$ac_cv_prog_egrep
4116 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4117 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4118 if test "${ac_cv_header_stdc+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 cat >conftest.$ac_ext <<_ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4140 rm -f conftest.$ac_objext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4142 (eval $ac_compile) 2>conftest.er1
4144 grep -v '^ *+' conftest.er1 >conftest.err
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag"
4150 || test ! -s conftest.err'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 ac_cv_header_stdc=yes
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4167 ac_cv_header_stdc=no
4169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4171 if test $ac_cv_header_stdc = yes; then
4172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4173 cat >conftest.$ac_ext <<_ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4183 $EGREP "memchr" >/dev/null 2>&1; then
4186 ac_cv_header_stdc=no
4192 if test $ac_cv_header_stdc = yes; then
4193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204 $EGREP "free" >/dev/null 2>&1; then
4207 ac_cv_header_stdc=no
4213 if test $ac_cv_header_stdc = yes; then
4214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4215 if test "$cross_compiling" = yes; then
4218 cat >conftest.$ac_ext <<_ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4225 #if ((' ' & 0x0FF) == 0x020)
4226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4229 # define ISLOWER(c) \
4230 (('a' <= (c) && (c) <= 'i') \
4231 || ('j' <= (c) && (c) <= 'r') \
4232 || ('s' <= (c) && (c) <= 'z'))
4233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4241 for (i = 0; i < 256; i++)
4242 if (XOR (islower (i), ISLOWER (i))
4243 || toupper (i) != TOUPPER (i))
4248 rm -f conftest$ac_exeext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4250 (eval $ac_link) 2>&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4261 echo "$as_me: program exited with status $ac_status" >&5
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4266 ac_cv_header_stdc=no
4268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4272 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4273 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4274 if test $ac_cv_header_stdc = yes; then
4276 cat >>confdefs.h <<\_ACEOF
4277 #define STDC_HEADERS 1
4282 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4292 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4293 inttypes.h stdint.h unistd.h
4295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4296 echo "$as_me:$LINENO: checking for $ac_header" >&5
4297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 cat >conftest.$ac_ext <<_ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4307 $ac_includes_default
4309 #include <$ac_header>
4311 rm -f conftest.$ac_objext
4312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4313 (eval $ac_compile) 2>conftest.er1
4315 grep -v '^ *+' conftest.er1 >conftest.err
4317 cat conftest.err >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } &&
4320 { ac_try='test -z "$ac_c_werror_flag"
4321 || test ! -s conftest.err'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; } &&
4327 { ac_try='test -s conftest.$ac_objext'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 eval "$as_ac_Header=yes"
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4338 eval "$as_ac_Header=no"
4340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4345 cat >>confdefs.h <<_ACEOF
4346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4355 for ac_header in dlfcn.h
4357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4359 echo "$as_me:$LINENO: checking for $ac_header" >&5
4360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4367 # Is the header compilable?
4368 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4370 cat >conftest.$ac_ext <<_ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 $ac_includes_default
4377 #include <$ac_header>
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>conftest.er1
4383 grep -v '^ *+' conftest.er1 >conftest.err
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try='test -z "$ac_c_werror_flag"
4389 || test ! -s conftest.err'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; } &&
4395 { ac_try='test -s conftest.$ac_objext'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 ac_header_compiler=yes
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 ac_header_compiler=no
4408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4410 echo "${ECHO_T}$ac_header_compiler" >&6
4412 # Is the header present?
4413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4415 cat >conftest.$ac_ext <<_ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4421 #include <$ac_header>
4423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4426 grep -v '^ *+' conftest.er1 >conftest.err
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } >/dev/null; then
4431 if test -s conftest.err; then
4432 ac_cpp_err=$ac_c_preproc_warn_flag
4433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4440 if test -z "$ac_cpp_err"; then
4441 ac_header_preproc=yes
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 ac_header_preproc=no
4448 rm -f conftest.err conftest.$ac_ext
4449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4450 echo "${ECHO_T}$ac_header_preproc" >&6
4452 # So? What about this header?
4453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4459 ac_header_preproc=yes
4462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4476 ## ------------------------------------------ ##
4477 ## Report this to the AC_PACKAGE_NAME lists. ##
4478 ## ------------------------------------------ ##
4481 sed "s/^/$as_me: WARNING: /" >&2
4484 echo "$as_me:$LINENO: checking for $ac_header" >&5
4485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 eval "$as_ac_Header=\$ac_header_preproc"
4491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4496 cat >>confdefs.h <<_ACEOF
4497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4509 # Only perform the check for file, if the check method requires it
4510 case $deplibs_check_method in
4512 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4513 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4514 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4515 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4523 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4526 ac_save_MAGIC_CMD="$MAGIC_CMD"
4527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4528 ac_dummy="/usr/bin:$PATH"
4529 for ac_dir in $ac_dummy; do
4530 test -z "$ac_dir" && ac_dir=.
4531 if test -f $ac_dir/${ac_tool_prefix}file; then
4532 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4533 if test -n "$file_magic_test_file"; then
4534 case $deplibs_check_method in
4536 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4538 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4539 egrep "$file_magic_regex" > /dev/null; then
4544 *** Warning: the command libtool uses to detect shared libraries,
4545 *** $file_magic_cmd, produces output that libtool cannot recognize.
4546 *** The result is that libtool may fail to recognize shared libraries
4547 *** as such. This will affect the creation of libtool libraries that
4548 *** depend on shared libraries, but programs linked with such libtool
4549 *** libraries will work regardless of this problem. Nevertheless, you
4550 *** may want to report the problem to your system manager and/or to
4551 *** bug-libtool@gnu.org
4561 MAGIC_CMD="$ac_save_MAGIC_CMD"
4566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4567 if test -n "$MAGIC_CMD"; then
4568 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4569 echo "${ECHO_T}$MAGIC_CMD" >&6
4571 echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6
4575 if test -z "$lt_cv_path_MAGIC_CMD"; then
4576 if test -n "$ac_tool_prefix"; then
4577 echo "$as_me:$LINENO: checking for file" >&5
4578 echo $ECHO_N "checking for file... $ECHO_C" >&6
4579 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4587 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4590 ac_save_MAGIC_CMD="$MAGIC_CMD"
4591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4592 ac_dummy="/usr/bin:$PATH"
4593 for ac_dir in $ac_dummy; do
4594 test -z "$ac_dir" && ac_dir=.
4595 if test -f $ac_dir/file; then
4596 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4597 if test -n "$file_magic_test_file"; then
4598 case $deplibs_check_method in
4600 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4602 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4603 egrep "$file_magic_regex" > /dev/null; then
4608 *** Warning: the command libtool uses to detect shared libraries,
4609 *** $file_magic_cmd, produces output that libtool cannot recognize.
4610 *** The result is that libtool may fail to recognize shared libraries
4611 *** as such. This will affect the creation of libtool libraries that
4612 *** depend on shared libraries, but programs linked with such libtool
4613 *** libraries will work regardless of this problem. Nevertheless, you
4614 *** may want to report the problem to your system manager and/or to
4615 *** bug-libtool@gnu.org
4625 MAGIC_CMD="$ac_save_MAGIC_CMD"
4630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4631 if test -n "$MAGIC_CMD"; then
4632 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4633 echo "${ECHO_T}$MAGIC_CMD" >&6
4635 echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4648 if test -n "$ac_tool_prefix"; then
4649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4650 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_prog_RANLIB+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 if test -n "$RANLIB"; then
4657 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 RANLIB=$ac_cv_prog_RANLIB
4676 if test -n "$RANLIB"; then
4677 echo "$as_me:$LINENO: result: $RANLIB" >&5
4678 echo "${ECHO_T}$RANLIB" >&6
4680 echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6
4685 if test -z "$ac_cv_prog_RANLIB"; then
4686 ac_ct_RANLIB=$RANLIB
4687 # Extract the first word of "ranlib", so it can be a program name with args.
4688 set dummy ranlib; ac_word=$2
4689 echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4691 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 if test -n "$ac_ct_RANLIB"; then
4695 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_ac_ct_RANLIB="ranlib"
4705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4714 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4715 if test -n "$ac_ct_RANLIB"; then
4716 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4717 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4719 echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6
4723 RANLIB=$ac_ct_RANLIB
4725 RANLIB="$ac_cv_prog_RANLIB"
4728 if test -n "$ac_tool_prefix"; then
4729 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4730 set dummy ${ac_tool_prefix}strip; ac_word=$2
4731 echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733 if test "${ac_cv_prog_STRIP+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 if test -n "$STRIP"; then
4737 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4746 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 STRIP=$ac_cv_prog_STRIP
4756 if test -n "$STRIP"; then
4757 echo "$as_me:$LINENO: result: $STRIP" >&5
4758 echo "${ECHO_T}$STRIP" >&6
4760 echo "$as_me:$LINENO: result: no" >&5
4761 echo "${ECHO_T}no" >&6
4765 if test -z "$ac_cv_prog_STRIP"; then
4767 # Extract the first word of "strip", so it can be a program name with args.
4768 set dummy strip; ac_word=$2
4769 echo "$as_me:$LINENO: checking for $ac_word" >&5
4770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4771 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 if test -n "$ac_ct_STRIP"; then
4775 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4784 ac_cv_prog_ac_ct_STRIP="strip"
4785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4794 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4795 if test -n "$ac_ct_STRIP"; then
4796 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4797 echo "${ECHO_T}$ac_ct_STRIP" >&6
4799 echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6
4805 STRIP="$ac_cv_prog_STRIP"
4812 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4813 if test "${enable_libtool_lock+set}" = set; then
4814 enableval="$enable_libtool_lock"
4817 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4819 # Some flags need to be propagated to the compiler or linker for good
4823 # Find out which ABI we are using.
4824 echo '#line 4824 "configure"' > conftest.$ac_ext
4825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4826 (eval $ac_compile) 2>&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; then
4830 case `/usr/bin/file conftest.$ac_objext` in
4846 # Test if the compiler is 64bit
4847 echo 'int i;' > conftest.$ac_ext
4848 lt_cv_cc_64bit_output=no
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; then
4854 case `/usr/bin/file conftest.$ac_objext` in
4856 lt_cv_cc_64bit_output=yes
4864 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4865 SAVE_CFLAGS="$CFLAGS"
4866 CFLAGS="$CFLAGS -belf"
4867 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4868 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4869 if test "${lt_cv_cc_needs_belf+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 ac_cpp='$CPP $CPPFLAGS'
4876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4880 cat >conftest.$ac_ext <<_ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4895 rm -f conftest.$ac_objext conftest$ac_exeext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4897 (eval $ac_link) 2>conftest.er1
4899 grep -v '^ *+' conftest.er1 >conftest.err
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -z "$ac_c_werror_flag"
4905 || test ! -s conftest.err'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; } &&
4911 { ac_try='test -s conftest$ac_exeext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 lt_cv_cc_needs_belf=yes
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 lt_cv_cc_needs_belf=no
4924 rm -f conftest.err conftest.$ac_objext \
4925 conftest$ac_exeext conftest.$ac_ext
4927 ac_cpp='$CPP $CPPFLAGS'
4928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4934 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4935 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4936 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4937 CFLAGS="$SAVE_CFLAGS"
4944 # Sed substitution that helps us do robust quoting. It backslashifies
4945 # metacharacters that are still active within double-quoted strings.
4946 Xsed='sed -e s/^X//'
4947 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4949 # Same as above, but do not quote variable references.
4950 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4952 # Sed substitution to delay expansion of an escaped shell variable in a
4953 # double_quote_subst'ed string.
4954 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4960 default_ofile=libtool
4961 can_build_shared=yes
4963 # All known linkers require a `.a' archive for static linking (except M$VC,
4964 # which needs '.lib').
4966 ltmain="$ac_aux_dir/ltmain.sh"
4967 ofile="$default_ofile"
4968 with_gnu_ld="$lt_cv_prog_gnu_ld"
4969 need_locks="$enable_libtool_lock"
4972 old_CFLAGS="$CFLAGS"
4974 # Set sane defaults for various variables
4975 test -z "$AR" && AR=ar
4976 test -z "$AR_FLAGS" && AR_FLAGS=cru
4977 test -z "$AS" && AS=as
4978 test -z "$CC" && CC=cc
4979 test -z "$DLLTOOL" && DLLTOOL=dlltool
4980 test -z "$LD" && LD=ld
4981 test -z "$LN_S" && LN_S="ln -s"
4982 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4983 test -z "$NM" && NM=nm
4984 test -z "$OBJDUMP" && OBJDUMP=objdump
4985 test -z "$RANLIB" && RANLIB=:
4986 test -z "$STRIP" && STRIP=:
4987 test -z "$ac_objext" && ac_objext=o
4989 if test x"$host" != x"$build"; then
4990 ac_tool_prefix=${host_alias}-
4995 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4998 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5003 # AIX sometimes has problems with the GCC collect2 program. For some
5004 # reason, if we set the COLLECT_NAMES environment variable, the problems
5005 # vanish in a puff of smoke.
5006 if test "X${COLLECT_NAMES+set}" != Xset; then
5008 export COLLECT_NAMES
5013 # Determine commands to create old-style static archives.
5014 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5015 old_postinstall_cmds='chmod 644 $oldlib'
5016 old_postuninstall_cmds=
5018 if test -n "$RANLIB"; then
5021 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5024 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5027 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5030 # Allow CC to be a program name with arguments.
5034 echo "$as_me:$LINENO: checking for objdir" >&5
5035 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5036 rm -f .libs 2>/dev/null
5037 mkdir .libs 2>/dev/null
5038 if test -d .libs; then
5041 # MS-DOS does not allow filenames that begin with a dot.
5044 rmdir .libs 2>/dev/null
5045 echo "$as_me:$LINENO: result: $objdir" >&5
5046 echo "${ECHO_T}$objdir" >&6
5050 # Check whether --with-pic or --without-pic was given.
5051 if test "${with_pic+set}" = set; then
5057 test -z "$pic_mode" && pic_mode=default
5059 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5060 # in isolation, and that seeing it set (from the cache) indicates that
5061 # the associated values are set (in the cache) correctly too.
5062 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5063 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5064 if test "${lt_cv_prog_cc_pic+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 lt_cv_prog_cc_shlib=
5070 lt_cv_prog_cc_static=
5071 lt_cv_prog_cc_no_builtin=
5072 lt_cv_prog_cc_can_build_shared=$can_build_shared
5074 if test "$GCC" = yes; then
5075 lt_cv_prog_cc_wl='-Wl,'
5076 lt_cv_prog_cc_static='-static'
5080 # Below there is a dirty hack to force normal static linking with -ldl
5081 # The problem is because libdl dynamically linked with both libc and
5082 # libC (AIX C++ library), which obviously doesn't included in libraries
5083 # list by gcc. This cause undefined symbols with -static flags.
5084 # This hack allows C programs to be linked with "-static -ldl", but
5085 # not sure about C++ programs.
5086 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5089 # FIXME: we need at least 68020 code to build shared libraries, but
5090 # adding the `-m68020' flag to GCC prevents building anything better,
5092 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5094 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5095 # PIC is the default for these OSes.
5097 darwin* | rhapsody*)
5098 # PIC is the default on this platform
5099 # Common symbols not allowed in MH_DYLIB files
5100 lt_cv_prog_cc_pic='-fno-common'
5102 cygwin* | mingw* | pw32* | os2*)
5103 # This hack is so that the source file can tell whether it is being
5104 # built for inclusion in a dll (and should export symbols for example).
5105 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5108 if test -d /usr/nec; then
5109 lt_cv_prog_cc_pic=-Kconform_pic
5113 lt_cv_prog_cc_pic='-fPIC'
5117 # PORTME Check for PIC flags for the system compiler.
5119 aix3* | aix4* | aix5*)
5120 lt_cv_prog_cc_wl='-Wl,'
5121 # All AIX code is PIC.
5122 if test "$host_cpu" = ia64; then
5123 # AIX 5 now supports IA64 processor
5124 lt_cv_prog_cc_static='-Bstatic'
5126 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5130 hpux9* | hpux10* | hpux11*)
5131 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5132 lt_cv_prog_cc_wl='-Wl,'
5133 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5134 lt_cv_prog_cc_pic='+Z'
5137 irix5* | irix6* | nonstopux*)
5138 lt_cv_prog_cc_wl='-Wl,'
5139 lt_cv_prog_cc_static='-non_shared'
5140 # PIC (with -KPIC) is the default.
5143 cygwin* | mingw* | pw32* | os2*)
5144 # This hack is so that the source file can tell whether it is being
5145 # built for inclusion in a dll (and should export symbols for example).
5146 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5150 lt_cv_prog_cc_pic='-KPIC'
5151 lt_cv_prog_cc_static='-Bstatic'
5154 osf3* | osf4* | osf5*)
5155 # All OSF/1 code is PIC.
5156 lt_cv_prog_cc_wl='-Wl,'
5157 lt_cv_prog_cc_static='-non_shared'
5161 lt_cv_prog_cc_pic='-Kpic'
5162 lt_cv_prog_cc_static='-dn'
5163 lt_cv_prog_cc_shlib='-belf'
5167 lt_cv_prog_cc_pic='-KPIC'
5168 lt_cv_prog_cc_static='-Bstatic'
5169 lt_cv_prog_cc_wl='-Wl,'
5173 lt_cv_prog_cc_pic='-PIC'
5174 lt_cv_prog_cc_static='-Bstatic'
5175 lt_cv_prog_cc_wl='-Qoption ld '
5178 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5179 lt_cv_prog_cc_pic='-KPIC'
5180 lt_cv_prog_cc_static='-Bstatic'
5181 lt_cv_prog_cc_wl='-Wl,'
5185 lt_cv_prog_cc_pic='-pic'
5186 lt_cv_prog_cc_static='-Bstatic'
5190 if test -d /usr/nec ;then
5191 lt_cv_prog_cc_pic='-Kconform_pic'
5192 lt_cv_prog_cc_static='-Bstatic'
5197 lt_cv_prog_cc_can_build_shared=no
5204 if test -z "$lt_cv_prog_cc_pic"; then
5205 echo "$as_me:$LINENO: result: none" >&5
5206 echo "${ECHO_T}none" >&6
5208 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5209 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5211 # Check to make sure the pic_flag actually works.
5212 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5213 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5214 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 save_CFLAGS="$CFLAGS"
5218 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5219 cat >conftest.$ac_ext <<_ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5234 rm -f conftest.$ac_objext
5235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5236 (eval $ac_compile) 2>conftest.er1
5238 grep -v '^ *+' conftest.er1 >conftest.err
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -z "$ac_c_werror_flag"
5244 || test ! -s conftest.err'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; } &&
5250 { ac_try='test -s conftest.$ac_objext'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
5257 hpux9* | hpux10* | hpux11*)
5258 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5259 # they create non-PIC objects. So, if there were any warnings, we
5260 # assume that PIC is not supported.
5261 if test -s conftest.err; then
5262 lt_cv_prog_cc_pic_works=no
5264 lt_cv_prog_cc_pic_works=yes
5268 lt_cv_prog_cc_pic_works=yes
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5276 lt_cv_prog_cc_pic_works=no
5279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5280 CFLAGS="$save_CFLAGS"
5285 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5287 lt_cv_prog_cc_can_build_shared=no
5289 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5292 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5293 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5296 # Check for any special shared library compilation flags.
5297 if test -n "$lt_cv_prog_cc_shlib"; then
5298 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5299 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5300 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5302 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5303 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5304 lt_cv_prog_cc_can_build_shared=no
5308 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5309 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5310 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 lt_cv_prog_cc_static_works=no
5314 save_LDFLAGS="$LDFLAGS"
5315 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5331 rm -f conftest.$ac_objext conftest$ac_exeext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5333 (eval $ac_link) 2>conftest.er1
5335 grep -v '^ *+' conftest.er1 >conftest.err
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -z "$ac_c_werror_flag"
5341 || test ! -s conftest.err'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; } &&
5347 { ac_try='test -s conftest$ac_exeext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 lt_cv_prog_cc_static_works=yes
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5359 rm -f conftest.err conftest.$ac_objext \
5360 conftest$ac_exeext conftest.$ac_ext
5361 LDFLAGS="$save_LDFLAGS"
5366 # Belt *and* braces to stop my trousers falling down:
5367 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5368 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5369 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5371 pic_flag="$lt_cv_prog_cc_pic"
5372 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5373 wl="$lt_cv_prog_cc_wl"
5374 link_static_flag="$lt_cv_prog_cc_static"
5375 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5376 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5379 # Check to see if options -o and -c are simultaneously supported by compiler
5380 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5381 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5382 if test "${lt_cv_compiler_c_o+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 $rm -r conftest 2>/dev/null
5389 echo "int some_variable = 0;" > conftest.$ac_ext
5391 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5392 # that will create temporary files in the current directory regardless of
5393 # the output directory. Thus, making CWD read-only will cause this test
5394 # to fail, enabling locking or at least warning the user not to do parallel
5397 save_CFLAGS="$CFLAGS"
5398 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5400 if { (eval echo configure:5400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5401 # The compiler can only warn and ignore the option if not recognized
5402 # So say no if there are warnings
5403 if test -s out/conftest.err; then
5404 lt_cv_compiler_c_o=no
5406 lt_cv_compiler_c_o=yes
5409 # Append any errors to the config.log.
5410 cat out/conftest.err 1>&5
5411 lt_cv_compiler_c_o=no
5413 CFLAGS="$save_CFLAGS"
5419 $rm -r conftest 2>/dev/null
5423 compiler_c_o=$lt_cv_compiler_c_o
5424 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5425 echo "${ECHO_T}$compiler_c_o" >&6
5427 if test x"$compiler_c_o" = x"yes"; then
5428 # Check to see if we can write to a .lo
5429 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5430 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5431 if test "${lt_cv_compiler_o_lo+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 lt_cv_compiler_o_lo=no
5436 save_CFLAGS="$CFLAGS"
5437 CFLAGS="$CFLAGS -c -o conftest.lo"
5438 save_objext="$ac_objext"
5440 cat >conftest.$ac_ext <<_ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5450 int some_variable = 0;
5455 rm -f conftest.$ac_objext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457 (eval $ac_compile) 2>conftest.er1
5459 grep -v '^ *+' conftest.er1 >conftest.err
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try='test -z "$ac_c_werror_flag"
5465 || test ! -s conftest.err'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; } &&
5471 { ac_try='test -s conftest.$ac_objext'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 # The compiler can only warn and ignore the option if not recognized
5478 # So say no if there are warnings
5479 if test -s conftest.err; then
5480 lt_cv_compiler_o_lo=no
5482 lt_cv_compiler_o_lo=yes
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5491 ac_objext="$save_objext"
5492 CFLAGS="$save_CFLAGS"
5496 compiler_o_lo=$lt_cv_compiler_o_lo
5497 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5498 echo "${ECHO_T}$compiler_o_lo" >&6
5503 # Check to see if we can do hard links to lock some files if needed
5504 hard_links="nottested"
5505 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5506 # do not overwrite the value of need_locks provided by the user
5507 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5508 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5513 ln conftest.a conftest.b 2>&5 || hard_links=no
5514 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5515 echo "$as_me:$LINENO: result: $hard_links" >&5
5516 echo "${ECHO_T}$hard_links" >&6
5517 if test "$hard_links" = no; then
5518 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5519 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5526 if test "$GCC" = yes; then
5527 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5528 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5529 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5530 echo "int some_variable = 0;" > conftest.$ac_ext
5531 save_CFLAGS="$CFLAGS"
5532 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5533 compiler_rtti_exceptions=no
5534 cat >conftest.$ac_ext <<_ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5544 int some_variable = 0;
5549 rm -f conftest.$ac_objext
5550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551 (eval $ac_compile) 2>conftest.er1
5553 grep -v '^ *+' conftest.er1 >conftest.err
5555 cat conftest.err >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } &&
5558 { ac_try='test -z "$ac_c_werror_flag"
5559 || test ! -s conftest.err'
5560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; } &&
5565 { ac_try='test -s conftest.$ac_objext'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; }; then
5571 # The compiler can only warn and ignore the option if not recognized
5572 # So say no if there are warnings
5573 if test -s conftest.err; then
5574 compiler_rtti_exceptions=no
5576 compiler_rtti_exceptions=yes
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5585 CFLAGS="$save_CFLAGS"
5586 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5587 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5589 if test "$compiler_rtti_exceptions" = "yes"; then
5590 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5592 no_builtin_flag=' -fno-builtin'
5596 # See if the linker supports building shared libraries.
5597 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5598 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5600 allow_undefined_flag=
5602 need_lib_prefix=unknown
5603 need_version=unknown
5604 # when you set need_version to no, make sure it does not cause -set_version
5605 # flags to be left without arguments
5607 archive_expsym_cmds=
5608 old_archive_from_new_cmds=
5609 old_archive_from_expsyms_cmds=
5610 export_dynamic_flag_spec=
5611 whole_archive_flag_spec=
5612 thread_safe_flag_spec=
5613 hardcode_into_libs=no
5614 hardcode_libdir_flag_spec=
5615 hardcode_libdir_separator=
5618 hardcode_shlibpath_var=unsupported
5620 link_all_deplibs=unknown
5621 always_export_symbols=no
5622 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5623 # include_expsyms should be a list of space-separated symbols to be *always*
5624 # included in the symbol list
5626 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5627 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5628 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5629 # as well as any symbol that contains `d'.
5630 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5631 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5632 # platforms (ab)use it in PIC code, but their linkers get confused if
5633 # the symbol is explicitly referenced. Since portable code cannot
5634 # rely on this symbol name, it's probably fine to never include it in
5635 # preloaded symbol tables.
5636 extract_expsyms_cmds=
5639 cygwin* | mingw* | pw32*)
5640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5641 # When not using gcc, we currently assume that we are using
5642 # Microsoft Visual C++.
5643 if test "$GCC" != yes; then
5653 if test "$with_gnu_ld" = yes; then
5654 # If archive_cmds runs LD, not CC, wlarc should be empty
5657 # See if GNU ld supports shared libraries.
5659 aix3* | aix4* | aix5*)
5660 # On AIX, the GNU linker is very broken
5661 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5665 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5666 *** to be unable to reliably create shared libraries on AIX.
5667 *** Therefore, libtool is disabling shared libraries support. If you
5668 *** really care for shared libraries, you may want to modify your PATH
5669 *** so that a non-GNU linker is found, and then restart.
5675 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)'
5676 hardcode_libdir_flag_spec='-L$libdir'
5677 hardcode_minus_L=yes
5679 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5680 # that the semantics of dynamic libraries on AmigaOS, at least up
5681 # to version 4, is to share data among multiple programs linked
5682 # with the same dynamic library. Since this doesn't match the
5683 # behavior of shared libraries on other platforms, we can use
5689 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5690 allow_undefined_flag=unsupported
5691 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5692 # support --undefined. This deserves some investigation. FIXME
5693 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5699 cygwin* | mingw* | pw32*)
5700 # hardcode_libdir_flag_spec is actually meaningless, as there is
5701 # no search path for DLLs.
5702 hardcode_libdir_flag_spec='-L$libdir'
5703 allow_undefined_flag=unsupported
5704 always_export_symbols=yes
5706 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5707 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5708 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5709 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5710 else $CC -o impgen impgen.c ; fi)~
5711 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5713 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5715 # cygwin and mingw dlls have different entry points and sets of symbols
5717 # FIXME: what about values for MSVC?
5718 dll_entry=__cygwin_dll_entry@12
5719 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5723 dll_entry=_DllMainCRTStartup@12
5724 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5728 # mingw and cygwin differ, and it's simplest to just exclude the union
5729 # of the two symbol sets.
5730 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5732 # recent cygwin and mingw systems supply a stub DllMain which the user
5733 # can override, but on older systems we have to supply one (in ltdll.c)
5734 if test "x$lt_cv_need_dllmain" = "xyes"; then
5735 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5736 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~
5737 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5743 # Extract the symbol export list from an `--export-all' def file,
5744 # then regenerate the def file from the symbol export list, so that
5745 # the compiled dll only exports the symbol export list.
5746 # Be careful not to strip the DATA tag left be newer dlltools.
5747 export_symbols_cmds="$ltdll_cmds"'
5748 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5749 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5751 # If the export-symbols file already is a .def file (1st line
5752 # is EXPORTS), use it as is.
5753 # If DATA tags from a recent dlltool are present, honour them!
5754 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5755 cp $export_symbols $output_objdir/$soname-def;
5757 echo EXPORTS > $output_objdir/$soname-def;
5759 cat $export_symbols | while read symbol; do
5762 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5763 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5764 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5766 _lt_hint=`expr 1 + \$_lt_hint`;
5770 $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~
5771 $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~
5772 $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~
5773 $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~
5774 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5779 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5782 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5783 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5788 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5792 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5793 *** create shared libraries on Solaris systems. Therefore, libtool
5794 *** is disabling shared libraries support. We urge you to upgrade GNU
5795 *** binutils to release 2.9.1 or newer. Another option is to modify
5796 *** your PATH or compiler configuration so that the native linker is
5797 *** used, and then restart.
5800 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5809 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5812 hardcode_shlibpath_var=no
5816 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5818 supports_anon_versioning=no
5819 case `$LD -v 2>/dev/null` in
5820 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5821 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5822 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5823 *\ 2.11.*) ;; # other 2.11 versions
5824 *) supports_anon_versioning=yes ;;
5826 if test $supports_anon_versioning = yes; then
5827 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5829 $echo "local: *; };" >> $output_objdir/$libname.ver~
5830 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5832 $archive_expsym_cmds="$archive_cmds"
5840 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5842 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5849 if test "$ld_shlibs" = yes; then
5850 runpath_var=LD_RUN_PATH
5851 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5852 export_dynamic_flag_spec='${wl}--export-dynamic'
5854 cygwin* | mingw* | pw32*)
5855 # dlltool doesn't understand --whole-archive et. al.
5856 whole_archive_flag_spec=
5859 # ancient GNU ld didn't support --whole-archive et. al.
5860 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5861 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5863 whole_archive_flag_spec=
5869 # PORTME fill in a description of your system's linker (not GNU ld)
5872 allow_undefined_flag=unsupported
5873 always_export_symbols=yes
5874 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'
5875 # Note: this linker hardcodes the directories in LIBPATH if there
5876 # are no directories specified by -L.
5877 hardcode_minus_L=yes
5878 if test "$GCC" = yes && test -z "$link_static_flag"; then
5879 # Neither direct hardcoding nor static linking is supported with a
5881 hardcode_direct=unsupported
5886 if test "$host_cpu" = ia64; then
5887 # On IA64, the linker does run time linking by default, so we don't
5888 # have to do anything special.
5889 aix_use_runtimelinking=no
5890 exp_sym_flag='-Bexport'
5893 aix_use_runtimelinking=no
5895 # Test if we are trying to use run time linking or normal
5896 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5897 # need to do runtime linking.
5898 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5899 for ld_flag in $LDFLAGS; do
5902 aix_use_runtimelinking=yes
5909 exp_sym_flag='-bexport'
5910 no_entry_flag='-bnoentry'
5913 # When large executables or shared objects are built, AIX ld can
5914 # have problems creating the table of contents. If linking a library
5915 # or program results in "error TOC overflow" add -mminimal-toc to
5916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5921 hardcode_libdir_separator=':'
5922 if test "$GCC" = yes; then
5923 case $host_os in aix4.[012]|aix4.[012].*)
5924 collect2name=`${CC} -print-prog-name=collect2`
5925 if test -f "$collect2name" && \
5926 strings "$collect2name" | grep resolve_lib_name >/dev/null
5928 # We have reworked collect2
5931 # We have old collect2
5932 hardcode_direct=unsupported
5933 # It fails to find uninstalled libraries when the uninstalled
5934 # path is not listed in the libpath. Setting hardcode_minus_L
5935 # to unsupported forces relinking
5936 hardcode_minus_L=yes
5937 hardcode_libdir_flag_spec='-L$libdir'
5938 hardcode_libdir_separator=
5942 shared_flag='-shared'
5945 if test "$host_cpu" = ia64; then
5946 shared_flag='${wl}-G'
5948 if test "$aix_use_runtimelinking" = yes; then
5949 shared_flag='${wl}-G'
5951 shared_flag='${wl}-bM:SRE'
5956 # It seems that -bexpall can do strange things, so it is better to
5957 # generate a list of symbols to export.
5958 always_export_symbols=yes
5959 if test "$aix_use_runtimelinking" = yes; then
5960 # Warning - without using the other runtime loading flags (-brtl),
5961 # -berok will link without error, but may produce a broken library.
5962 allow_undefined_flag='-berok'
5963 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5964 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"
5966 if test "$host_cpu" = ia64; then
5967 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5968 allow_undefined_flag="-z nodefs"
5969 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"
5971 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5972 # Warning - without using the other run time loading flags,
5973 # -berok will link without error, but may produce a broken library.
5974 allow_undefined_flag='${wl}-berok'
5975 # This is a bit strange, but is similar to how AIX traditionally builds
5976 # it's shared libraries.
5977 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'
5983 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)'
5984 hardcode_libdir_flag_spec='-L$libdir'
5985 hardcode_minus_L=yes
5986 # see comment about different semantics on the GNU ld section
5990 cygwin* | mingw* | pw32*)
5991 # When not using gcc, we currently assume that we are using
5992 # Microsoft Visual C++.
5993 # hardcode_libdir_flag_spec is actually meaningless, as there is
5994 # no search path for DLLs.
5995 hardcode_libdir_flag_spec=' '
5996 allow_undefined_flag=unsupported
5997 # Tell ltmain to make .lib files, not .a files.
5999 # FIXME: Setting linknames here is a bad hack.
6000 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6001 # The linker will automatically build a .lib file if we build a DLL.
6002 old_archive_from_new_cmds='true'
6003 # FIXME: Should let the user specify the lib program.
6004 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6005 fix_srcfile_path='`cygpath -w "$srcfile"`'
6008 darwin* | rhapsody*)
6010 rhapsody* | darwin1.[012])
6011 allow_undefined_flag='-undefined suppress'
6014 allow_undefined_flag='-flat_namespace -undefined suppress'
6017 # FIXME: Relying on posixy $() will cause problems for
6018 # cross-compilation, but unfortunately the echo tests do not
6019 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6020 # `"' quotes if we put them in here... so don't!
6021 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)'
6022 # We need to add '_' to the symbols in $export_symbols first
6023 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6025 hardcode_shlibpath_var=no
6026 whole_archive_flag_spec='-all_load $convenience'
6033 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6034 # support. Future versions do this automatically, but an explicit c++rt0.o
6035 # does not break anything, and helps significantly (at the cost of a little
6038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6039 hardcode_libdir_flag_spec='-R$libdir'
6041 hardcode_shlibpath_var=no
6044 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6048 hardcode_minus_L=yes
6049 hardcode_shlibpath_var=no
6052 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6054 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6055 hardcode_libdir_flag_spec='-R$libdir'
6057 hardcode_shlibpath_var=no
6060 hpux9* | hpux10* | hpux11*)
6062 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' ;;
6063 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6065 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6066 hardcode_libdir_separator=:
6068 hardcode_minus_L=yes # Not in the search PATH, but as the default
6069 # location of the library.
6070 export_dynamic_flag_spec='${wl}-E'
6073 irix5* | irix6* | nonstopux*)
6074 if test "$GCC" = yes; then
6075 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'
6076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6078 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'
6079 hardcode_libdir_flag_spec='-rpath $libdir'
6081 hardcode_libdir_separator=:
6082 link_all_deplibs=yes
6086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6089 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6091 hardcode_libdir_flag_spec='-R$libdir'
6093 hardcode_shlibpath_var=no
6097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6099 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6100 hardcode_libdir_separator=:
6101 hardcode_shlibpath_var=no
6106 hardcode_shlibpath_var=no
6107 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6110 export_dynamic_flag_spec='${wl}-E'
6113 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6114 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6115 hardcode_libdir_flag_spec='-R$libdir'
6118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6119 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6126 hardcode_libdir_flag_spec='-L$libdir'
6127 hardcode_minus_L=yes
6128 allow_undefined_flag=unsupported
6129 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'
6130 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6134 if test "$GCC" = yes; then
6135 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6136 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'
6138 allow_undefined_flag=' -expect_unresolved \*'
6139 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'
6141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6142 hardcode_libdir_separator=:
6145 osf4* | osf5*) # as osf3* with the addition of -msym flag
6146 if test "$GCC" = yes; then
6147 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6148 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'
6149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6151 allow_undefined_flag=' -expect_unresolved \*'
6152 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'
6153 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6154 $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'
6156 #Both c and cxx compiler support -rpath directly
6157 hardcode_libdir_flag_spec='-rpath $libdir'
6159 hardcode_libdir_separator=:
6163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6164 hardcode_shlibpath_var=no
6165 runpath_var=LD_RUN_PATH
6166 hardcode_runpath_var=yes
6167 export_dynamic_flag_spec='${wl}-Bexport'
6171 # gcc --version < 3.0 without binutils cannot create self contained
6172 # shared libraries reliably, requiring libgcc.a to resolve some of
6173 # the object symbols generated in some cases. Libraries that use
6174 # assert need libgcc.a to resolve __eprintf, for example. Linking
6175 # a copy of libgcc.a into every shared library to guarantee resolving
6176 # such symbols causes other problems: According to Tim Van Holder
6177 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6178 # (to the application) exception stack for one thing.
6179 no_undefined_flag=' -z defs'
6180 if test "$GCC" = yes; then
6181 case `$CC --version 2>/dev/null` in
6185 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6186 *** create self contained shared libraries on Solaris systems, without
6187 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6188 *** -no-undefined support, which will at least allow you to build shared
6189 *** libraries. However, you may find that when you link such libraries
6190 *** into an application without using GCC, you have to manually add
6191 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6192 *** upgrade to a newer version of GCC. Another option is to rebuild your
6193 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6200 # $CC -shared without GNU ld will not create a library from C++
6201 # object files and a static libstdc++, better avoid it by now
6202 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6203 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6204 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6205 hardcode_libdir_flag_spec='-R$libdir'
6206 hardcode_shlibpath_var=no
6208 solaris2.[0-5] | solaris2.[0-5].*) ;;
6209 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6210 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6212 link_all_deplibs=yes
6216 if test "x$host_vendor" = xsequent; then
6217 # Use $CC to link under sequent, because it throws in some extra .o
6218 # files that make .init and .fini sections work.
6219 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6221 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6223 hardcode_libdir_flag_spec='-L$libdir'
6225 hardcode_minus_L=yes
6226 hardcode_shlibpath_var=no
6230 case $host_vendor in
6232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6233 hardcode_direct=yes # is this really true???
6236 ## LD is ld it makes a PLAMLIB
6237 ## CC just makes a GrossModule.
6238 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6239 reload_cmds='$CC -r -o $output$reload_objs'
6243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6244 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6247 runpath_var='LD_RUN_PATH'
6248 hardcode_shlibpath_var=no
6252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6253 hardcode_shlibpath_var=no
6254 export_dynamic_flag_spec='-Bexport'
6258 no_undefined_flag=' -z text'
6259 # $CC -shared without GNU ld will not create a library from C++
6260 # object files and a static libstdc++, better avoid it by now
6261 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6262 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6263 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6264 hardcode_libdir_flag_spec=
6265 hardcode_shlibpath_var=no
6266 runpath_var='LD_RUN_PATH'
6270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6271 hardcode_libdir_flag_spec='-L$libdir'
6272 hardcode_shlibpath_var=no
6276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6277 hardcode_libdir_flag_spec='-L$libdir'
6278 hardcode_shlibpath_var=no
6282 if test -d /usr/nec; then
6283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6284 hardcode_shlibpath_var=no
6285 runpath_var=LD_RUN_PATH
6286 hardcode_runpath_var=yes
6292 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6295 hardcode_shlibpath_var=no
6296 hardcode_runpath_var=yes
6297 runpath_var=LD_RUN_PATH
6300 sysv5uw7* | unixware7*)
6301 no_undefined_flag='${wl}-z ${wl}text'
6302 if test "$GCC" = yes; then
6303 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6305 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6307 runpath_var='LD_RUN_PATH'
6308 hardcode_shlibpath_var=no
6316 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6317 echo "${ECHO_T}$ld_shlibs" >&6
6318 test "$ld_shlibs" = no && can_build_shared=no
6320 # Check hardcoding attributes.
6321 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6322 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6324 if test -n "$hardcode_libdir_flag_spec" || \
6325 test -n "$runpath_var"; then
6327 # We can hardcode non-existant directories.
6328 if test "$hardcode_direct" != no &&
6329 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6330 # have to relink, otherwise we might link with an installed library
6331 # when we should be linking with a yet-to-be-installed one
6332 ## test "$hardcode_shlibpath_var" != no &&
6333 test "$hardcode_minus_L" != no; then
6334 # Linking always hardcodes the temporary library directory.
6335 hardcode_action=relink
6337 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6338 hardcode_action=immediate
6341 # We cannot hardcode anything, or else we can only hardcode existing
6343 hardcode_action=unsupported
6345 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6346 echo "${ECHO_T}$hardcode_action" >&6
6350 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6351 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6352 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6353 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6354 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6355 echo "$as_me:$LINENO: result: yes" >&5
6356 echo "${ECHO_T}yes" >&6
6358 echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6
6362 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6363 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6365 # PORTME Fill in your ld.so characteristics
6366 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6367 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6369 libname_spec='lib$name'
6376 shlibpath_overrides_runpath=unknown
6378 dynamic_linker="$host_os ld.so"
6379 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6380 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6385 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6386 shlibpath_var=LIBPATH
6388 # AIX has no versioning support, so we append a major version to the name.
6389 soname_spec='${libname}${release}.so$major'
6396 hardcode_into_libs=yes
6397 if test "$host_cpu" = ia64; then
6398 # AIX 5 supports IA64
6399 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6400 shlibpath_var=LD_LIBRARY_PATH
6402 # With GCC up to 2.95.x, collect2 would create an import file
6403 # for dependence libraries. The import file would start with
6404 # the line `#! .'. This would cause the generated library to
6405 # depend on `.', always an invalid library. This was fixed in
6406 # development snapshots of GCC prior to 3.0.
6408 aix4 | aix4.[01] | aix4.[01].*)
6409 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6411 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6418 # AIX (on Power*) has no versioning support, so currently we can
6419 # not hardcode correct soname into executable. Probably we can
6420 # add versioning support to collect2, so additional links can
6421 # be useful in future.
6422 if test "$aix_use_runtimelinking" = yes; then
6423 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6424 # instead of lib<name>.a to let people know that these are not
6425 # typical AIX shared libraries.
6426 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6428 # We preserve .a as extension for shared libraries through AIX4.2
6429 # and later when we are not doing run time linking.
6430 library_names_spec='${libname}${release}.a $libname.a'
6431 soname_spec='${libname}${release}.so$major'
6433 shlibpath_var=LIBPATH
6435 hardcode_into_libs=yes
6439 library_names_spec='$libname.ixlibrary $libname.a'
6440 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6441 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'
6445 library_names_spec='${libname}.so'
6446 dynamic_linker="$host_os ld.so"
6447 shlibpath_var=LIBRARY_PATH
6453 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6454 soname_spec='${libname}${release}.so$major'
6455 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6456 shlibpath_var=LD_LIBRARY_PATH
6457 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6458 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6459 export_dynamic_flag_spec=-rdynamic
6460 # the default ld.so.conf also contains /usr/contrib/lib and
6461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6462 # libtool to hard-code these into programs
6465 cygwin* | mingw* | pw32*)
6466 version_type=windows
6469 case $GCC,$host_os in
6471 library_names_spec='$libname.dll.a'
6472 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6473 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6474 dldir=$destdir/`dirname \$dlpath`~
6475 test -d \$dldir || mkdir -p \$dldir~
6476 $install_prog .libs/$dlname \$dldir/$dlname'
6477 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6478 dlpath=$dir/\$dldll~
6482 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6483 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6489 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6492 dynamic_linker='Win32 ld.exe'
6493 # FIXME: first we should search . and the directory the executable is in
6497 darwin* | rhapsody*)
6498 dynamic_linker="$host_os dyld"
6502 # FIXME: Relying on posixy $() will cause problems for
6503 # cross-compilation, but unfortunately the echo tests do not
6504 # yet detect zsh echo's removal of \ escapes.
6505 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)'
6506 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6507 shlibpath_overrides_runpath=yes
6508 shlibpath_var=DYLD_LIBRARY_PATH
6516 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6517 version_type=freebsd-$objformat
6518 case $version_type in
6520 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6525 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6529 shlibpath_var=LD_LIBRARY_PATH
6532 shlibpath_overrides_runpath=yes
6535 shlibpath_overrides_runpath=no
6536 hardcode_into_libs=yes
6545 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6546 soname_spec='${libname}${release}.so$major'
6547 shlibpath_var=LD_LIBRARY_PATH
6548 hardcode_into_libs=yes
6551 hpux9* | hpux10* | hpux11*)
6552 # Give a soname corresponding to the major version so that dld.sl refuses to
6553 # link against other versions.
6554 dynamic_linker="$host_os dld.sl"
6558 shlibpath_var=SHLIB_PATH
6559 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6560 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6561 soname_spec='${libname}${release}.sl$major'
6562 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6563 postinstall_cmds='chmod 555 $lib'
6566 irix5* | irix6* | nonstopux*)
6568 nonstopux*) version_type=nonstopux ;;
6569 *) version_type=irix ;;
6573 soname_spec='${libname}${release}.so$major'
6574 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6576 irix5* | nonstopux*)
6580 case $LD in # libtool.m4 will add one of these switches to LD
6581 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6582 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6583 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6584 *) libsuff= shlibsuff= libmagic=never-match;;
6588 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6589 shlibpath_overrides_runpath=no
6590 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6591 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6594 # No shared lib support for Linux oldld, aout, or coff.
6595 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6599 # This must be Linux ELF.
6604 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6605 soname_spec='${libname}${release}.so$major'
6606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6607 shlibpath_var=LD_LIBRARY_PATH
6608 shlibpath_overrides_runpath=no
6609 # This implies no fast_install, which is unacceptable.
6610 # Some rework will be needed to allow for fast_install
6611 # before this can be enabled.
6612 hardcode_into_libs=yes
6614 case $host_cpu:$lt_cv_cc_64bit_output in
6615 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6616 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6617 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6621 # We used to test for /lib/ld.so.1 and disable shared libraries on
6622 # powerpc, because MkLinux only supported shared libraries with the
6623 # GNU dynamic linker. Since this was broken with cross compilers,
6624 # most powerpc-linux boxes support dynamic linking these days and
6625 # people can always --disable-shared, the test was removed, and we
6626 # assume the GNU/Linux dynamic linker is in use.
6627 dynamic_linker='GNU/Linux ld.so'
6629 # Find out which ABI we are using (multilib Linux x86_64 hack).
6633 echo '#line 6633 "configure"' > conftest.$ac_ext
6634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6635 (eval $ac_compile) 2>&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); }; then
6639 case `/usr/bin/file conftest.$ac_objext` in
6650 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6651 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6658 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6659 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6661 dynamic_linker='NetBSD (a.out) ld.so'
6663 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6664 soname_spec='${libname}${release}.so$major'
6665 dynamic_linker='NetBSD ld.elf_so'
6667 shlibpath_var=LD_LIBRARY_PATH
6668 shlibpath_overrides_runpath=yes
6669 hardcode_into_libs=yes
6674 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6675 shlibpath_var=LD_LIBRARY_PATH
6676 shlibpath_overrides_runpath=yes
6683 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6685 openbsd2.[89] | openbsd2.[89].*)
6686 shlibpath_overrides_runpath=no
6689 shlibpath_overrides_runpath=yes
6693 shlibpath_overrides_runpath=yes
6695 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6697 shlibpath_var=LD_LIBRARY_PATH
6701 libname_spec='$name'
6703 library_names_spec='$libname.dll $libname.a'
6704 dynamic_linker='OS/2 ld.exe'
6705 shlibpath_var=LIBPATH
6708 osf3* | osf4* | osf5*)
6711 soname_spec='${libname}${release}.so$major'
6712 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6713 shlibpath_var=LD_LIBRARY_PATH
6714 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6715 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6716 hardcode_into_libs=yes
6721 soname_spec='${libname}${release}.so$major'
6722 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6723 shlibpath_var=LD_LIBRARY_PATH
6730 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6731 soname_spec='${libname}${release}.so$major'
6732 shlibpath_var=LD_LIBRARY_PATH
6733 shlibpath_overrides_runpath=yes
6734 hardcode_into_libs=yes
6735 # ldd complains unless libraries are executable
6736 postinstall_cmds='chmod +x $lib'
6741 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6742 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6743 shlibpath_var=LD_LIBRARY_PATH
6744 shlibpath_overrides_runpath=yes
6745 if test "$with_gnu_ld" = yes; then
6751 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
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
6756 case $host_vendor in
6758 shlibpath_overrides_runpath=no
6760 export_dynamic_flag_spec='${wl}-Blargedynsym'
6761 runpath_var=LD_RUN_PATH
6769 shlibpath_overrides_runpath=no
6770 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6777 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6778 soname_spec='${libname}${release}.so$major'
6779 shlibpath_var=LD_LIBRARY_PATH
6786 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6787 soname_spec='${libname}${release}.so$major'
6788 shlibpath_var=LD_LIBRARY_PATH
6792 if test -d /usr/nec ;then
6794 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6795 soname_spec='$libname.so.$major'
6796 shlibpath_var=LD_LIBRARY_PATH
6804 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6805 echo "${ECHO_T}$dynamic_linker" >&6
6806 test "$dynamic_linker" = no && can_build_shared=no
6808 # Report the final consequences.
6809 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6810 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6811 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6812 echo "${ECHO_T}$can_build_shared" >&6
6814 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6815 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6816 test "$can_build_shared" = "no" && enable_shared=no
6818 # On AIX, shared libraries and static libraries use the same namespace, and
6819 # are all built from PIC.
6822 test "$enable_shared" = yes && enable_static=no
6823 if test -n "$RANLIB"; then
6824 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6825 postinstall_cmds='$RANLIB $lib'
6830 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6831 test "$enable_shared" = yes && enable_static=no
6835 echo "$as_me:$LINENO: result: $enable_shared" >&5
6836 echo "${ECHO_T}$enable_shared" >&6
6838 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6839 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6840 # Make sure either enable_shared or enable_static is yes.
6841 test "$enable_shared" = yes || enable_static=yes
6842 echo "$as_me:$LINENO: result: $enable_static" >&5
6843 echo "${ECHO_T}$enable_static" >&6
6845 if test "$hardcode_action" = relink; then
6846 # Fast installation is not supported
6847 enable_fast_install=no
6848 elif test "$shlibpath_overrides_runpath" = yes ||
6849 test "$enable_shared" = no; then
6850 # Fast installation is not necessary
6851 enable_fast_install=needless
6854 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6855 if test "$GCC" = yes; then
6856 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6859 if test "x$enable_dlopen" != xyes; then
6860 enable_dlopen=unknown
6861 enable_dlopen_self=unknown
6862 enable_dlopen_self_static=unknown
6869 lt_cv_dlopen="load_add_on"
6871 lt_cv_dlopen_self=yes
6874 cygwin* | mingw* | pw32*)
6875 lt_cv_dlopen="LoadLibrary"
6880 echo "$as_me:$LINENO: checking for shl_load" >&5
6881 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6882 if test "${ac_cv_func_shl_load+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 cat >conftest.$ac_ext <<_ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h. */
6891 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6893 #define shl_load innocuous_shl_load
6895 /* System header to define __stub macros and hopefully few prototypes,
6896 which can conflict with char shl_load (); below.
6897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6898 <limits.h> exists even on freestanding compilers. */
6901 # include <limits.h>
6903 # include <assert.h>
6908 /* Override any gcc2 internal prototype to avoid an error. */
6913 /* We use char because int might match the return type of a gcc2
6914 builtin and then its argument prototype would still apply. */
6916 /* The GNU C library defines this for functions which it implements
6917 to always fail with ENOSYS. Some functions are actually named
6918 something starting with __ and the normal name is an alias. */
6919 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6922 char (*f) () = shl_load;
6931 return f != shl_load;
6936 rm -f conftest.$ac_objext conftest$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938 (eval $ac_link) 2>conftest.er1
6940 grep -v '^ *+' conftest.er1 >conftest.err
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } &&
6945 { ac_try='test -z "$ac_c_werror_flag"
6946 || test ! -s conftest.err'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; } &&
6952 { ac_try='test -s conftest$ac_exeext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6958 ac_cv_func_shl_load=yes
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6963 ac_cv_func_shl_load=no
6965 rm -f conftest.err conftest.$ac_objext \
6966 conftest$ac_exeext conftest.$ac_ext
6968 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6969 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6970 if test $ac_cv_func_shl_load = yes; then
6971 lt_cv_dlopen="shl_load"
6973 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6974 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6975 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 ac_check_lib_save_LIBS=$LIBS
6980 cat >conftest.$ac_ext <<_ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6987 /* Override any gcc2 internal prototype to avoid an error. */
6991 /* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004 (eval $ac_link) 2>conftest.er1
7006 grep -v '^ *+' conftest.er1 >conftest.err
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } &&
7011 { ac_try='test -z "$ac_c_werror_flag"
7012 || test ! -s conftest.err'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; } &&
7018 { ac_try='test -s conftest$ac_exeext'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
7024 ac_cv_lib_dld_shl_load=yes
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_cv_lib_dld_shl_load=no
7031 rm -f conftest.err conftest.$ac_objext \
7032 conftest$ac_exeext conftest.$ac_ext
7033 LIBS=$ac_check_lib_save_LIBS
7035 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7036 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7037 if test $ac_cv_lib_dld_shl_load = yes; then
7038 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7040 echo "$as_me:$LINENO: checking for dlopen" >&5
7041 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7042 if test "${ac_cv_func_dlopen+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 cat >conftest.$ac_ext <<_ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7053 #define dlopen innocuous_dlopen
7055 /* System header to define __stub macros and hopefully few prototypes,
7056 which can conflict with char dlopen (); below.
7057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7058 <limits.h> exists even on freestanding compilers. */
7061 # include <limits.h>
7063 # include <assert.h>
7068 /* Override any gcc2 internal prototype to avoid an error. */
7073 /* We use char because int might match the return type of a gcc2
7074 builtin and then its argument prototype would still apply. */
7076 /* The GNU C library defines this for functions which it implements
7077 to always fail with ENOSYS. Some functions are actually named
7078 something starting with __ and the normal name is an alias. */
7079 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7082 char (*f) () = dlopen;
7096 rm -f conftest.$ac_objext conftest$ac_exeext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7098 (eval $ac_link) 2>conftest.er1
7100 grep -v '^ *+' conftest.er1 >conftest.err
7102 cat conftest.err >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } &&
7105 { ac_try='test -z "$ac_c_werror_flag"
7106 || test ! -s conftest.err'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; } &&
7112 { ac_try='test -s conftest$ac_exeext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 ac_cv_func_dlopen=yes
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7123 ac_cv_func_dlopen=no
7125 rm -f conftest.err conftest.$ac_objext \
7126 conftest$ac_exeext conftest.$ac_ext
7128 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7129 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7130 if test $ac_cv_func_dlopen = yes; then
7131 lt_cv_dlopen="dlopen"
7133 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7134 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7135 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 ac_check_lib_save_LIBS=$LIBS
7140 cat >conftest.$ac_ext <<_ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7147 /* Override any gcc2 internal prototype to avoid an error. */
7151 /* We use char because int might match the return type of a gcc2
7152 builtin and then its argument prototype would still apply. */
7162 rm -f conftest.$ac_objext conftest$ac_exeext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7164 (eval $ac_link) 2>conftest.er1
7166 grep -v '^ *+' conftest.er1 >conftest.err
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } &&
7171 { ac_try='test -z "$ac_c_werror_flag"
7172 || test ! -s conftest.err'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; } &&
7178 { ac_try='test -s conftest$ac_exeext'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7184 ac_cv_lib_dl_dlopen=yes
7186 echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.$ac_ext >&5
7189 ac_cv_lib_dl_dlopen=no
7191 rm -f conftest.err conftest.$ac_objext \
7192 conftest$ac_exeext conftest.$ac_ext
7193 LIBS=$ac_check_lib_save_LIBS
7195 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7196 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7197 if test $ac_cv_lib_dl_dlopen = yes; then
7198 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7200 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7201 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7202 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 ac_check_lib_save_LIBS=$LIBS
7207 cat >conftest.$ac_ext <<_ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7214 /* Override any gcc2 internal prototype to avoid an error. */
7218 /* We use char because int might match the return type of a gcc2
7219 builtin and then its argument prototype would still apply. */
7229 rm -f conftest.$ac_objext conftest$ac_exeext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7231 (eval $ac_link) 2>conftest.er1
7233 grep -v '^ *+' conftest.er1 >conftest.err
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } &&
7238 { ac_try='test -z "$ac_c_werror_flag"
7239 || test ! -s conftest.err'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; } &&
7245 { ac_try='test -s conftest$ac_exeext'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7251 ac_cv_lib_svld_dlopen=yes
7253 echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7256 ac_cv_lib_svld_dlopen=no
7258 rm -f conftest.err conftest.$ac_objext \
7259 conftest$ac_exeext conftest.$ac_ext
7260 LIBS=$ac_check_lib_save_LIBS
7262 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7263 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7264 if test $ac_cv_lib_svld_dlopen = yes; then
7265 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7267 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7268 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7269 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 ac_check_lib_save_LIBS=$LIBS
7274 cat >conftest.$ac_ext <<_ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7281 /* Override any gcc2 internal prototype to avoid an error. */
7285 /* We use char because int might match the return type of a gcc2
7286 builtin and then its argument prototype would still apply. */
7296 rm -f conftest.$ac_objext conftest$ac_exeext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7298 (eval $ac_link) 2>conftest.er1
7300 grep -v '^ *+' conftest.er1 >conftest.err
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try='test -z "$ac_c_werror_flag"
7306 || test ! -s conftest.err'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; } &&
7312 { ac_try='test -s conftest$ac_exeext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7318 ac_cv_lib_dld_dld_link=yes
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7323 ac_cv_lib_dld_dld_link=no
7325 rm -f conftest.err conftest.$ac_objext \
7326 conftest$ac_exeext conftest.$ac_ext
7327 LIBS=$ac_check_lib_save_LIBS
7329 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7330 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7331 if test $ac_cv_lib_dld_dld_link = yes; then
7332 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7353 if test "x$lt_cv_dlopen" != xno; then
7359 case $lt_cv_dlopen in
7361 save_CPPFLAGS="$CPPFLAGS"
7362 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7364 save_LDFLAGS="$LDFLAGS"
7365 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7368 LIBS="$lt_cv_dlopen_libs $LIBS"
7370 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7371 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7372 if test "${lt_cv_dlopen_self+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 if test "$cross_compiling" = yes; then :
7376 lt_cv_dlopen_self=cross
7378 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7379 lt_status=$lt_dlunknown
7380 cat > conftest.$ac_ext <<EOF
7381 #line 7381 "configure"
7382 #include "confdefs.h"
7391 # define LT_DLGLOBAL RTLD_GLOBAL
7394 # define LT_DLGLOBAL DL_GLOBAL
7396 # define LT_DLGLOBAL 0
7400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7401 find out it does not work in some platform. */
7402 #ifndef LT_DLLAZY_OR_NOW
7404 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7407 # define LT_DLLAZY_OR_NOW DL_LAZY
7410 # define LT_DLLAZY_OR_NOW RTLD_NOW
7413 # define LT_DLLAZY_OR_NOW DL_NOW
7415 # define LT_DLLAZY_OR_NOW 0
7423 extern "C" void exit (int);
7426 void fnord() { int i=42;}
7429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7430 int status = $lt_dlunknown;
7434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7435 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7436 /* dlclose (self); */
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443 (eval $ac_link) 2>&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7447 (./conftest; exit; ) 2>/dev/null
7450 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7451 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7452 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7455 # compilation failed
7456 lt_cv_dlopen_self=no
7463 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7464 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7466 if test "x$lt_cv_dlopen_self" = xyes; then
7467 LDFLAGS="$LDFLAGS $link_static_flag"
7468 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7469 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7470 if test "${lt_cv_dlopen_self_static+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 if test "$cross_compiling" = yes; then :
7474 lt_cv_dlopen_self_static=cross
7476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7477 lt_status=$lt_dlunknown
7478 cat > conftest.$ac_ext <<EOF
7479 #line 7479 "configure"
7480 #include "confdefs.h"
7489 # define LT_DLGLOBAL RTLD_GLOBAL
7492 # define LT_DLGLOBAL DL_GLOBAL
7494 # define LT_DLGLOBAL 0
7498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7499 find out it does not work in some platform. */
7500 #ifndef LT_DLLAZY_OR_NOW
7502 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7505 # define LT_DLLAZY_OR_NOW DL_LAZY
7508 # define LT_DLLAZY_OR_NOW RTLD_NOW
7511 # define LT_DLLAZY_OR_NOW DL_NOW
7513 # define LT_DLLAZY_OR_NOW 0
7521 extern "C" void exit (int);
7524 void fnord() { int i=42;}
7527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7528 int status = $lt_dlunknown;
7532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7533 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7534 /* dlclose (self); */
7540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7541 (eval $ac_link) 2>&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7545 (./conftest; exit; ) 2>/dev/null
7548 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7549 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7550 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7553 # compilation failed
7554 lt_cv_dlopen_self_static=no
7561 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7562 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7565 CPPFLAGS="$save_CPPFLAGS"
7566 LDFLAGS="$save_LDFLAGS"
7571 case $lt_cv_dlopen_self in
7572 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7573 *) enable_dlopen_self=unknown ;;
7576 case $lt_cv_dlopen_self_static in
7577 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7578 *) enable_dlopen_self_static=unknown ;;
7583 if test "$enable_shared" = yes && test "$GCC" = yes; then
7584 case $archive_cmds in
7586 # FIXME: we may have to deal with multi-command sequences.
7589 # Test whether the compiler implicitly links with -lc since on some
7590 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7591 # to ld, don't add -lc before -lgcc.
7592 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7593 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7594 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 echo 'static int dummy;' > conftest.$ac_ext
7600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7601 (eval $ac_compile) 2>&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; then
7607 libobjs=conftest.$ac_objext
7609 wl=$lt_cv_prog_cc_wl
7615 save_allow_undefined_flag=$allow_undefined_flag
7616 allow_undefined_flag=
7617 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7618 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }
7623 lt_cv_archive_cmds_need_lc=no
7625 lt_cv_archive_cmds_need_lc=yes
7627 allow_undefined_flag=$save_allow_undefined_flag
7629 cat conftest.err 1>&5
7633 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7634 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7638 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7640 # The second clause should only fire when bootstrapping the
7641 # libtool distribution, otherwise you forgot to ship ltmain.sh
7642 # with your package, and you will get complaints that there are
7643 # no rules to generate ltmain.sh.
7644 if test -f "$ltmain"; then
7647 # If there is no Makefile yet, we rely on a make rule to execute
7648 # `config.status --recheck' to rerun these tests and create the
7649 # libtool script then.
7650 test -f Makefile && make "$ltmain"
7653 if test -f "$ltmain"; then
7654 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7657 echo creating $ofile
7659 # Now quote all the things that may contain metacharacters while being
7660 # careful not to overquote the AC_SUBSTed values. We take copies of the
7661 # variables and quote the copies for generation of the libtool script.
7662 for var in echo old_CC old_CFLAGS SED \
7663 AR AR_FLAGS CC LD LN_S NM SHELL \
7664 reload_flag reload_cmds wl \
7665 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7666 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7667 library_names_spec soname_spec \
7668 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7669 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7670 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7671 old_striplib striplib file_magic_cmd export_symbols_cmds \
7672 deplibs_check_method allow_undefined_flag no_undefined_flag \
7673 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7674 global_symbol_to_c_name_address \
7675 hardcode_libdir_flag_spec hardcode_libdir_separator \
7676 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7677 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7680 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7681 old_postinstall_cmds | old_postuninstall_cmds | \
7682 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7683 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7684 postinstall_cmds | postuninstall_cmds | \
7685 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7686 # Double-quote double-evaled strings.
7687 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7695 cat <<__EOF__ > "${ofile}T"
7698 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7699 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7700 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7702 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7703 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7705 # This program is free software; you can redistribute it and/or modify
7706 # it under the terms of the GNU General Public License as published by
7707 # the Free Software Foundation; either version 2 of the License, or
7708 # (at your option) any later version.
7710 # This program is distributed in the hope that it will be useful, but
7711 # WITHOUT ANY WARRANTY; without even the implied warranty of
7712 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7713 # General Public License for more details.
7715 # You should have received a copy of the GNU General Public License
7716 # along with this program; if not, write to the Free Software
7717 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7719 # As a special exception to the GNU General Public License, if you
7720 # distribute this file as part of a program that contains a
7721 # configuration script generated by Autoconf, you may include it under
7722 # the same distribution terms that you use for the rest of that program.
7724 # A sed that does not truncate output.
7727 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7728 Xsed="${SED} -e s/^X//"
7730 # The HP-UX ksh and POSIX shell print the target directory to stdout
7732 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7734 # ### BEGIN LIBTOOL CONFIG
7736 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7738 # Shell to use when invoking shell scripts.
7741 # Whether or not to build shared libraries.
7742 build_libtool_libs=$enable_shared
7744 # Whether or not to build static libraries.
7745 build_old_libs=$enable_static
7747 # Whether or not to add -lc for building shared libraries.
7748 build_libtool_need_lc=$need_lc
7750 # Whether or not to optimize for fast installation.
7751 fast_install=$enable_fast_install
7754 host_alias=$host_alias
7757 # An echo program that does not interpret backslashes.
7762 AR_FLAGS=$lt_AR_FLAGS
7764 # The default C compiler.
7767 # Is the compiler the GNU C compiler?
7770 # The linker used to build libraries.
7773 # Whether we need hard or soft links.
7776 # A BSD-compatible nm program.
7779 # A symbol stripping program
7782 # Used to examine libraries when file_magic_cmd begins "file"
7783 MAGIC_CMD=$MAGIC_CMD
7785 # Used on cygwin: DLL creation program.
7788 # Used on cygwin: object dumper.
7791 # Used on cygwin: assembler.
7794 # The name of the directory that contains temporary libtool files.
7797 # How to create reloadable object files.
7798 reload_flag=$lt_reload_flag
7799 reload_cmds=$lt_reload_cmds
7801 # How to pass a linker flag through the compiler.
7804 # Object file suffix (normally "o").
7807 # Old archive suffix (normally "a").
7810 # Executable file suffix (normally "").
7813 # Additional compiler flags for building library objects.
7814 pic_flag=$lt_pic_flag
7817 # Does compiler simultaneously support -c and -o options?
7818 compiler_c_o=$lt_compiler_c_o
7820 # Can we write directly to a .lo ?
7821 compiler_o_lo=$lt_compiler_o_lo
7823 # Must we lock files when doing compilation ?
7824 need_locks=$lt_need_locks
7826 # Do we need the lib prefix for modules?
7827 need_lib_prefix=$need_lib_prefix
7829 # Do we need a version for libraries?
7830 need_version=$need_version
7832 # Whether dlopen is supported.
7833 dlopen_support=$enable_dlopen
7835 # Whether dlopen of programs is supported.
7836 dlopen_self=$enable_dlopen_self
7838 # Whether dlopen of statically linked programs is supported.
7839 dlopen_self_static=$enable_dlopen_self_static
7841 # Compiler flag to prevent dynamic linking.
7842 link_static_flag=$lt_link_static_flag
7844 # Compiler flag to turn off builtin functions.
7845 no_builtin_flag=$lt_no_builtin_flag
7847 # Compiler flag to allow reflexive dlopens.
7848 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7850 # Compiler flag to generate shared objects directly from archives.
7851 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7853 # Compiler flag to generate thread-safe objects.
7854 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7856 # Library versioning type.
7857 version_type=$version_type
7859 # Format of library name prefix.
7860 libname_spec=$lt_libname_spec
7862 # List of archive names. First name is the real one, the rest are links.
7863 # The last name is the one that the linker finds with -lNAME.
7864 library_names_spec=$lt_library_names_spec
7866 # The coded name of the library, if different from the real name.
7867 soname_spec=$lt_soname_spec
7869 # Commands used to build and install an old-style archive.
7871 old_archive_cmds=$lt_old_archive_cmds
7872 old_postinstall_cmds=$lt_old_postinstall_cmds
7873 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7875 # Create an old-style archive from a shared archive.
7876 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7878 # Create a temporary old-style archive to link instead of a shared archive.
7879 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7881 # Commands used to build and install a shared archive.
7882 archive_cmds=$lt_archive_cmds
7883 archive_expsym_cmds=$lt_archive_expsym_cmds
7884 postinstall_cmds=$lt_postinstall_cmds
7885 postuninstall_cmds=$lt_postuninstall_cmds
7887 # Commands to strip libraries.
7888 old_striplib=$lt_old_striplib
7889 striplib=$lt_striplib
7891 # Method to check whether dependent libraries are shared objects.
7892 deplibs_check_method=$lt_deplibs_check_method
7894 # Command to use when deplibs_check_method == file_magic.
7895 file_magic_cmd=$lt_file_magic_cmd
7897 # Flag that allows shared libraries with undefined symbols to be built.
7898 allow_undefined_flag=$lt_allow_undefined_flag
7900 # Flag that forces no undefined symbols.
7901 no_undefined_flag=$lt_no_undefined_flag
7903 # Commands used to finish a libtool library installation in a directory.
7904 finish_cmds=$lt_finish_cmds
7906 # Same as above, but a single script fragment to be evaled but not shown.
7907 finish_eval=$lt_finish_eval
7909 # Take the output of nm and produce a listing of raw symbols and C names.
7910 global_symbol_pipe=$lt_global_symbol_pipe
7912 # Transform the output of nm in a proper C declaration
7913 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7915 # Transform the output of nm in a C name address pair
7916 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7918 # This is the shared library runtime path variable.
7919 runpath_var=$runpath_var
7921 # This is the shared library path variable.
7922 shlibpath_var=$shlibpath_var
7924 # Is shlibpath searched before the hard-coded library search path?
7925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7927 # How to hardcode a shared library path into an executable.
7928 hardcode_action=$hardcode_action
7930 # Whether we should hardcode library paths into libraries.
7931 hardcode_into_libs=$hardcode_into_libs
7933 # Flag to hardcode \$libdir into a binary during linking.
7934 # This must work even if \$libdir does not exist.
7935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7937 # Whether we need a single -rpath flag with a separated argument.
7938 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7940 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7942 hardcode_direct=$hardcode_direct
7944 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7946 hardcode_minus_L=$hardcode_minus_L
7948 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7949 # the resulting binary.
7950 hardcode_shlibpath_var=$hardcode_shlibpath_var
7952 # Variables whose values should be saved in libtool wrapper scripts and
7953 # restored at relink time.
7954 variables_saved_for_relink="$variables_saved_for_relink"
7956 # Whether libtool must link a program against all its dependency libraries.
7957 link_all_deplibs=$link_all_deplibs
7959 # Compile-time system search path for libraries
7960 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7962 # Run-time system search path for libraries
7963 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7965 # Fix the shell variable \$srcfile for the compiler.
7966 fix_srcfile_path="$fix_srcfile_path"
7968 # Set to yes if exported symbols are required.
7969 always_export_symbols=$always_export_symbols
7971 # The commands to list exported symbols.
7972 export_symbols_cmds=$lt_export_symbols_cmds
7974 # The commands to extract the exported symbol list from a shared archive.
7975 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7977 # Symbols that should not be listed in the preloaded symbols.
7978 exclude_expsyms=$lt_exclude_expsyms
7980 # Symbols that must always be exported.
7981 include_expsyms=$lt_include_expsyms
7983 # ### END LIBTOOL CONFIG
7989 cat <<\EOF >> "${ofile}T"
7991 # AIX sometimes has problems with the GCC collect2 program. For some
7992 # reason, if we set the COLLECT_NAMES environment variable, the problems
7993 # vanish in a puff of smoke.
7994 if test "X${COLLECT_NAMES+set}" != Xset; then
7996 export COLLECT_NAMES
8003 cygwin* | mingw* | pw32* | os2*)
8004 cat <<'EOF' >> "${ofile}T"
8005 # This is a source program that is used to create dlls on Windows
8006 # Don't remove nor modify the starting and closing comments
8007 # /* ltdll.c starts here */
8008 # #define WIN32_LEAN_AND_MEAN
8009 # #include <windows.h>
8010 # #undef WIN32_LEAN_AND_MEAN
8011 # #include <stdio.h>
8013 # #ifndef __CYGWIN__
8014 # # ifdef __CYGWIN32__
8015 # # define __CYGWIN__ __CYGWIN32__
8019 # #ifdef __cplusplus
8022 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8023 # #ifdef __cplusplus
8028 # #include <cygwin/cygwin_dll.h>
8029 # DECLARE_CYGWIN_DLL( DllMain );
8031 # HINSTANCE __hDllInstance_base;
8034 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8036 # __hDllInstance_base = hInst;
8039 # /* ltdll.c ends here */
8040 # This is a source program that is used to create import libraries
8041 # on Windows for dlls which lack them. Don't remove nor modify the
8042 # starting and closing comments
8043 # /* impgen.c starts here */
8044 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8046 # This file is part of GNU libtool.
8048 # This program is free software; you can redistribute it and/or modify
8049 # it under the terms of the GNU General Public License as published by
8050 # the Free Software Foundation; either version 2 of the License, or
8051 # (at your option) any later version.
8053 # This program is distributed in the hope that it will be useful,
8054 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8055 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8056 # GNU General Public License for more details.
8058 # You should have received a copy of the GNU General Public License
8059 # along with this program; if not, write to the Free Software
8060 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8063 # #include <stdio.h> /* for printf() */
8064 # #include <unistd.h> /* for open(), lseek(), read() */
8065 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8066 # #include <string.h> /* for strdup() */
8068 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8070 # #define O_BINARY 0
8073 # static unsigned int
8074 # pe_get16 (fd, offset)
8078 # unsigned char b[2];
8079 # lseek (fd, offset, SEEK_SET);
8081 # return b[0] + (b[1]<<8);
8084 # static unsigned int
8085 # pe_get32 (fd, offset)
8089 # unsigned char b[4];
8090 # lseek (fd, offset, SEEK_SET);
8092 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8095 # static unsigned int
8099 # unsigned char *b = ptr;
8100 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8109 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8110 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8111 # unsigned long name_rvas, nexp;
8112 # unsigned char *expdata, *erva;
8113 # char *filename, *dll_name;
8115 # filename = argv[1];
8117 # dll = open(filename, O_RDONLY|O_BINARY);
8121 # dll_name = filename;
8123 # for (i=0; filename[i]; i++)
8124 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8125 # dll_name = filename + i +1;
8127 # pe_header_offset = pe_get32 (dll, 0x3c);
8128 # opthdr_ofs = pe_header_offset + 4 + 20;
8129 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8131 # if (num_entries < 1) /* no exports */
8134 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8135 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8136 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8137 # secptr = (pe_header_offset + 4 + 20 +
8138 # pe_get16 (dll, pe_header_offset + 4 + 16));
8141 # for (i = 0; i < nsections; i++)
8144 # unsigned long secptr1 = secptr + 40 * i;
8145 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8146 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8147 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8148 # lseek(dll, secptr1, SEEK_SET);
8149 # read(dll, sname, 8);
8150 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8152 # expptr = fptr + (export_rva - vaddr);
8153 # if (export_rva + export_size > vaddr + vsize)
8154 # export_size = vsize - (export_rva - vaddr);
8159 # expdata = (unsigned char*)malloc(export_size);
8160 # lseek (dll, expptr, SEEK_SET);
8161 # read (dll, expdata, export_size);
8162 # erva = expdata - export_rva;
8164 # nexp = pe_as32 (expdata+24);
8165 # name_rvas = pe_as32 (expdata+32);
8167 # printf ("EXPORTS\n");
8168 # for (i = 0; i<nexp; i++)
8170 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8171 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8176 # /* impgen.c ends here */
8182 # We use sed instead of cat because bash on DJGPP gets confused if
8183 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8184 # text mode, it properly converts lines to CR/LF. This bash problem
8185 # is reportedly fixed, but why not run on old versions too?
8186 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8188 mv -f "${ofile}T" "$ofile" || \
8189 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8197 # This can be used to rebuild libtool when needed
8198 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8200 # Always use our own libtool.
8201 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8203 # Prevent multiple expansion
8206 for ac_prog in gzip uncompress compress
8208 # Extract the first word of "$ac_prog", so it can be a program name with args.
8209 set dummy $ac_prog; ac_word=$2
8210 echo "$as_me:$LINENO: checking for $ac_word" >&5
8211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8212 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 if test -n "$UNCOMPRESS"; then
8216 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8225 ac_cv_prog_UNCOMPRESS="$ac_prog"
8226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8235 if test -n "$UNCOMPRESS"; then
8236 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8237 echo "${ECHO_T}$UNCOMPRESS" >&6
8239 echo "$as_me:$LINENO: result: no" >&5
8240 echo "${ECHO_T}no" >&6
8243 test -n "$UNCOMPRESS" && break
8252 if test "x$EXEEXT" = "x.exe";then
8263 echo "$as_me:$LINENO: checking for target system" >&5
8264 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8268 *cygwin* ) CYGWIN=yes;;
8269 *mingw* ) MINGW=yes;;
8273 if test "x$MINGW" = "xyes"; then
8274 #fix for the debian distribution of mingw
8275 if test -x "/usr/i586-mingw32msvc/bin/ar";then
8276 AR="/usr/i586-mingw32msvc/bin/ar"
8278 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8279 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8281 #fix for the gentoo distribution of mingw
8282 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8283 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8285 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8286 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8288 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8289 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8295 if test "x${CYGWIN}" = "xyes"; then
8296 cat >>confdefs.h <<_ACEOF
8300 echo "$as_me:$LINENO: result: cygwin" >&5
8301 echo "${ECHO_T}cygwin" >&6
8303 if test "x${MINGW}" = "xyes"; then
8304 cat >>confdefs.h <<_ACEOF
8309 cat >>confdefs.h <<_ACEOF
8313 LIBS="$LIBS -lws2_32"
8314 echo "$as_me:$LINENO: result: mingw" >&5
8315 echo "${ECHO_T}mingw" >&6
8319 cat >>confdefs.h <<_ACEOF
8323 echo "$as_me:$LINENO: result: " >&5
8324 echo "${ECHO_T}" >&6
8330 if test "x${MINGW}" != "xyes"; then
8332 cat >>confdefs.h <<_ACEOF
8343 # The following tries to make use of includes and libraries in
8344 # /usr/local, too. Notice: A -I/usr/local/include might break
8345 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8346 # especially on systems which link /usr/local to /usr, so it has yet
8347 # to be seen how useful this is.
8348 if test -d /usr/local/lib; then
8349 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8351 if test -d /usr/local/include; then
8352 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8353 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8356 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8357 # if the user has a special prefix (like /opt), there might also be $prefix/lib
8358 # and $prefix/include, which should be included in our search paths for libraries
8360 LDFLAGS="$LDFLAGS -L${libdir}"
8361 CPPFLAGS="$CPPFLAGS -I${includedir}"
8362 # TODO- test whether gcc still works after this
8366 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
8369 # this must be done after (I believe) AC_PROG_MAKE_SET
8370 if test "x$DEBUG" '!=' "x";then
8371 STRIP="@echo debug enabled, not stripping "
8377 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8378 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8379 if test "${ac_cv_lib_m_sin+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 ac_check_lib_save_LIBS=$LIBS
8384 cat >conftest.$ac_ext <<_ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8391 /* Override any gcc2 internal prototype to avoid an error. */
8395 /* We use char because int might match the return type of a gcc2
8396 builtin and then its argument prototype would still apply. */
8406 rm -f conftest.$ac_objext conftest$ac_exeext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8408 (eval $ac_link) 2>conftest.er1
8410 grep -v '^ *+' conftest.er1 >conftest.err
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } &&
8415 { ac_try='test -z "$ac_c_werror_flag"
8416 || test ! -s conftest.err'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; } &&
8422 { ac_try='test -s conftest$ac_exeext'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8435 rm -f conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
8437 LIBS=$ac_check_lib_save_LIBS
8439 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8440 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8441 if test $ac_cv_lib_m_sin = yes; then
8442 cat >>confdefs.h <<_ACEOF
8449 echo "Error: Math library not found.";
8455 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8456 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8457 if test "${ac_cv_lib_z_deflate+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 ac_check_lib_save_LIBS=$LIBS
8462 cat >conftest.$ac_ext <<_ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h. */
8469 /* Override any gcc2 internal prototype to avoid an error. */
8473 /* We use char because int might match the return type of a gcc2
8474 builtin and then its argument prototype would still apply. */
8484 rm -f conftest.$ac_objext conftest$ac_exeext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8486 (eval $ac_link) 2>conftest.er1
8488 grep -v '^ *+' conftest.er1 >conftest.err
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
8493 { ac_try='test -z "$ac_c_werror_flag"
8494 || test ! -s conftest.err'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; } &&
8500 { ac_try='test -s conftest$ac_exeext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 ac_cv_lib_z_deflate=yes
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 ac_cv_lib_z_deflate=no
8513 rm -f conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
8515 LIBS=$ac_check_lib_save_LIBS
8517 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8518 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8519 if test $ac_cv_lib_z_deflate = yes; then
8520 cat >>confdefs.h <<_ACEOF
8531 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8532 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8533 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 ac_check_lib_save_LIBS=$LIBS
8538 cat >conftest.$ac_ext <<_ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8545 /* Override any gcc2 internal prototype to avoid an error. */
8549 /* We use char because int might match the return type of a gcc2
8550 builtin and then its argument prototype would still apply. */
8551 char jpeg_write_raw_data ();
8555 jpeg_write_raw_data ();
8560 rm -f conftest.$ac_objext conftest$ac_exeext
8561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8562 (eval $ac_link) 2>conftest.er1
8564 grep -v '^ *+' conftest.er1 >conftest.err
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try='test -z "$ac_c_werror_flag"
8570 || test ! -s conftest.err'
8571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; } &&
8576 { ac_try='test -s conftest$ac_exeext'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8589 rm -f conftest.err conftest.$ac_objext \
8590 conftest$ac_exeext conftest.$ac_ext
8591 LIBS=$ac_check_lib_save_LIBS
8593 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8594 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8595 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8596 cat >>confdefs.h <<_ACEOF
8597 #define HAVE_LIBJPEG 1
8607 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8608 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8609 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 ac_check_lib_save_LIBS=$LIBS
8614 cat >conftest.$ac_ext <<_ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8621 /* Override any gcc2 internal prototype to avoid an error. */
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8627 char T1_LoadFont ();
8636 rm -f conftest.$ac_objext conftest$ac_exeext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8638 (eval $ac_link) 2>conftest.er1
8640 grep -v '^ *+' conftest.er1 >conftest.err
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try='test -z "$ac_c_werror_flag"
8646 || test ! -s conftest.err'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; } &&
8652 { ac_try='test -s conftest$ac_exeext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_cv_lib_t1_T1_LoadFont=yes
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8663 ac_cv_lib_t1_T1_LoadFont=no
8665 rm -f conftest.err conftest.$ac_objext \
8666 conftest$ac_exeext conftest.$ac_ext
8667 LIBS=$ac_check_lib_save_LIBS
8669 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8670 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8671 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8672 cat >>confdefs.h <<_ACEOF
8673 #define HAVE_LIBT1 1
8683 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
8684 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
8685 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 ac_check_lib_save_LIBS=$LIBS
8689 LIBS="-lungif $LIBS"
8690 cat >conftest.$ac_ext <<_ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8697 /* Override any gcc2 internal prototype to avoid an error. */
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>conftest.er1
8716 grep -v '^ *+' conftest.er1 >conftest.err
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -z "$ac_c_werror_flag"
8722 || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 ac_cv_lib_ungif_DGifOpen=yes
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 ac_cv_lib_ungif_DGifOpen=no
8741 rm -f conftest.err conftest.$ac_objext \
8742 conftest$ac_exeext conftest.$ac_ext
8743 LIBS=$ac_check_lib_save_LIBS
8745 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
8746 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
8747 if test $ac_cv_lib_ungif_DGifOpen = yes; then
8748 cat >>confdefs.h <<_ACEOF
8749 #define HAVE_LIBUNGIF 1
8752 LIBS="-lungif $LIBS"
8760 echo "$as_me:$LINENO: checking for byte order" >&5
8761 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8762 if test "$cross_compiling" = yes; then
8765 cat >conftest.$ac_ext <<_ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8772 int main (int argc, char *argv[])
8779 rm -f conftest$ac_exeext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8781 (eval $ac_link) 2>&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8792 echo "$as_me: program exited with status $ac_status" >&5
8793 echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8799 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8803 if test "x${CROSSCOMPILE}" = "x1"; then
8804 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
8805 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
8806 echo "$as_me:$LINENO: checking target system type" >&5
8807 echo $ECHO_N "checking target system type... $ECHO_C" >&6
8808 if test "${ac_cv_target+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 ac_cv_target_alias=$target_alias
8812 test "x$ac_cv_target_alias" = "x" &&
8813 ac_cv_target_alias=$ac_cv_host_alias
8814 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
8815 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
8816 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
8817 { (exit 1); exit 1; }; }
8820 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
8821 echo "${ECHO_T}$ac_cv_target" >&6
8822 target=$ac_cv_target
8823 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8824 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8825 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8828 # The aliases save the names the user supplied, while $host etc.
8829 # will get canonicalized.
8830 test -n "$target_alias" &&
8831 test "$program_prefix$program_suffix$program_transform_name" = \
8833 program_prefix=${target_alias}-
8834 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
8835 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
8840 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
8847 if test "x${LITTLEENDIAN}" = "x1"; then
8848 echo "$as_me:$LINENO: result: little endian" >&5
8849 echo "${ECHO_T}little endian" >&6
8853 if test "x${BIGENDIAN}" = "x1"; then
8854 echo "$as_me:$LINENO: result: big endian" >&5
8855 echo "${ECHO_T}big endian" >&6
8858 export WORDS_BIGENDIAN
8859 cat >>confdefs.h <<_ACEOF
8860 #define WORDS_BIGENDIAN 1
8864 if test "x${BYTEORDERCHECKOK}" != "x1"; then
8865 echo "$as_me:$LINENO: result: unknown" >&5
8866 echo "${ECHO_T}unknown" >&6
8867 echo Byte order could not determined.
8873 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
8874 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
8875 if test "$cross_compiling" = yes; then
8878 cat >conftest.$ac_ext <<_ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8886 int main (int argc, char*argv[])
8888 return system("test `touch config.tmp2`");
8892 rm -f conftest$ac_exeext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8894 (eval $ac_link) 2>&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8905 echo "$as_me: program exited with status $ac_status" >&5
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8913 if test "x${OK}" = "xOK";then
8914 test -f config.tmp2 || OK=
8917 if test "x${CROSSCOMPILE}" = "x1";then
8920 if test "x${OK}" = "xOK";then
8922 echo "$as_me:$LINENO: result: yes" >&5
8923 echo "${ECHO_T}yes" >&6
8925 export SYSTEM_BACKTICKS
8926 cat >>confdefs.h <<_ACEOF
8927 #define SYSTEM_BACKTICKS 1
8931 echo "$as_me:$LINENO: result: no" >&5
8932 echo "${ECHO_T}no" >&6
8937 test "$program_prefix" != NONE &&
8938 program_transform_name="s,^,$program_prefix,;$program_transform_name"
8939 # Use a double $ so make ignores it.
8940 test "$program_suffix" != NONE &&
8941 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8942 # Double any \ or $. echo might interpret backslashes.
8943 # By default was `s,x,x', remove it if useless.
8944 cat <<\_ACEOF >conftest.sed
8945 s/[\\$]/&&/g;s/;s,x,x,$//
8947 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8951 ac_config_headers="$ac_config_headers config.h"
8959 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8960 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8961 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8962 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 cat >conftest.$ac_ext <<_ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8972 #include <sys/types.h>
8984 rm -f conftest.$ac_objext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8986 (eval $ac_compile) 2>conftest.er1
8988 grep -v '^ *+' conftest.er1 >conftest.err
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag"
8994 || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try='test -s conftest.$ac_objext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 eval "$as_ac_Header=yes"
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 eval "$as_ac_Header=no"
9013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9018 cat >>confdefs.h <<_ACEOF
9019 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9022 ac_header_dirent=$ac_hdr; break
9026 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9027 if test $ac_header_dirent = dirent.h; then
9028 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9029 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9030 if test "${ac_cv_search_opendir+set}" = set; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 ac_func_search_save_LIBS=$LIBS
9034 ac_cv_search_opendir=no
9035 cat >conftest.$ac_ext <<_ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9042 /* Override any gcc2 internal prototype to avoid an error. */
9046 /* We use char because int might match the return type of a gcc2
9047 builtin and then its argument prototype would still apply. */
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059 (eval $ac_link) 2>conftest.er1
9061 grep -v '^ *+' conftest.er1 >conftest.err
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } &&
9066 { ac_try='test -z "$ac_c_werror_flag"
9067 || test ! -s conftest.err'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; } &&
9073 { ac_try='test -s conftest$ac_exeext'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 ac_cv_search_opendir="none required"
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9085 rm -f conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
9087 if test "$ac_cv_search_opendir" = no; then
9088 for ac_lib in dir; do
9089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9090 cat >conftest.$ac_ext <<_ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h. */
9097 /* Override any gcc2 internal prototype to avoid an error. */
9101 /* We use char because int might match the return type of a gcc2
9102 builtin and then its argument prototype would still apply. */
9112 rm -f conftest.$ac_objext conftest$ac_exeext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9114 (eval $ac_link) 2>conftest.er1
9116 grep -v '^ *+' conftest.er1 >conftest.err
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -z "$ac_c_werror_flag"
9122 || test ! -s conftest.err'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; } &&
9128 { ac_try='test -s conftest$ac_exeext'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9134 ac_cv_search_opendir="-l$ac_lib"
9137 echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9141 rm -f conftest.err conftest.$ac_objext \
9142 conftest$ac_exeext conftest.$ac_ext
9145 LIBS=$ac_func_search_save_LIBS
9147 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9148 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9149 if test "$ac_cv_search_opendir" != no; then
9150 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9155 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9156 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9157 if test "${ac_cv_search_opendir+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 ac_func_search_save_LIBS=$LIBS
9161 ac_cv_search_opendir=no
9162 cat >conftest.$ac_ext <<_ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9169 /* Override any gcc2 internal prototype to avoid an error. */
9173 /* We use char because int might match the return type of a gcc2
9174 builtin and then its argument prototype would still apply. */
9184 rm -f conftest.$ac_objext conftest$ac_exeext
9185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9186 (eval $ac_link) 2>conftest.er1
9188 grep -v '^ *+' conftest.er1 >conftest.err
9190 cat conftest.err >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -z "$ac_c_werror_flag"
9194 || test ! -s conftest.err'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; } &&
9200 { ac_try='test -s conftest$ac_exeext'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
9206 ac_cv_search_opendir="none required"
9208 echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9212 rm -f conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9214 if test "$ac_cv_search_opendir" = no; then
9216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9217 cat >conftest.$ac_ext <<_ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9224 /* Override any gcc2 internal prototype to avoid an error. */
9228 /* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>conftest.er1
9243 grep -v '^ *+' conftest.er1 >conftest.err
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -z "$ac_c_werror_flag"
9249 || test ! -s conftest.err'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_search_opendir="-l$ac_lib"
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9268 rm -f conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9272 LIBS=$ac_func_search_save_LIBS
9274 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9275 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9276 if test "$ac_cv_search_opendir" != no; then
9277 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9283 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9284 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9285 if test "${ac_cv_header_stdc+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 cat >conftest.$ac_ext <<_ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9307 rm -f conftest.$ac_objext
9308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9309 (eval $ac_compile) 2>conftest.er1
9311 grep -v '^ *+' conftest.er1 >conftest.err
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } &&
9316 { ac_try='test -z "$ac_c_werror_flag"
9317 || test ! -s conftest.err'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; } &&
9323 { ac_try='test -s conftest.$ac_objext'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9329 ac_cv_header_stdc=yes
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9334 ac_cv_header_stdc=no
9336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9338 if test $ac_cv_header_stdc = yes; then
9339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9350 $EGREP "memchr" >/dev/null 2>&1; then
9353 ac_cv_header_stdc=no
9359 if test $ac_cv_header_stdc = yes; then
9360 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9361 cat >conftest.$ac_ext <<_ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9371 $EGREP "free" >/dev/null 2>&1; then
9374 ac_cv_header_stdc=no
9380 if test $ac_cv_header_stdc = yes; then
9381 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9382 if test "$cross_compiling" = yes; then
9385 cat >conftest.$ac_ext <<_ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9392 #if ((' ' & 0x0FF) == 0x020)
9393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9396 # define ISLOWER(c) \
9397 (('a' <= (c) && (c) <= 'i') \
9398 || ('j' <= (c) && (c) <= 'r') \
9399 || ('s' <= (c) && (c) <= 'z'))
9400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9408 for (i = 0; i < 256; i++)
9409 if (XOR (islower (i), ISLOWER (i))
9410 || toupper (i) != TOUPPER (i))
9415 rm -f conftest$ac_exeext
9416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9417 (eval $ac_link) 2>&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9428 echo "$as_me: program exited with status $ac_status" >&5
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9433 ac_cv_header_stdc=no
9435 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9439 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9440 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9441 if test $ac_cv_header_stdc = yes; then
9443 cat >>confdefs.h <<\_ACEOF
9444 #define STDC_HEADERS 1
9464 for ac_header in zlib.h gif_lib.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
9466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9468 echo "$as_me:$LINENO: checking for $ac_header" >&5
9469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9476 # Is the header compilable?
9477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9479 cat >conftest.$ac_ext <<_ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9485 $ac_includes_default
9486 #include <$ac_header>
9488 rm -f conftest.$ac_objext
9489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9490 (eval $ac_compile) 2>conftest.er1
9492 grep -v '^ *+' conftest.er1 >conftest.err
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -z "$ac_c_werror_flag"
9498 || test ! -s conftest.err'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; } &&
9504 { ac_try='test -s conftest.$ac_objext'
9505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; }; then
9510 ac_header_compiler=yes
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_header_compiler=no
9517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9519 echo "${ECHO_T}$ac_header_compiler" >&6
9521 # Is the header present?
9522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9524 cat >conftest.$ac_ext <<_ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 #include <$ac_header>
9532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9535 grep -v '^ *+' conftest.er1 >conftest.err
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } >/dev/null; then
9540 if test -s conftest.err; then
9541 ac_cpp_err=$ac_c_preproc_warn_flag
9542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9549 if test -z "$ac_cpp_err"; then
9550 ac_header_preproc=yes
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9555 ac_header_preproc=no
9557 rm -f conftest.err conftest.$ac_ext
9558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9559 echo "${ECHO_T}$ac_header_preproc" >&6
9561 # So? What about this header?
9562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9568 ac_header_preproc=yes
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9585 ## ------------------------------------------ ##
9586 ## Report this to the AC_PACKAGE_NAME lists. ##
9587 ## ------------------------------------------ ##
9590 sed "s/^/$as_me: WARNING: /" >&2
9593 echo "$as_me:$LINENO: checking for $ac_header" >&5
9594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 eval "$as_ac_Header=\$ac_header_preproc"
9600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9605 cat >>confdefs.h <<_ACEOF
9606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9614 cat >>confdefs.h <<_ACEOF
9615 #define PACKAGE "$PACKAGE"
9618 cat >>confdefs.h <<_ACEOF
9619 #define VERSION "$VERSION"
9628 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9629 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9630 if test "${ac_cv_c_const+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 cat >conftest.$ac_ext <<_ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9643 /* FIXME: Include the comments suggested by Paul. */
9645 /* Ultrix mips cc rejects this. */
9646 typedef int charset[2];
9648 /* SunOS 4.1.1 cc rejects this. */
9649 char const *const *ccp;
9651 /* NEC SVR4.0.2 mips cc rejects this. */
9652 struct point {int x, y;};
9653 static struct point const zero = {0,0};
9654 /* AIX XL C 1.02.0.0 rejects this.
9655 It does not let you subtract one const X* pointer from another in
9656 an arm of an if-expression whose if-part is not a constant
9658 const char *g = "string";
9659 ccp = &g + (g ? g-g : 0);
9660 /* HPUX 7.0 cc rejects these. */
9663 ccp = (char const *const *) p;
9664 { /* SCO 3.2v4 cc rejects this. */
9666 char const *s = 0 ? (char *) 0 : (char const *) 0;
9670 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9672 const int *foo = &x[0];
9675 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9676 typedef const int *iptr;
9680 { /* AIX XL C 1.02.0.0 rejects this saying
9681 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9682 struct s { int j; const int *ap[3]; };
9683 struct s *b; b->j = 5;
9685 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9694 rm -f conftest.$ac_objext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696 (eval $ac_compile) 2>conftest.er1
9698 grep -v '^ *+' conftest.er1 >conftest.err
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
9703 { ac_try='test -z "$ac_c_werror_flag"
9704 || test ! -s conftest.err'
9705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; } &&
9710 { ac_try='test -s conftest.$ac_objext'
9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; }; then
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9725 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9726 echo "${ECHO_T}$ac_cv_c_const" >&6
9727 if test $ac_cv_c_const = no; then
9729 cat >>confdefs.h <<\_ACEOF
9735 echo "$as_me:$LINENO: checking for inline" >&5
9736 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9737 if test "${ac_cv_c_inline+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 for ac_kw in inline __inline__ __inline; do
9742 cat >conftest.$ac_ext <<_ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9750 static $ac_kw foo_t static_foo () {return 0; }
9751 $ac_kw foo_t foo () {return 0; }
9755 rm -f conftest.$ac_objext
9756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9757 (eval $ac_compile) 2>conftest.er1
9759 grep -v '^ *+' conftest.er1 >conftest.err
9761 cat conftest.err >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } &&
9764 { ac_try='test -z "$ac_c_werror_flag"
9765 || test ! -s conftest.err'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; } &&
9771 { ac_try='test -s conftest.$ac_objext'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 ac_cv_c_inline=$ac_kw; break
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9787 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9788 echo "${ECHO_T}$ac_cv_c_inline" >&6
9791 case $ac_cv_c_inline in
9794 case $ac_cv_c_inline in
9796 *) ac_val=$ac_cv_c_inline;;
9798 cat >>confdefs.h <<_ACEOF
9800 #define inline $ac_val
9806 echo "$as_me:$LINENO: checking for off_t" >&5
9807 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9808 if test "${ac_cv_type_off_t+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 cat >conftest.$ac_ext <<_ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9817 $ac_includes_default
9829 rm -f conftest.$ac_objext
9830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9831 (eval $ac_compile) 2>conftest.er1
9833 grep -v '^ *+' conftest.er1 >conftest.err
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } &&
9838 { ac_try='test -z "$ac_c_werror_flag"
9839 || test ! -s conftest.err'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } &&
9845 { ac_try='test -s conftest.$ac_objext'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 ac_cv_type_off_t=yes
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9860 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9861 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9862 if test $ac_cv_type_off_t = yes; then
9866 cat >>confdefs.h <<_ACEOF
9872 echo "$as_me:$LINENO: checking for size_t" >&5
9873 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9874 if test "${ac_cv_type_size_t+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 cat >conftest.$ac_ext <<_ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 $ac_includes_default
9889 if (sizeof (size_t))
9895 rm -f conftest.$ac_objext
9896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9897 (eval $ac_compile) 2>conftest.er1
9899 grep -v '^ *+' conftest.er1 >conftest.err
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try='test -z "$ac_c_werror_flag"
9905 || test ! -s conftest.err'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; } &&
9911 { ac_try='test -s conftest.$ac_objext'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9917 ac_cv_type_size_t=yes
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_cv_type_size_t=no
9924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9926 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9927 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9928 if test $ac_cv_type_size_t = yes; then
9932 cat >>confdefs.h <<_ACEOF
9933 #define size_t unsigned
9938 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9939 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9940 if test "${ac_cv_struct_tm+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 cat >conftest.$ac_ext <<_ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 #include <sys/types.h>
9955 struct tm *tp; tp->tm_sec;
9960 rm -f conftest.$ac_objext
9961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9962 (eval $ac_compile) 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -z "$ac_c_werror_flag"
9970 || test ! -s conftest.err'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; } &&
9976 { ac_try='test -s conftest.$ac_objext'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9982 ac_cv_struct_tm=time.h
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 ac_cv_struct_tm=sys/time.h
9989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9991 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9992 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9993 if test $ac_cv_struct_tm = sys/time.h; then
9995 cat >>confdefs.h <<\_ACEOF
9996 #define TM_IN_SYS_TIME 1
10001 echo "$as_me:$LINENO: checking for boolean" >&5
10002 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
10003 if test "${ac_cv_type_boolean+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 cat >conftest.$ac_ext <<_ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 $ac_includes_default
10018 if (sizeof (boolean))
10024 rm -f conftest.$ac_objext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10026 (eval $ac_compile) 2>conftest.er1
10028 grep -v '^ *+' conftest.er1 >conftest.err
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -z "$ac_c_werror_flag"
10034 || test ! -s conftest.err'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest.$ac_objext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_type_boolean=yes
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10051 ac_cv_type_boolean=no
10053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10055 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10056 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10057 if test $ac_cv_type_boolean = yes; then
10061 cat >>confdefs.h <<_ACEOF
10062 #define boolean int
10066 #needed for jpeglib
10078 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10081 echo "$as_me:$LINENO: checking for $ac_func" >&5
10082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10083 if eval "test \"\${$as_ac_var+set}\" = set"; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 cat >conftest.$ac_ext <<_ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h. */
10092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10094 #define $ac_func innocuous_$ac_func
10096 /* System header to define __stub macros and hopefully few prototypes,
10097 which can conflict with char $ac_func (); below.
10098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10099 <limits.h> exists even on freestanding compilers. */
10102 # include <limits.h>
10104 # include <assert.h>
10109 /* Override any gcc2 internal prototype to avoid an error. */
10114 /* We use char because int might match the return type of a gcc2
10115 builtin and then its argument prototype would still apply. */
10117 /* The GNU C library defines this for functions which it implements
10118 to always fail with ENOSYS. Some functions are actually named
10119 something starting with __ and the normal name is an alias. */
10120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10123 char (*f) () = $ac_func;
10132 return f != $ac_func;
10137 rm -f conftest.$ac_objext conftest$ac_exeext
10138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10139 (eval $ac_link) 2>conftest.er1
10141 grep -v '^ *+' conftest.er1 >conftest.err
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } &&
10146 { ac_try='test -z "$ac_c_werror_flag"
10147 || test ! -s conftest.err'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest$ac_exeext'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 eval "$as_ac_var=yes"
10161 echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10164 eval "$as_ac_var=no"
10166 rm -f conftest.err conftest.$ac_objext \
10167 conftest$ac_exeext conftest.$ac_ext
10169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10171 if test `eval echo '${'$as_ac_var'}'` = yes; then
10172 cat >>confdefs.h <<_ACEOF
10173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10180 # ------------------------------------------------------------------
10184 # Extract the first word of "freetype-config", so it can be a program name with args.
10185 set dummy freetype-config; ac_word=$2
10186 echo "$as_me:$LINENO: checking for $ac_word" >&5
10187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10188 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 case $FREETYPE_CONFIG in
10193 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
10196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
10198 for as_dir in $as_dummy
10201 test -z "$as_dir" && as_dir=.
10202 for ac_exec_ext in '' $ac_executable_extensions; do
10203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10204 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10214 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
10216 if test -n "$FREETYPE_CONFIG"; then
10217 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
10218 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
10220 echo "$as_me:$LINENO: result: no" >&5
10221 echo "${ECHO_T}no" >&6
10225 OLDCPPFLAGS="${CPPFLAGS}"
10227 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10228 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
10229 else if test -d /usr/include/freetype2; then
10230 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
10231 else if test -d /usr/local/include/freetype2; then
10232 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
10237 if test "x${FREETYPE_CONFIG}" '=' "x";then
10238 # if we didn't find the freetype-config program, we won't
10239 # know where the libs are expected to be. So just blindly
10240 # try to link against them.
10241 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10242 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10243 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 ac_check_lib_save_LIBS=$LIBS
10247 LIBS="-lfreetype $LIBS"
10248 cat >conftest.$ac_ext <<_ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h. */
10255 /* Override any gcc2 internal prototype to avoid an error. */
10259 /* We use char because int might match the return type of a gcc2
10260 builtin and then its argument prototype would still apply. */
10261 char FT_Init_FreeType ();
10265 FT_Init_FreeType ();
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272 (eval $ac_link) 2>conftest.er1
10274 grep -v '^ *+' conftest.er1 >conftest.err
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } &&
10279 { ac_try='test -z "$ac_c_werror_flag"
10280 || test ! -s conftest.err'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; } &&
10286 { ac_try='test -s conftest$ac_exeext'
10287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_cv_lib_freetype_FT_Init_FreeType=yes
10294 echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 ac_cv_lib_freetype_FT_Init_FreeType=no
10299 rm -f conftest.err conftest.$ac_objext \
10300 conftest$ac_exeext conftest.$ac_ext
10301 LIBS=$ac_check_lib_save_LIBS
10303 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10304 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10305 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10306 HAVE_LIB_FREETYPE=1
10312 for ac_header in ft2build.h
10314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10316 echo "$as_me:$LINENO: checking for $ac_header" >&5
10317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10324 # Is the header compilable?
10325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10327 cat >conftest.$ac_ext <<_ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10333 $ac_includes_default
10334 #include <$ac_header>
10336 rm -f conftest.$ac_objext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338 (eval $ac_compile) 2>conftest.er1
10340 grep -v '^ *+' conftest.er1 >conftest.err
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
10345 { ac_try='test -z "$ac_c_werror_flag"
10346 || test ! -s conftest.err'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; } &&
10352 { ac_try='test -s conftest.$ac_objext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 ac_header_compiler=yes
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10363 ac_header_compiler=no
10365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10367 echo "${ECHO_T}$ac_header_compiler" >&6
10369 # Is the header present?
10370 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10372 cat >conftest.$ac_ext <<_ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 #include <$ac_header>
10380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10383 grep -v '^ *+' conftest.er1 >conftest.err
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } >/dev/null; then
10388 if test -s conftest.err; then
10389 ac_cpp_err=$ac_c_preproc_warn_flag
10390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10397 if test -z "$ac_cpp_err"; then
10398 ac_header_preproc=yes
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 ac_header_preproc=no
10405 rm -f conftest.err conftest.$ac_ext
10406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10407 echo "${ECHO_T}$ac_header_preproc" >&6
10409 # So? What about this header?
10410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10416 ac_header_preproc=yes
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10422 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10426 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10433 ## ------------------------------------------ ##
10434 ## Report this to the AC_PACKAGE_NAME lists. ##
10435 ## ------------------------------------------ ##
10438 sed "s/^/$as_me: WARNING: /" >&2
10441 echo "$as_me:$LINENO: checking for $ac_header" >&5
10442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 eval "$as_ac_Header=\$ac_header_preproc"
10448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10453 cat >>confdefs.h <<_ACEOF
10454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10461 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
10463 for ac_header in freetype/freetype.h
10465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10467 echo "$as_me:$LINENO: checking for $ac_header" >&5
10468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10475 # Is the header compilable?
10476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10478 cat >conftest.$ac_ext <<_ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 $ac_includes_default
10485 #include <$ac_header>
10487 rm -f conftest.$ac_objext
10488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10489 (eval $ac_compile) 2>conftest.er1
10491 grep -v '^ *+' conftest.er1 >conftest.err
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } &&
10496 { ac_try='test -z "$ac_c_werror_flag"
10497 || test ! -s conftest.err'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; } &&
10503 { ac_try='test -s conftest.$ac_objext'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; }; then
10509 ac_header_compiler=yes
10511 echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10514 ac_header_compiler=no
10516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10518 echo "${ECHO_T}$ac_header_compiler" >&6
10520 # Is the header present?
10521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10523 cat >conftest.$ac_ext <<_ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10529 #include <$ac_header>
10531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10534 grep -v '^ *+' conftest.er1 >conftest.err
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } >/dev/null; then
10539 if test -s conftest.err; then
10540 ac_cpp_err=$ac_c_preproc_warn_flag
10541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10548 if test -z "$ac_cpp_err"; then
10549 ac_header_preproc=yes
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 ac_header_preproc=no
10556 rm -f conftest.err conftest.$ac_ext
10557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10558 echo "${ECHO_T}$ac_header_preproc" >&6
10560 # So? What about this header?
10561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10567 ac_header_preproc=yes
10570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10584 ## ------------------------------------------ ##
10585 ## Report this to the AC_PACKAGE_NAME lists. ##
10586 ## ------------------------------------------ ##
10589 sed "s/^/$as_me: WARNING: /" >&2
10592 echo "$as_me:$LINENO: checking for $ac_header" >&5
10593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10597 eval "$as_ac_Header=\$ac_header_preproc"
10599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10604 cat >>confdefs.h <<_ACEOF
10605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10607 HAVE_FREETYPE_FREETYPE_H=1
10614 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
10615 "x${FREETYPE_CONFIG}" '!=' "x";then
10616 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
10619 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
10624 if test "x${HAVE_FREETYPE}" = "x1"; then
10625 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10626 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
10628 LIBS="$LIBS -lfreetype"
10631 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
10632 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
10635 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
10636 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
10638 cat > conftest.c << EOF
10639 $HAVE_FT2BUILD_H_DEFINE
10641 #ifdef HAVE_FT2BUILD_H
10642 #include <ft2build.h>
10643 #include FT_FREETYPE_H
10644 #include FT_GLYPH_H
10645 #include FT_SIZES_H
10646 #include FT_SFNT_NAMES_H
10647 #include FT_TRUETYPE_IDS_H
10648 #include FT_OUTLINE_H
10650 #include <freetype/freetype.h>
10651 #include <freetype/ftglyph.h>
10652 #include <freetype/ftsizes.h>
10653 #include <freetype/ftsnames.h>
10654 #include <freetype/ttnameid.h>
10655 #include <freetype/ftoutln.h>
10660 FT_Library ftlibrary;
10672 FT_Init_FreeType(&ftlibrary);
10673 FT_New_Face(ftlibrary, "filename", 0, &face);
10674 i = face->num_glyphs - 1;
10675 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
10676 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
10677 FT_Get_Postscript_Name(face);
10678 FT_Get_Char_Index(face, 33);
10679 FT_Get_First_Char(face, &i);
10680 FT_Get_Next_Char(face, 33, &i);
10681 if(FT_HAS_GLYPH_NAMES(face)) {
10682 FT_Get_Glyph_Name(face, 33, name, 127);
10684 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
10685 FT_Get_Glyph(face->glyph, &glyph);
10686 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
10687 FT_Done_Glyph(glyph);
10688 FT_Done_Face(face);
10689 FT_Done_FreeType(ftlibrary);
10694 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10695 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10696 echo "$as_me:$LINENO: result: yes" >&5
10697 echo "${ECHO_T}yes" >&6
10698 cat >>confdefs.h <<_ACEOF
10699 #define HAVE_FREETYPE 1
10702 cat >>confdefs.h <<_ACEOF
10703 #define USE_FREETYPE 1
10707 echo "configure: failed program was:" >&5
10710 echo "$as_me:$LINENO: result: no" >&5
10711 echo "${ECHO_T}no" >&6
10716 # if the above didn't work out, reset all changes to the compiler variables.
10717 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
10718 CPPFLAGS=$OLDCPPFLAGS
10724 OLDCPPFLAGS="${CPPFLAGS}"
10727 if test -d /usr/include/fontconfig; then
10728 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
10731 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
10732 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
10733 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 ac_check_lib_save_LIBS=$LIBS
10737 LIBS="-lfontconfig $LIBS"
10738 cat >conftest.$ac_ext <<_ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10745 /* Override any gcc2 internal prototype to avoid an error. */
10749 /* We use char because int might match the return type of a gcc2
10750 builtin and then its argument prototype would still apply. */
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10762 (eval $ac_link) 2>conftest.er1
10764 grep -v '^ *+' conftest.er1 >conftest.err
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
10769 { ac_try='test -z "$ac_c_werror_flag"
10770 || test ! -s conftest.err'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; } &&
10776 { ac_try='test -s conftest$ac_exeext'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_cv_lib_fontconfig_FcInit=yes
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 ac_cv_lib_fontconfig_FcInit=no
10789 rm -f conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 LIBS=$ac_check_lib_save_LIBS
10793 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
10794 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
10795 if test $ac_cv_lib_fontconfig_FcInit = yes; then
10796 HAVE_LIB_FONTCONFIG=1
10800 for ac_header in fontconfig.h
10802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10804 echo "$as_me:$LINENO: checking for $ac_header" >&5
10805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10812 # Is the header compilable?
10813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10815 cat >conftest.$ac_ext <<_ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10821 $ac_includes_default
10822 #include <$ac_header>
10824 rm -f conftest.$ac_objext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10826 (eval $ac_compile) 2>conftest.er1
10828 grep -v '^ *+' conftest.er1 >conftest.err
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } &&
10833 { ac_try='test -z "$ac_c_werror_flag"
10834 || test ! -s conftest.err'
10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; } &&
10840 { ac_try='test -s conftest.$ac_objext'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10846 ac_header_compiler=yes
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ac_header_compiler=no
10853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10855 echo "${ECHO_T}$ac_header_compiler" >&6
10857 # Is the header present?
10858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10860 cat >conftest.$ac_ext <<_ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 #include <$ac_header>
10868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10871 grep -v '^ *+' conftest.er1 >conftest.err
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } >/dev/null; then
10876 if test -s conftest.err; then
10877 ac_cpp_err=$ac_c_preproc_warn_flag
10878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10885 if test -z "$ac_cpp_err"; then
10886 ac_header_preproc=yes
10888 echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10891 ac_header_preproc=no
10893 rm -f conftest.err conftest.$ac_ext
10894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10895 echo "${ECHO_T}$ac_header_preproc" >&6
10897 # So? What about this header?
10898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10904 ac_header_preproc=yes
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10921 ## ------------------------------------------ ##
10922 ## Report this to the AC_PACKAGE_NAME lists. ##
10923 ## ------------------------------------------ ##
10926 sed "s/^/$as_me: WARNING: /" >&2
10929 echo "$as_me:$LINENO: checking for $ac_header" >&5
10930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 eval "$as_ac_Header=\$ac_header_preproc"
10936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10941 cat >>confdefs.h <<_ACEOF
10942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10944 HAVE_FONTCONFIG_H=1
10950 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
10951 if test "x${HAVE_FONTCONFIG_H}" != "x";then
10956 if test "x${HAVE_FONTCONFIG}" = "x1"; then
10957 LIBS="$LIBS -lfontconfig"
10958 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
10959 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
10961 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
10962 #move freetype library to the end of libraries, otherwise fontconfig
10964 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
10967 cat > conftest.c << EOF
10968 #include <fontconfig.h>
10972 FcPattern *pattern, *match;
10976 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
10977 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
10978 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
10979 FcConfigSubstitute(0, pattern, FcMatchPattern);
10980 FcDefaultSubstitute(pattern);
10981 match = FcFontMatch(0, pattern, &result);
10982 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
10983 FcPatternPrint(pattern);
10984 FcPatternDestroy(pattern);
10985 FcPatternDestroy(match);
10990 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10991 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10992 echo "$as_me:$LINENO: result: yes" >&5
10993 echo "${ECHO_T}yes" >&6
10994 cat >>confdefs.h <<_ACEOF
10995 #define HAVE_FONTCONFIG 1
10999 echo "configure: failed program was:" >&5
11002 echo "$as_me:$LINENO: result: no" >&5
11003 echo "${ECHO_T}no" >&6
11008 # if the above didn't work out, reset all changes to the compiler variables.
11009 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
11010 CPPFLAGS=$OLDCPPFLAGS
11015 # ------------------------------------------------------------------
11019 if test "x${DISABLE_LAME}" = "xtrue"; then
11020 echo "*" Disabling lame support...
11022 # old lame code at lib/lame
11023 if test -f lib/lame/Makefile.in; then
11024 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)"
11025 lame_makefile="lib/lame/Makefile"
11026 CPPFLAGS="$CPPFLAGS -Ilame"
11027 cat >>confdefs.h <<_ACEOF
11028 #define HAVE_LAME 1
11032 if test -d /usr/include/lame; then
11033 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
11035 if test -d /usr/local/include/lame; then
11036 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
11040 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
11041 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
11042 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 ac_check_lib_save_LIBS=$LIBS
11046 LIBS="-lmp3lame $LIBS"
11047 cat >conftest.$ac_ext <<_ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11054 /* Override any gcc2 internal prototype to avoid an error. */
11058 /* We use char because int might match the return type of a gcc2
11059 builtin and then its argument prototype would still apply. */
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071 (eval $ac_link) 2>conftest.er1
11073 grep -v '^ *+' conftest.er1 >conftest.err
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
11078 { ac_try='test -z "$ac_c_werror_flag"
11079 || test ! -s conftest.err'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest$ac_exeext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 ac_cv_lib_mp3lame_lame_init=yes
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11096 ac_cv_lib_mp3lame_lame_init=no
11098 rm -f conftest.err conftest.$ac_objext \
11099 conftest$ac_exeext conftest.$ac_ext
11100 LIBS=$ac_check_lib_save_LIBS
11102 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
11103 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
11104 if test $ac_cv_lib_mp3lame_lame_init = yes; then
11105 cat >>confdefs.h <<_ACEOF
11106 #define HAVE_LIBMP3LAME 1
11109 LIBS="-lmp3lame $LIBS"
11116 for ac_header in lame.h
11118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11120 echo "$as_me:$LINENO: checking for $ac_header" >&5
11121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11128 # Is the header compilable?
11129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 $ac_includes_default
11138 #include <$ac_header>
11140 rm -f conftest.$ac_objext
11141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11142 (eval $ac_compile) 2>conftest.er1
11144 grep -v '^ *+' conftest.er1 >conftest.err
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -z "$ac_c_werror_flag"
11150 || test ! -s conftest.err'
11151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152 (eval $ac_try) 2>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; } &&
11156 { ac_try='test -s conftest.$ac_objext'
11157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158 (eval $ac_try) 2>&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; }; then
11162 ac_header_compiler=yes
11164 echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11167 ac_header_compiler=no
11169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11171 echo "${ECHO_T}$ac_header_compiler" >&6
11173 # Is the header present?
11174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11176 cat >conftest.$ac_ext <<_ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11182 #include <$ac_header>
11184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11187 grep -v '^ *+' conftest.er1 >conftest.err
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } >/dev/null; then
11192 if test -s conftest.err; then
11193 ac_cpp_err=$ac_c_preproc_warn_flag
11194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11201 if test -z "$ac_cpp_err"; then
11202 ac_header_preproc=yes
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11207 ac_header_preproc=no
11209 rm -f conftest.err conftest.$ac_ext
11210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11211 echo "${ECHO_T}$ac_header_preproc" >&6
11213 # So? What about this header?
11214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11220 ac_header_preproc=yes
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11237 ## ------------------------------------------ ##
11238 ## Report this to the AC_PACKAGE_NAME lists. ##
11239 ## ------------------------------------------ ##
11242 sed "s/^/$as_me: WARNING: /" >&2
11245 echo "$as_me:$LINENO: checking for $ac_header" >&5
11246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11248 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 eval "$as_ac_Header=\$ac_header_preproc"
11252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11257 cat >>confdefs.h <<_ACEOF
11258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11265 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
11266 cat >>confdefs.h <<_ACEOF
11267 #define HAVE_LAME 1
11275 # ------------------------------------------------------------------
11279 for ac_prog in avifile-config
11281 # Extract the first word of "$ac_prog", so it can be a program name with args.
11282 set dummy $ac_prog; ac_word=$2
11283 echo "$as_me:$LINENO: checking for $ac_word" >&5
11284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11285 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 if test -n "$AVIFILE_CONFIG"; then
11289 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
11291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292 for as_dir in $PATH
11295 test -z "$as_dir" && as_dir=.
11296 for ac_exec_ext in '' $ac_executable_extensions; do
11297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11298 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
11299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11307 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
11308 if test -n "$AVIFILE_CONFIG"; then
11309 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
11310 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
11312 echo "$as_me:$LINENO: result: no" >&5
11313 echo "${ECHO_T}no" >&6
11316 test -n "$AVIFILE_CONFIG" && break
11320 if test "x$AVIFILE_CONFIG" '!=' "x";then
11321 OLDCPPFLAGS="$CPPFLAGS"
11322 # temporarily add avifile paths to CPPFLAGS...
11323 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
11326 for ac_header in avifile/version.h version.h
11328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11330 echo "$as_me:$LINENO: checking for $ac_header" >&5
11331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11338 # Is the header compilable?
11339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11341 cat >conftest.$ac_ext <<_ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 $ac_includes_default
11348 #include <$ac_header>
11350 rm -f conftest.$ac_objext
11351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11352 (eval $ac_compile) 2>conftest.er1
11354 grep -v '^ *+' conftest.er1 >conftest.err
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } &&
11359 { ac_try='test -z "$ac_c_werror_flag"
11360 || test ! -s conftest.err'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; } &&
11366 { ac_try='test -s conftest.$ac_objext'
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; }; then
11372 ac_header_compiler=yes
11374 echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11377 ac_header_compiler=no
11379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11381 echo "${ECHO_T}$ac_header_compiler" >&6
11383 # Is the header present?
11384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11386 cat >conftest.$ac_ext <<_ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392 #include <$ac_header>
11394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11397 grep -v '^ *+' conftest.er1 >conftest.err
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } >/dev/null; then
11402 if test -s conftest.err; then
11403 ac_cpp_err=$ac_c_preproc_warn_flag
11404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11411 if test -z "$ac_cpp_err"; then
11412 ac_header_preproc=yes
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11417 ac_header_preproc=no
11419 rm -f conftest.err conftest.$ac_ext
11420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11421 echo "${ECHO_T}$ac_header_preproc" >&6
11423 # So? What about this header?
11424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11430 ac_header_preproc=yes
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11447 ## ------------------------------------------ ##
11448 ## Report this to the AC_PACKAGE_NAME lists. ##
11449 ## ------------------------------------------ ##
11452 sed "s/^/$as_me: WARNING: /" >&2
11455 echo "$as_me:$LINENO: checking for $ac_header" >&5
11456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 eval "$as_ac_Header=\$ac_header_preproc"
11462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11467 cat >>confdefs.h <<_ACEOF
11468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11476 CPPFLAGS="$OLDCPPFLAGS"
11479 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11480 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
11482 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11483 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11485 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11486 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11489 cat > conftest.cpp << EOF
11491 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11492 // so we have to introduce them this way
11493 $HAVE_VERSION_H_DEFINE
11494 $HAVE_AVIFILE_VERSION_H_DEFINE
11496 #ifdef HAVE_VERSION_H
11497 #include <version.h>
11499 #ifdef HAVE_AVIFILE_VERSION_H
11500 #include <avifile/version.h>
11503 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11504 #include <avifile.h>
11505 #include <aviplay.h>
11506 #include <fourcc.h>
11507 #include <creators.h>
11508 #include <StreamInfo.h>
11511 #include <avifile.h>
11512 #include <aviplay.h>
11513 #include <aviutil.h>
11514 #define Width width
11515 #define Height height
11522 IAviReadFile* player;
11523 IAviReadStream* astream;
11524 IAviReadStream* vstream;
11525 player = CreateIAviReadFile(0);
11526 astream = player->GetStream(0, AviStream::Audio);
11527 vstream = player->GetStream(0, AviStream::Video);
11528 vstream -> StartStreaming();
11529 astream -> StartStreaming();
11531 MainAVIHeader head;
11532 player->GetFileHeader(&head);
11533 head.dwMicroSecPerFrame;
11534 head.dwTotalFrames;
11538 head.dwMicroSecPerFrame;
11539 astream->GetEndPos(),
11540 astream->GetEndTime());
11541 player->StreamCount();
11543 StreamInfo*audioinfo;
11544 StreamInfo*videoinfo;
11545 audioinfo = astream->GetStreamInfo();
11546 videoinfo = vstream->GetStreamInfo();
11547 videoinfo->GetVideoWidth();
11548 videoinfo->GetVideoHeight();
11549 audioinfo->GetAudioSamplesPerSec();
11550 videoinfo->GetFps();
11552 CImage*img = vstream->GetFrame();
11559 astream->GetAudioFormatInfo(&wave,0);
11561 astream->ReadFrames(0,0,0,a,b);
11563 int main (int argc, char*argv)
11569 if test "x$AVIFILE_CONFIG" '!=' "x";then
11570 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
11571 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
11572 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
11573 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11574 echo "$as_me:$LINENO: result: yes" >&5
11575 echo "${ECHO_T}yes" >&6
11578 cat >>confdefs.h <<_ACEOF
11579 #define AVIFILE true
11583 echo "configure: failed program was:" >&5
11584 cat conftest.cpp >&5
11585 echo "$as_me:$LINENO: result: no" >&5
11586 echo "${ECHO_T}no" >&6
11589 echo "$as_me:$LINENO: result: no" >&5
11590 echo "${ECHO_T}no" >&6
11594 if test "x${AVIFILE}" = "xtrue"; then
11595 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
11596 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
11597 cat >>confdefs.h <<_ACEOF
11598 #define HAVE_AVIFILE 1
11603 if test "x${WIN32}" != "x"; then
11604 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
11605 #if test "x${AVIFIL32}" != "x"; then
11606 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11608 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11614 # ------------------------------------------------------------------
11616 if test "x${UNCOMPRESS}" = "xgzip"; then
11617 cat >>confdefs.h <<_ACEOF
11624 # ------------------------------------------------------------------
11627 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11628 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11630 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
11633 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
11634 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
11636 # iterate through version 2.2 to 2.4
11639 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
11641 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11642 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11644 elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
11645 #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
11647 PYTHON_LIB="-framework Python"
11648 if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
11649 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
11651 PYTHON_LIB2="$PYTHON_LIB"
11653 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
11655 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
11656 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
11657 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
11659 -a -f "/sw/include/python2.$v/Python.h" \
11660 -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
11662 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
11663 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
11668 if test "x$PY_VERSION" "!=" "x"; then
11669 echo "$as_me:$LINENO: result: $PY_VERSION" >&5
11670 echo "${ECHO_T}$PY_VERSION" >&6
11671 export PYTHON_INCLUDES PYTHON_LIB
11674 echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11675 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11677 cat > conftest.c << EOF
11678 #include <Python.h>
11679 #include <Imaging.h>
11684 ret = Py_Main(0, 0);
11685 int x; // check also for gcc 2.95.x incompatibilities
11689 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11690 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11691 echo "$as_me:$LINENO: result: yes" >&5
11692 echo "${ECHO_T}yes" >&6
11695 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
11696 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11697 echo "$as_me:$LINENO: result: yes" >&5
11698 echo "${ECHO_T}yes" >&6
11699 PYTHON_LIB="${PYTHON_LIB2}"
11702 echo "configure: failed program was:" >&5
11704 echo "$as_me:$LINENO: result: no" >&5
11705 echo "${ECHO_T}no" >&6
11710 echo "$as_me:$LINENO: result: nope" >&5
11711 echo "${ECHO_T}nope" >&6
11715 if test "x$PYTHON_OK" '!=' "xyes";then
11716 echo all install uninstall clean: > lib/python/Makefile
11717 # fail silently- the most users won't have any need for the
11718 # python interface anyway
11720 pythonrfxswf="lib/python/Makefile"
11723 # ------------------------------------------------------------------
11725 echo "$as_me:$LINENO: checking for missing libraries" >&5
11726 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
11728 if test "x$ZLIBMISSING" = "xtrue";then
11729 MISSINGLIBS="${MISSINGLIBS} zlib"
11730 DISABLEPNG2SWF=true
11733 if test "x$JPEGLIBMISSING" = "xtrue";then
11734 MISSINGLIBS="${MISSINGLIBS} jpeglib"
11735 DISABLEPDF2SWF=true
11736 DISABLEJPEG2SWF=true
11739 if test "x$T1LIBMISSING" = "xtrue";then
11740 MISSINGLIBS="${MISSINGLIBS} t1lib"
11742 if test "x$UNGIFMISSING" = "xtrue";then
11743 DISABLEGIF2SWF=true
11744 MISSINGLIBS="${MISSINGLIBS} ungif"
11748 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11749 DISABLEPDF2SWF=true;
11750 DISABLEJPEG2SWF=true;
11751 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11754 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11755 DISABLEPDF2SWF=true;
11756 MISSINGLIBS="${MISSINGLIBS} freetype"
11759 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11760 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11762 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
11763 DISABLEGIF2SWF=true
11764 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
11767 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11768 DISABLEPNG2SWF=true;
11769 MISSINGLIBS="${MISSINGLIBS} zlib.h"
11772 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11773 MISSINGLIBS="${MISSINGLIBS} avifile"
11777 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11778 echo "${ECHO_T}${MISSINGLIBS}" >&6
11780 # ------------------------------------------------------------------
11782 if test "x${MISSINGLIBS}" '!=' "x"; then
11783 echo "***************************************************"
11784 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11787 avi2swf="avi2swf/Makefile"
11788 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11789 echo "* Disabling avi2swf tool..."
11790 echo all install uninstall clean: > avi2swf/Makefile
11794 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
11795 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11796 echo "* Disabling pdf2swf tool..."
11797 rm -f pdf2swf/Makefile
11798 echo all install uninstall clean: > pdf2swf/Makefile
11799 pdf2swf_makefile=""
11802 if test "x${ZLIBMISSING}" = "xtrue"; then
11804 echo "* Warning! Without zlib, you will not be able to read"
11805 echo "* or write compressed Flash MX files!"
11808 JPEG2SWF='jpeg2swf$(E)'
11809 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11810 echo "* Disabling jpeg2swf tool..."
11816 GIF2SWF='gif2swf$(E)'
11817 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
11818 echo "* Disabling gif2swf tool..."
11824 PNG2SWF='png2swf$(E)'
11825 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11826 echo "* Disabling png2swf tool..."
11832 if test "x${MISSINGLIBS}" '!=' "x"; then
11833 if test "x${PARTIAL}" '=' "x"; then
11834 echo "* (never mind)"
11836 echo "***************************************************"
11839 # ------------------------------------------------------------------
11841 if test -f "release.in"; then release_in="./release"; fi
11842 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile"
11844 ac_config_files="$ac_config_files ${FILES}"
11846 cat >confcache <<\_ACEOF
11847 # This file is a shell script that caches the results of configure
11848 # tests run on this system so they can be shared between configure
11849 # scripts and configure runs, see configure's option --config-cache.
11850 # It is not useful on other systems. If it contains results you don't
11851 # want to keep, you may remove or edit it.
11853 # config.status only pays attention to the cache file if you give it
11854 # the --recheck option to rerun configure.
11856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11858 # following values.
11862 # The following way of writing the cache mishandles newlines in values,
11863 # but we know of no workaround that is simple, portable, and efficient.
11864 # So, don't put newlines in cache variables' values.
11865 # Ultrix sh set writes to stderr and can't be redirected directly,
11866 # and sets the high bit in the cache file unless we assign to the vars.
11869 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11871 # `set' does not quote correctly, so add quotes (double-quote
11872 # substitution turns \\\\ into \\, and sed turns \\ into \).
11875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11878 # `set' quotes correctly as required by POSIX, so do not add quotes.
11880 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11887 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11889 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11891 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11892 if test -w $cache_file; then
11893 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11894 cat confcache >$cache_file
11896 echo "not updating unwritable cache $cache_file"
11901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11902 # Let make expand exec_prefix.
11903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11905 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11906 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11907 # trailing colons and then remove the whole line if VPATH becomes empty
11908 # (actually we leave an empty line to preserve line numbers).
11909 if test "x$srcdir" = x.; then
11910 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11911 s/:*\$(srcdir):*/:/;
11912 s/:*\${srcdir}:*/:/;
11914 s/^\([^=]*=[ ]*\):*/\1/;
11920 DEFS=-DHAVE_CONFIG_H
11924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11925 # 1. Remove the extension, and $U if already installed.
11926 ac_i=`echo "$ac_i" |
11927 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11929 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11930 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11932 LIBOBJS=$ac_libobjs
11934 LTLIBOBJS=$ac_ltlibobjs
11938 : ${CONFIG_STATUS=./config.status}
11939 ac_clean_files_save=$ac_clean_files
11940 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11941 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11942 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11943 cat >$CONFIG_STATUS <<_ACEOF
11945 # Generated by $as_me.
11946 # Run this file to recreate the current configuration.
11947 # Compiler output produced by configure, useful for debugging
11948 # configure, is in config.log if it exists.
11951 ac_cs_recheck=false
11953 SHELL=\${CONFIG_SHELL-$SHELL}
11956 cat >>$CONFIG_STATUS <<\_ACEOF
11957 ## --------------------- ##
11958 ## M4sh Initialization. ##
11959 ## --------------------- ##
11961 # Be Bourne compatible
11962 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11965 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11966 # is contrary to our usage. Disable this feature.
11967 alias -g '${1+"$@"}'='"$@"'
11968 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11971 DUALCASE=1; export DUALCASE # for MKS sh
11973 # Support unset when possible.
11974 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11981 # Work around bugs in pre-3.0 UWIN ksh.
11982 $as_unset ENV MAIL MAILPATH
11989 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11990 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11991 LC_TELEPHONE LC_TIME
11993 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11994 eval $as_var=C; export $as_var
12000 # Required to use basename.
12001 if expr a : '\(a\)' >/dev/null 2>&1; then
12007 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12008 as_basename=basename
12014 # Name of the executable.
12015 as_me=`$as_basename "$0" ||
12016 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12017 X"$0" : 'X\(//\)$' \| \
12018 X"$0" : 'X\(/\)$' \| \
12019 . : '\(.\)' 2>/dev/null ||
12021 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12022 /^X\/\(\/\/\)$/{ s//\1/; q; }
12023 /^X\/\(\/\).*/{ s//\1/; q; }
12027 # PATH needs CR, and LINENO needs CR and PATH.
12028 # Avoid depending upon Character Ranges.
12029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12032 as_cr_digits='0123456789'
12033 as_cr_alnum=$as_cr_Letters$as_cr_digits
12035 # The user is always right.
12036 if test "${PATH_SEPARATOR+set}" != set; then
12037 echo "#! /bin/sh" >conf$$.sh
12038 echo "exit 0" >>conf$$.sh
12040 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12049 as_lineno_1=$LINENO
12050 as_lineno_2=$LINENO
12051 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12052 test "x$as_lineno_1" != "x$as_lineno_2" &&
12053 test "x$as_lineno_3" = "x$as_lineno_2" || {
12054 # Find who we are. Look in the path if we contain no path at all
12057 *[\\/]* ) as_myself=$0 ;;
12058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12062 test -z "$as_dir" && as_dir=.
12063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12068 # We did not find ourselves, most probably we were run as `sh COMMAND'
12069 # in which case we are not to be found in the path.
12070 if test "x$as_myself" = x; then
12073 if test ! -f "$as_myself"; then
12074 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12075 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12076 { (exit 1); exit 1; }; }
12078 case $CONFIG_SHELL in
12080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12084 test -z "$as_dir" && as_dir=.
12085 for as_base in sh bash ksh sh5; do
12088 if ("$as_dir/$as_base" -c '
12089 as_lineno_1=$LINENO
12090 as_lineno_2=$LINENO
12091 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12092 test "x$as_lineno_1" != "x$as_lineno_2" &&
12093 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12094 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12095 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12096 CONFIG_SHELL=$as_dir/$as_base
12097 export CONFIG_SHELL
12098 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12106 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12107 # uniformly replaced by the line number. The first 'sed' inserts a
12108 # line-number line before each line; the second 'sed' does the real
12109 # work. The second script uses 'N' to pair each line-number line
12110 # with the numbered line, and appends trailing '-' during
12111 # substitution so that $LINENO is not a special case at line end.
12112 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12113 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12114 sed '=' <$as_myself |
12119 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12122 s,^['$as_cr_digits']*\n,,
12123 ' >$as_me.lineno &&
12124 chmod +x $as_me.lineno ||
12125 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12126 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12127 { (exit 1); exit 1; }; }
12129 # Don't try to exec as it changes $[0], causing all sort of problems
12130 # (the dirname of $[0] is not the place where we might find the
12131 # original and so on. Autoconf is especially sensible to this).
12133 # Exit status is that of the last command.
12138 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12139 *c*,-n*) ECHO_N= ECHO_C='
12141 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12142 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12145 if expr a : '\(a\)' >/dev/null 2>&1; then
12151 rm -f conf$$ conf$$.exe conf$$.file
12153 if ln -s conf$$.file conf$$ 2>/dev/null; then
12154 # We could just check for DJGPP; but this test a) works b) is more generic
12155 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12156 if test -f conf$$.exe; then
12157 # Don't use ln at all; we don't have any links
12162 elif ln conf$$.file conf$$ 2>/dev/null; then
12167 rm -f conf$$ conf$$.exe conf$$.file
12169 if mkdir -p . 2>/dev/null; then
12172 test -d ./-p && rmdir ./-p
12176 as_executable_p="test -f"
12178 # Sed expression to map a string onto a valid CPP name.
12179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12181 # Sed expression to map a string onto a valid variable name.
12182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12186 # We need space, tab and new line, in precisely that order.
12196 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12197 # report actual input values of CONFIG_FILES etc. instead of their
12198 # values after options handling. Logging --version etc. is OK.
12202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12203 ## Running $as_me. ##
12208 This file was extended by $as_me, which was
12209 generated by GNU Autoconf 2.59. Invocation command line was
12211 CONFIG_FILES = $CONFIG_FILES
12212 CONFIG_HEADERS = $CONFIG_HEADERS
12213 CONFIG_LINKS = $CONFIG_LINKS
12214 CONFIG_COMMANDS = $CONFIG_COMMANDS
12218 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12222 # Files that config.status was made for.
12223 if test -n "$ac_config_files"; then
12224 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12227 if test -n "$ac_config_headers"; then
12228 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12231 if test -n "$ac_config_links"; then
12232 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12235 if test -n "$ac_config_commands"; then
12236 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12239 cat >>$CONFIG_STATUS <<\_ACEOF
12242 \`$as_me' instantiates files from templates according to the
12243 current configuration.
12245 Usage: $0 [OPTIONS] [FILE]...
12247 -h, --help print this help, then exit
12248 -V, --version print version number, then exit
12249 -q, --quiet do not print progress messages
12250 -d, --debug don't remove temporary files
12251 --recheck update $as_me by reconfiguring in the same conditions
12252 --file=FILE[:TEMPLATE]
12253 instantiate the configuration file FILE
12254 --header=FILE[:TEMPLATE]
12255 instantiate the configuration header FILE
12257 Configuration files:
12260 Configuration headers:
12263 Report bugs to <bug-autoconf@gnu.org>."
12266 cat >>$CONFIG_STATUS <<_ACEOF
12269 configured by $0, generated by GNU Autoconf 2.59,
12270 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12272 Copyright (C) 2003 Free Software Foundation, Inc.
12273 This config.status script is free software; the Free Software Foundation
12274 gives unlimited permission to copy, distribute and modify it."
12279 cat >>$CONFIG_STATUS <<\_ACEOF
12280 # If no file are specified by the user, then we need to provide default
12281 # value. By we need to know if files were specified by the user.
12287 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12288 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12296 *) # This is not an option, so the user has probably given explicit
12299 ac_need_defaults=false;;
12303 # Handling of the options.
12305 cat >>$CONFIG_STATUS <<\_ACEOF
12306 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12308 --version | --vers* | -V )
12309 echo "$ac_cs_version"; exit 0 ;;
12311 # Conflict between --help and --header
12312 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12313 Try \`$0 --help' for more information." >&5
12314 echo "$as_me: error: ambiguous option: $1
12315 Try \`$0 --help' for more information." >&2;}
12316 { (exit 1); exit 1; }; };;
12317 --help | --hel | -h )
12318 echo "$ac_cs_usage"; exit 0 ;;
12319 --debug | --d* | -d )
12321 --file | --fil | --fi | --f )
12323 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12324 ac_need_defaults=false;;
12325 --header | --heade | --head | --hea )
12327 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12328 ac_need_defaults=false;;
12329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12333 # This is an error.
12334 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12335 Try \`$0 --help' for more information." >&5
12336 echo "$as_me: error: unrecognized option: $1
12337 Try \`$0 --help' for more information." >&2;}
12338 { (exit 1); exit 1; }; } ;;
12340 *) ac_config_targets="$ac_config_targets $1" ;;
12346 ac_configure_extra_args=
12348 if $ac_cs_silent; then
12350 ac_configure_extra_args="$ac_configure_extra_args --silent"
12354 cat >>$CONFIG_STATUS <<_ACEOF
12355 if \$ac_cs_recheck; then
12356 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12357 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12366 cat >>$CONFIG_STATUS <<\_ACEOF
12367 for ac_config_target in $ac_config_targets
12369 case "$ac_config_target" in
12370 # Handling of arguments.
12371 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
12372 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12373 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12374 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12375 { (exit 1); exit 1; }; };;
12379 # If the user did not use the arguments to specify the items to instantiate,
12380 # then the envvar interface is used. Set only those that are not.
12381 # We use the long form for the default assignment because of an extremely
12382 # bizarre bug on SunOS 4.1.3.
12383 if $ac_need_defaults; then
12384 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12385 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12388 # Have a temporary directory for convenience. Make it in the build tree
12389 # simply because there is no reason to put it here, and in addition,
12390 # creating and moving files from /tmp can sometimes cause problems.
12391 # Create a temporary directory, and hook for its removal unless debugging.
12394 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12395 trap '{ (exit 1); exit 1; }' 1 2 13 15
12398 # Create a (secure) tmp directory for tmp files.
12401 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12402 test -n "$tmp" && test -d "$tmp"
12405 tmp=./confstat$$-$RANDOM
12406 (umask 077 && mkdir $tmp)
12409 echo "$me: cannot create a temporary directory in ." >&2
12410 { (exit 1); exit 1; }
12415 cat >>$CONFIG_STATUS <<_ACEOF
12418 # CONFIG_FILES section.
12421 # No need to generate the scripts if there are no CONFIG_FILES.
12422 # This happens for instance when ./config.status config.h
12423 if test -n "\$CONFIG_FILES"; then
12424 # Protect against being on the right side of a sed subst in config.status.
12425 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12426 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12427 s,@SHELL@,$SHELL,;t t
12428 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12429 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12430 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12431 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12432 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12433 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12434 s,@exec_prefix@,$exec_prefix,;t t
12435 s,@prefix@,$prefix,;t t
12436 s,@program_transform_name@,$program_transform_name,;t t
12437 s,@bindir@,$bindir,;t t
12438 s,@sbindir@,$sbindir,;t t
12439 s,@libexecdir@,$libexecdir,;t t
12440 s,@datadir@,$datadir,;t t
12441 s,@sysconfdir@,$sysconfdir,;t t
12442 s,@sharedstatedir@,$sharedstatedir,;t t
12443 s,@localstatedir@,$localstatedir,;t t
12444 s,@libdir@,$libdir,;t t
12445 s,@includedir@,$includedir,;t t
12446 s,@oldincludedir@,$oldincludedir,;t t
12447 s,@infodir@,$infodir,;t t
12448 s,@mandir@,$mandir,;t t
12449 s,@build_alias@,$build_alias,;t t
12450 s,@host_alias@,$host_alias,;t t
12451 s,@target_alias@,$target_alias,;t t
12452 s,@DEFS@,$DEFS,;t t
12453 s,@ECHO_C@,$ECHO_C,;t t
12454 s,@ECHO_N@,$ECHO_N,;t t
12455 s,@ECHO_T@,$ECHO_T,;t t
12456 s,@LIBS@,$LIBS,;t t
12457 s,@build@,$build,;t t
12458 s,@build_cpu@,$build_cpu,;t t
12459 s,@build_vendor@,$build_vendor,;t t
12460 s,@build_os@,$build_os,;t t
12461 s,@host@,$host,;t t
12462 s,@host_cpu@,$host_cpu,;t t
12463 s,@host_vendor@,$host_vendor,;t t
12464 s,@host_os@,$host_os,;t t
12465 s,@SHARED@,$SHARED,;t t
12467 s,@CFLAGS@,$CFLAGS,;t t
12468 s,@LDFLAGS@,$LDFLAGS,;t t
12469 s,@CPPFLAGS@,$CPPFLAGS,;t t
12470 s,@ac_ct_CC@,$ac_ct_CC,;t t
12471 s,@EXEEXT@,$EXEEXT,;t t
12472 s,@OBJEXT@,$OBJEXT,;t t
12474 s,@CXXFLAGS@,$CXXFLAGS,;t t
12475 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12477 s,@RANLIB@,$RANLIB,;t t
12478 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12479 s,@SET_MAKE@,$SET_MAKE,;t t
12480 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12481 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12482 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12483 s,@LN_S@,$LN_S,;t t
12484 s,@ECHO@,$ECHO,;t t
12485 s,@STRIP@,$STRIP,;t t
12486 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12487 s,@EGREP@,$EGREP,;t t
12488 s,@LIBTOOL@,$LIBTOOL,;t t
12489 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
12490 s,@AREXT@,$AREXT,;t t
12492 s,@SLEXT@,$SLEXT,;t t
12493 s,@target@,$target,;t t
12494 s,@target_cpu@,$target_cpu,;t t
12495 s,@target_vendor@,$target_vendor,;t t
12496 s,@target_os@,$target_os,;t t
12497 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
12498 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
12499 s,@PACKAGE@,$PACKAGE,;t t
12500 s,@VERSION@,$VERSION,;t t
12501 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
12502 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
12503 s,@lame_objects@,$lame_objects,;t t
12504 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
12505 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
12506 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
12507 s,@USE_GZIP@,$USE_GZIP,;t t
12508 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
12509 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
12510 s,@JPEG2SWF@,$JPEG2SWF,;t t
12511 s,@GIF2SWF@,$GIF2SWF,;t t
12512 s,@PNG2SWF@,$PNG2SWF,;t t
12513 s,@LIBOBJS@,$LIBOBJS,;t t
12514 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12519 cat >>$CONFIG_STATUS <<\_ACEOF
12520 # Split the substitutions into bite-sized pieces for seds with
12521 # small command number limits, like on Digital OSF/1 and HP-UX.
12522 ac_max_sed_lines=48
12523 ac_sed_frag=1 # Number of current file.
12524 ac_beg=1 # First line for current file.
12525 ac_end=$ac_max_sed_lines # Line after last line for current file.
12528 while $ac_more_lines; do
12529 if test $ac_beg -gt 1; then
12530 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12532 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12534 if test ! -s $tmp/subs.frag; then
12535 ac_more_lines=false
12537 # The purpose of the label and of the branching condition is to
12538 # speed up the sed processing (if there are no `@' at all, there
12539 # is no need to browse any of the substitutions).
12540 # These are the two extra sed commands mentioned above.
12542 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12543 if test -z "$ac_sed_cmds"; then
12544 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12546 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12548 ac_sed_frag=`expr $ac_sed_frag + 1`
12550 ac_end=`expr $ac_end + $ac_max_sed_lines`
12553 if test -z "$ac_sed_cmds"; then
12556 fi # test -n "$CONFIG_FILES"
12559 cat >>$CONFIG_STATUS <<\_ACEOF
12560 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12561 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12563 - | *:- | *:-:* ) # input from stdin
12565 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12566 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12567 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12569 * ) ac_file_in=$ac_file.in ;;
12572 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12573 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12574 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12575 X"$ac_file" : 'X\(//\)[^/]' \| \
12576 X"$ac_file" : 'X\(//\)$' \| \
12577 X"$ac_file" : 'X\(/\)' \| \
12578 . : '\(.\)' 2>/dev/null ||
12580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12581 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12582 /^X\(\/\/\)$/{ s//\1/; q; }
12583 /^X\(\/\).*/{ s//\1/; q; }
12585 { if $as_mkdir_p; then
12590 while test ! -d "$as_dir"; do
12591 as_dirs="$as_dir $as_dirs"
12592 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12594 X"$as_dir" : 'X\(//\)[^/]' \| \
12595 X"$as_dir" : 'X\(//\)$' \| \
12596 X"$as_dir" : 'X\(/\)' \| \
12597 . : '\(.\)' 2>/dev/null ||
12599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12600 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12601 /^X\(\/\/\)$/{ s//\1/; q; }
12602 /^X\(\/\).*/{ s//\1/; q; }
12605 test ! -n "$as_dirs" || mkdir $as_dirs
12606 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12607 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12608 { (exit 1); exit 1; }; }; }
12612 if test "$ac_dir" != .; then
12613 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12614 # A "../" for each directory in $ac_dir_suffix.
12615 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12617 ac_dir_suffix= ac_top_builddir=
12621 .) # No --srcdir option. We are building in place.
12623 if test -z "$ac_top_builddir"; then
12626 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12628 [\\/]* | ?:[\\/]* ) # Absolute path.
12629 ac_srcdir=$srcdir$ac_dir_suffix;
12630 ac_top_srcdir=$srcdir ;;
12631 *) # Relative path.
12632 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12633 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12636 # Do not use `cd foo && pwd` to compute absolute paths, because
12637 # the directories may not exist.
12639 .) ac_abs_builddir="$ac_dir";;
12642 .) ac_abs_builddir=`pwd`;;
12643 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12644 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12647 case $ac_abs_builddir in
12648 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12650 case ${ac_top_builddir}. in
12651 .) ac_abs_top_builddir=$ac_abs_builddir;;
12652 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12653 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12656 case $ac_abs_builddir in
12657 .) ac_abs_srcdir=$ac_srcdir;;
12660 .) ac_abs_srcdir=$ac_abs_builddir;;
12661 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12662 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12665 case $ac_abs_builddir in
12666 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12668 case $ac_top_srcdir in
12669 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12670 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12671 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12677 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12678 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12681 if test x"$ac_file" != x-; then
12682 { echo "$as_me:$LINENO: creating $ac_file" >&5
12683 echo "$as_me: creating $ac_file" >&6;}
12686 # Let's still pretend it is `configure' which instantiates (i.e., don't
12687 # use $as_me), people would be surprised to read:
12688 # /* config.h. Generated by config.status. */
12689 if test x"$ac_file" = x-; then
12692 configure_input="$ac_file. "
12694 configure_input=$configure_input"Generated from `echo $ac_file_in |
12695 sed 's,.*/,,'` by configure."
12697 # First look for the input files in the build tree, otherwise in the
12699 ac_file_inputs=`IFS=:
12700 for f in $ac_file_in; do
12702 -) echo $tmp/stdin ;;
12704 # Absolute (can't be DOS-style, as IFS=:)
12705 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12706 echo "$as_me: error: cannot find input file: $f" >&2;}
12707 { (exit 1); exit 1; }; }
12710 if test -f "$f"; then
12713 elif test -f "$srcdir/$f"; then
12718 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12719 echo "$as_me: error: cannot find input file: $f" >&2;}
12720 { (exit 1); exit 1; }; }
12723 done` || { (exit 1); exit 1; }
12725 cat >>$CONFIG_STATUS <<_ACEOF
12729 cat >>$CONFIG_STATUS <<\_ACEOF
12731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12732 s,@configure_input@,$configure_input,;t t
12733 s,@srcdir@,$ac_srcdir,;t t
12734 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12735 s,@top_srcdir@,$ac_top_srcdir,;t t
12736 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12737 s,@builddir@,$ac_builddir,;t t
12738 s,@abs_builddir@,$ac_abs_builddir,;t t
12739 s,@top_builddir@,$ac_top_builddir,;t t
12740 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12741 s,@INSTALL@,$ac_INSTALL,;t t
12742 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12744 if test x"$ac_file" != x-; then
12745 mv $tmp/out $ac_file
12753 cat >>$CONFIG_STATUS <<\_ACEOF
12756 # CONFIG_HEADER section.
12759 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12760 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12762 # ac_d sets the value in "#define NAME VALUE" lines.
12763 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12764 ac_dB='[ ].*$,\1#\2'
12767 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12768 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12769 ac_uB='$,\1#\2define\3'
12773 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12774 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12776 - | *:- | *:-:* ) # input from stdin
12778 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12779 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12780 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12781 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12782 * ) ac_file_in=$ac_file.in ;;
12785 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12786 echo "$as_me: creating $ac_file" >&6;}
12788 # First look for the input files in the build tree, otherwise in the
12790 ac_file_inputs=`IFS=:
12791 for f in $ac_file_in; do
12793 -) echo $tmp/stdin ;;
12795 # Absolute (can't be DOS-style, as IFS=:)
12796 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12797 echo "$as_me: error: cannot find input file: $f" >&2;}
12798 { (exit 1); exit 1; }; }
12799 # Do quote $f, to prevent DOS paths from being IFS'd.
12802 if test -f "$f"; then
12805 elif test -f "$srcdir/$f"; then
12810 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12811 echo "$as_me: error: cannot find input file: $f" >&2;}
12812 { (exit 1); exit 1; }; }
12815 done` || { (exit 1); exit 1; }
12816 # Remove the trailing spaces.
12817 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12821 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12822 # `conftest.undefs', that substitutes the proper values into
12823 # config.h.in to produce config.h. The first handles `#define'
12824 # templates, and the second `#undef' templates.
12825 # And first: Protect against being on the right side of a sed subst in
12826 # config.status. Protect against being in an unquoted here document
12827 # in config.status.
12828 rm -f conftest.defines conftest.undefs
12829 # Using a here document instead of a string reduces the quoting nightmare.
12830 # Putting comments in sed scripts is not portable.
12832 # `end' is used to avoid that the second main sed command (meant for
12833 # 0-ary CPP macros) applies to n-ary macro definitions.
12834 # See the Autoconf documentation for `clear'.
12835 cat >confdef2sed.sed <<\_ACEOF
12840 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12842 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12845 # If some macros were called several times there might be several times
12846 # the same #defines, which is useless. Nevertheless, we may not want to
12847 # sort them, since we want the *last* AC-DEFINE to be honored.
12848 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12849 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12850 rm -f confdef2sed.sed
12852 # This sed command replaces #undef with comments. This is necessary, for
12853 # example, in the case of _POSIX_SOURCE, which is predefined and required
12854 # on some systems where configure will not decide to define it.
12855 cat >>conftest.undefs <<\_ACEOF
12856 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12859 # Break up conftest.defines because some shells have a limit on the size
12860 # of here documents, and old seds have small limits too (100 cmds).
12861 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12862 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12863 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12864 echo ' :' >>$CONFIG_STATUS
12865 rm -f conftest.tail
12866 while grep . conftest.defines >/dev/null
12868 # Write a limited-size here document to $tmp/defines.sed.
12869 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12870 # Speed up: don't consider the non `#define' lines.
12871 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12872 # Work around the forget-to-reset-the-flag bug.
12873 echo 't clr' >>$CONFIG_STATUS
12874 echo ': clr' >>$CONFIG_STATUS
12875 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12877 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12879 mv $tmp/out $tmp/in
12881 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12882 rm -f conftest.defines
12883 mv conftest.tail conftest.defines
12885 rm -f conftest.defines
12886 echo ' fi # grep' >>$CONFIG_STATUS
12887 echo >>$CONFIG_STATUS
12889 # Break up conftest.undefs because some shells have a limit on the size
12890 # of here documents, and old seds have small limits too (100 cmds).
12891 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12892 rm -f conftest.tail
12893 while grep . conftest.undefs >/dev/null
12895 # Write a limited-size here document to $tmp/undefs.sed.
12896 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12897 # Speed up: don't consider the non `#undef'
12898 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12899 # Work around the forget-to-reset-the-flag bug.
12900 echo 't clr' >>$CONFIG_STATUS
12901 echo ': clr' >>$CONFIG_STATUS
12902 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12904 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12906 mv $tmp/out $tmp/in
12908 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12909 rm -f conftest.undefs
12910 mv conftest.tail conftest.undefs
12912 rm -f conftest.undefs
12914 cat >>$CONFIG_STATUS <<\_ACEOF
12915 # Let's still pretend it is `configure' which instantiates (i.e., don't
12916 # use $as_me), people would be surprised to read:
12917 # /* config.h. Generated by config.status. */
12918 if test x"$ac_file" = x-; then
12919 echo "/* Generated by configure. */" >$tmp/config.h
12921 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12923 cat $tmp/in >>$tmp/config.h
12925 if test x"$ac_file" != x-; then
12926 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12927 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12928 echo "$as_me: $ac_file is unchanged" >&6;}
12930 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12931 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12932 X"$ac_file" : 'X\(//\)[^/]' \| \
12933 X"$ac_file" : 'X\(//\)$' \| \
12934 X"$ac_file" : 'X\(/\)' \| \
12935 . : '\(.\)' 2>/dev/null ||
12937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12939 /^X\(\/\/\)$/{ s//\1/; q; }
12940 /^X\(\/\).*/{ s//\1/; q; }
12942 { if $as_mkdir_p; then
12947 while test ! -d "$as_dir"; do
12948 as_dirs="$as_dir $as_dirs"
12949 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12951 X"$as_dir" : 'X\(//\)[^/]' \| \
12952 X"$as_dir" : 'X\(//\)$' \| \
12953 X"$as_dir" : 'X\(/\)' \| \
12954 . : '\(.\)' 2>/dev/null ||
12956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12958 /^X\(\/\/\)$/{ s//\1/; q; }
12959 /^X\(\/\).*/{ s//\1/; q; }
12962 test ! -n "$as_dirs" || mkdir $as_dirs
12963 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12964 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12965 { (exit 1); exit 1; }; }; }
12968 mv $tmp/config.h $ac_file
12972 rm -f $tmp/config.h
12977 cat >>$CONFIG_STATUS <<\_ACEOF
12979 { (exit 0); exit 0; }
12981 chmod +x $CONFIG_STATUS
12982 ac_clean_files=$ac_clean_files_save
12985 # configure is writing to config.log, and then calls config.status.
12986 # config.status does its own redirection, appending to config.log.
12987 # Unfortunately, on DOS this fails, as config.log is still kept open
12988 # by configure, so config.status won't be able to write to it; its
12989 # output is simply discarded. So we exec the FD to /dev/null,
12990 # effectively closing config.log, so it can be properly (re)opened and
12991 # appended to by config.status. When coming back to configure, we
12992 # need to make the FD available again.
12993 if test "$no_create" != yes; then
12995 ac_config_status_args=
12996 test "$silent" = yes &&
12997 ac_config_status_args="$ac_config_status_args --quiet"
12999 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13001 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13002 # would make configure fail if this is the last instruction.
13003 $ac_cs_success || { (exit 1); exit 1; }
13008 # On development trees, create snapshots of config.status
13010 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
13011 if test "x${MINGW}" = "xyes"; then
13012 echo cp config.status config.status.win32
13013 cp config.status config.status.win32
13015 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
13016 echo cp config.status config.status.linux
13017 cp config.status config.status.linux
13019 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
13020 echo cp config.status config.status.debug
13021 cp config.status config.status.debug
13023 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
13024 echo cp config.status config.status.optimize
13025 cp config.status config.status.optimize