2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
244 # Find the correct PATH separator. Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
252 PATH_SEPARATOR=$lt_cv_sys_path_separator
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Remove one level of quotation (which was required for Make).
262 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
267 if test "X$1" = X--no-reexec; then
268 # Discard the --no-reexec flag, and continue.
270 elif test "X$1" = X--fallback-echo; then
271 # Avoid inline document here, it may be left over
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274 # Yippee, $echo works!
277 # Restart under the correct shell.
278 exec $SHELL "$0" --no-reexec ${1+"$@"}
281 if test "X$1" = X--fallback-echo; then
282 # used as fallback echo
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300 echo_test_string="`eval $cmd`" &&
301 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310 test "X$echo_testing_string" = "X$echo_test_string"; then
313 # The Solaris, AIX, and Digital Unix default echo programs unquote
314 # backslashes. This makes it impossible to quote backslashes using
315 # echo "$something" | sed 's/\\/\\\\/g'
317 # So, first we look for a working echo in the user's PATH.
319 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320 for dir in $PATH /usr/ucb; do
321 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
331 if test "X$echo" = Xecho; then
332 # We didn't find a better echo, so look for alternatives.
333 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335 test "X$echo_testing_string" = "X$echo_test_string"; then
336 # This shell has a builtin print -r that does the trick.
338 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339 test "X$CONFIG_SHELL" != X/bin/ksh; then
340 # If we have ksh, try running configure again with it.
341 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342 export ORIGINAL_CONFIG_SHELL
343 CONFIG_SHELL=/bin/ksh
345 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
349 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
354 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360 SHELL="$CONFIG_SHELL"
362 echo="$CONFIG_SHELL $0 --fallback-echo"
363 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364 test "X$echo_testing_string" = 'X\t' &&
365 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366 test "X$echo_testing_string" = "X$echo_test_string"; then
367 echo="$CONFIG_SHELL $0 --fallback-echo"
369 # maybe with a smaller string...
372 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
380 if test "$prev" != 'sed 50q "$0"'; then
381 echo_test_string=`eval $prev`
382 export echo_test_string
383 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385 # Oops. We lost completely, so just stick with echo.
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
419 SHELL=${CONFIG_SHELL-/bin/sh}
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete. It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
426 # Identity of this package.
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
438 # include <sys/types.h>
441 # include <sys/stat.h>
452 # if !STDC_HEADERS && HAVE_MEMORY_H
458 # include <strings.h>
461 # include <inttypes.h>
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AR FREETYPE_CONFIG target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H AVIFILE_CONFIG lame_objects USE_GZIP JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
474 # Initialize some variables set by options.
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
486 program_transform_name=s,x,x,
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524 # Accept the important Cygnus configure options, so we can diagnose typos.
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build_alias ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build_alias=$ac_optarg ;;
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543 cache_file=$ac_optarg ;;
546 cache_file=config.cache ;;
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552 datadir=$ac_optarg ;;
554 -disable-* | --disable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 eval "enable_$ac_feature=no" ;;
563 -enable-* | --enable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574 eval "enable_$ac_feature='$ac_optarg'" ;;
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
583 exec_prefix=$ac_optarg ;;
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
589 -help | --help | --hel | --he | -h)
591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592 ac_init_help=recursive ;;
593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594 ac_init_help=short ;;
596 -host | --host | --hos | --ho)
597 ac_prev=host_alias ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host_alias=$ac_optarg ;;
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
606 includedir=$ac_optarg ;;
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
613 -libdir | --libdir | --libdi | --libd)
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir=$ac_optarg ;;
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632 localstatedir=$ac_optarg ;;
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
640 # Obsolete; use --without-fp.
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c | -n)
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658 oldincludedir=$ac_optarg ;;
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670 program_prefix=$ac_optarg ;;
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677 program_suffix=$ac_optarg ;;
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
694 program_transform_name=$ac_optarg ;;
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704 sbindir=$ac_optarg ;;
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715 sharedstatedir=$ac_optarg ;;
717 -site | --site | --sit)
719 -site=* | --site=* | --sit=*)
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732 sysconfdir=$ac_optarg ;;
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target_alias ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target_alias=$ac_optarg ;;
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
742 -version | --version | --versio | --versi | --vers | -V)
746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756 eval "with_$ac_package='$ac_optarg'" ;;
758 -without-* | --without-*)
759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760 # Reject names that are not valid shell variable names.
761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package | sed 's/-/_/g'`
765 eval "with_$ac_package=no" ;;
768 # Obsolete; use --with-x.
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes=$ac_optarg ;;
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries=$ac_optarg ;;
785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795 { (exit 1); exit 1; }; }
796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797 eval "$ac_envvar='$ac_optarg'"
801 # FIXME: should be removed in autoconf 3.0.
802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811 if test -n "$ac_prev"; then
812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
820 eval ac_val=$`echo $ac_var`
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830 localstatedir libdir includedir oldincludedir infodir mandir
832 eval ac_val=$`echo $ac_var`
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849 if test "x$build_alias" = x; then
850 cross_compiling=maybe
851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852 If a cross compiler is detected then cross compile mode will be used." >&2
853 elif test "x$build_alias" != "x$host_alias"; then
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
861 test "$silent" = yes && exec 6>/dev/null
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866 ac_srcdir_defaulted=yes
867 # Try the directory containing this script, then its parent.
868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
881 if test ! -r $srcdir/$ac_unique_file; then
885 ac_srcdir_defaulted=no
887 if test ! -r $srcdir/$ac_unique_file; then
888 if test "$ac_srcdir_defaulted" = yes; then
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890 { (exit 1); exit 1; }; }
892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893 { (exit 1); exit 1; }; }
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898 { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
942 # Report the --help message.
944 if test "$ac_init_help" = "long"; then
945 # Omit some internal or obsolete options to make the list less imposing.
946 # This message is too long to be a string in the A/UX 3.1 sh.
948 \`configure' configures this package to adapt to many kinds of systems.
950 Usage: $0 [OPTION]... [VAR=VALUE]...
952 To assign environment variables (e.g., CC, CFLAGS...), specify them as
953 VAR=VALUE. See below for descriptions of some of the useful variables.
955 Defaults for the options are specified in brackets.
958 -h, --help display this help and exit
959 --help=short display options specific to this package
960 --help=recursive display the short help of all the included packages
961 -V, --version display version information and exit
962 -q, --quiet, --silent do not print \`checking...' messages
963 --cache-file=FILE cache test results in FILE [disabled]
964 -C, --config-cache alias for \`--cache-file=config.cache'
965 -n, --no-create do not create output files
966 --srcdir=DIR find the sources in DIR [configure dir or \`..']
971 Installation directories:
972 --prefix=PREFIX install architecture-independent files in PREFIX
974 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
977 By default, \`make install' will install all the files in
978 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
979 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980 for instance \`--prefix=\$HOME'.
982 For better control, use the options below.
984 Fine tuning of the installation directories:
985 --bindir=DIR user executables [EPREFIX/bin]
986 --sbindir=DIR system admin executables [EPREFIX/sbin]
987 --libexecdir=DIR program executables [EPREFIX/libexec]
988 --datadir=DIR read-only architecture-independent data [PREFIX/share]
989 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
990 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
991 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
992 --libdir=DIR object code libraries [EPREFIX/lib]
993 --includedir=DIR C header files [PREFIX/include]
994 --oldincludedir=DIR C header files for non-gcc [/usr/include]
995 --infodir=DIR info documentation [PREFIX/info]
996 --mandir=DIR man documentation [PREFIX/man]
1002 --program-prefix=PREFIX prepend PREFIX to installed program names
1003 --program-suffix=SUFFIX append SUFFIX to installed program names
1004 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1007 --build=BUILD configure for building on BUILD [guessed]
1008 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1009 --target=TARGET configure for building compilers for TARGET [HOST]
1013 if test -n "$ac_init_help"; then
1018 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1019 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1020 --enable-checkmem turn on ccmalloc debugging
1021 --enable-debug turn on debugging
1022 --enable-warnings turn on compiler warnings
1023 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1024 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1025 --enable-shared=PKGS build shared libraries default=yes
1026 --enable-static=PKGS build static libraries default=yes
1027 --enable-fast-install=PKGS optimize for fast installation default=yes
1028 --disable-libtool-lock avoid locking (might break parallel builds)
1031 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1032 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1033 --with-gnu-ld assume the C compiler uses GNU ld default=no
1034 --with-pic try to use only PIC/non-PIC objects default=use both
1036 Some influential environment variables:
1037 CC C compiler command
1038 CFLAGS C compiler flags
1039 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1040 nonstandard directory <lib dir>
1041 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042 headers in a nonstandard directory <include dir>
1043 CXX C++ compiler command
1044 CXXFLAGS C++ compiler flags
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1053 if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1060 if test "$ac_dir" != .; then
1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065 ac_dir_suffix= ac_top_builddir=
1069 .) # No --srcdir option. We are building in place.
1071 if test -z "$ac_top_builddir"; then
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084 .) ac_abs_builddir=$ac_builddir;;
1086 case $ac_builddir in
1087 .) ac_abs_builddir="$ac_dir";;
1088 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1089 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1095 case ${ac_top_builddir}. in
1096 .) ac_abs_top_builddir="$ac_dir";;
1097 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1102 .) ac_abs_srcdir=$ac_srcdir;;
1105 .) ac_abs_srcdir="$ac_dir";;
1106 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1107 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1113 case $ac_top_srcdir in
1114 .) ac_abs_top_srcdir="$ac_dir";;
1115 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1121 # Check for guested configure; otherwise get Cygnus style configure.
1122 if test -f $ac_srcdir/configure.gnu; then
1124 $SHELL $ac_srcdir/configure.gnu --help=recursive
1125 elif test -f $ac_srcdir/configure; then
1127 $SHELL $ac_srcdir/configure --help=recursive
1128 elif test -f $ac_srcdir/configure.ac ||
1129 test -f $ac_srcdir/configure.in; then
1131 $ac_configure --help
1133 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139 test -n "$ac_init_help" && exit 0
1140 if $ac_init_version; then
1143 Copyright (C) 2003 Free Software Foundation, Inc.
1144 This configure script is free software; the Free Software Foundation
1145 gives unlimited permission to copy, distribute and modify it.
1151 This file contains any messages produced by compilers while
1152 running configure, to aid debugging if configure makes a mistake.
1154 It was created by $as_me, which was
1155 generated by GNU Autoconf 2.58. Invocation command line was
1166 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1175 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1176 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1177 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1179 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1180 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1181 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189 test -z "$as_dir" && as_dir=.
1190 echo "PATH: $as_dir"
1205 # Keep a trace of the command line.
1206 # Strip out --no-create and --no-recursion so they do not pile up.
1207 # Strip out --silent because we don't want to record it for future runs.
1208 # Also quote any args containing shell meta-characters.
1209 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_must_keep_next=false
1220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1228 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231 if test $ac_must_keep_next = true; then
1232 ac_must_keep_next=false # Got value, back to normal.
1235 *=* | --config-cache | -C | -disable-* | --disable-* \
1236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238 | -with-* | --with-* | -without-* | --without-* | --x)
1239 case "$ac_configure_args0 " in
1240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1243 -* ) ac_must_keep_next=true ;;
1246 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247 # Get rid of the leading space.
1253 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256 # When interrupted or exit'd, cleanup temporary files, and complete
1257 # config.log. We remove comments because anyway the quotes in there
1258 # would cause problems or look ugly.
1259 # WARNING: Be sure not to use single quotes in there, as some shells,
1260 # such as our DU 5.0 friend, will then `close' the trap.
1261 trap 'exit_status=$?
1262 # Save into config.log some information that might help in debugging.
1267 ## ---------------- ##
1268 ## Cache variables. ##
1269 ## ---------------- ##
1272 # The following way of writing the cache mishandles newlines in values,
1275 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1278 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1290 ## ----------------- ##
1291 ## Output variables. ##
1292 ## ----------------- ##
1295 for ac_var in $ac_subst_vars
1297 eval ac_val=$`echo $ac_var`
1298 echo "$ac_var='"'"'$ac_val'"'"'"
1302 if test -n "$ac_subst_files"; then
1309 for ac_var in $ac_subst_files
1311 eval ac_val=$`echo $ac_var`
1312 echo "$ac_var='"'"'$ac_val'"'"'"
1317 if test -s confdefs.h; then
1324 sed "/^$/d" confdefs.h | sort
1327 test "$ac_signal" != 0 &&
1328 echo "$as_me: caught signal $ac_signal"
1329 echo "$as_me: exit $exit_status"
1331 rm -f core *.core &&
1332 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1335 for ac_signal in 1 2 13 15; do
1336 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1341 rm -rf conftest* confdefs.h
1342 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1345 # Predefined preprocessor variables.
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_NAME "$PACKAGE_NAME"
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_STRING "$PACKAGE_STRING"
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372 # Let the site file select an alternate cache file if it wants to.
1373 # Prefer explicitly selected file to automatically selected ones.
1374 if test -z "$CONFIG_SITE"; then
1375 if test "x$prefix" != xNONE; then
1376 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381 for ac_site_file in $CONFIG_SITE; do
1382 if test -r "$ac_site_file"; then
1383 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384 echo "$as_me: loading site script $ac_site_file" >&6;}
1385 sed 's/^/| /' "$ac_site_file" >&5
1390 if test -r "$cache_file"; then
1391 # Some versions of bash will fail to source /dev/null (special
1392 # files actually), so we avoid doing that.
1393 if test -f "$cache_file"; then
1394 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395 echo "$as_me: loading cache $cache_file" >&6;}
1397 [\\/]* | ?:[\\/]* ) . $cache_file;;
1398 *) . ./$cache_file;;
1402 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403 echo "$as_me: creating cache $cache_file" >&6;}
1407 # Check that the precious variables saved in the cache have kept the same
1409 ac_cache_corrupted=false
1410 for ac_var in `(set) 2>&1 |
1411 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413 eval ac_new_set=\$ac_env_${ac_var}_set
1414 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415 eval ac_new_val="\$ac_env_${ac_var}_value"
1416 case $ac_old_set,$ac_new_set in
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1427 if test "x$ac_old_val" != "x$ac_new_val"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1431 echo "$as_me: former value: $ac_old_val" >&2;}
1432 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1433 echo "$as_me: current value: $ac_new_val" >&2;}
1434 ac_cache_corrupted=:
1437 # Pass precious variables to config.status.
1438 if test "$ac_new_set" = set; then
1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442 *) ac_arg=$ac_var=$ac_new_val ;;
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450 if $ac_cache_corrupted; then
1451 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455 { (exit 1); exit 1; }; }
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1483 # Check whether --enable-checkmem or --disable-checkmem was given.
1484 if test "${enable_checkmem+set}" = set; then
1485 enableval="$enable_checkmem"
1488 # Check whether --enable-debug or --disable-debug was given.
1489 if test "${enable_debug+set}" = set; then
1490 enableval="$enable_debug"
1493 # Check whether --enable-warnings or --disable-warnings was given.
1494 if test "${enable_warnings+set}" = set; then
1495 enableval="$enable_warnings"
1496 ENABLE_WARNINGS=true
1498 # Check whether --enable-optimizations or --disable-optimizations was given.
1499 if test "${enable_optimizations+set}" = set; then
1500 enableval="$enable_optimizations"
1503 # Check whether --enable-lame or --disable-lame was given.
1504 if test "${enable_lame+set}" = set; then
1505 enableval="$enable_lame"
1510 VERSION=2004-05-18-1254
1514 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1515 if test "x$ENABLE_WARNINGS" '!=' "x";then
1516 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1519 if test "x$CHECKMEM" '!=' "x";then
1522 if test "x$DEBUG" '!=' "x";then
1523 CFLAGS="$WARNINGS -g $CFLAGS"
1524 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1525 else if test "x$OPTIMIZE" '!=' "x"; then
1526 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1527 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1529 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1530 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1534 #if test "x$OLDGCC" '!=' "x";then
1535 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1536 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1537 # CFLAGS="$CFLAGS -ansi -pendantic"
1538 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1541 export PACKAGE VERSION CFLAGS CXXFLAGS
1544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 elif test -f $ac_dir/install.sh; then
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 elif test -f $ac_dir/shtool; then
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1564 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 ac_cv_build_alias=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1595 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 echo "$as_me:$LINENO: checking host system type" >&5
1601 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602 if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 ac_cv_host_alias=$host_alias
1606 test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias=$ac_cv_build_alias
1608 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615 echo "${ECHO_T}$ac_cv_host" >&6
1617 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626 CFLAGS="$CFLAGS -fno-rtti"
1627 CXXFLAGS="$CXXFLAGS -fno-rtti"
1631 ac_cpp='$CPP $CPPFLAGS'
1632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1635 if test -n "$ac_tool_prefix"; then
1636 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1637 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 if test -n "$CC"; then
1644 ac_cv_prog_CC="$CC" # Let the user override the test.
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 if test -n "$CC"; then
1664 echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1672 if test -z "$ac_cv_prog_CC"; then
1674 # Extract the first word of "gcc", so it can be a program name with args.
1675 set dummy gcc; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 if test -n "$ac_ct_CC"; then
1682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 test -z "$as_dir" && as_dir=.
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691 ac_cv_prog_ac_ct_CC="gcc"
1692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1701 if test -n "$ac_ct_CC"; then
1702 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1703 echo "${ECHO_T}$ac_ct_CC" >&6
1705 echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1714 if test -z "$CC"; then
1715 if test -n "$ac_tool_prefix"; then
1716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1717 set dummy ${ac_tool_prefix}cc; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 if test -n "$CC"; then
1724 ac_cv_prog_CC="$CC" # Let the user override the test.
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 test -z "$as_dir" && as_dir=.
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_CC="${ac_tool_prefix}cc"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 if test -n "$CC"; then
1744 echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1752 if test -z "$ac_cv_prog_CC"; then
1754 # Extract the first word of "cc", so it can be a program name with args.
1755 set dummy cc; ac_word=$2
1756 echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 if test -n "$ac_ct_CC"; then
1762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 test -z "$as_dir" && as_dir=.
1769 for ac_exec_ext in '' $ac_executable_extensions; do
1770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771 ac_cv_prog_ac_ct_CC="cc"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1781 if test -n "$ac_ct_CC"; then
1782 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1783 echo "${ECHO_T}$ac_ct_CC" >&6
1785 echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1795 if test -z "$CC"; then
1796 # Extract the first word of "cc", so it can be a program name with args.
1797 set dummy cc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_CC+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 if test -n "$CC"; then
1804 ac_cv_prog_CC="$CC" # Let the user override the test.
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1815 ac_prog_rejected=yes
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 if test $ac_prog_rejected = yes; then
1826 # We found a bogon in the path, so make sure we never use it.
1827 set dummy $ac_cv_prog_CC
1829 if test $# != 0; then
1830 # We chose a different compiler from the bogus one.
1831 # However, it has the same basename, so the bogon will be chosen
1832 # first if we set CC to just the basename; use the full file name.
1834 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1840 if test -n "$CC"; then
1841 echo "$as_me:$LINENO: result: $CC" >&5
1842 echo "${ECHO_T}$CC" >&6
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1849 if test -z "$CC"; then
1850 if test -n "$ac_tool_prefix"; then
1853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_CC+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 if test -n "$CC"; then
1861 ac_cv_prog_CC="$CC" # Let the user override the test.
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 if test -n "$CC"; then
1881 echo "$as_me:$LINENO: result: $CC" >&5
1882 echo "${ECHO_T}$CC" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1888 test -n "$CC" && break
1891 if test -z "$CC"; then
1895 # Extract the first word of "$ac_prog", so it can be a program name with args.
1896 set dummy $ac_prog; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC="$ac_prog"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1930 test -n "$ac_ct_CC" && break
1939 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: no acceptable C compiler found in \$PATH
1942 See \`config.log' for more details." >&2;}
1943 { (exit 1); exit 1; }; }
1945 # Provide some information about the compiler.
1946 echo "$as_me:$LINENO:" \
1947 "checking for C compiler version" >&5
1948 ac_compiler=`set X $ac_compile; echo $2`
1949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1950 (eval $ac_compiler --version </dev/null >&5) 2>&5
1952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953 (exit $ac_status); }
1954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1955 (eval $ac_compiler -v </dev/null >&5) 2>&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1960 (eval $ac_compiler -V </dev/null >&5) 2>&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }
1965 cat >conftest.$ac_ext <<_ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h. */
1980 ac_clean_files_save=$ac_clean_files
1981 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1982 # Try to create an executable without -o first, disregard a.out.
1983 # It will help us diagnose broken compilers, and finding out an intuition
1985 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1986 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1987 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1988 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1989 (eval $ac_link_default) 2>&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }; then
1993 # Find the output, starting from the most likely. This scheme is
1994 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1997 # Be careful to initialize this variable, since it used to be cached.
1998 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2000 # b.out is created by i960 compilers.
2001 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2003 test -f "$ac_file" || continue
2005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2008 # This is the source file.
2011 # We found the default executable, but exeext='' is most
2015 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2016 # FIXME: I believe we export ac_cv_exeext for Libtool,
2017 # but it would be cool to find out if it's true. Does anybody
2018 # maintain Libtool? --akim.
2026 echo "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2029 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2030 See \`config.log' for more details." >&5
2031 echo "$as_me: error: C compiler cannot create executables
2032 See \`config.log' for more details." >&2;}
2033 { (exit 77); exit 77; }; }
2036 ac_exeext=$ac_cv_exeext
2037 echo "$as_me:$LINENO: result: $ac_file" >&5
2038 echo "${ECHO_T}$ac_file" >&6
2040 # Check the compiler produces executables we can run. If not, either
2041 # the compiler is broken, or we cross compile.
2042 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2043 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2044 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2045 # If not cross compiling, check that we can run a simple program.
2046 if test "$cross_compiling" != yes; then
2047 if { ac_try='./$ac_file'
2048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; }; then
2055 if test "$cross_compiling" = maybe; then
2058 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2059 If you meant to cross compile, use \`--host'.
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: cannot run C compiled programs.
2062 If you meant to cross compile, use \`--host'.
2063 See \`config.log' for more details." >&2;}
2064 { (exit 1); exit 1; }; }
2068 echo "$as_me:$LINENO: result: yes" >&5
2069 echo "${ECHO_T}yes" >&6
2071 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2072 ac_clean_files=$ac_clean_files_save
2073 # Check the compiler produces executables we can run. If not, either
2074 # the compiler is broken, or we cross compile.
2075 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2076 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2077 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2078 echo "${ECHO_T}$cross_compiling" >&6
2080 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2081 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2083 (eval $ac_link) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; then
2087 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2088 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2089 # work properly (i.e., refer to `conftest.exe'), while it won't with
2091 for ac_file in conftest.exe conftest conftest.*; do
2092 test -f "$ac_file" || continue
2094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2095 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2102 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2103 See \`config.log' for more details." >&5
2104 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2105 See \`config.log' for more details." >&2;}
2106 { (exit 1); exit 1; }; }
2109 rm -f conftest$ac_cv_exeext
2110 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2111 echo "${ECHO_T}$ac_cv_exeext" >&6
2113 rm -f conftest.$ac_ext
2114 EXEEXT=$ac_cv_exeext
2116 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2117 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2118 if test "${ac_cv_objext+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 cat >conftest.$ac_ext <<_ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h. */
2136 rm -f conftest.o conftest.obj
2137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2138 (eval $ac_compile) 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; then
2142 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2145 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2153 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2154 See \`config.log' for more details." >&5
2155 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2156 See \`config.log' for more details." >&2;}
2157 { (exit 1); exit 1; }; }
2160 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2162 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2163 echo "${ECHO_T}$ac_cv_objext" >&6
2164 OBJEXT=$ac_cv_objext
2166 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2167 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2168 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 cat >conftest.$ac_ext <<_ACEOF
2174 cat confdefs.h >>conftest.$ac_ext
2175 cat >>conftest.$ac_ext <<_ACEOF
2176 /* end confdefs.h. */
2189 rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>conftest.er1
2193 grep -v '^ *+' conftest.er1 >conftest.err
2195 cat conftest.err >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -z "$ac_c_werror_flag"
2199 || test ! -s conftest.err'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; } &&
2205 { ac_try='test -s conftest.$ac_objext'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; }; then
2213 echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2222 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2223 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2224 GCC=`test $ac_compiler_gnu = yes && echo yes`
2225 ac_test_CFLAGS=${CFLAGS+set}
2226 ac_save_CFLAGS=$CFLAGS
2228 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2229 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2230 if test "${ac_cv_prog_cc_g+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 cat >conftest.$ac_ext <<_ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2252 grep -v '^ *+' conftest.er1 >conftest.err
2254 cat conftest.err >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -z "$ac_c_werror_flag"
2258 || test ! -s conftest.err'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2279 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2280 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2281 if test "$ac_test_CFLAGS" = set; then
2282 CFLAGS=$ac_save_CFLAGS
2283 elif test $ac_cv_prog_cc_g = yes; then
2284 if test "$GCC" = yes; then
2290 if test "$GCC" = yes; then
2296 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2297 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2298 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 ac_cv_prog_cc_stdc=no
2303 cat >conftest.$ac_ext <<_ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2311 #include <sys/types.h>
2312 #include <sys/stat.h>
2313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2314 struct buf { int x; };
2315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2316 static char *e (p, i)
2322 static char *f (char * (*g) (char **, int), char **p, ...)
2327 s = g (p, va_arg (v,int));
2332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2333 function prototypes and stuff, but not '\xHH' hex character constants.
2334 These don't provoke an error unfortunately, instead are silently treated
2335 as 'x'. The following induces an error, until -std1 is added to get
2336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2337 array size at least. It's necessary to write '\x00'==0 to get something
2338 that's true only with -std1. */
2339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2341 int test (int i, double x);
2342 struct s1 {int (*f) (int a);};
2343 struct s2 {int (*f) (double a);};
2344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2355 # Don't try gcc -ansi; that turns off useful extensions and
2356 # breaks some systems' header files.
2357 # AIX -qlanglvl=ansi
2358 # Ultrix and OSF/1 -std1
2359 # HP-UX 10.20 and later -Ae
2360 # HP-UX older versions -Aa -D_HPUX_SOURCE
2361 # SVR4 -Xc -D__EXTENSIONS__
2362 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2364 CC="$ac_save_CC $ac_arg"
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367 (eval $ac_compile) 2>conftest.er1
2369 grep -v '^ *+' conftest.er1 >conftest.err
2371 cat conftest.err >&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); } &&
2374 { ac_try='test -z "$ac_c_werror_flag"
2375 || test ! -s conftest.err'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; } &&
2381 { ac_try='test -s conftest.$ac_objext'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; }; then
2387 ac_cv_prog_cc_stdc=$ac_arg
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2394 rm -f conftest.err conftest.$ac_objext
2396 rm -f conftest.$ac_ext conftest.$ac_objext
2401 case "x$ac_cv_prog_cc_stdc" in
2403 echo "$as_me:$LINENO: result: none needed" >&5
2404 echo "${ECHO_T}none needed" >&6 ;;
2406 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2407 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2408 CC="$CC $ac_cv_prog_cc_stdc" ;;
2411 # Some people use a C++ compiler to compile C. Since we use `exit',
2412 # in C++ we need to declare it. In case someone uses the same compiler
2413 # for both compiling C and C++ we need to have the C++ compiler decide
2414 # the declaration of exit, since it's the most demanding environment.
2415 cat >conftest.$ac_ext <<_ACEOF
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>conftest.er1
2424 grep -v '^ *+' conftest.er1 >conftest.err
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -z "$ac_c_werror_flag"
2430 || test ! -s conftest.err'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; } &&
2436 { ac_try='test -s conftest.$ac_objext'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; }; then
2442 for ac_declaration in \
2444 'extern "C" void std::exit (int) throw (); using std::exit;' \
2445 'extern "C" void std::exit (int); using std::exit;' \
2446 'extern "C" void exit (int) throw ();' \
2447 'extern "C" void exit (int);' \
2450 cat >conftest.$ac_ext <<_ACEOF
2453 cat confdefs.h >>conftest.$ac_ext
2454 cat >>conftest.$ac_ext <<_ACEOF
2455 /* end confdefs.h. */
2466 rm -f conftest.$ac_objext
2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468 (eval $ac_compile) 2>conftest.er1
2470 grep -v '^ *+' conftest.er1 >conftest.err
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag"
2476 || test ! -s conftest.err'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2496 cat >conftest.$ac_ext <<_ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513 (eval $ac_compile) 2>conftest.er1
2515 grep -v '^ *+' conftest.er1 >conftest.err
2517 cat conftest.err >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } &&
2520 { ac_try='test -z "$ac_c_werror_flag"
2521 || test ! -s conftest.err'
2522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; } &&
2527 { ac_try='test -s conftest.$ac_objext'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; }; then
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542 if test -n "$ac_declaration"; then
2543 echo '#ifdef __cplusplus' >>confdefs.h
2544 echo $ac_declaration >>confdefs.h
2545 echo '#endif' >>confdefs.h
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555 ac_cpp='$CPP $CPPFLAGS'
2556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561 ac_cpp='$CXXCPP $CPPFLAGS'
2562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2565 if test -n "$ac_tool_prefix"; then
2566 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2570 echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2572 if test "${ac_cv_prog_CXX+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 if test -n "$CXX"; then
2576 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2585 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 if test -n "$CXX"; then
2596 echo "$as_me:$LINENO: result: $CXX" >&5
2597 echo "${ECHO_T}$CXX" >&6
2599 echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6
2603 test -n "$CXX" && break
2606 if test -z "$CXX"; then
2608 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2614 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$ac_ct_CXX"; then
2618 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_ac_ct_CXX="$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2637 if test -n "$ac_ct_CXX"; then
2638 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2639 echo "${ECHO_T}$ac_ct_CXX" >&6
2641 echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6
2645 test -n "$ac_ct_CXX" && break
2647 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2653 # Provide some information about the compiler.
2654 echo "$as_me:$LINENO:" \
2655 "checking for C++ compiler version" >&5
2656 ac_compiler=`set X $ac_compile; echo $2`
2657 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2658 (eval $ac_compiler --version </dev/null >&5) 2>&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }
2662 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2663 (eval $ac_compiler -v </dev/null >&5) 2>&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }
2667 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2668 (eval $ac_compiler -V </dev/null >&5) 2>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2673 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2674 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2675 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>conftest.er1
2700 grep -v '^ *+' conftest.er1 >conftest.err
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } &&
2705 { ac_try='test -z "$ac_cxx_werror_flag"
2706 || test ! -s conftest.err'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2729 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2730 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2731 GXX=`test $ac_compiler_gnu = yes && echo yes`
2732 ac_test_CXXFLAGS=${CXXFLAGS+set}
2733 ac_save_CXXFLAGS=$CXXFLAGS
2735 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2736 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2737 if test "${ac_cv_prog_cxx_g+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 cat >conftest.$ac_ext <<_ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2755 rm -f conftest.$ac_objext
2756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2757 (eval $ac_compile) 2>conftest.er1
2759 grep -v '^ *+' conftest.er1 >conftest.err
2761 cat conftest.err >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
2764 { ac_try='test -z "$ac_cxx_werror_flag"
2765 || test ! -s conftest.err'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; } &&
2771 { ac_try='test -s conftest.$ac_objext'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 ac_cv_prog_cxx_g=yes
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2786 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2788 if test "$ac_test_CXXFLAGS" = set; then
2789 CXXFLAGS=$ac_save_CXXFLAGS
2790 elif test $ac_cv_prog_cxx_g = yes; then
2791 if test "$GXX" = yes; then
2797 if test "$GXX" = yes; then
2803 for ac_declaration in \
2805 'extern "C" void std::exit (int) throw (); using std::exit;' \
2806 'extern "C" void std::exit (int); using std::exit;' \
2807 'extern "C" void exit (int) throw ();' \
2808 'extern "C" void exit (int);' \
2811 cat >conftest.$ac_ext <<_ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>conftest.er1
2831 grep -v '^ *+' conftest.er1 >conftest.err
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try='test -z "$ac_cxx_werror_flag"
2837 || test ! -s conftest.err'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; } &&
2843 { ac_try='test -s conftest.$ac_objext'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2857 cat >conftest.$ac_ext <<_ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2876 grep -v '^ *+' conftest.er1 >conftest.err
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -z "$ac_cxx_werror_flag"
2882 || test ! -s conftest.err'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2896 echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903 if test -n "$ac_declaration"; then
2904 echo '#ifdef __cplusplus' >>confdefs.h
2905 echo $ac_declaration >>confdefs.h
2906 echo '#endif' >>confdefs.h
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916 if test "x$CHECKMEM" '!=' "x";then
2920 #unset ac_cv_prog_CC
2921 #unset ac_cv_prog_CXX
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2931 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2932 # On Suns, sometimes $CPP names a directory.
2933 if test -n "$CPP" && test -d "$CPP"; then
2936 if test -z "$CPP"; then
2937 if test "${ac_cv_prog_CPP+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 # Double quotes because CPP needs to be expanded
2941 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2944 for ac_c_preproc_warn_flag in '' yes
2946 # Use a header file that comes with gcc, so configuring glibc
2947 # with a fresh cross-compiler works.
2948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2949 # <limits.h> exists even on freestanding compilers.
2950 # On the NeXT, cc -E runs the code through the compiler's parser,
2951 # not just through cpp. "Syntax error" is here to catch this case.
2952 cat >conftest.$ac_ext <<_ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2959 # include <limits.h>
2961 # include <assert.h>
2965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2968 grep -v '^ *+' conftest.er1 >conftest.err
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } >/dev/null; then
2973 if test -s conftest.err; then
2974 ac_cpp_err=$ac_c_preproc_warn_flag
2975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2982 if test -z "$ac_cpp_err"; then
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 # Broken: fails on valid input.
2991 rm -f conftest.err conftest.$ac_ext
2993 # OK, works on sane cases. Now check whether non-existent headers
2994 # can be detected and how.
2995 cat >conftest.$ac_ext <<_ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3001 #include <ac_nonexistent.h>
3003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3006 grep -v '^ *+' conftest.er1 >conftest.err
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } >/dev/null; then
3011 if test -s conftest.err; then
3012 ac_cpp_err=$ac_c_preproc_warn_flag
3013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3020 if test -z "$ac_cpp_err"; then
3021 # Broken: success on invalid input.
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 # Passes both tests.
3031 rm -f conftest.err conftest.$ac_ext
3034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3035 rm -f conftest.err conftest.$ac_ext
3036 if $ac_preproc_ok; then
3048 echo "$as_me:$LINENO: result: $CPP" >&5
3049 echo "${ECHO_T}$CPP" >&6
3051 for ac_c_preproc_warn_flag in '' yes
3053 # Use a header file that comes with gcc, so configuring glibc
3054 # with a fresh cross-compiler works.
3055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3056 # <limits.h> exists even on freestanding compilers.
3057 # On the NeXT, cc -E runs the code through the compiler's parser,
3058 # not just through cpp. "Syntax error" is here to catch this case.
3059 cat >conftest.$ac_ext <<_ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3066 # include <limits.h>
3068 # include <assert.h>
3072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } >/dev/null; then
3080 if test -s conftest.err; then
3081 ac_cpp_err=$ac_c_preproc_warn_flag
3082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3089 if test -z "$ac_cpp_err"; then
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 # Broken: fails on valid input.
3098 rm -f conftest.err conftest.$ac_ext
3100 # OK, works on sane cases. Now check whether non-existent headers
3101 # can be detected and how.
3102 cat >conftest.$ac_ext <<_ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3108 #include <ac_nonexistent.h>
3110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3113 grep -v '^ *+' conftest.er1 >conftest.err
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } >/dev/null; then
3118 if test -s conftest.err; then
3119 ac_cpp_err=$ac_c_preproc_warn_flag
3120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3127 if test -z "$ac_cpp_err"; then
3128 # Broken: success on invalid input.
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 # Passes both tests.
3138 rm -f conftest.err conftest.$ac_ext
3141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3142 rm -f conftest.err conftest.$ac_ext
3143 if $ac_preproc_ok; then
3146 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3147 See \`config.log' for more details." >&5
3148 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3149 See \`config.log' for more details." >&2;}
3150 { (exit 1); exit 1; }; }
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_RANLIB+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 if test -n "$RANLIB"; then
3169 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 RANLIB=$ac_cv_prog_RANLIB
3188 if test -n "$RANLIB"; then
3189 echo "$as_me:$LINENO: result: $RANLIB" >&5
3190 echo "${ECHO_T}$RANLIB" >&6
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3197 if test -z "$ac_cv_prog_RANLIB"; then
3198 ac_ct_RANLIB=$RANLIB
3199 # Extract the first word of "ranlib", so it can be a program name with args.
3200 set dummy ranlib; ac_word=$2
3201 echo "$as_me:$LINENO: checking for $ac_word" >&5
3202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 if test -n "$ac_ct_RANLIB"; then
3207 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_RANLIB="ranlib"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3227 if test -n "$ac_ct_RANLIB"; then
3228 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3229 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3231 echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3235 RANLIB=$ac_ct_RANLIB
3237 RANLIB="$ac_cv_prog_RANLIB"
3240 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3241 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3242 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3243 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 cat >conftest.make <<\_ACEOF
3248 @echo 'ac_maketemp="$(MAKE)"'
3250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3251 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3252 if test -n "$ac_maketemp"; then
3253 eval ac_cv_prog_make_${ac_make}_set=yes
3255 eval ac_cv_prog_make_${ac_make}_set=no
3259 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3260 echo "$as_me:$LINENO: result: yes" >&5
3261 echo "${ECHO_T}yes" >&6
3264 echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3266 SET_MAKE="MAKE=${MAKE-make}"
3269 # Find a good install program. We prefer a C program (faster),
3270 # so one script is as good as another. But avoid the broken or
3271 # incompatible versions:
3272 # SysV /etc/install, /usr/sbin/install
3273 # SunOS /usr/etc/install
3274 # IRIX /sbin/install
3276 # AmigaOS /C/install, which installs bootblocks on floppy discs
3277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3280 # OS/2's system install, which has a completely different semantic
3281 # ./install, which can be erroneously created by make from ./install.sh.
3282 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3283 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3284 if test -z "$INSTALL"; then
3285 if test "${ac_cv_path_install+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir=.
3293 # Account for people who put trailing slashes in PATH elements.
3295 ./ | .// | /cC/* | \
3296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3297 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3300 # OSF1 and SCO ODT 3.0 have their own names for install.
3301 # Don't use installbsd from OSF since it installs stuff as root
3303 for ac_prog in ginstall scoinst install; do
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3306 if test $ac_prog = install &&
3307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3308 # AIX install. It has an incompatible calling convention.
3310 elif test $ac_prog = install &&
3311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3312 # program-specific install script used by HP pwplus--don't use.
3315 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3327 if test "${ac_cv_path_install+set}" = set; then
3328 INSTALL=$ac_cv_path_install
3330 # As a last resort, use the slow shell script. We don't cache a
3331 # path for INSTALL within a source directory, because that will
3332 # break other packages using the cache if that directory is
3333 # removed, or if the path is relative.
3334 INSTALL=$ac_install_sh
3337 echo "$as_me:$LINENO: result: $INSTALL" >&5
3338 echo "${ECHO_T}$INSTALL" >&6
3340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3341 # It thinks the first close brace ends the variable substitution.
3342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3344 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3346 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3348 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3349 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3351 if test "$LN_S" = "ln -s"; then
3352 echo "$as_me:$LINENO: result: yes" >&5
3353 echo "${ECHO_T}yes" >&6
3355 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3356 echo "${ECHO_T}no, using $LN_S" >&6
3359 # Check whether --enable-shared or --disable-shared was given.
3360 if test "${enable_shared+set}" = set; then
3361 enableval="$enable_shared"
3362 p=${PACKAGE-default}
3364 yes) enable_shared=yes ;;
3365 no) enable_shared=no ;;
3368 # Look at the argument we got. We use all the common list separators.
3369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3370 for pkg in $enableval; do
3371 if test "X$pkg" = "X$p"; then
3381 # Check whether --enable-static or --disable-static was given.
3382 if test "${enable_static+set}" = set; then
3383 enableval="$enable_static"
3384 p=${PACKAGE-default}
3386 yes) enable_static=yes ;;
3387 no) enable_static=no ;;
3390 # Look at the argument we got. We use all the common list separators.
3391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3392 for pkg in $enableval; do
3393 if test "X$pkg" = "X$p"; then
3403 # Check whether --enable-fast-install or --disable-fast-install was given.
3404 if test "${enable_fast_install+set}" = set; then
3405 enableval="$enable_fast_install"
3406 p=${PACKAGE-default}
3408 yes) enable_fast_install=yes ;;
3409 no) enable_fast_install=no ;;
3411 enable_fast_install=no
3412 # Look at the argument we got. We use all the common list separators.
3413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3414 for pkg in $enableval; do
3415 if test "X$pkg" = "X$p"; then
3416 enable_fast_install=yes
3423 enable_fast_install=yes
3425 # Find the correct PATH separator. Usually this is `:', but
3426 # DJGPP uses `;' like DOS.
3427 if test "X${PATH_SEPARATOR+set}" != Xset; then
3428 UNAME=${UNAME-`uname 2>/dev/null`}
3430 *-DOS) lt_cv_sys_path_separator=';' ;;
3431 *) lt_cv_sys_path_separator=':' ;;
3433 PATH_SEPARATOR=$lt_cv_sys_path_separator
3437 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3438 if test "${with_gnu_ld+set}" = set; then
3439 withval="$with_gnu_ld"
3440 test "$withval" = no || with_gnu_ld=yes
3445 if test "$GCC" = yes; then
3446 # Check if gcc -print-prog-name=ld gives a path.
3447 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3448 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3451 # gcc leaves a trailing carriage return which upsets mingw
3452 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3454 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3457 # Accept absolute paths.
3458 [\\/]* | [A-Za-z]:[\\/]*)
3459 re_direlt='/[^/][^/]*/\.\./'
3460 # Canonicalize the path of ld
3461 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3462 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3463 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3465 test -z "$LD" && LD="$ac_prog"
3468 # If it fails, then pretend we aren't using GCC.
3472 # If it is relative, then search for the first ld in PATH.
3476 elif test "$with_gnu_ld" = yes; then
3477 echo "$as_me:$LINENO: checking for GNU ld" >&5
3478 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3480 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3481 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3483 if test "${lt_cv_path_LD+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 if test -z "$LD"; then
3487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3488 for ac_dir in $PATH; do
3489 test -z "$ac_dir" && ac_dir=.
3490 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3491 lt_cv_path_LD="$ac_dir/$ac_prog"
3492 # Check to see if the program is GNU ld. I'd rather use --version,
3493 # but apparently some GNU ld's only accept -v.
3494 # Break only if it was the GNU/non-GNU ld that we prefer.
3495 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3496 test "$with_gnu_ld" != no && break
3498 test "$with_gnu_ld" != yes && break
3504 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3509 if test -n "$LD"; then
3510 echo "$as_me:$LINENO: result: $LD" >&5
3511 echo "${ECHO_T}$LD" >&6
3513 echo "$as_me:$LINENO: result: no" >&5
3514 echo "${ECHO_T}no" >&6
3516 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3517 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3518 { (exit 1); exit 1; }; }
3519 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3520 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3521 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3525 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3526 lt_cv_prog_gnu_ld=yes
3528 lt_cv_prog_gnu_ld=no
3531 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3532 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3533 with_gnu_ld=$lt_cv_prog_gnu_ld
3536 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3537 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3538 if test "${lt_cv_ld_reload_flag+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 lt_cv_ld_reload_flag='-r'
3543 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3544 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3545 reload_flag=$lt_cv_ld_reload_flag
3546 test -n "$reload_flag" && reload_flag=" $reload_flag"
3548 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3549 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3550 if test "${lt_cv_path_NM+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 if test -n "$NM"; then
3554 # Let the user override the test.
3557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3558 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3559 test -z "$ac_dir" && ac_dir=.
3560 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3561 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3562 # Check to see if the nm accepts a BSD-compat flag.
3563 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3564 # nm: unknown option "B" ignored
3565 # Tru64's nm complains that /dev/null is an invalid object file
3566 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3567 lt_cv_path_NM="$tmp_nm -B"
3569 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3570 lt_cv_path_NM="$tmp_nm -p"
3573 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3574 continue # so that we can try to find one that supports BSD flags
3579 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3584 echo "$as_me:$LINENO: result: $NM" >&5
3585 echo "${ECHO_T}$NM" >&6
3587 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3588 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3589 if test "${lt_cv_path_SED+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 # Loop through the user's path and test for sed and gsed.
3593 # Then use that list of sed's as ones to test for truncation.
3594 as_executable_p="test -f"
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir=.
3600 for ac_prog in sed gsed; do
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3603 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3609 # Create a temporary directory, and hook for its removal unless debugging.
3612 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3613 trap '{ (exit 1); exit 1; }' 1 2 13 15
3616 # Create a (secure) tmp directory for tmp files.
3619 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3620 test -n "$tmp" && test -d "$tmp"
3623 tmp=$TMPDIR/sed$$-$RANDOM
3624 (umask 077 && mkdir $tmp)
3627 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3628 { (exit 1); exit 1; }
3632 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3633 # along with /bin/sed that truncates output.
3634 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3635 test ! -f ${_sed} && break
3636 cat /dev/null > "$tmp/sed.in"
3638 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3639 # Check for GNU sed and select it if it is found.
3640 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3641 lt_cv_path_SED=${_sed}
3645 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3646 mv "$tmp/sed.tmp" "$tmp/sed.in"
3647 cp "$tmp/sed.in" "$tmp/sed.nl"
3648 echo >>"$tmp/sed.nl"
3649 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3650 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3651 # 40000 chars as input seems more than enough
3652 test $_count -gt 10 && break
3653 _count=`expr $_count + 1`
3654 if test $_count -gt $_max; then
3656 lt_cv_path_SED=$_sed
3664 if test "X$SED" != "X"; then
3669 echo "$as_me:$LINENO: result: $SED" >&5
3670 echo "${ECHO_T}$SED" >&6
3672 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3673 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3674 if test "${lt_cv_deplibs_check_method+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 lt_cv_file_magic_cmd='$MAGIC_CMD'
3678 lt_cv_file_magic_test_file=
3679 lt_cv_deplibs_check_method='unknown'
3680 # Need to set the preceding variable on all platforms that support
3681 # interlibrary dependencies.
3682 # 'none' -- dependencies not supported.
3683 # `unknown' -- same as none, but documents that we really don't know.
3684 # 'pass_all' -- all dependencies passed with no checks.
3685 # 'test_compile' -- check by making test program.
3686 # 'file_magic [[regex]]' -- check by looking for files in library path
3687 # which responds to the $file_magic_cmd with a given egrep regex.
3688 # If you have `file' or equivalent on your system and you're not sure
3689 # whether `pass_all' will *always* work, you probably want this one.
3693 lt_cv_deplibs_check_method=pass_all
3697 lt_cv_deplibs_check_method=pass_all
3701 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3702 lt_cv_file_magic_cmd='/usr/bin/file -L'
3703 lt_cv_file_magic_test_file=/shlib/libc.so
3706 cygwin* | mingw* | pw32*)
3707 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3708 lt_cv_file_magic_cmd='$OBJDUMP -f'
3711 darwin* | rhapsody*)
3712 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3713 lt_cv_file_magic_cmd='/usr/bin/file -L'
3715 rhapsody* | darwin1.[012])
3716 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3719 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3725 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3728 # Not sure whether the presence of OpenBSD here was a mistake.
3729 # Let's accept both of them until this is cleared up.
3730 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3731 lt_cv_file_magic_cmd=/usr/bin/file
3732 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3736 lt_cv_deplibs_check_method=pass_all
3741 lt_cv_deplibs_check_method=pass_all
3745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3746 lt_cv_file_magic_cmd=/usr/bin/file
3747 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3750 irix5* | irix6* | nonstopux*)
3752 irix5* | nonstopux*)
3753 # this will be overridden with pass_all, but let us keep it just in case
3754 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3758 *-32|*"-32 ") libmagic=32-bit;;
3759 *-n32|*"-n32 ") libmagic=N32;;
3760 *-64|*"-64 ") libmagic=64-bit;;
3761 *) libmagic=never-match;;
3763 # this will be overridden with pass_all, but let us keep it just in case
3764 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3767 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3768 lt_cv_deplibs_check_method=pass_all
3771 # This must be Linux ELF.
3774 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3775 lt_cv_deplibs_check_method=pass_all ;;
3777 # glibc up to 2.1.1 does not perform some relocations on ARM
3778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3780 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3784 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3785 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3787 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3793 lt_cv_file_magic_cmd=/usr/bin/file
3794 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3798 lt_cv_file_magic_cmd=/usr/bin/file
3799 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3803 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3807 osf3* | osf4* | osf5*)
3808 # this will be overridden with pass_all, but let us keep it just in case
3809 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3810 lt_cv_file_magic_test_file=/shlib/libc.so
3811 lt_cv_deplibs_check_method=pass_all
3815 lt_cv_deplibs_check_method=pass_all
3819 lt_cv_deplibs_check_method=pass_all
3820 lt_cv_file_magic_test_file=/lib/libc.so
3823 sysv5uw[78]* | sysv4*uw2*)
3824 lt_cv_deplibs_check_method=pass_all
3827 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3828 case $host_vendor in
3830 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]'
3831 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3834 lt_cv_deplibs_check_method=pass_all
3837 lt_cv_file_magic_cmd='/bin/file'
3838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3841 lt_cv_file_magic_cmd='/bin/file'
3842 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3843 lt_cv_file_magic_test_file=/lib/libc.so
3846 lt_cv_deplibs_check_method=pass_all
3853 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3854 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3855 file_magic_cmd=$lt_cv_file_magic_cmd
3856 deplibs_check_method=$lt_cv_deplibs_check_method
3865 # Check for command to grab the raw symbol name followed by C symbol from nm.
3866 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3867 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3868 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 # These are sane defaults that work on at least a few old systems.
3873 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3875 # Character class describing NM global symbol codes.
3876 symcode='[BCDEGRST]'
3878 # Regexp to match symbols that can be accessed directly from C.
3879 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3881 # Transform the above into a raw symbol and a C symbol.
3882 symxfrm='\1 \2\3 \3'
3884 # Transform an extracted symbol line into a proper C declaration
3885 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3887 # Transform an extracted symbol line into symbol name and symbol address
3888 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'"
3890 # Define system-specific variables.
3895 cygwin* | mingw* | pw32*)
3896 symcode='[ABCDGISTW]'
3898 hpux*) # Its linker distinguishes data from code symbols
3899 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3900 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3903 symcode='[BCDEGRST]'
3906 symcode='[BCDEGQRST]'
3916 # Handle CRLF in mingw tool chain
3920 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3924 # If we're using GNU nm, then use its standard symbol codes.
3925 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3926 symcode='[ABCDGISTW]'
3929 # Try without a prefix undercore, then with it.
3930 for ac_symprfx in "" "_"; do
3932 # Write the raw and C identifiers.
3933 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3935 # Check to see that the pipe works correctly.
3938 cat > conftest.$ac_ext <<EOF
3943 void nm_test_func(){}
3947 int main(){nm_test_var='a';nm_test_func();return(0);}
3950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951 (eval $ac_compile) 2>&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; then
3955 # Now try to grab the symbols.
3957 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3958 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } && test -s "$nlist"; then
3962 # Try sorting and uniquifying the output.
3963 if sort "$nlist" | uniq > "$nlist"T; then
3964 mv -f "$nlist"T "$nlist"
3969 # Make sure that we snagged all the symbols we need.
3970 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3971 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3972 cat <<EOF > conftest.$ac_ext
3978 # Now generate the symbol file.
3979 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3981 cat <<EOF >> conftest.$ac_ext
3982 #if defined (__STDC__) && __STDC__
3983 # define lt_ptr void *
3985 # define lt_ptr char *
3989 /* The mapping between symbol names and symbols. */
3994 lt_preloaded_symbols[] =
3997 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3998 cat <<\EOF >> conftest.$ac_ext
4006 # Now try linking the two files.
4007 mv conftest.$ac_objext conftstm.$ac_objext
4009 save_CFLAGS="$CFLAGS"
4010 LIBS="conftstm.$ac_objext"
4011 CFLAGS="$CFLAGS$no_builtin_flag"
4012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4013 (eval $ac_link) 2>&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } && test -s conftest$ac_exeext; then
4020 CFLAGS="$save_CFLAGS"
4022 echo "cannot find nm_test_func in $nlist" >&5
4025 echo "cannot find nm_test_var in $nlist" >&5
4028 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4031 echo "$progname: failed program was:" >&5
4032 cat conftest.$ac_ext >&5
4034 rm -f conftest* conftst*
4036 # Do not use the global_symbol_pipe unless it works.
4037 if test "$pipe_works" = yes; then
4040 lt_cv_sys_global_symbol_pipe=
4046 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4047 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4048 global_symbol_to_cdecl=
4049 global_symbol_to_c_name_address=
4051 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4052 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4054 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4056 echo "$as_me:$LINENO: result: failed" >&5
4057 echo "${ECHO_T}failed" >&6
4059 echo "$as_me:$LINENO: result: ok" >&5
4060 echo "${ECHO_T}ok" >&6
4064 echo "$as_me:$LINENO: checking for egrep" >&5
4065 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4066 if test "${ac_cv_prog_egrep+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4070 then ac_cv_prog_egrep='grep -E'
4071 else ac_cv_prog_egrep='egrep'
4074 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4075 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4076 EGREP=$ac_cv_prog_egrep
4079 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4081 if test "${ac_cv_header_stdc+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 cat >conftest.$ac_ext <<_ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4103 rm -f conftest.$ac_objext
4104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4105 (eval $ac_compile) 2>conftest.er1
4107 grep -v '^ *+' conftest.er1 >conftest.err
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } &&
4112 { ac_try='test -z "$ac_c_werror_flag"
4113 || test ! -s conftest.err'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; } &&
4119 { ac_try='test -s conftest.$ac_objext'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; }; then
4125 ac_cv_header_stdc=yes
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 ac_cv_header_stdc=no
4132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 if test $ac_cv_header_stdc = yes; then
4135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146 $EGREP "memchr" >/dev/null 2>&1; then
4149 ac_cv_header_stdc=no
4155 if test $ac_cv_header_stdc = yes; then
4156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4157 cat >conftest.$ac_ext <<_ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167 $EGREP "free" >/dev/null 2>&1; then
4170 ac_cv_header_stdc=no
4176 if test $ac_cv_header_stdc = yes; then
4177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4178 if test "$cross_compiling" = yes; then
4181 cat >conftest.$ac_ext <<_ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4188 #if ((' ' & 0x0FF) == 0x020)
4189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4192 # define ISLOWER(c) \
4193 (('a' <= (c) && (c) <= 'i') \
4194 || ('j' <= (c) && (c) <= 'r') \
4195 || ('s' <= (c) && (c) <= 'z'))
4196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4204 for (i = 0; i < 256; i++)
4205 if (XOR (islower (i), ISLOWER (i))
4206 || toupper (i) != TOUPPER (i))
4211 rm -f conftest$ac_exeext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4213 (eval $ac_link) 2>&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4224 echo "$as_me: program exited with status $ac_status" >&5
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4229 ac_cv_header_stdc=no
4231 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4235 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4236 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4237 if test $ac_cv_header_stdc = yes; then
4239 cat >>confdefs.h <<\_ACEOF
4240 #define STDC_HEADERS 1
4245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4255 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4256 inttypes.h stdint.h unistd.h
4258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4259 echo "$as_me:$LINENO: checking for $ac_header" >&5
4260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 cat >conftest.$ac_ext <<_ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 $ac_includes_default
4272 #include <$ac_header>
4274 rm -f conftest.$ac_objext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4276 (eval $ac_compile) 2>conftest.er1
4278 grep -v '^ *+' conftest.er1 >conftest.err
4280 cat conftest.err >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } &&
4283 { ac_try='test -z "$ac_c_werror_flag"
4284 || test ! -s conftest.err'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; } &&
4290 { ac_try='test -s conftest.$ac_objext'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; }; then
4296 eval "$as_ac_Header=yes"
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4301 eval "$as_ac_Header=no"
4303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4308 cat >>confdefs.h <<_ACEOF
4309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318 for ac_header in dlfcn.h
4320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4322 echo "$as_me:$LINENO: checking for $ac_header" >&5
4323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4330 # Is the header compilable?
4331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4333 cat >conftest.$ac_ext <<_ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4339 $ac_includes_default
4340 #include <$ac_header>
4342 rm -f conftest.$ac_objext
4343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4344 (eval $ac_compile) 2>conftest.er1
4346 grep -v '^ *+' conftest.er1 >conftest.err
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try='test -z "$ac_c_werror_flag"
4352 || test ! -s conftest.err'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; } &&
4358 { ac_try='test -s conftest.$ac_objext'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 ac_header_compiler=yes
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4369 ac_header_compiler=no
4371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4372 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4373 echo "${ECHO_T}$ac_header_compiler" >&6
4375 # Is the header present?
4376 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4378 cat >conftest.$ac_ext <<_ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 #include <$ac_header>
4386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4389 grep -v '^ *+' conftest.er1 >conftest.err
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } >/dev/null; then
4394 if test -s conftest.err; then
4395 ac_cpp_err=$ac_c_preproc_warn_flag
4396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4403 if test -z "$ac_cpp_err"; then
4404 ac_header_preproc=yes
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 ac_header_preproc=no
4411 rm -f conftest.err conftest.$ac_ext
4412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4413 echo "${ECHO_T}$ac_header_preproc" >&6
4415 # So? What about this header?
4416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4422 ac_header_preproc=yes
4425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4439 ## ------------------------------------------ ##
4440 ## Report this to the AC_PACKAGE_NAME lists. ##
4441 ## ------------------------------------------ ##
4444 sed "s/^/$as_me: WARNING: /" >&2
4447 echo "$as_me:$LINENO: checking for $ac_header" >&5
4448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 eval "$as_ac_Header=\$ac_header_preproc"
4454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4459 cat >>confdefs.h <<_ACEOF
4460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4472 # Only perform the check for file, if the check method requires it
4473 case $deplibs_check_method in
4475 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4476 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4477 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4478 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4486 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4489 ac_save_MAGIC_CMD="$MAGIC_CMD"
4490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4491 ac_dummy="/usr/bin:$PATH"
4492 for ac_dir in $ac_dummy; do
4493 test -z "$ac_dir" && ac_dir=.
4494 if test -f $ac_dir/${ac_tool_prefix}file; then
4495 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4496 if test -n "$file_magic_test_file"; then
4497 case $deplibs_check_method in
4499 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4502 egrep "$file_magic_regex" > /dev/null; then
4507 *** Warning: the command libtool uses to detect shared libraries,
4508 *** $file_magic_cmd, produces output that libtool cannot recognize.
4509 *** The result is that libtool may fail to recognize shared libraries
4510 *** as such. This will affect the creation of libtool libraries that
4511 *** depend on shared libraries, but programs linked with such libtool
4512 *** libraries will work regardless of this problem. Nevertheless, you
4513 *** may want to report the problem to your system manager and/or to
4514 *** bug-libtool@gnu.org
4524 MAGIC_CMD="$ac_save_MAGIC_CMD"
4529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4530 if test -n "$MAGIC_CMD"; then
4531 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4532 echo "${ECHO_T}$MAGIC_CMD" >&6
4534 echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4538 if test -z "$lt_cv_path_MAGIC_CMD"; then
4539 if test -n "$ac_tool_prefix"; then
4540 echo "$as_me:$LINENO: checking for file" >&5
4541 echo $ECHO_N "checking for file... $ECHO_C" >&6
4542 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4553 ac_save_MAGIC_CMD="$MAGIC_CMD"
4554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4555 ac_dummy="/usr/bin:$PATH"
4556 for ac_dir in $ac_dummy; do
4557 test -z "$ac_dir" && ac_dir=.
4558 if test -f $ac_dir/file; then
4559 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4560 if test -n "$file_magic_test_file"; then
4561 case $deplibs_check_method in
4563 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4565 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4566 egrep "$file_magic_regex" > /dev/null; then
4571 *** Warning: the command libtool uses to detect shared libraries,
4572 *** $file_magic_cmd, produces output that libtool cannot recognize.
4573 *** The result is that libtool may fail to recognize shared libraries
4574 *** as such. This will affect the creation of libtool libraries that
4575 *** depend on shared libraries, but programs linked with such libtool
4576 *** libraries will work regardless of this problem. Nevertheless, you
4577 *** may want to report the problem to your system manager and/or to
4578 *** bug-libtool@gnu.org
4588 MAGIC_CMD="$ac_save_MAGIC_CMD"
4593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4594 if test -n "$MAGIC_CMD"; then
4595 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4596 echo "${ECHO_T}$MAGIC_CMD" >&6
4598 echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6
4611 if test -n "$ac_tool_prefix"; then
4612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4613 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4614 echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4616 if test "${ac_cv_prog_RANLIB+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 if test -n "$RANLIB"; then
4620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 RANLIB=$ac_cv_prog_RANLIB
4639 if test -n "$RANLIB"; then
4640 echo "$as_me:$LINENO: result: $RANLIB" >&5
4641 echo "${ECHO_T}$RANLIB" >&6
4643 echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4648 if test -z "$ac_cv_prog_RANLIB"; then
4649 ac_ct_RANLIB=$RANLIB
4650 # Extract the first word of "ranlib", so it can be a program name with args.
4651 set dummy ranlib; ac_word=$2
4652 echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4654 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 if test -n "$ac_ct_RANLIB"; then
4658 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667 ac_cv_prog_ac_ct_RANLIB="ranlib"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4677 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4678 if test -n "$ac_ct_RANLIB"; then
4679 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4680 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4682 echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6
4686 RANLIB=$ac_ct_RANLIB
4688 RANLIB="$ac_cv_prog_RANLIB"
4691 if test -n "$ac_tool_prefix"; then
4692 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4693 set dummy ${ac_tool_prefix}strip; ac_word=$2
4694 echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4696 if test "${ac_cv_prog_STRIP+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 if test -n "$STRIP"; then
4700 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 STRIP=$ac_cv_prog_STRIP
4719 if test -n "$STRIP"; then
4720 echo "$as_me:$LINENO: result: $STRIP" >&5
4721 echo "${ECHO_T}$STRIP" >&6
4723 echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6
4728 if test -z "$ac_cv_prog_STRIP"; then
4730 # Extract the first word of "strip", so it can be a program name with args.
4731 set dummy strip; ac_word=$2
4732 echo "$as_me:$LINENO: checking for $ac_word" >&5
4733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4734 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 if test -n "$ac_ct_STRIP"; then
4738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_prog_ac_ct_STRIP="strip"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4758 if test -n "$ac_ct_STRIP"; then
4759 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4760 echo "${ECHO_T}$ac_ct_STRIP" >&6
4762 echo "$as_me:$LINENO: result: no" >&5
4763 echo "${ECHO_T}no" >&6
4768 STRIP="$ac_cv_prog_STRIP"
4775 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4776 if test "${enable_libtool_lock+set}" = set; then
4777 enableval="$enable_libtool_lock"
4780 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4782 # Some flags need to be propagated to the compiler or linker for good
4786 # Find out which ABI we are using.
4787 echo '#line 4787 "configure"' > conftest.$ac_ext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789 (eval $ac_compile) 2>&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; then
4793 case `/usr/bin/file conftest.$ac_objext` in
4809 # Test if the compiler is 64bit
4810 echo 'int i;' > conftest.$ac_ext
4811 lt_cv_cc_64bit_output=no
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813 (eval $ac_compile) 2>&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; then
4817 case `/usr/bin/file conftest.$ac_objext` in
4819 lt_cv_cc_64bit_output=yes
4827 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4828 SAVE_CFLAGS="$CFLAGS"
4829 CFLAGS="$CFLAGS -belf"
4830 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4831 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4832 if test "${lt_cv_cc_needs_belf+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 ac_cpp='$CPP $CPPFLAGS'
4839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843 cat >conftest.$ac_ext <<_ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4858 rm -f conftest.$ac_objext conftest$ac_exeext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4860 (eval $ac_link) 2>conftest.er1
4862 grep -v '^ *+' conftest.er1 >conftest.err
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } &&
4867 { ac_try='test -z "$ac_c_werror_flag"
4868 || test ! -s conftest.err'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; } &&
4874 { ac_try='test -s conftest$ac_exeext'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; }; then
4880 lt_cv_cc_needs_belf=yes
4882 echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.$ac_ext >&5
4885 lt_cv_cc_needs_belf=no
4887 rm -f conftest.err conftest.$ac_objext \
4888 conftest$ac_exeext conftest.$ac_ext
4890 ac_cpp='$CPP $CPPFLAGS'
4891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4896 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4897 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4898 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4899 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4900 CFLAGS="$SAVE_CFLAGS"
4907 # Sed substitution that helps us do robust quoting. It backslashifies
4908 # metacharacters that are still active within double-quoted strings.
4909 Xsed='sed -e s/^X//'
4910 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4912 # Same as above, but do not quote variable references.
4913 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4915 # Sed substitution to delay expansion of an escaped shell variable in a
4916 # double_quote_subst'ed string.
4917 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4923 default_ofile=libtool
4924 can_build_shared=yes
4926 # All known linkers require a `.a' archive for static linking (except M$VC,
4927 # which needs '.lib').
4929 ltmain="$ac_aux_dir/ltmain.sh"
4930 ofile="$default_ofile"
4931 with_gnu_ld="$lt_cv_prog_gnu_ld"
4932 need_locks="$enable_libtool_lock"
4935 old_CFLAGS="$CFLAGS"
4937 # Set sane defaults for various variables
4938 test -z "$AR" && AR=ar
4939 test -z "$AR_FLAGS" && AR_FLAGS=cru
4940 test -z "$AS" && AS=as
4941 test -z "$CC" && CC=cc
4942 test -z "$DLLTOOL" && DLLTOOL=dlltool
4943 test -z "$LD" && LD=ld
4944 test -z "$LN_S" && LN_S="ln -s"
4945 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4946 test -z "$NM" && NM=nm
4947 test -z "$OBJDUMP" && OBJDUMP=objdump
4948 test -z "$RANLIB" && RANLIB=:
4949 test -z "$STRIP" && STRIP=:
4950 test -z "$ac_objext" && ac_objext=o
4952 if test x"$host" != x"$build"; then
4953 ac_tool_prefix=${host_alias}-
4958 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4961 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4966 # AIX sometimes has problems with the GCC collect2 program. For some
4967 # reason, if we set the COLLECT_NAMES environment variable, the problems
4968 # vanish in a puff of smoke.
4969 if test "X${COLLECT_NAMES+set}" != Xset; then
4971 export COLLECT_NAMES
4976 # Determine commands to create old-style static archives.
4977 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4978 old_postinstall_cmds='chmod 644 $oldlib'
4979 old_postuninstall_cmds=
4981 if test -n "$RANLIB"; then
4984 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4987 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4990 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4993 # Allow CC to be a program name with arguments.
4997 echo "$as_me:$LINENO: checking for objdir" >&5
4998 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4999 rm -f .libs 2>/dev/null
5000 mkdir .libs 2>/dev/null
5001 if test -d .libs; then
5004 # MS-DOS does not allow filenames that begin with a dot.
5007 rmdir .libs 2>/dev/null
5008 echo "$as_me:$LINENO: result: $objdir" >&5
5009 echo "${ECHO_T}$objdir" >&6
5013 # Check whether --with-pic or --without-pic was given.
5014 if test "${with_pic+set}" = set; then
5020 test -z "$pic_mode" && pic_mode=default
5022 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5023 # in isolation, and that seeing it set (from the cache) indicates that
5024 # the associated values are set (in the cache) correctly too.
5025 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5026 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5027 if test "${lt_cv_prog_cc_pic+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 lt_cv_prog_cc_shlib=
5033 lt_cv_prog_cc_static=
5034 lt_cv_prog_cc_no_builtin=
5035 lt_cv_prog_cc_can_build_shared=$can_build_shared
5037 if test "$GCC" = yes; then
5038 lt_cv_prog_cc_wl='-Wl,'
5039 lt_cv_prog_cc_static='-static'
5043 # Below there is a dirty hack to force normal static linking with -ldl
5044 # The problem is because libdl dynamically linked with both libc and
5045 # libC (AIX C++ library), which obviously doesn't included in libraries
5046 # list by gcc. This cause undefined symbols with -static flags.
5047 # This hack allows C programs to be linked with "-static -ldl", but
5048 # not sure about C++ programs.
5049 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5052 # FIXME: we need at least 68020 code to build shared libraries, but
5053 # adding the `-m68020' flag to GCC prevents building anything better,
5055 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5057 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5058 # PIC is the default for these OSes.
5060 darwin* | rhapsody*)
5061 # PIC is the default on this platform
5062 # Common symbols not allowed in MH_DYLIB files
5063 lt_cv_prog_cc_pic='-fno-common'
5065 cygwin* | mingw* | pw32* | os2*)
5066 # This hack is so that the source file can tell whether it is being
5067 # built for inclusion in a dll (and should export symbols for example).
5068 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5071 if test -d /usr/nec; then
5072 lt_cv_prog_cc_pic=-Kconform_pic
5076 lt_cv_prog_cc_pic='-fPIC'
5080 # PORTME Check for PIC flags for the system compiler.
5082 aix3* | aix4* | aix5*)
5083 lt_cv_prog_cc_wl='-Wl,'
5084 # All AIX code is PIC.
5085 if test "$host_cpu" = ia64; then
5086 # AIX 5 now supports IA64 processor
5087 lt_cv_prog_cc_static='-Bstatic'
5089 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5093 hpux9* | hpux10* | hpux11*)
5094 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5095 lt_cv_prog_cc_wl='-Wl,'
5096 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5097 lt_cv_prog_cc_pic='+Z'
5100 irix5* | irix6* | nonstopux*)
5101 lt_cv_prog_cc_wl='-Wl,'
5102 lt_cv_prog_cc_static='-non_shared'
5103 # PIC (with -KPIC) is the default.
5106 cygwin* | mingw* | pw32* | os2*)
5107 # This hack is so that the source file can tell whether it is being
5108 # built for inclusion in a dll (and should export symbols for example).
5109 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5113 lt_cv_prog_cc_pic='-KPIC'
5114 lt_cv_prog_cc_static='-Bstatic'
5117 osf3* | osf4* | osf5*)
5118 # All OSF/1 code is PIC.
5119 lt_cv_prog_cc_wl='-Wl,'
5120 lt_cv_prog_cc_static='-non_shared'
5124 lt_cv_prog_cc_pic='-Kpic'
5125 lt_cv_prog_cc_static='-dn'
5126 lt_cv_prog_cc_shlib='-belf'
5130 lt_cv_prog_cc_pic='-KPIC'
5131 lt_cv_prog_cc_static='-Bstatic'
5132 lt_cv_prog_cc_wl='-Wl,'
5136 lt_cv_prog_cc_pic='-PIC'
5137 lt_cv_prog_cc_static='-Bstatic'
5138 lt_cv_prog_cc_wl='-Qoption ld '
5141 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5142 lt_cv_prog_cc_pic='-KPIC'
5143 lt_cv_prog_cc_static='-Bstatic'
5144 lt_cv_prog_cc_wl='-Wl,'
5148 lt_cv_prog_cc_pic='-pic'
5149 lt_cv_prog_cc_static='-Bstatic'
5153 if test -d /usr/nec ;then
5154 lt_cv_prog_cc_pic='-Kconform_pic'
5155 lt_cv_prog_cc_static='-Bstatic'
5160 lt_cv_prog_cc_can_build_shared=no
5167 if test -z "$lt_cv_prog_cc_pic"; then
5168 echo "$as_me:$LINENO: result: none" >&5
5169 echo "${ECHO_T}none" >&6
5171 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5172 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5174 # Check to make sure the pic_flag actually works.
5175 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5176 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5177 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 save_CFLAGS="$CFLAGS"
5181 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5182 cat >conftest.$ac_ext <<_ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5197 rm -f conftest.$ac_objext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5199 (eval $ac_compile) 2>conftest.er1
5201 grep -v '^ *+' conftest.er1 >conftest.err
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } &&
5206 { ac_try='test -z "$ac_c_werror_flag"
5207 || test ! -s conftest.err'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; } &&
5213 { ac_try='test -s conftest.$ac_objext'
5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; }; then
5220 hpux9* | hpux10* | hpux11*)
5221 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5222 # they create non-PIC objects. So, if there were any warnings, we
5223 # assume that PIC is not supported.
5224 if test -s conftest.err; then
5225 lt_cv_prog_cc_pic_works=no
5227 lt_cv_prog_cc_pic_works=yes
5231 lt_cv_prog_cc_pic_works=yes
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5239 lt_cv_prog_cc_pic_works=no
5242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5243 CFLAGS="$save_CFLAGS"
5248 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5250 lt_cv_prog_cc_can_build_shared=no
5252 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5255 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5256 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5259 # Check for any special shared library compilation flags.
5260 if test -n "$lt_cv_prog_cc_shlib"; then
5261 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5262 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5263 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5265 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5266 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5267 lt_cv_prog_cc_can_build_shared=no
5271 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5272 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5273 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 lt_cv_prog_cc_static_works=no
5277 save_LDFLAGS="$LDFLAGS"
5278 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5279 cat >conftest.$ac_ext <<_ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296 (eval $ac_link) 2>conftest.er1
5298 grep -v '^ *+' conftest.er1 >conftest.err
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try='test -z "$ac_c_werror_flag"
5304 || test ! -s conftest.err'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; } &&
5310 { ac_try='test -s conftest$ac_exeext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5316 lt_cv_prog_cc_static_works=yes
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5322 rm -f conftest.err conftest.$ac_objext \
5323 conftest$ac_exeext conftest.$ac_ext
5324 LDFLAGS="$save_LDFLAGS"
5329 # Belt *and* braces to stop my trousers falling down:
5330 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5331 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5332 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5334 pic_flag="$lt_cv_prog_cc_pic"
5335 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5336 wl="$lt_cv_prog_cc_wl"
5337 link_static_flag="$lt_cv_prog_cc_static"
5338 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5339 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5342 # Check to see if options -o and -c are simultaneously supported by compiler
5343 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5344 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5345 if test "${lt_cv_compiler_c_o+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 $rm -r conftest 2>/dev/null
5352 echo "int some_variable = 0;" > conftest.$ac_ext
5354 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5355 # that will create temporary files in the current directory regardless of
5356 # the output directory. Thus, making CWD read-only will cause this test
5357 # to fail, enabling locking or at least warning the user not to do parallel
5360 save_CFLAGS="$CFLAGS"
5361 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5363 if { (eval echo configure:5363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5364 # The compiler can only warn and ignore the option if not recognized
5365 # So say no if there are warnings
5366 if test -s out/conftest.err; then
5367 lt_cv_compiler_c_o=no
5369 lt_cv_compiler_c_o=yes
5372 # Append any errors to the config.log.
5373 cat out/conftest.err 1>&5
5374 lt_cv_compiler_c_o=no
5376 CFLAGS="$save_CFLAGS"
5382 $rm -r conftest 2>/dev/null
5386 compiler_c_o=$lt_cv_compiler_c_o
5387 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5388 echo "${ECHO_T}$compiler_c_o" >&6
5390 if test x"$compiler_c_o" = x"yes"; then
5391 # Check to see if we can write to a .lo
5392 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5393 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5394 if test "${lt_cv_compiler_o_lo+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 lt_cv_compiler_o_lo=no
5399 save_CFLAGS="$CFLAGS"
5400 CFLAGS="$CFLAGS -c -o conftest.lo"
5401 save_objext="$ac_objext"
5403 cat >conftest.$ac_ext <<_ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5413 int some_variable = 0;
5418 rm -f conftest.$ac_objext
5419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5420 (eval $ac_compile) 2>conftest.er1
5422 grep -v '^ *+' conftest.er1 >conftest.err
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try='test -z "$ac_c_werror_flag"
5428 || test ! -s conftest.err'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try='test -s conftest.$ac_objext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 # The compiler can only warn and ignore the option if not recognized
5441 # So say no if there are warnings
5442 if test -s conftest.err; then
5443 lt_cv_compiler_o_lo=no
5445 lt_cv_compiler_o_lo=yes
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5454 ac_objext="$save_objext"
5455 CFLAGS="$save_CFLAGS"
5459 compiler_o_lo=$lt_cv_compiler_o_lo
5460 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5461 echo "${ECHO_T}$compiler_o_lo" >&6
5466 # Check to see if we can do hard links to lock some files if needed
5467 hard_links="nottested"
5468 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5469 # do not overwrite the value of need_locks provided by the user
5470 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5471 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5476 ln conftest.a conftest.b 2>&5 || hard_links=no
5477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5478 echo "$as_me:$LINENO: result: $hard_links" >&5
5479 echo "${ECHO_T}$hard_links" >&6
5480 if test "$hard_links" = no; then
5481 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5482 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5489 if test "$GCC" = yes; then
5490 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5491 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5492 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5493 echo "int some_variable = 0;" > conftest.$ac_ext
5494 save_CFLAGS="$CFLAGS"
5495 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5496 compiler_rtti_exceptions=no
5497 cat >conftest.$ac_ext <<_ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5507 int some_variable = 0;
5512 rm -f conftest.$ac_objext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5514 (eval $ac_compile) 2>conftest.er1
5516 grep -v '^ *+' conftest.er1 >conftest.err
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -z "$ac_c_werror_flag"
5522 || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try='test -s conftest.$ac_objext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 # The compiler can only warn and ignore the option if not recognized
5535 # So say no if there are warnings
5536 if test -s conftest.err; then
5537 compiler_rtti_exceptions=no
5539 compiler_rtti_exceptions=yes
5543 echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5548 CFLAGS="$save_CFLAGS"
5549 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5550 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5552 if test "$compiler_rtti_exceptions" = "yes"; then
5553 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5555 no_builtin_flag=' -fno-builtin'
5559 # See if the linker supports building shared libraries.
5560 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5561 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5563 allow_undefined_flag=
5565 need_lib_prefix=unknown
5566 need_version=unknown
5567 # when you set need_version to no, make sure it does not cause -set_version
5568 # flags to be left without arguments
5570 archive_expsym_cmds=
5571 old_archive_from_new_cmds=
5572 old_archive_from_expsyms_cmds=
5573 export_dynamic_flag_spec=
5574 whole_archive_flag_spec=
5575 thread_safe_flag_spec=
5576 hardcode_into_libs=no
5577 hardcode_libdir_flag_spec=
5578 hardcode_libdir_separator=
5581 hardcode_shlibpath_var=unsupported
5583 link_all_deplibs=unknown
5584 always_export_symbols=no
5585 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5586 # include_expsyms should be a list of space-separated symbols to be *always*
5587 # included in the symbol list
5589 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5590 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5591 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5592 # as well as any symbol that contains `d'.
5593 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5594 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5595 # platforms (ab)use it in PIC code, but their linkers get confused if
5596 # the symbol is explicitly referenced. Since portable code cannot
5597 # rely on this symbol name, it's probably fine to never include it in
5598 # preloaded symbol tables.
5599 extract_expsyms_cmds=
5602 cygwin* | mingw* | pw32*)
5603 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5604 # When not using gcc, we currently assume that we are using
5605 # Microsoft Visual C++.
5606 if test "$GCC" != yes; then
5616 if test "$with_gnu_ld" = yes; then
5617 # If archive_cmds runs LD, not CC, wlarc should be empty
5620 # See if GNU ld supports shared libraries.
5622 aix3* | aix4* | aix5*)
5623 # On AIX, the GNU linker is very broken
5624 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5628 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5629 *** to be unable to reliably create shared libraries on AIX.
5630 *** Therefore, libtool is disabling shared libraries support. If you
5631 *** really care for shared libraries, you may want to modify your PATH
5632 *** so that a non-GNU linker is found, and then restart.
5638 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)'
5639 hardcode_libdir_flag_spec='-L$libdir'
5640 hardcode_minus_L=yes
5642 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5643 # that the semantics of dynamic libraries on AmigaOS, at least up
5644 # to version 4, is to share data among multiple programs linked
5645 # with the same dynamic library. Since this doesn't match the
5646 # behavior of shared libraries on other platforms, we can use
5652 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5653 allow_undefined_flag=unsupported
5654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5655 # support --undefined. This deserves some investigation. FIXME
5656 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5662 cygwin* | mingw* | pw32*)
5663 # hardcode_libdir_flag_spec is actually meaningless, as there is
5664 # no search path for DLLs.
5665 hardcode_libdir_flag_spec='-L$libdir'
5666 allow_undefined_flag=unsupported
5667 always_export_symbols=yes
5669 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5670 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5671 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5672 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5673 else $CC -o impgen impgen.c ; fi)~
5674 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5676 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5678 # cygwin and mingw dlls have different entry points and sets of symbols
5680 # FIXME: what about values for MSVC?
5681 dll_entry=__cygwin_dll_entry@12
5682 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5686 dll_entry=_DllMainCRTStartup@12
5687 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5691 # mingw and cygwin differ, and it's simplest to just exclude the union
5692 # of the two symbol sets.
5693 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5695 # recent cygwin and mingw systems supply a stub DllMain which the user
5696 # can override, but on older systems we have to supply one (in ltdll.c)
5697 if test "x$lt_cv_need_dllmain" = "xyes"; then
5698 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5699 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~
5700 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5706 # Extract the symbol export list from an `--export-all' def file,
5707 # then regenerate the def file from the symbol export list, so that
5708 # the compiled dll only exports the symbol export list.
5709 # Be careful not to strip the DATA tag left be newer dlltools.
5710 export_symbols_cmds="$ltdll_cmds"'
5711 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5712 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5714 # If the export-symbols file already is a .def file (1st line
5715 # is EXPORTS), use it as is.
5716 # If DATA tags from a recent dlltool are present, honour them!
5717 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5718 cp $export_symbols $output_objdir/$soname-def;
5720 echo EXPORTS > $output_objdir/$soname-def;
5722 cat $export_symbols | while read symbol; do
5725 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5726 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5727 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5729 _lt_hint=`expr 1 + \$_lt_hint`;
5733 $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~
5734 $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~
5735 $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~
5736 $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~
5737 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5742 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5745 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5746 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5751 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5755 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5756 *** create shared libraries on Solaris systems. Therefore, libtool
5757 *** is disabling shared libraries support. We urge you to upgrade GNU
5758 *** binutils to release 2.9.1 or newer. Another option is to modify
5759 *** your PATH or compiler configuration so that the native linker is
5760 *** used, and then restart.
5763 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5772 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5775 hardcode_shlibpath_var=no
5779 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5781 supports_anon_versioning=no
5782 case `$LD -v 2>/dev/null` in
5783 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5784 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5785 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5786 *\ 2.11.*) ;; # other 2.11 versions
5787 *) supports_anon_versioning=yes ;;
5789 if test $supports_anon_versioning = yes; then
5790 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5791 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5792 $echo "local: *; };" >> $output_objdir/$libname.ver~
5793 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5795 $archive_expsym_cmds="$archive_cmds"
5803 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5805 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5812 if test "$ld_shlibs" = yes; then
5813 runpath_var=LD_RUN_PATH
5814 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5815 export_dynamic_flag_spec='${wl}--export-dynamic'
5817 cygwin* | mingw* | pw32*)
5818 # dlltool doesn't understand --whole-archive et. al.
5819 whole_archive_flag_spec=
5822 # ancient GNU ld didn't support --whole-archive et. al.
5823 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5824 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5826 whole_archive_flag_spec=
5832 # PORTME fill in a description of your system's linker (not GNU ld)
5835 allow_undefined_flag=unsupported
5836 always_export_symbols=yes
5837 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'
5838 # Note: this linker hardcodes the directories in LIBPATH if there
5839 # are no directories specified by -L.
5840 hardcode_minus_L=yes
5841 if test "$GCC" = yes && test -z "$link_static_flag"; then
5842 # Neither direct hardcoding nor static linking is supported with a
5844 hardcode_direct=unsupported
5849 if test "$host_cpu" = ia64; then
5850 # On IA64, the linker does run time linking by default, so we don't
5851 # have to do anything special.
5852 aix_use_runtimelinking=no
5853 exp_sym_flag='-Bexport'
5856 aix_use_runtimelinking=no
5858 # Test if we are trying to use run time linking or normal
5859 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5860 # need to do runtime linking.
5861 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5862 for ld_flag in $LDFLAGS; do
5865 aix_use_runtimelinking=yes
5872 exp_sym_flag='-bexport'
5873 no_entry_flag='-bnoentry'
5876 # When large executables or shared objects are built, AIX ld can
5877 # have problems creating the table of contents. If linking a library
5878 # or program results in "error TOC overflow" add -mminimal-toc to
5879 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5880 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5884 hardcode_libdir_separator=':'
5885 if test "$GCC" = yes; then
5886 case $host_os in aix4.[012]|aix4.[012].*)
5887 collect2name=`${CC} -print-prog-name=collect2`
5888 if test -f "$collect2name" && \
5889 strings "$collect2name" | grep resolve_lib_name >/dev/null
5891 # We have reworked collect2
5894 # We have old collect2
5895 hardcode_direct=unsupported
5896 # It fails to find uninstalled libraries when the uninstalled
5897 # path is not listed in the libpath. Setting hardcode_minus_L
5898 # to unsupported forces relinking
5899 hardcode_minus_L=yes
5900 hardcode_libdir_flag_spec='-L$libdir'
5901 hardcode_libdir_separator=
5905 shared_flag='-shared'
5908 if test "$host_cpu" = ia64; then
5909 shared_flag='${wl}-G'
5911 if test "$aix_use_runtimelinking" = yes; then
5912 shared_flag='${wl}-G'
5914 shared_flag='${wl}-bM:SRE'
5919 # It seems that -bexpall can do strange things, so it is better to
5920 # generate a list of symbols to export.
5921 always_export_symbols=yes
5922 if test "$aix_use_runtimelinking" = yes; then
5923 # Warning - without using the other runtime loading flags (-brtl),
5924 # -berok will link without error, but may produce a broken library.
5925 allow_undefined_flag='-berok'
5926 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5927 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"
5929 if test "$host_cpu" = ia64; then
5930 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5931 allow_undefined_flag="-z nodefs"
5932 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"
5934 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5935 # Warning - without using the other run time loading flags,
5936 # -berok will link without error, but may produce a broken library.
5937 allow_undefined_flag='${wl}-berok'
5938 # This is a bit strange, but is similar to how AIX traditionally builds
5939 # it's shared libraries.
5940 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'
5946 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)'
5947 hardcode_libdir_flag_spec='-L$libdir'
5948 hardcode_minus_L=yes
5949 # see comment about different semantics on the GNU ld section
5953 cygwin* | mingw* | pw32*)
5954 # When not using gcc, we currently assume that we are using
5955 # Microsoft Visual C++.
5956 # hardcode_libdir_flag_spec is actually meaningless, as there is
5957 # no search path for DLLs.
5958 hardcode_libdir_flag_spec=' '
5959 allow_undefined_flag=unsupported
5960 # Tell ltmain to make .lib files, not .a files.
5962 # FIXME: Setting linknames here is a bad hack.
5963 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5964 # The linker will automatically build a .lib file if we build a DLL.
5965 old_archive_from_new_cmds='true'
5966 # FIXME: Should let the user specify the lib program.
5967 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5968 fix_srcfile_path='`cygpath -w "$srcfile"`'
5971 darwin* | rhapsody*)
5973 rhapsody* | darwin1.[012])
5974 allow_undefined_flag='-undefined suppress'
5977 allow_undefined_flag='-flat_namespace -undefined suppress'
5980 # FIXME: Relying on posixy $() will cause problems for
5981 # cross-compilation, but unfortunately the echo tests do not
5982 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5983 # `"' quotes if we put them in here... so don't!
5984 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)'
5985 # We need to add '_' to the symbols in $export_symbols first
5986 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5988 hardcode_shlibpath_var=no
5989 whole_archive_flag_spec='-all_load $convenience'
5996 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5997 # support. Future versions do this automatically, but an explicit c++rt0.o
5998 # does not break anything, and helps significantly (at the cost of a little
6001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6002 hardcode_libdir_flag_spec='-R$libdir'
6004 hardcode_shlibpath_var=no
6007 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6011 hardcode_minus_L=yes
6012 hardcode_shlibpath_var=no
6015 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6017 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6018 hardcode_libdir_flag_spec='-R$libdir'
6020 hardcode_shlibpath_var=no
6023 hpux9* | hpux10* | hpux11*)
6025 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' ;;
6026 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6028 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6029 hardcode_libdir_separator=:
6031 hardcode_minus_L=yes # Not in the search PATH, but as the default
6032 # location of the library.
6033 export_dynamic_flag_spec='${wl}-E'
6036 irix5* | irix6* | nonstopux*)
6037 if test "$GCC" = yes; then
6038 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'
6039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6041 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'
6042 hardcode_libdir_flag_spec='-rpath $libdir'
6044 hardcode_libdir_separator=:
6045 link_all_deplibs=yes
6049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6052 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6054 hardcode_libdir_flag_spec='-R$libdir'
6056 hardcode_shlibpath_var=no
6060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6063 hardcode_libdir_separator=:
6064 hardcode_shlibpath_var=no
6069 hardcode_shlibpath_var=no
6070 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6071 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6072 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6073 export_dynamic_flag_spec='${wl}-E'
6076 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6077 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6078 hardcode_libdir_flag_spec='-R$libdir'
6081 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6082 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6089 hardcode_libdir_flag_spec='-L$libdir'
6090 hardcode_minus_L=yes
6091 allow_undefined_flag=unsupported
6092 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'
6093 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6097 if test "$GCC" = yes; then
6098 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6099 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'
6101 allow_undefined_flag=' -expect_unresolved \*'
6102 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'
6104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6105 hardcode_libdir_separator=:
6108 osf4* | osf5*) # as osf3* with the addition of -msym flag
6109 if test "$GCC" = yes; then
6110 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6111 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6112 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6114 allow_undefined_flag=' -expect_unresolved \*'
6115 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'
6116 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6117 $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'
6119 #Both c and cxx compiler support -rpath directly
6120 hardcode_libdir_flag_spec='-rpath $libdir'
6122 hardcode_libdir_separator=:
6126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6127 hardcode_shlibpath_var=no
6128 runpath_var=LD_RUN_PATH
6129 hardcode_runpath_var=yes
6130 export_dynamic_flag_spec='${wl}-Bexport'
6134 # gcc --version < 3.0 without binutils cannot create self contained
6135 # shared libraries reliably, requiring libgcc.a to resolve some of
6136 # the object symbols generated in some cases. Libraries that use
6137 # assert need libgcc.a to resolve __eprintf, for example. Linking
6138 # a copy of libgcc.a into every shared library to guarantee resolving
6139 # such symbols causes other problems: According to Tim Van Holder
6140 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6141 # (to the application) exception stack for one thing.
6142 no_undefined_flag=' -z defs'
6143 if test "$GCC" = yes; then
6144 case `$CC --version 2>/dev/null` in
6148 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6149 *** create self contained shared libraries on Solaris systems, without
6150 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6151 *** -no-undefined support, which will at least allow you to build shared
6152 *** libraries. However, you may find that when you link such libraries
6153 *** into an application without using GCC, you have to manually add
6154 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6155 *** upgrade to a newer version of GCC. Another option is to rebuild your
6156 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6163 # $CC -shared without GNU ld will not create a library from C++
6164 # object files and a static libstdc++, better avoid it by now
6165 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6166 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6167 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6168 hardcode_libdir_flag_spec='-R$libdir'
6169 hardcode_shlibpath_var=no
6171 solaris2.[0-5] | solaris2.[0-5].*) ;;
6172 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6173 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6175 link_all_deplibs=yes
6179 if test "x$host_vendor" = xsequent; then
6180 # Use $CC to link under sequent, because it throws in some extra .o
6181 # files that make .init and .fini sections work.
6182 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6184 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6186 hardcode_libdir_flag_spec='-L$libdir'
6188 hardcode_minus_L=yes
6189 hardcode_shlibpath_var=no
6193 case $host_vendor in
6195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6196 hardcode_direct=yes # is this really true???
6199 ## LD is ld it makes a PLAMLIB
6200 ## CC just makes a GrossModule.
6201 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6202 reload_cmds='$CC -r -o $output$reload_objs'
6206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6207 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6210 runpath_var='LD_RUN_PATH'
6211 hardcode_shlibpath_var=no
6215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6216 hardcode_shlibpath_var=no
6217 export_dynamic_flag_spec='-Bexport'
6221 no_undefined_flag=' -z text'
6222 # $CC -shared without GNU ld will not create a library from C++
6223 # object files and a static libstdc++, better avoid it by now
6224 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6225 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6226 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6227 hardcode_libdir_flag_spec=
6228 hardcode_shlibpath_var=no
6229 runpath_var='LD_RUN_PATH'
6233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6234 hardcode_libdir_flag_spec='-L$libdir'
6235 hardcode_shlibpath_var=no
6239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6240 hardcode_libdir_flag_spec='-L$libdir'
6241 hardcode_shlibpath_var=no
6245 if test -d /usr/nec; then
6246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6247 hardcode_shlibpath_var=no
6248 runpath_var=LD_RUN_PATH
6249 hardcode_runpath_var=yes
6255 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6258 hardcode_shlibpath_var=no
6259 hardcode_runpath_var=yes
6260 runpath_var=LD_RUN_PATH
6263 sysv5uw7* | unixware7*)
6264 no_undefined_flag='${wl}-z ${wl}text'
6265 if test "$GCC" = yes; then
6266 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6268 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6270 runpath_var='LD_RUN_PATH'
6271 hardcode_shlibpath_var=no
6279 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6280 echo "${ECHO_T}$ld_shlibs" >&6
6281 test "$ld_shlibs" = no && can_build_shared=no
6283 # Check hardcoding attributes.
6284 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6285 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6287 if test -n "$hardcode_libdir_flag_spec" || \
6288 test -n "$runpath_var"; then
6290 # We can hardcode non-existant directories.
6291 if test "$hardcode_direct" != no &&
6292 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6293 # have to relink, otherwise we might link with an installed library
6294 # when we should be linking with a yet-to-be-installed one
6295 ## test "$hardcode_shlibpath_var" != no &&
6296 test "$hardcode_minus_L" != no; then
6297 # Linking always hardcodes the temporary library directory.
6298 hardcode_action=relink
6300 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6301 hardcode_action=immediate
6304 # We cannot hardcode anything, or else we can only hardcode existing
6306 hardcode_action=unsupported
6308 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6309 echo "${ECHO_T}$hardcode_action" >&6
6313 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6314 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6315 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6316 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6317 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6318 echo "$as_me:$LINENO: result: yes" >&5
6319 echo "${ECHO_T}yes" >&6
6321 echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6
6325 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6326 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6328 # PORTME Fill in your ld.so characteristics
6329 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6330 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6332 libname_spec='lib$name'
6339 shlibpath_overrides_runpath=unknown
6341 dynamic_linker="$host_os ld.so"
6342 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6343 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6348 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6349 shlibpath_var=LIBPATH
6351 # AIX has no versioning support, so we append a major version to the name.
6352 soname_spec='${libname}${release}.so$major'
6359 hardcode_into_libs=yes
6360 if test "$host_cpu" = ia64; then
6361 # AIX 5 supports IA64
6362 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6363 shlibpath_var=LD_LIBRARY_PATH
6365 # With GCC up to 2.95.x, collect2 would create an import file
6366 # for dependence libraries. The import file would start with
6367 # the line `#! .'. This would cause the generated library to
6368 # depend on `.', always an invalid library. This was fixed in
6369 # development snapshots of GCC prior to 3.0.
6371 aix4 | aix4.[01] | aix4.[01].*)
6372 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6374 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6381 # AIX (on Power*) has no versioning support, so currently we can
6382 # not hardcode correct soname into executable. Probably we can
6383 # add versioning support to collect2, so additional links can
6384 # be useful in future.
6385 if test "$aix_use_runtimelinking" = yes; then
6386 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6387 # instead of lib<name>.a to let people know that these are not
6388 # typical AIX shared libraries.
6389 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6391 # We preserve .a as extension for shared libraries through AIX4.2
6392 # and later when we are not doing run time linking.
6393 library_names_spec='${libname}${release}.a $libname.a'
6394 soname_spec='${libname}${release}.so$major'
6396 shlibpath_var=LIBPATH
6398 hardcode_into_libs=yes
6402 library_names_spec='$libname.ixlibrary $libname.a'
6403 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6404 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'
6408 library_names_spec='${libname}.so'
6409 dynamic_linker="$host_os ld.so"
6410 shlibpath_var=LIBRARY_PATH
6416 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6417 soname_spec='${libname}${release}.so$major'
6418 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6419 shlibpath_var=LD_LIBRARY_PATH
6420 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6421 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6422 export_dynamic_flag_spec=-rdynamic
6423 # the default ld.so.conf also contains /usr/contrib/lib and
6424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6425 # libtool to hard-code these into programs
6428 cygwin* | mingw* | pw32*)
6429 version_type=windows
6432 case $GCC,$host_os in
6434 library_names_spec='$libname.dll.a'
6435 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6436 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6437 dldir=$destdir/`dirname \$dlpath`~
6438 test -d \$dldir || mkdir -p \$dldir~
6439 $install_prog .libs/$dlname \$dldir/$dlname'
6440 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6441 dlpath=$dir/\$dldll~
6445 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6446 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6452 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6455 dynamic_linker='Win32 ld.exe'
6456 # FIXME: first we should search . and the directory the executable is in
6460 darwin* | rhapsody*)
6461 dynamic_linker="$host_os dyld"
6465 # FIXME: Relying on posixy $() will cause problems for
6466 # cross-compilation, but unfortunately the echo tests do not
6467 # yet detect zsh echo's removal of \ escapes.
6468 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)'
6469 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6470 shlibpath_overrides_runpath=yes
6471 shlibpath_var=DYLD_LIBRARY_PATH
6479 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6480 version_type=freebsd-$objformat
6481 case $version_type in
6483 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6488 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6492 shlibpath_var=LD_LIBRARY_PATH
6495 shlibpath_overrides_runpath=yes
6498 shlibpath_overrides_runpath=no
6499 hardcode_into_libs=yes
6508 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6509 soname_spec='${libname}${release}.so$major'
6510 shlibpath_var=LD_LIBRARY_PATH
6511 hardcode_into_libs=yes
6514 hpux9* | hpux10* | hpux11*)
6515 # Give a soname corresponding to the major version so that dld.sl refuses to
6516 # link against other versions.
6517 dynamic_linker="$host_os dld.sl"
6521 shlibpath_var=SHLIB_PATH
6522 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6523 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6524 soname_spec='${libname}${release}.sl$major'
6525 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6526 postinstall_cmds='chmod 555 $lib'
6529 irix5* | irix6* | nonstopux*)
6531 nonstopux*) version_type=nonstopux ;;
6532 *) version_type=irix ;;
6536 soname_spec='${libname}${release}.so$major'
6537 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6539 irix5* | nonstopux*)
6543 case $LD in # libtool.m4 will add one of these switches to LD
6544 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6545 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6546 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6547 *) libsuff= shlibsuff= libmagic=never-match;;
6551 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6552 shlibpath_overrides_runpath=no
6553 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6554 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6557 # No shared lib support for Linux oldld, aout, or coff.
6558 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6562 # This must be Linux ELF.
6567 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6568 soname_spec='${libname}${release}.so$major'
6569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6570 shlibpath_var=LD_LIBRARY_PATH
6571 shlibpath_overrides_runpath=no
6572 # This implies no fast_install, which is unacceptable.
6573 # Some rework will be needed to allow for fast_install
6574 # before this can be enabled.
6575 hardcode_into_libs=yes
6577 case $host_cpu:$lt_cv_cc_64bit_output in
6578 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6579 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6580 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6584 # We used to test for /lib/ld.so.1 and disable shared libraries on
6585 # powerpc, because MkLinux only supported shared libraries with the
6586 # GNU dynamic linker. Since this was broken with cross compilers,
6587 # most powerpc-linux boxes support dynamic linking these days and
6588 # people can always --disable-shared, the test was removed, and we
6589 # assume the GNU/Linux dynamic linker is in use.
6590 dynamic_linker='GNU/Linux ld.so'
6592 # Find out which ABI we are using (multilib Linux x86_64 hack).
6596 echo '#line 6596 "configure"' > conftest.$ac_ext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598 (eval $ac_compile) 2>&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; then
6602 case `/usr/bin/file conftest.$ac_objext` in
6613 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6614 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6622 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6624 dynamic_linker='NetBSD (a.out) ld.so'
6626 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6627 soname_spec='${libname}${release}.so$major'
6628 dynamic_linker='NetBSD ld.elf_so'
6630 shlibpath_var=LD_LIBRARY_PATH
6631 shlibpath_overrides_runpath=yes
6632 hardcode_into_libs=yes
6637 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6638 shlibpath_var=LD_LIBRARY_PATH
6639 shlibpath_overrides_runpath=yes
6646 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6648 openbsd2.[89] | openbsd2.[89].*)
6649 shlibpath_overrides_runpath=no
6652 shlibpath_overrides_runpath=yes
6656 shlibpath_overrides_runpath=yes
6658 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6660 shlibpath_var=LD_LIBRARY_PATH
6664 libname_spec='$name'
6666 library_names_spec='$libname.dll $libname.a'
6667 dynamic_linker='OS/2 ld.exe'
6668 shlibpath_var=LIBPATH
6671 osf3* | osf4* | osf5*)
6674 soname_spec='${libname}${release}.so$major'
6675 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6676 shlibpath_var=LD_LIBRARY_PATH
6677 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6678 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6679 hardcode_into_libs=yes
6684 soname_spec='${libname}${release}.so$major'
6685 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6686 shlibpath_var=LD_LIBRARY_PATH
6693 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6694 soname_spec='${libname}${release}.so$major'
6695 shlibpath_var=LD_LIBRARY_PATH
6696 shlibpath_overrides_runpath=yes
6697 hardcode_into_libs=yes
6698 # ldd complains unless libraries are executable
6699 postinstall_cmds='chmod +x $lib'
6704 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6705 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6706 shlibpath_var=LD_LIBRARY_PATH
6707 shlibpath_overrides_runpath=yes
6708 if test "$with_gnu_ld" = yes; then
6714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6716 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6717 soname_spec='${libname}${release}.so$major'
6718 shlibpath_var=LD_LIBRARY_PATH
6719 case $host_vendor in
6721 shlibpath_overrides_runpath=no
6723 export_dynamic_flag_spec='${wl}-Blargedynsym'
6724 runpath_var=LD_RUN_PATH
6732 shlibpath_overrides_runpath=no
6733 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6740 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6741 soname_spec='${libname}${release}.so$major'
6742 shlibpath_var=LD_LIBRARY_PATH
6749 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6750 soname_spec='${libname}${release}.so$major'
6751 shlibpath_var=LD_LIBRARY_PATH
6755 if test -d /usr/nec ;then
6757 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6758 soname_spec='$libname.so.$major'
6759 shlibpath_var=LD_LIBRARY_PATH
6767 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6768 echo "${ECHO_T}$dynamic_linker" >&6
6769 test "$dynamic_linker" = no && can_build_shared=no
6771 # Report the final consequences.
6772 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6773 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6774 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6775 echo "${ECHO_T}$can_build_shared" >&6
6777 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6778 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6779 test "$can_build_shared" = "no" && enable_shared=no
6781 # On AIX, shared libraries and static libraries use the same namespace, and
6782 # are all built from PIC.
6785 test "$enable_shared" = yes && enable_static=no
6786 if test -n "$RANLIB"; then
6787 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6788 postinstall_cmds='$RANLIB $lib'
6793 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6794 test "$enable_shared" = yes && enable_static=no
6798 echo "$as_me:$LINENO: result: $enable_shared" >&5
6799 echo "${ECHO_T}$enable_shared" >&6
6801 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6802 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6803 # Make sure either enable_shared or enable_static is yes.
6804 test "$enable_shared" = yes || enable_static=yes
6805 echo "$as_me:$LINENO: result: $enable_static" >&5
6806 echo "${ECHO_T}$enable_static" >&6
6808 if test "$hardcode_action" = relink; then
6809 # Fast installation is not supported
6810 enable_fast_install=no
6811 elif test "$shlibpath_overrides_runpath" = yes ||
6812 test "$enable_shared" = no; then
6813 # Fast installation is not necessary
6814 enable_fast_install=needless
6817 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6818 if test "$GCC" = yes; then
6819 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6822 if test "x$enable_dlopen" != xyes; then
6823 enable_dlopen=unknown
6824 enable_dlopen_self=unknown
6825 enable_dlopen_self_static=unknown
6832 lt_cv_dlopen="load_add_on"
6834 lt_cv_dlopen_self=yes
6837 cygwin* | mingw* | pw32*)
6838 lt_cv_dlopen="LoadLibrary"
6843 echo "$as_me:$LINENO: checking for shl_load" >&5
6844 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6845 if test "${ac_cv_func_shl_load+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 cat >conftest.$ac_ext <<_ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6856 #define shl_load innocuous_shl_load
6858 /* System header to define __stub macros and hopefully few prototypes,
6859 which can conflict with char shl_load (); below.
6860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6861 <limits.h> exists even on freestanding compilers. */
6864 # include <limits.h>
6866 # include <assert.h>
6871 /* Override any gcc2 internal prototype to avoid an error. */
6876 /* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */
6879 /* The GNU C library defines this for functions which it implements
6880 to always fail with ENOSYS. Some functions are actually named
6881 something starting with __ and the normal name is an alias. */
6882 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6885 char (*f) () = shl_load;
6894 return f != shl_load;
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901 (eval $ac_link) 2>conftest.er1
6903 grep -v '^ *+' conftest.er1 >conftest.err
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try='test -s conftest$ac_exeext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 ac_cv_func_shl_load=yes
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6926 ac_cv_func_shl_load=no
6928 rm -f conftest.err conftest.$ac_objext \
6929 conftest$ac_exeext conftest.$ac_ext
6931 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6932 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6933 if test $ac_cv_func_shl_load = yes; then
6934 lt_cv_dlopen="shl_load"
6936 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6937 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6938 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 ac_check_lib_save_LIBS=$LIBS
6943 cat >conftest.$ac_ext <<_ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6950 /* Override any gcc2 internal prototype to avoid an error. */
6954 /* We use char because int might match the return type of a gcc2
6955 builtin and then its argument prototype would still apply. */
6965 rm -f conftest.$ac_objext conftest$ac_exeext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6967 (eval $ac_link) 2>conftest.er1
6969 grep -v '^ *+' conftest.er1 >conftest.err
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -z "$ac_c_werror_flag"
6975 || test ! -s conftest.err'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; } &&
6981 { ac_try='test -s conftest$ac_exeext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 ac_cv_lib_dld_shl_load=yes
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6992 ac_cv_lib_dld_shl_load=no
6994 rm -f conftest.err conftest.$ac_objext \
6995 conftest$ac_exeext conftest.$ac_ext
6996 LIBS=$ac_check_lib_save_LIBS
6998 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6999 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7000 if test $ac_cv_lib_dld_shl_load = yes; then
7001 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7003 echo "$as_me:$LINENO: checking for dlopen" >&5
7004 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7005 if test "${ac_cv_func_dlopen+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 cat >conftest.$ac_ext <<_ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7014 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7016 #define dlopen innocuous_dlopen
7018 /* System header to define __stub macros and hopefully few prototypes,
7019 which can conflict with char dlopen (); below.
7020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7021 <limits.h> exists even on freestanding compilers. */
7024 # include <limits.h>
7026 # include <assert.h>
7031 /* Override any gcc2 internal prototype to avoid an error. */
7036 /* We use char because int might match the return type of a gcc2
7037 builtin and then its argument prototype would still apply. */
7039 /* The GNU C library defines this for functions which it implements
7040 to always fail with ENOSYS. Some functions are actually named
7041 something starting with __ and the normal name is an alias. */
7042 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7045 char (*f) () = dlopen;
7059 rm -f conftest.$ac_objext conftest$ac_exeext
7060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7061 (eval $ac_link) 2>conftest.er1
7063 grep -v '^ *+' conftest.er1 >conftest.err
7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
7068 { ac_try='test -z "$ac_c_werror_flag"
7069 || test ! -s conftest.err'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; } &&
7075 { ac_try='test -s conftest$ac_exeext'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; }; then
7081 ac_cv_func_dlopen=yes
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 ac_cv_func_dlopen=no
7088 rm -f conftest.err conftest.$ac_objext \
7089 conftest$ac_exeext conftest.$ac_ext
7091 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7092 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7093 if test $ac_cv_func_dlopen = yes; then
7094 lt_cv_dlopen="dlopen"
7096 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7097 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7098 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 ac_check_lib_save_LIBS=$LIBS
7103 cat >conftest.$ac_ext <<_ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7110 /* Override any gcc2 internal prototype to avoid an error. */
7114 /* We use char because int might match the return type of a gcc2
7115 builtin and then its argument prototype would still apply. */
7125 rm -f conftest.$ac_objext conftest$ac_exeext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7127 (eval $ac_link) 2>conftest.er1
7129 grep -v '^ *+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -z "$ac_c_werror_flag"
7135 || test ! -s conftest.err'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; } &&
7141 { ac_try='test -s conftest$ac_exeext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
7147 ac_cv_lib_dl_dlopen=yes
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7152 ac_cv_lib_dl_dlopen=no
7154 rm -f conftest.err conftest.$ac_objext \
7155 conftest$ac_exeext conftest.$ac_ext
7156 LIBS=$ac_check_lib_save_LIBS
7158 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7159 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7160 if test $ac_cv_lib_dl_dlopen = yes; then
7161 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7163 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7164 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7165 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 ac_check_lib_save_LIBS=$LIBS
7170 cat >conftest.$ac_ext <<_ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7177 /* Override any gcc2 internal prototype to avoid an error. */
7181 /* We use char because int might match the return type of a gcc2
7182 builtin and then its argument prototype would still apply. */
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7194 (eval $ac_link) 2>conftest.er1
7196 grep -v '^ *+' conftest.er1 >conftest.err
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } &&
7201 { ac_try='test -z "$ac_c_werror_flag"
7202 || test ! -s conftest.err'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; } &&
7208 { ac_try='test -s conftest$ac_exeext'
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; }; then
7214 ac_cv_lib_svld_dlopen=yes
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7219 ac_cv_lib_svld_dlopen=no
7221 rm -f conftest.err conftest.$ac_objext \
7222 conftest$ac_exeext conftest.$ac_ext
7223 LIBS=$ac_check_lib_save_LIBS
7225 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7226 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7227 if test $ac_cv_lib_svld_dlopen = yes; then
7228 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7230 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7231 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7232 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 ac_check_lib_save_LIBS=$LIBS
7237 cat >conftest.$ac_ext <<_ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7244 /* Override any gcc2 internal prototype to avoid an error. */
7248 /* We use char because int might match the return type of a gcc2
7249 builtin and then its argument prototype would still apply. */
7259 rm -f conftest.$ac_objext conftest$ac_exeext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261 (eval $ac_link) 2>conftest.er1
7263 grep -v '^ *+' conftest.er1 >conftest.err
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try='test -z "$ac_c_werror_flag"
7269 || test ! -s conftest.err'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; } &&
7275 { ac_try='test -s conftest$ac_exeext'
7276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); }; }; then
7281 ac_cv_lib_dld_dld_link=yes
7283 echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.$ac_ext >&5
7286 ac_cv_lib_dld_dld_link=no
7288 rm -f conftest.err conftest.$ac_objext \
7289 conftest$ac_exeext conftest.$ac_ext
7290 LIBS=$ac_check_lib_save_LIBS
7292 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7293 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7294 if test $ac_cv_lib_dld_dld_link = yes; then
7295 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7316 if test "x$lt_cv_dlopen" != xno; then
7322 case $lt_cv_dlopen in
7324 save_CPPFLAGS="$CPPFLAGS"
7325 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7327 save_LDFLAGS="$LDFLAGS"
7328 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7331 LIBS="$lt_cv_dlopen_libs $LIBS"
7333 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7334 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7335 if test "${lt_cv_dlopen_self+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 if test "$cross_compiling" = yes; then :
7339 lt_cv_dlopen_self=cross
7341 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7342 lt_status=$lt_dlunknown
7343 cat > conftest.$ac_ext <<EOF
7344 #line 7344 "configure"
7345 #include "confdefs.h"
7354 # define LT_DLGLOBAL RTLD_GLOBAL
7357 # define LT_DLGLOBAL DL_GLOBAL
7359 # define LT_DLGLOBAL 0
7363 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7364 find out it does not work in some platform. */
7365 #ifndef LT_DLLAZY_OR_NOW
7367 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7370 # define LT_DLLAZY_OR_NOW DL_LAZY
7373 # define LT_DLLAZY_OR_NOW RTLD_NOW
7376 # define LT_DLLAZY_OR_NOW DL_NOW
7378 # define LT_DLLAZY_OR_NOW 0
7386 extern "C" void exit (int);
7389 void fnord() { int i=42;}
7392 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7393 int status = $lt_dlunknown;
7397 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7398 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7399 /* dlclose (self); */
7405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406 (eval $ac_link) 2>&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7410 (./conftest; exit; ) 2>/dev/null
7413 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7414 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7415 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7418 # compilation failed
7419 lt_cv_dlopen_self=no
7426 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7427 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7429 if test "x$lt_cv_dlopen_self" = xyes; then
7430 LDFLAGS="$LDFLAGS $link_static_flag"
7431 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7432 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7433 if test "${lt_cv_dlopen_self_static+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 if test "$cross_compiling" = yes; then :
7437 lt_cv_dlopen_self_static=cross
7439 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7440 lt_status=$lt_dlunknown
7441 cat > conftest.$ac_ext <<EOF
7442 #line 7442 "configure"
7443 #include "confdefs.h"
7452 # define LT_DLGLOBAL RTLD_GLOBAL
7455 # define LT_DLGLOBAL DL_GLOBAL
7457 # define LT_DLGLOBAL 0
7461 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7462 find out it does not work in some platform. */
7463 #ifndef LT_DLLAZY_OR_NOW
7465 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7468 # define LT_DLLAZY_OR_NOW DL_LAZY
7471 # define LT_DLLAZY_OR_NOW RTLD_NOW
7474 # define LT_DLLAZY_OR_NOW DL_NOW
7476 # define LT_DLLAZY_OR_NOW 0
7484 extern "C" void exit (int);
7487 void fnord() { int i=42;}
7490 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7491 int status = $lt_dlunknown;
7495 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7496 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7497 /* dlclose (self); */
7503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7504 (eval $ac_link) 2>&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7508 (./conftest; exit; ) 2>/dev/null
7511 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7512 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7513 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7516 # compilation failed
7517 lt_cv_dlopen_self_static=no
7524 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7525 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7528 CPPFLAGS="$save_CPPFLAGS"
7529 LDFLAGS="$save_LDFLAGS"
7534 case $lt_cv_dlopen_self in
7535 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7536 *) enable_dlopen_self=unknown ;;
7539 case $lt_cv_dlopen_self_static in
7540 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7541 *) enable_dlopen_self_static=unknown ;;
7546 if test "$enable_shared" = yes && test "$GCC" = yes; then
7547 case $archive_cmds in
7549 # FIXME: we may have to deal with multi-command sequences.
7552 # Test whether the compiler implicitly links with -lc since on some
7553 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7554 # to ld, don't add -lc before -lgcc.
7555 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7556 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7557 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 echo 'static int dummy;' > conftest.$ac_ext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7564 (eval $ac_compile) 2>&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; then
7570 libobjs=conftest.$ac_objext
7572 wl=$lt_cv_prog_cc_wl
7578 save_allow_undefined_flag=$allow_undefined_flag
7579 allow_undefined_flag=
7580 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7581 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }
7586 lt_cv_archive_cmds_need_lc=no
7588 lt_cv_archive_cmds_need_lc=yes
7590 allow_undefined_flag=$save_allow_undefined_flag
7592 cat conftest.err 1>&5
7596 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7597 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7601 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7603 # The second clause should only fire when bootstrapping the
7604 # libtool distribution, otherwise you forgot to ship ltmain.sh
7605 # with your package, and you will get complaints that there are
7606 # no rules to generate ltmain.sh.
7607 if test -f "$ltmain"; then
7610 # If there is no Makefile yet, we rely on a make rule to execute
7611 # `config.status --recheck' to rerun these tests and create the
7612 # libtool script then.
7613 test -f Makefile && make "$ltmain"
7616 if test -f "$ltmain"; then
7617 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7620 echo creating $ofile
7622 # Now quote all the things that may contain metacharacters while being
7623 # careful not to overquote the AC_SUBSTed values. We take copies of the
7624 # variables and quote the copies for generation of the libtool script.
7625 for var in echo old_CC old_CFLAGS SED \
7626 AR AR_FLAGS CC LD LN_S NM SHELL \
7627 reload_flag reload_cmds wl \
7628 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7629 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7630 library_names_spec soname_spec \
7631 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7632 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7633 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7634 old_striplib striplib file_magic_cmd export_symbols_cmds \
7635 deplibs_check_method allow_undefined_flag no_undefined_flag \
7636 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7637 global_symbol_to_c_name_address \
7638 hardcode_libdir_flag_spec hardcode_libdir_separator \
7639 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7640 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7643 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7644 old_postinstall_cmds | old_postuninstall_cmds | \
7645 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7646 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7647 postinstall_cmds | postuninstall_cmds | \
7648 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7649 # Double-quote double-evaled strings.
7650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7658 cat <<__EOF__ > "${ofile}T"
7661 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7662 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7663 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7665 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7666 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7668 # This program is free software; you can redistribute it and/or modify
7669 # it under the terms of the GNU General Public License as published by
7670 # the Free Software Foundation; either version 2 of the License, or
7671 # (at your option) any later version.
7673 # This program is distributed in the hope that it will be useful, but
7674 # WITHOUT ANY WARRANTY; without even the implied warranty of
7675 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7676 # General Public License for more details.
7678 # You should have received a copy of the GNU General Public License
7679 # along with this program; if not, write to the Free Software
7680 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7682 # As a special exception to the GNU General Public License, if you
7683 # distribute this file as part of a program that contains a
7684 # configuration script generated by Autoconf, you may include it under
7685 # the same distribution terms that you use for the rest of that program.
7687 # A sed that does not truncate output.
7690 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7691 Xsed="${SED} -e s/^X//"
7693 # The HP-UX ksh and POSIX shell print the target directory to stdout
7695 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7697 # ### BEGIN LIBTOOL CONFIG
7699 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7701 # Shell to use when invoking shell scripts.
7704 # Whether or not to build shared libraries.
7705 build_libtool_libs=$enable_shared
7707 # Whether or not to build static libraries.
7708 build_old_libs=$enable_static
7710 # Whether or not to add -lc for building shared libraries.
7711 build_libtool_need_lc=$need_lc
7713 # Whether or not to optimize for fast installation.
7714 fast_install=$enable_fast_install
7717 host_alias=$host_alias
7720 # An echo program that does not interpret backslashes.
7725 AR_FLAGS=$lt_AR_FLAGS
7727 # The default C compiler.
7730 # Is the compiler the GNU C compiler?
7733 # The linker used to build libraries.
7736 # Whether we need hard or soft links.
7739 # A BSD-compatible nm program.
7742 # A symbol stripping program
7745 # Used to examine libraries when file_magic_cmd begins "file"
7746 MAGIC_CMD=$MAGIC_CMD
7748 # Used on cygwin: DLL creation program.
7751 # Used on cygwin: object dumper.
7754 # Used on cygwin: assembler.
7757 # The name of the directory that contains temporary libtool files.
7760 # How to create reloadable object files.
7761 reload_flag=$lt_reload_flag
7762 reload_cmds=$lt_reload_cmds
7764 # How to pass a linker flag through the compiler.
7767 # Object file suffix (normally "o").
7770 # Old archive suffix (normally "a").
7773 # Executable file suffix (normally "").
7776 # Additional compiler flags for building library objects.
7777 pic_flag=$lt_pic_flag
7780 # Does compiler simultaneously support -c and -o options?
7781 compiler_c_o=$lt_compiler_c_o
7783 # Can we write directly to a .lo ?
7784 compiler_o_lo=$lt_compiler_o_lo
7786 # Must we lock files when doing compilation ?
7787 need_locks=$lt_need_locks
7789 # Do we need the lib prefix for modules?
7790 need_lib_prefix=$need_lib_prefix
7792 # Do we need a version for libraries?
7793 need_version=$need_version
7795 # Whether dlopen is supported.
7796 dlopen_support=$enable_dlopen
7798 # Whether dlopen of programs is supported.
7799 dlopen_self=$enable_dlopen_self
7801 # Whether dlopen of statically linked programs is supported.
7802 dlopen_self_static=$enable_dlopen_self_static
7804 # Compiler flag to prevent dynamic linking.
7805 link_static_flag=$lt_link_static_flag
7807 # Compiler flag to turn off builtin functions.
7808 no_builtin_flag=$lt_no_builtin_flag
7810 # Compiler flag to allow reflexive dlopens.
7811 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7813 # Compiler flag to generate shared objects directly from archives.
7814 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7816 # Compiler flag to generate thread-safe objects.
7817 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7819 # Library versioning type.
7820 version_type=$version_type
7822 # Format of library name prefix.
7823 libname_spec=$lt_libname_spec
7825 # List of archive names. First name is the real one, the rest are links.
7826 # The last name is the one that the linker finds with -lNAME.
7827 library_names_spec=$lt_library_names_spec
7829 # The coded name of the library, if different from the real name.
7830 soname_spec=$lt_soname_spec
7832 # Commands used to build and install an old-style archive.
7834 old_archive_cmds=$lt_old_archive_cmds
7835 old_postinstall_cmds=$lt_old_postinstall_cmds
7836 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7838 # Create an old-style archive from a shared archive.
7839 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7841 # Create a temporary old-style archive to link instead of a shared archive.
7842 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7844 # Commands used to build and install a shared archive.
7845 archive_cmds=$lt_archive_cmds
7846 archive_expsym_cmds=$lt_archive_expsym_cmds
7847 postinstall_cmds=$lt_postinstall_cmds
7848 postuninstall_cmds=$lt_postuninstall_cmds
7850 # Commands to strip libraries.
7851 old_striplib=$lt_old_striplib
7852 striplib=$lt_striplib
7854 # Method to check whether dependent libraries are shared objects.
7855 deplibs_check_method=$lt_deplibs_check_method
7857 # Command to use when deplibs_check_method == file_magic.
7858 file_magic_cmd=$lt_file_magic_cmd
7860 # Flag that allows shared libraries with undefined symbols to be built.
7861 allow_undefined_flag=$lt_allow_undefined_flag
7863 # Flag that forces no undefined symbols.
7864 no_undefined_flag=$lt_no_undefined_flag
7866 # Commands used to finish a libtool library installation in a directory.
7867 finish_cmds=$lt_finish_cmds
7869 # Same as above, but a single script fragment to be evaled but not shown.
7870 finish_eval=$lt_finish_eval
7872 # Take the output of nm and produce a listing of raw symbols and C names.
7873 global_symbol_pipe=$lt_global_symbol_pipe
7875 # Transform the output of nm in a proper C declaration
7876 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7878 # Transform the output of nm in a C name address pair
7879 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7881 # This is the shared library runtime path variable.
7882 runpath_var=$runpath_var
7884 # This is the shared library path variable.
7885 shlibpath_var=$shlibpath_var
7887 # Is shlibpath searched before the hard-coded library search path?
7888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7890 # How to hardcode a shared library path into an executable.
7891 hardcode_action=$hardcode_action
7893 # Whether we should hardcode library paths into libraries.
7894 hardcode_into_libs=$hardcode_into_libs
7896 # Flag to hardcode \$libdir into a binary during linking.
7897 # This must work even if \$libdir does not exist.
7898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7900 # Whether we need a single -rpath flag with a separated argument.
7901 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7903 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7905 hardcode_direct=$hardcode_direct
7907 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7909 hardcode_minus_L=$hardcode_minus_L
7911 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7912 # the resulting binary.
7913 hardcode_shlibpath_var=$hardcode_shlibpath_var
7915 # Variables whose values should be saved in libtool wrapper scripts and
7916 # restored at relink time.
7917 variables_saved_for_relink="$variables_saved_for_relink"
7919 # Whether libtool must link a program against all its dependency libraries.
7920 link_all_deplibs=$link_all_deplibs
7922 # Compile-time system search path for libraries
7923 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7925 # Run-time system search path for libraries
7926 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7928 # Fix the shell variable \$srcfile for the compiler.
7929 fix_srcfile_path="$fix_srcfile_path"
7931 # Set to yes if exported symbols are required.
7932 always_export_symbols=$always_export_symbols
7934 # The commands to list exported symbols.
7935 export_symbols_cmds=$lt_export_symbols_cmds
7937 # The commands to extract the exported symbol list from a shared archive.
7938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7940 # Symbols that should not be listed in the preloaded symbols.
7941 exclude_expsyms=$lt_exclude_expsyms
7943 # Symbols that must always be exported.
7944 include_expsyms=$lt_include_expsyms
7946 # ### END LIBTOOL CONFIG
7952 cat <<\EOF >> "${ofile}T"
7954 # AIX sometimes has problems with the GCC collect2 program. For some
7955 # reason, if we set the COLLECT_NAMES environment variable, the problems
7956 # vanish in a puff of smoke.
7957 if test "X${COLLECT_NAMES+set}" != Xset; then
7959 export COLLECT_NAMES
7966 cygwin* | mingw* | pw32* | os2*)
7967 cat <<'EOF' >> "${ofile}T"
7968 # This is a source program that is used to create dlls on Windows
7969 # Don't remove nor modify the starting and closing comments
7970 # /* ltdll.c starts here */
7971 # #define WIN32_LEAN_AND_MEAN
7972 # #include <windows.h>
7973 # #undef WIN32_LEAN_AND_MEAN
7974 # #include <stdio.h>
7976 # #ifndef __CYGWIN__
7977 # # ifdef __CYGWIN32__
7978 # # define __CYGWIN__ __CYGWIN32__
7982 # #ifdef __cplusplus
7985 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7986 # #ifdef __cplusplus
7991 # #include <cygwin/cygwin_dll.h>
7992 # DECLARE_CYGWIN_DLL( DllMain );
7994 # HINSTANCE __hDllInstance_base;
7997 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7999 # __hDllInstance_base = hInst;
8002 # /* ltdll.c ends here */
8003 # This is a source program that is used to create import libraries
8004 # on Windows for dlls which lack them. Don't remove nor modify the
8005 # starting and closing comments
8006 # /* impgen.c starts here */
8007 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8009 # This file is part of GNU libtool.
8011 # This program is free software; you can redistribute it and/or modify
8012 # it under the terms of the GNU General Public License as published by
8013 # the Free Software Foundation; either version 2 of the License, or
8014 # (at your option) any later version.
8016 # This program is distributed in the hope that it will be useful,
8017 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8018 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8019 # GNU General Public License for more details.
8021 # You should have received a copy of the GNU General Public License
8022 # along with this program; if not, write to the Free Software
8023 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8026 # #include <stdio.h> /* for printf() */
8027 # #include <unistd.h> /* for open(), lseek(), read() */
8028 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8029 # #include <string.h> /* for strdup() */
8031 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8033 # #define O_BINARY 0
8036 # static unsigned int
8037 # pe_get16 (fd, offset)
8041 # unsigned char b[2];
8042 # lseek (fd, offset, SEEK_SET);
8044 # return b[0] + (b[1]<<8);
8047 # static unsigned int
8048 # pe_get32 (fd, offset)
8052 # unsigned char b[4];
8053 # lseek (fd, offset, SEEK_SET);
8055 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8058 # static unsigned int
8062 # unsigned char *b = ptr;
8063 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8072 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8073 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8074 # unsigned long name_rvas, nexp;
8075 # unsigned char *expdata, *erva;
8076 # char *filename, *dll_name;
8078 # filename = argv[1];
8080 # dll = open(filename, O_RDONLY|O_BINARY);
8084 # dll_name = filename;
8086 # for (i=0; filename[i]; i++)
8087 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8088 # dll_name = filename + i +1;
8090 # pe_header_offset = pe_get32 (dll, 0x3c);
8091 # opthdr_ofs = pe_header_offset + 4 + 20;
8092 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8094 # if (num_entries < 1) /* no exports */
8097 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8098 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8099 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8100 # secptr = (pe_header_offset + 4 + 20 +
8101 # pe_get16 (dll, pe_header_offset + 4 + 16));
8104 # for (i = 0; i < nsections; i++)
8107 # unsigned long secptr1 = secptr + 40 * i;
8108 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8109 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8110 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8111 # lseek(dll, secptr1, SEEK_SET);
8112 # read(dll, sname, 8);
8113 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8115 # expptr = fptr + (export_rva - vaddr);
8116 # if (export_rva + export_size > vaddr + vsize)
8117 # export_size = vsize - (export_rva - vaddr);
8122 # expdata = (unsigned char*)malloc(export_size);
8123 # lseek (dll, expptr, SEEK_SET);
8124 # read (dll, expdata, export_size);
8125 # erva = expdata - export_rva;
8127 # nexp = pe_as32 (expdata+24);
8128 # name_rvas = pe_as32 (expdata+32);
8130 # printf ("EXPORTS\n");
8131 # for (i = 0; i<nexp; i++)
8133 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8134 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8139 # /* impgen.c ends here */
8145 # We use sed instead of cat because bash on DJGPP gets confused if
8146 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8147 # text mode, it properly converts lines to CR/LF. This bash problem
8148 # is reportedly fixed, but why not run on old versions too?
8149 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8151 mv -f "${ofile}T" "$ofile" || \
8152 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8160 # This can be used to rebuild libtool when needed
8161 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8163 # Always use our own libtool.
8164 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8166 # Prevent multiple expansion
8169 for ac_prog in gzip uncompress compress
8171 # Extract the first word of "$ac_prog", so it can be a program name with args.
8172 set dummy $ac_prog; ac_word=$2
8173 echo "$as_me:$LINENO: checking for $ac_word" >&5
8174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8175 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 if test -n "$UNCOMPRESS"; then
8179 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_prog_UNCOMPRESS="$ac_prog"
8189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8198 if test -n "$UNCOMPRESS"; then
8199 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8200 echo "${ECHO_T}$UNCOMPRESS" >&6
8202 echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8206 test -n "$UNCOMPRESS" && break
8216 echo "$as_me:$LINENO: checking for target system" >&5
8217 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8221 *cygwin* ) CYGWIN=yes;;
8222 *mingw* ) MINGW=yes;;
8226 if test "x$MINGW" = "xyes"; then
8227 #fix for the debian distribution of mingw
8228 if test -x "/usr/i586-mingw32msvc/bin/ar";then
8229 AR="/usr/i586-mingw32msvc/bin/ar"
8231 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8232 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8234 #fix for the gentoo distribution of mingw
8235 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8236 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8238 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8239 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8241 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8242 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8248 if test "x${CYGWIN}" = "xyes"; then
8249 cat >>confdefs.h <<_ACEOF
8253 echo "$as_me:$LINENO: result: cygwin" >&5
8254 echo "${ECHO_T}cygwin" >&6
8256 if test "x${MINGW}" = "xyes"; then
8257 cat >>confdefs.h <<_ACEOF
8262 cat >>confdefs.h <<_ACEOF
8266 LIBS="$LIBS -lws2_32"
8267 echo "$as_me:$LINENO: result: mingw" >&5
8268 echo "${ECHO_T}mingw" >&6
8272 cat >>confdefs.h <<_ACEOF
8276 echo "$as_me:$LINENO: result: " >&5
8277 echo "${ECHO_T}" >&6
8282 if test "x${MINGW}" != "xyes"; then
8283 cat >>confdefs.h <<_ACEOF
8288 # The following tries to make use of includes and libraries in
8289 # /usr/local, too. Notice: A -I/usr/local/include might break
8290 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8291 # especially on systems which link /usr/local to /usr, so it has yet
8292 # to be seen how useful this is.
8293 if test -d /usr/local/lib; then
8294 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8296 if test -d /usr/local/include; then
8297 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8298 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8301 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8302 # if the user has a special prefix (like /opt), there might also be $prefix/lib
8303 # and $prefix/include, which should be included in our search paths for libraries
8305 LDFLAGS="$LDFLAGS -L${libdir}"
8306 CPPFLAGS="$CPPFLAGS -I${includedir}"
8307 # TODO- test whether gcc still works after this
8310 # this must be done after (I believe) AC_PROG_MAKE_SET
8311 if test "x$DEBUG" '!=' "x";then
8312 STRIP="@echo debug enabled, not stripping "
8318 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8319 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8320 if test "${ac_cv_lib_m_sin+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 ac_check_lib_save_LIBS=$LIBS
8325 cat >conftest.$ac_ext <<_ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8332 /* Override any gcc2 internal prototype to avoid an error. */
8336 /* We use char because int might match the return type of a gcc2
8337 builtin and then its argument prototype would still apply. */
8347 rm -f conftest.$ac_objext conftest$ac_exeext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8349 (eval $ac_link) 2>conftest.er1
8351 grep -v '^ *+' conftest.er1 >conftest.err
8353 cat conftest.err >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } &&
8356 { ac_try='test -z "$ac_c_werror_flag"
8357 || test ! -s conftest.err'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; } &&
8363 { ac_try='test -s conftest$ac_exeext'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8376 rm -f conftest.err conftest.$ac_objext \
8377 conftest$ac_exeext conftest.$ac_ext
8378 LIBS=$ac_check_lib_save_LIBS
8380 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8381 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8382 if test $ac_cv_lib_m_sin = yes; then
8383 cat >>confdefs.h <<_ACEOF
8390 echo "Error: Math library not found.";
8396 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8397 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8398 if test "${ac_cv_lib_z_deflate+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 ac_check_lib_save_LIBS=$LIBS
8403 cat >conftest.$ac_ext <<_ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8410 /* Override any gcc2 internal prototype to avoid an error. */
8414 /* We use char because int might match the return type of a gcc2
8415 builtin and then its argument prototype would still apply. */
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427 (eval $ac_link) 2>conftest.er1
8429 grep -v '^ *+' conftest.er1 >conftest.err
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try='test -z "$ac_c_werror_flag"
8435 || test ! -s conftest.err'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; } &&
8441 { ac_try='test -s conftest$ac_exeext'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; }; then
8447 ac_cv_lib_z_deflate=yes
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 ac_cv_lib_z_deflate=no
8454 rm -f conftest.err conftest.$ac_objext \
8455 conftest$ac_exeext conftest.$ac_ext
8456 LIBS=$ac_check_lib_save_LIBS
8458 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8459 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8460 if test $ac_cv_lib_z_deflate = yes; then
8461 cat >>confdefs.h <<_ACEOF
8468 DISABLEPNG2SWF=true;
8469 MISSINGLIBS="${MISSINGLIBS} zlib"
8475 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8476 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8477 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 ac_check_lib_save_LIBS=$LIBS
8482 cat >conftest.$ac_ext <<_ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8489 /* Override any gcc2 internal prototype to avoid an error. */
8493 /* We use char because int might match the return type of a gcc2
8494 builtin and then its argument prototype would still apply. */
8495 char jpeg_write_raw_data ();
8499 jpeg_write_raw_data ();
8504 rm -f conftest.$ac_objext conftest$ac_exeext
8505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8506 (eval $ac_link) 2>conftest.er1
8508 grep -v '^ *+' conftest.er1 >conftest.err
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } &&
8513 { ac_try='test -z "$ac_c_werror_flag"
8514 || test ! -s conftest.err'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; } &&
8520 { ac_try='test -s conftest$ac_exeext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8531 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8533 rm -f conftest.err conftest.$ac_objext \
8534 conftest$ac_exeext conftest.$ac_ext
8535 LIBS=$ac_check_lib_save_LIBS
8537 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8538 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8539 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8540 cat >>confdefs.h <<_ACEOF
8541 #define HAVE_LIBJPEG 1
8547 DISABLEPDF2SWF=true;
8548 DISABLEJPEG2SWF=true;
8549 MISSINGLIBS="${MISSINGLIBS} jpeglib"
8554 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8555 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8556 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 ac_check_lib_save_LIBS=$LIBS
8561 cat >conftest.$ac_ext <<_ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8568 /* Override any gcc2 internal prototype to avoid an error. */
8572 /* We use char because int might match the return type of a gcc2
8573 builtin and then its argument prototype would still apply. */
8574 char T1_LoadFont ();
8583 rm -f conftest.$ac_objext conftest$ac_exeext
8584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8585 (eval $ac_link) 2>conftest.er1
8587 grep -v '^ *+' conftest.er1 >conftest.err
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -z "$ac_c_werror_flag"
8593 || test ! -s conftest.err'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; } &&
8599 { ac_try='test -s conftest$ac_exeext'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 ac_cv_lib_t1_T1_LoadFont=yes
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 ac_cv_lib_t1_T1_LoadFont=no
8612 rm -f conftest.err conftest.$ac_objext \
8613 conftest$ac_exeext conftest.$ac_ext
8614 LIBS=$ac_check_lib_save_LIBS
8616 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8617 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8618 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8619 cat >>confdefs.h <<_ACEOF
8620 #define HAVE_LIBT1 1
8626 DISABLEPDF2SWF=true;
8627 MISSINGLIBS="${MISSINGLIBS} t1lib"
8633 for ac_prog in freetype-config
8635 # Extract the first word of "$ac_prog", so it can be a program name with args.
8636 set dummy $ac_prog; ac_word=$2
8637 echo "$as_me:$LINENO: checking for $ac_word" >&5
8638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8639 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 if test -n "$FREETYPE_CONFIG"; then
8643 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 test -z "$as_dir" && as_dir=.
8650 for ac_exec_ext in '' $ac_executable_extensions; do
8651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8652 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
8653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
8662 if test -n "$FREETYPE_CONFIG"; then
8663 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8664 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
8666 echo "$as_me:$LINENO: result: no" >&5
8667 echo "${ECHO_T}no" >&6
8670 test -n "$FREETYPE_CONFIG" && break
8673 OLDCPPFLAGS="${CPPFLAGS}"
8675 if test "x${FREETYPE_CONFIG}" != "x"; then
8676 CPPFLAGS="$CFLAGS "`freetype-config --cflags`
8677 else if test -d /usr/include/freetype2; then
8678 CPPFLAGS="$CFLAGS -I/usr/include/freetype2"
8679 else if test -d /usr/local/include/freetype2; then
8680 CPPFLAGS="$CFLAGS -I/usr/local/include/freetype2"
8684 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8685 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8686 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 ac_check_lib_save_LIBS=$LIBS
8690 LIBS="-lfreetype $LIBS"
8691 cat >conftest.$ac_ext <<_ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8698 /* Override any gcc2 internal prototype to avoid an error. */
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8704 char FT_Init_FreeType ();
8708 FT_Init_FreeType ();
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715 (eval $ac_link) 2>conftest.er1
8717 grep -v '^ *+' conftest.er1 >conftest.err
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try='test -z "$ac_c_werror_flag"
8723 || test ! -s conftest.err'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; } &&
8729 { ac_try='test -s conftest$ac_exeext'
8730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; }; then
8735 ac_cv_lib_freetype_FT_Init_FreeType=yes
8737 echo "$as_me: failed program was:" >&5
8738 sed 's/^/| /' conftest.$ac_ext >&5
8740 ac_cv_lib_freetype_FT_Init_FreeType=no
8742 rm -f conftest.err conftest.$ac_objext \
8743 conftest$ac_exeext conftest.$ac_ext
8744 LIBS=$ac_check_lib_save_LIBS
8746 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8747 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8748 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8753 for ac_header in freetype/freetype.h
8755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8757 echo "$as_me:$LINENO: checking for $ac_header" >&5
8758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8765 # Is the header compilable?
8766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8768 cat >conftest.$ac_ext <<_ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 #include <$ac_header>
8777 rm -f conftest.$ac_objext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779 (eval $ac_compile) 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } &&
8786 { ac_try='test -z "$ac_c_werror_flag"
8787 || test ! -s conftest.err'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; } &&
8793 { ac_try='test -s conftest.$ac_objext'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
8799 ac_header_compiler=yes
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 ac_header_compiler=no
8806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8808 echo "${ECHO_T}$ac_header_compiler" >&6
8810 # Is the header present?
8811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819 #include <$ac_header>
8821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8824 grep -v '^ *+' conftest.er1 >conftest.err
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } >/dev/null; then
8829 if test -s conftest.err; then
8830 ac_cpp_err=$ac_c_preproc_warn_flag
8831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8838 if test -z "$ac_cpp_err"; then
8839 ac_header_preproc=yes
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_header_preproc=no
8846 rm -f conftest.err conftest.$ac_ext
8847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8848 echo "${ECHO_T}$ac_header_preproc" >&6
8850 # So? What about this header?
8851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8857 ac_header_preproc=yes
8860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8874 ## ------------------------------------------ ##
8875 ## Report this to the AC_PACKAGE_NAME lists. ##
8876 ## ------------------------------------------ ##
8879 sed "s/^/$as_me: WARNING: /" >&2
8882 echo "$as_me:$LINENO: checking for $ac_header" >&5
8883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 eval "$as_ac_Header=\$ac_header_preproc"
8889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8894 cat >>confdefs.h <<_ACEOF
8895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8897 HAVE_FREETYPE_FREETYPE_H=1
8902 if test "x${HAVE_LIB_FREETYPE}" != "x";then
8903 if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
8908 if test "x${HAVE_FREETYPE}" = "x1"; then
8909 if test "x{$FREETYPE_CONFIG}" != "x"; then
8910 LIBS="$LIBS "`freetype-config --libs`
8912 LIBS="$LIBS -lfreetype"
8915 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8916 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
8918 cat > conftest.c << EOF
8919 #include <freetype/freetype.h>
8920 #include <freetype/ftglyph.h>
8921 #include <freetype/ftsnames.h>
8922 #include <freetype/ttnameid.h>
8923 #include <freetype/ftoutln.h>
8927 FT_Library ftlibrary;
8939 FT_Init_FreeType(&ftlibrary);
8940 FT_New_Face(ftlibrary, "filename", 0, &face);
8941 i = face->num_glyphs - 1;
8942 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8943 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8944 FT_Get_Postscript_Name(face);
8945 FT_Get_Char_Index(face, 33);
8946 FT_Get_First_Char(face, &i);
8947 FT_Get_Next_Char(face, 33, &i);
8948 if(FT_HAS_GLYPH_NAMES(face)) {
8949 FT_Get_Glyph_Name(face, 33, name, 127);
8951 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8952 FT_Get_Glyph(face->glyph, &glyph);
8953 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8954 FT_Done_Glyph(glyph);
8956 FT_Done_FreeType(ftlibrary);
8961 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LIBS -o conftest${ac_exeext}'
8962 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8963 echo "$as_me:$LINENO: result: yes" >&5
8964 echo "${ECHO_T}yes" >&6
8965 cat >>confdefs.h <<_ACEOF
8966 #define HAVE_FREETYPE 1
8969 cat >>confdefs.h <<_ACEOF
8970 #define USE_FREETYPE 1
8974 echo "configure: failed program was:" >&5
8977 echo "$as_me:$LINENO: result: no" >&5
8978 echo "${ECHO_T}no" >&6
8983 # if the above didn't work out, reset all changes to the compiler variables.
8984 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
8985 CPPFLAGS=$OLDCPPFLAGS
8991 echo "$as_me:$LINENO: checking for byte order" >&5
8992 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8993 if test "$cross_compiling" = yes; then
8996 cat >conftest.$ac_ext <<_ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9003 int main (int argc, char *argv[])
9010 rm -f conftest$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012 (eval $ac_link) 2>&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; }; then
9023 echo "$as_me: program exited with status $ac_status" >&5
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9034 if test "x${CROSSCOMPILE}" = "x1"; then
9035 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
9036 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
9037 echo "$as_me:$LINENO: checking target system type" >&5
9038 echo $ECHO_N "checking target system type... $ECHO_C" >&6
9039 if test "${ac_cv_target+set}" = set; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 ac_cv_target_alias=$target_alias
9043 test "x$ac_cv_target_alias" = "x" &&
9044 ac_cv_target_alias=$ac_cv_host_alias
9045 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
9046 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
9047 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
9048 { (exit 1); exit 1; }; }
9051 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
9052 echo "${ECHO_T}$ac_cv_target" >&6
9053 target=$ac_cv_target
9054 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9055 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9056 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9059 # The aliases save the names the user supplied, while $host etc.
9060 # will get canonicalized.
9061 test -n "$target_alias" &&
9062 test "$program_prefix$program_suffix$program_transform_name" = \
9064 program_prefix=${target_alias}-
9065 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
9066 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
9071 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
9078 if test "x${LITTLEENDIAN}" = "x1"; then
9079 echo "$as_me:$LINENO: result: little endian" >&5
9080 echo "${ECHO_T}little endian" >&6
9084 if test "x${BIGENDIAN}" = "x1"; then
9085 echo "$as_me:$LINENO: result: big endian" >&5
9086 echo "${ECHO_T}big endian" >&6
9089 export WORDS_BIGENDIAN
9090 cat >>confdefs.h <<_ACEOF
9091 #define WORDS_BIGENDIAN 1
9095 if test "x${BYTEORDERCHECKOK}" != "x1"; then
9096 echo "$as_me:$LINENO: result: unknown" >&5
9097 echo "${ECHO_T}unknown" >&6
9098 echo Byte order could not determined.
9104 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
9105 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
9106 if test "$cross_compiling" = yes; then
9109 cat >conftest.$ac_ext <<_ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9117 int main (int argc, char*argv[])
9119 return system("test `touch config.tmp2`");
9123 rm -f conftest$ac_exeext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9125 (eval $ac_link) 2>&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } && { ac_try='./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
9136 echo "$as_me: program exited with status $ac_status" >&5
9137 echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9144 if test "x${OK}" = "xOK";then
9145 test -f config.tmp2 || OK=
9148 if test "x${CROSSCOMPILE}" = "x1";then
9151 if test "x${OK}" = "xOK";then
9153 echo "$as_me:$LINENO: result: yes" >&5
9154 echo "${ECHO_T}yes" >&6
9156 export SYSTEM_BACKTICKS
9157 cat >>confdefs.h <<_ACEOF
9158 #define SYSTEM_BACKTICKS 1
9162 echo "$as_me:$LINENO: result: no" >&5
9163 echo "${ECHO_T}no" >&6
9168 test "$program_prefix" != NONE &&
9169 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9170 # Use a double $ so make ignores it.
9171 test "$program_suffix" != NONE &&
9172 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9173 # Double any \ or $. echo might interpret backslashes.
9174 # By default was `s,x,x', remove it if useless.
9175 cat <<\_ACEOF >conftest.sed
9176 s/[\\$]/&&/g;s/;s,x,x,$//
9178 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
9182 ac_config_headers="$ac_config_headers config.h"
9190 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9191 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9192 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9193 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 cat >conftest.$ac_ext <<_ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203 #include <sys/types.h>
9215 rm -f conftest.$ac_objext
9216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9217 (eval $ac_compile) 2>conftest.er1
9219 grep -v '^ *+' conftest.er1 >conftest.err
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } &&
9224 { ac_try='test -z "$ac_c_werror_flag"
9225 || test ! -s conftest.err'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; } &&
9231 { ac_try='test -s conftest.$ac_objext'
9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9237 eval "$as_ac_Header=yes"
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9242 eval "$as_ac_Header=no"
9244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9249 cat >>confdefs.h <<_ACEOF
9250 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9253 ac_header_dirent=$ac_hdr; break
9257 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9258 if test $ac_header_dirent = dirent.h; then
9259 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9260 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9261 if test "${ac_cv_search_opendir+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 ac_func_search_save_LIBS=$LIBS
9265 ac_cv_search_opendir=no
9266 cat >conftest.$ac_ext <<_ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9273 /* Override any gcc2 internal prototype to avoid an error. */
9277 /* We use char because int might match the return type of a gcc2
9278 builtin and then its argument prototype would still apply. */
9288 rm -f conftest.$ac_objext conftest$ac_exeext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9290 (eval $ac_link) 2>conftest.er1
9292 grep -v '^ *+' conftest.er1 >conftest.err
9294 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try='test -z "$ac_c_werror_flag"
9298 || test ! -s conftest.err'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; } &&
9304 { ac_try='test -s conftest$ac_exeext'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9310 ac_cv_search_opendir="none required"
9312 echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9316 rm -f conftest.err conftest.$ac_objext \
9317 conftest$ac_exeext conftest.$ac_ext
9318 if test "$ac_cv_search_opendir" = no; then
9319 for ac_lib in dir; do
9320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9321 cat >conftest.$ac_ext <<_ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9328 /* Override any gcc2 internal prototype to avoid an error. */
9332 /* We use char because int might match the return type of a gcc2
9333 builtin and then its argument prototype would still apply. */
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9345 (eval $ac_link) 2>conftest.er1
9347 grep -v '^ *+' conftest.er1 >conftest.err
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } &&
9352 { ac_try='test -z "$ac_c_werror_flag"
9353 || test ! -s conftest.err'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; } &&
9359 { ac_try='test -s conftest$ac_exeext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_cv_search_opendir="-l$ac_lib"
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9372 rm -f conftest.err conftest.$ac_objext \
9373 conftest$ac_exeext conftest.$ac_ext
9376 LIBS=$ac_func_search_save_LIBS
9378 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9379 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9380 if test "$ac_cv_search_opendir" != no; then
9381 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9386 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9387 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9388 if test "${ac_cv_search_opendir+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 ac_func_search_save_LIBS=$LIBS
9392 ac_cv_search_opendir=no
9393 cat >conftest.$ac_ext <<_ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9400 /* Override any gcc2 internal prototype to avoid an error. */
9404 /* We use char because int might match the return type of a gcc2
9405 builtin and then its argument prototype would still apply. */
9415 rm -f conftest.$ac_objext conftest$ac_exeext
9416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9417 (eval $ac_link) 2>conftest.er1
9419 grep -v '^ *+' conftest.er1 >conftest.err
9421 cat conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } &&
9424 { ac_try='test -z "$ac_c_werror_flag"
9425 || test ! -s conftest.err'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; } &&
9431 { ac_try='test -s conftest$ac_exeext'
9432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); }; }; then
9437 ac_cv_search_opendir="none required"
9439 echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9443 rm -f conftest.err conftest.$ac_objext \
9444 conftest$ac_exeext conftest.$ac_ext
9445 if test "$ac_cv_search_opendir" = no; then
9447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9448 cat >conftest.$ac_ext <<_ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9455 /* Override any gcc2 internal prototype to avoid an error. */
9459 /* We use char because int might match the return type of a gcc2
9460 builtin and then its argument prototype would still apply. */
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472 (eval $ac_link) 2>conftest.er1
9474 grep -v '^ *+' conftest.er1 >conftest.err
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } &&
9479 { ac_try='test -z "$ac_c_werror_flag"
9480 || test ! -s conftest.err'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; } &&
9486 { ac_try='test -s conftest$ac_exeext'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; }; then
9492 ac_cv_search_opendir="-l$ac_lib"
9495 echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.$ac_ext >&5
9499 rm -f conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9503 LIBS=$ac_func_search_save_LIBS
9505 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9506 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9507 if test "$ac_cv_search_opendir" != no; then
9508 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9514 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9515 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9516 if test "${ac_cv_header_stdc+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 cat >conftest.$ac_ext <<_ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9538 rm -f conftest.$ac_objext
9539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9540 (eval $ac_compile) 2>conftest.er1
9542 grep -v '^ *+' conftest.er1 >conftest.err
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try='test -z "$ac_c_werror_flag"
9548 || test ! -s conftest.err'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; } &&
9554 { ac_try='test -s conftest.$ac_objext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_cv_header_stdc=yes
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 ac_cv_header_stdc=no
9567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9569 if test $ac_cv_header_stdc = yes; then
9570 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9571 cat >conftest.$ac_ext <<_ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9581 $EGREP "memchr" >/dev/null 2>&1; then
9584 ac_cv_header_stdc=no
9590 if test $ac_cv_header_stdc = yes; then
9591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9592 cat >conftest.$ac_ext <<_ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9602 $EGREP "free" >/dev/null 2>&1; then
9605 ac_cv_header_stdc=no
9611 if test $ac_cv_header_stdc = yes; then
9612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9613 if test "$cross_compiling" = yes; then
9616 cat >conftest.$ac_ext <<_ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9623 #if ((' ' & 0x0FF) == 0x020)
9624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9625 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9627 # define ISLOWER(c) \
9628 (('a' <= (c) && (c) <= 'i') \
9629 || ('j' <= (c) && (c) <= 'r') \
9630 || ('s' <= (c) && (c) <= 'z'))
9631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9639 for (i = 0; i < 256; i++)
9640 if (XOR (islower (i), ISLOWER (i))
9641 || toupper (i) != TOUPPER (i))
9646 rm -f conftest$ac_exeext
9647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648 (eval $ac_link) 2>&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; }; then
9659 echo "$as_me: program exited with status $ac_status" >&5
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9664 ac_cv_header_stdc=no
9666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9670 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9671 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9672 if test $ac_cv_header_stdc = yes; then
9674 cat >>confdefs.h <<\_ACEOF
9675 #define STDC_HEADERS 1
9694 for ac_header in zlib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
9696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9698 echo "$as_me:$LINENO: checking for $ac_header" >&5
9699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9706 # Is the header compilable?
9707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9709 cat >conftest.$ac_ext <<_ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715 $ac_includes_default
9716 #include <$ac_header>
9718 rm -f conftest.$ac_objext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9720 (eval $ac_compile) 2>conftest.er1
9722 grep -v '^ *+' conftest.er1 >conftest.err
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest.$ac_objext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 ac_header_compiler=yes
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9745 ac_header_compiler=no
9747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9749 echo "${ECHO_T}$ac_header_compiler" >&6
9751 # Is the header present?
9752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9754 cat >conftest.$ac_ext <<_ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9760 #include <$ac_header>
9762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9765 grep -v '^ *+' conftest.er1 >conftest.err
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } >/dev/null; then
9770 if test -s conftest.err; then
9771 ac_cpp_err=$ac_c_preproc_warn_flag
9772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9779 if test -z "$ac_cpp_err"; then
9780 ac_header_preproc=yes
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9785 ac_header_preproc=no
9787 rm -f conftest.err conftest.$ac_ext
9788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9789 echo "${ECHO_T}$ac_header_preproc" >&6
9791 # So? What about this header?
9792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9798 ac_header_preproc=yes
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9815 ## ------------------------------------------ ##
9816 ## Report this to the AC_PACKAGE_NAME lists. ##
9817 ## ------------------------------------------ ##
9820 sed "s/^/$as_me: WARNING: /" >&2
9823 echo "$as_me:$LINENO: checking for $ac_header" >&5
9824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 eval "$as_ac_Header=\$ac_header_preproc"
9830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9835 cat >>confdefs.h <<_ACEOF
9836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9844 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
9845 DISABLEPDF2SWF=true;
9846 DISABLEJPEG2SWF=true;
9847 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9849 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
9850 DISABLEPDF2SWF=true;
9851 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9853 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
9854 DISABLEPNG2SWF=true;
9855 MISSINGLIBS="${MISSINGLIBS} zlib.h"
9859 cat >>confdefs.h <<_ACEOF
9860 #define PACKAGE "$PACKAGE"
9863 cat >>confdefs.h <<_ACEOF
9864 #define VERSION "$VERSION"
9873 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9874 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9875 if test "${ac_cv_c_const+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 cat >conftest.$ac_ext <<_ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9888 /* FIXME: Include the comments suggested by Paul. */
9890 /* Ultrix mips cc rejects this. */
9891 typedef int charset[2];
9893 /* SunOS 4.1.1 cc rejects this. */
9894 char const *const *ccp;
9896 /* NEC SVR4.0.2 mips cc rejects this. */
9897 struct point {int x, y;};
9898 static struct point const zero = {0,0};
9899 /* AIX XL C 1.02.0.0 rejects this.
9900 It does not let you subtract one const X* pointer from another in
9901 an arm of an if-expression whose if-part is not a constant
9903 const char *g = "string";
9904 ccp = &g + (g ? g-g : 0);
9905 /* HPUX 7.0 cc rejects these. */
9908 ccp = (char const *const *) p;
9909 { /* SCO 3.2v4 cc rejects this. */
9911 char const *s = 0 ? (char *) 0 : (char const *) 0;
9915 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9917 const int *foo = &x[0];
9920 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9921 typedef const int *iptr;
9925 { /* AIX XL C 1.02.0.0 rejects this saying
9926 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9927 struct s { int j; const int *ap[3]; };
9928 struct s *b; b->j = 5;
9930 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9939 rm -f conftest.$ac_objext
9940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9941 (eval $ac_compile) 2>conftest.er1
9943 grep -v '^ *+' conftest.er1 >conftest.err
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } &&
9948 { ac_try='test -z "$ac_c_werror_flag"
9949 || test ! -s conftest.err'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; } &&
9955 { ac_try='test -s conftest.$ac_objext'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9970 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9971 echo "${ECHO_T}$ac_cv_c_const" >&6
9972 if test $ac_cv_c_const = no; then
9974 cat >>confdefs.h <<\_ACEOF
9980 echo "$as_me:$LINENO: checking for inline" >&5
9981 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9982 if test "${ac_cv_c_inline+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 for ac_kw in inline __inline__ __inline; do
9987 cat >conftest.$ac_ext <<_ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9995 static $ac_kw foo_t static_foo () {return 0; }
9996 $ac_kw foo_t foo () {return 0; }
10000 rm -f conftest.$ac_objext
10001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10002 (eval $ac_compile) 2>conftest.er1
10004 grep -v '^ *+' conftest.er1 >conftest.err
10006 cat conftest.err >&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } &&
10009 { ac_try='test -z "$ac_c_werror_flag"
10010 || test ! -s conftest.err'
10011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; } &&
10016 { ac_try='test -s conftest.$ac_objext'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; }; then
10022 ac_cv_c_inline=$ac_kw; break
10024 echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10032 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10033 echo "${ECHO_T}$ac_cv_c_inline" >&6
10036 case $ac_cv_c_inline in
10039 case $ac_cv_c_inline in
10041 *) ac_val=$ac_cv_c_inline;;
10043 cat >>confdefs.h <<_ACEOF
10044 #ifndef __cplusplus
10045 #define inline $ac_val
10051 echo "$as_me:$LINENO: checking for off_t" >&5
10052 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10053 if test "${ac_cv_type_off_t+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 cat >conftest.$ac_ext <<_ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 $ac_includes_default
10068 if (sizeof (off_t))
10074 rm -f conftest.$ac_objext
10075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10076 (eval $ac_compile) 2>conftest.er1
10078 grep -v '^ *+' conftest.er1 >conftest.err
10080 cat conftest.err >&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
10083 { ac_try='test -z "$ac_c_werror_flag"
10084 || test ! -s conftest.err'
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; } &&
10090 { ac_try='test -s conftest.$ac_objext'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }; then
10096 ac_cv_type_off_t=yes
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10101 ac_cv_type_off_t=no
10103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10105 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10106 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10107 if test $ac_cv_type_off_t = yes; then
10111 cat >>confdefs.h <<_ACEOF
10117 echo "$as_me:$LINENO: checking for size_t" >&5
10118 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10119 if test "${ac_cv_type_size_t+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 $ac_includes_default
10134 if (sizeof (size_t))
10140 rm -f conftest.$ac_objext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10142 (eval $ac_compile) 2>conftest.er1
10144 grep -v '^ *+' conftest.er1 >conftest.err
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag"
10150 || test ! -s conftest.err'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; } &&
10156 { ac_try='test -s conftest.$ac_objext'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162 ac_cv_type_size_t=yes
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ac_cv_type_size_t=no
10169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10171 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10172 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10173 if test $ac_cv_type_size_t = yes; then
10177 cat >>confdefs.h <<_ACEOF
10178 #define size_t unsigned
10183 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10184 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10185 if test "${ac_cv_struct_tm+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 cat >conftest.$ac_ext <<_ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h. */
10194 #include <sys/types.h>
10200 struct tm *tp; tp->tm_sec;
10205 rm -f conftest.$ac_objext
10206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10207 (eval $ac_compile) 2>conftest.er1
10209 grep -v '^ *+' conftest.er1 >conftest.err
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } &&
10214 { ac_try='test -z "$ac_c_werror_flag"
10215 || test ! -s conftest.err'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; } &&
10221 { ac_try='test -s conftest.$ac_objext'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_cv_struct_tm=time.h
10229 echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10232 ac_cv_struct_tm=sys/time.h
10234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10236 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10237 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10238 if test $ac_cv_struct_tm = sys/time.h; then
10240 cat >>confdefs.h <<\_ACEOF
10241 #define TM_IN_SYS_TIME 1
10246 echo "$as_me:$LINENO: checking for boolean" >&5
10247 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
10248 if test "${ac_cv_type_boolean+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 cat >conftest.$ac_ext <<_ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10257 $ac_includes_default
10263 if (sizeof (boolean))
10269 rm -f conftest.$ac_objext
10270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10271 (eval $ac_compile) 2>conftest.er1
10273 grep -v '^ *+' conftest.er1 >conftest.err
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } &&
10278 { ac_try='test -z "$ac_c_werror_flag"
10279 || test ! -s conftest.err'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; } &&
10285 { ac_try='test -s conftest.$ac_objext'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; }; then
10291 ac_cv_type_boolean=yes
10293 echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10296 ac_cv_type_boolean=no
10298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10300 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10301 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10302 if test $ac_cv_type_boolean = yes; then
10306 cat >>confdefs.h <<_ACEOF
10307 #define boolean int
10312 echo "$as_me:$LINENO: checking for bool" >&5
10313 echo $ECHO_N "checking for bool... $ECHO_C" >&6
10314 if test "${ac_cv_type_bool+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 cat >conftest.$ac_ext <<_ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10323 $ac_includes_default
10335 rm -f conftest.$ac_objext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10337 (eval $ac_compile) 2>conftest.er1
10339 grep -v '^ *+' conftest.er1 >conftest.err
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } &&
10344 { ac_try='test -z "$ac_c_werror_flag"
10345 || test ! -s conftest.err'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; } &&
10351 { ac_try='test -s conftest.$ac_objext'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; }; then
10357 ac_cv_type_bool=yes
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10366 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10367 echo "${ECHO_T}$ac_cv_type_bool" >&6
10368 if test $ac_cv_type_bool = yes; then
10372 cat >>confdefs.h <<_ACEOF
10389 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10392 echo "$as_me:$LINENO: checking for $ac_func" >&5
10393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10394 if eval "test \"\${$as_ac_var+set}\" = set"; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 cat >conftest.$ac_ext <<_ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h. */
10403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10405 #define $ac_func innocuous_$ac_func
10407 /* System header to define __stub macros and hopefully few prototypes,
10408 which can conflict with char $ac_func (); below.
10409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10410 <limits.h> exists even on freestanding compilers. */
10413 # include <limits.h>
10415 # include <assert.h>
10420 /* Override any gcc2 internal prototype to avoid an error. */
10425 /* We use char because int might match the return type of a gcc2
10426 builtin and then its argument prototype would still apply. */
10428 /* The GNU C library defines this for functions which it implements
10429 to always fail with ENOSYS. Some functions are actually named
10430 something starting with __ and the normal name is an alias. */
10431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10434 char (*f) () = $ac_func;
10443 return f != $ac_func;
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450 (eval $ac_link) 2>conftest.er1
10452 grep -v '^ *+' conftest.er1 >conftest.err
10454 cat conftest.err >&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } &&
10457 { ac_try='test -z "$ac_c_werror_flag"
10458 || test ! -s conftest.err'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; } &&
10464 { ac_try='test -s conftest$ac_exeext'
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; }; then
10470 eval "$as_ac_var=yes"
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 eval "$as_ac_var=no"
10477 rm -f conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10482 if test `eval echo '${'$as_ac_var'}'` = yes; then
10483 cat >>confdefs.h <<_ACEOF
10484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10492 for ac_prog in avifile-config
10494 # Extract the first word of "$ac_prog", so it can be a program name with args.
10495 set dummy $ac_prog; ac_word=$2
10496 echo "$as_me:$LINENO: checking for $ac_word" >&5
10497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10498 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 if test -n "$AVIFILE_CONFIG"; then
10502 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10520 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10521 if test -n "$AVIFILE_CONFIG"; then
10522 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10523 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
10525 echo "$as_me:$LINENO: result: no" >&5
10526 echo "${ECHO_T}no" >&6
10529 test -n "$AVIFILE_CONFIG" && break
10533 if test "x$AVIFILE_CONFIG" '!=' "x";then
10534 OLDCPPFLAGS="$CPPFLAGS"
10535 #OLDLDFLAGS="$LDFLAGS"
10536 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10537 #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
10540 for ac_header in avifile/version.h version.h
10542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10544 echo "$as_me:$LINENO: checking for $ac_header" >&5
10545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10552 # Is the header compilable?
10553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10555 cat >conftest.$ac_ext <<_ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 $ac_includes_default
10562 #include <$ac_header>
10564 rm -f conftest.$ac_objext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10566 (eval $ac_compile) 2>conftest.er1
10568 grep -v '^ *+' conftest.er1 >conftest.err
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -z "$ac_c_werror_flag"
10574 || test ! -s conftest.err'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; } &&
10580 { ac_try='test -s conftest.$ac_objext'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 ac_header_compiler=yes
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 ac_header_compiler=no
10593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10595 echo "${ECHO_T}$ac_header_compiler" >&6
10597 # Is the header present?
10598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10600 cat >conftest.$ac_ext <<_ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10606 #include <$ac_header>
10608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10611 grep -v '^ *+' conftest.er1 >conftest.err
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } >/dev/null; then
10616 if test -s conftest.err; then
10617 ac_cpp_err=$ac_c_preproc_warn_flag
10618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10625 if test -z "$ac_cpp_err"; then
10626 ac_header_preproc=yes
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ac_header_preproc=no
10633 rm -f conftest.err conftest.$ac_ext
10634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10635 echo "${ECHO_T}$ac_header_preproc" >&6
10637 # So? What about this header?
10638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10644 ac_header_preproc=yes
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10661 ## ------------------------------------------ ##
10662 ## Report this to the AC_PACKAGE_NAME lists. ##
10663 ## ------------------------------------------ ##
10666 sed "s/^/$as_me: WARNING: /" >&2
10669 echo "$as_me:$LINENO: checking for $ac_header" >&5
10670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 eval "$as_ac_Header=\$ac_header_preproc"
10676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10681 cat >>confdefs.h <<_ACEOF
10682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10689 #LDFLAGS="$OLDLDFLAGS"
10690 CPPFLAGS="$OLDCPPFLAGS"
10693 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10694 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
10696 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10697 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10699 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10700 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10703 cat > conftest.cpp << EOF
10705 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10706 // so we have to introduce them this way
10707 $HAVE_VERSION_H_DEFINE
10708 $HAVE_AVIFILE_VERSION_H_DEFINE
10710 #ifdef HAVE_VERSION_H
10711 #include <version.h>
10713 #ifdef HAVE_AVIFILE_VERSION_H
10714 #include <avifile/version.h>
10717 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10718 #include <avifile.h>
10719 #include <aviplay.h>
10720 #include <fourcc.h>
10721 #include <creators.h>
10722 #include <StreamInfo.h>
10725 #include <avifile.h>
10726 #include <aviplay.h>
10727 #include <aviutil.h>
10728 #define Width width
10729 #define Height height
10736 IAviReadFile* player;
10737 IAviReadStream* astream;
10738 IAviReadStream* vstream;
10739 player = CreateIAviReadFile(0);
10740 astream = player->GetStream(0, AviStream::Audio);
10741 vstream = player->GetStream(0, AviStream::Video);
10742 vstream -> StartStreaming();
10743 astream -> StartStreaming();
10745 MainAVIHeader head;
10746 player->GetFileHeader(&head);
10747 head.dwMicroSecPerFrame;
10748 head.dwTotalFrames;
10752 head.dwMicroSecPerFrame;
10753 astream->GetEndPos(),
10754 astream->GetEndTime());
10755 player->StreamCount();
10757 StreamInfo*audioinfo;
10758 StreamInfo*videoinfo;
10759 audioinfo = astream->GetStreamInfo();
10760 videoinfo = vstream->GetStreamInfo();
10761 videoinfo->GetVideoWidth();
10762 videoinfo->GetVideoHeight();
10763 audioinfo->GetAudioSamplesPerSec();
10764 videoinfo->GetFps();
10766 CImage*img = vstream->GetFrame();
10773 astream->GetAudioFormatInfo(&wave,0);
10775 astream->ReadFrames(0,0,0,a,b);
10777 int main (int argc, char*argv)
10783 if test "x$AVIFILE_CONFIG" '!=' "x";then
10784 ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
10785 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
10786 echo "$as_me:$LINENO: result: yes" >&5
10787 echo "${ECHO_T}yes" >&6
10790 cat >>confdefs.h <<_ACEOF
10791 #define AVIFILE true
10795 echo "configure: failed program was:" >&5
10796 cat conftest.cpp >&5
10797 echo "$as_me:$LINENO: result: no" >&5
10798 echo "${ECHO_T}no" >&6
10801 echo "$as_me:$LINENO: result: no" >&5
10802 echo "${ECHO_T}no" >&6
10807 avi2swf="avi2swf/Makefile"
10808 if test "x${AVIFILE}" != "xtrue"; then
10809 echo "* Couldn't compile the avifile test program."
10810 echo "* Disabling avi2swf tool..."
10811 echo all install uninstall clean: > avi2swf/Makefile
10815 if test "x${DISABLE_LAME}" = "xtrue"; then
10816 echo "*" Disabling lame support...
10819 cat >>confdefs.h <<_ACEOF
10820 #define HAVE_LAME 1
10823 lame_objects='$(lame_objects_2)'
10827 if test "x${UNCOMPRESS}" = "xgzip"; then
10828 cat >>confdefs.h <<_ACEOF
10835 JPEG2SWF='jpeg2swf$(E)'
10837 PNG2SWF='png2swf$(E)'
10840 if test "x" = "x"; then
10841 pythonrfxswf="lib/python/Makefile"
10843 echo all install uninstall clean: > lib/python/Makefile
10846 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10847 echo "***************************************************"
10848 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
10849 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10850 echo "Disabling pdf2swf tool..."
10851 rm -f pdf2swf/Makefile
10852 echo all install uninstall clean: > pdf2swf/Makefile
10854 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10855 echo "Disabling jpeg2swf tool..."
10859 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10860 echo "Disabling png2swf tool..."
10864 if test "x${ZLIBMISSING}" = "xtrue"; then
10866 echo "Warning! Without zlib, you will not be able to read"
10867 echo "or write compressed Flash MX files!"
10869 echo "***************************************************"
10870 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile swfs/Makefile ${pythonrfxswf}"
10872 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile ${pythonrfxswf}"
10877 #AC_CONFIG_FILES([${FILES}])
10879 ac_config_files="$ac_config_files ${FILES}"
10880 cat >confcache <<\_ACEOF
10881 # This file is a shell script that caches the results of configure
10882 # tests run on this system so they can be shared between configure
10883 # scripts and configure runs, see configure's option --config-cache.
10884 # It is not useful on other systems. If it contains results you don't
10885 # want to keep, you may remove or edit it.
10887 # config.status only pays attention to the cache file if you give it
10888 # the --recheck option to rerun configure.
10890 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10891 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10892 # following values.
10896 # The following way of writing the cache mishandles newlines in values,
10897 # but we know of no workaround that is simple, portable, and efficient.
10898 # So, don't put newlines in cache variables' values.
10899 # Ultrix sh set writes to stderr and can't be redirected directly,
10900 # and sets the high bit in the cache file unless we assign to the vars.
10903 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10905 # `set' does not quote correctly, so add quotes (double-quote
10906 # substitution turns \\\\ into \\, and sed turns \\ into \).
10909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10912 # `set' quotes correctly as required by POSIX, so do not add quotes.
10914 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10923 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10925 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10926 if test -w $cache_file; then
10927 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10928 cat confcache >$cache_file
10930 echo "not updating unwritable cache $cache_file"
10935 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10936 # Let make expand exec_prefix.
10937 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10939 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10940 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10941 # trailing colons and then remove the whole line if VPATH becomes empty
10942 # (actually we leave an empty line to preserve line numbers).
10943 if test "x$srcdir" = x.; then
10944 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10945 s/:*\$(srcdir):*/:/;
10946 s/:*\${srcdir}:*/:/;
10948 s/^\([^=]*=[ ]*\):*/\1/;
10954 DEFS=-DHAVE_CONFIG_H
10958 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10959 # 1. Remove the extension, and $U if already installed.
10960 ac_i=`echo "$ac_i" |
10961 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10963 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10964 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10966 LIBOBJS=$ac_libobjs
10968 LTLIBOBJS=$ac_ltlibobjs
10972 : ${CONFIG_STATUS=./config.status}
10973 ac_clean_files_save=$ac_clean_files
10974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10975 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10976 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10977 cat >$CONFIG_STATUS <<_ACEOF
10979 # Generated by $as_me.
10980 # Run this file to recreate the current configuration.
10981 # Compiler output produced by configure, useful for debugging
10982 # configure, is in config.log if it exists.
10985 ac_cs_recheck=false
10987 SHELL=\${CONFIG_SHELL-$SHELL}
10990 cat >>$CONFIG_STATUS <<\_ACEOF
10991 ## --------------------- ##
10992 ## M4sh Initialization. ##
10993 ## --------------------- ##
10995 # Be Bourne compatible
10996 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10999 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11000 # is contrary to our usage. Disable this feature.
11001 alias -g '${1+"$@"}'='"$@"'
11002 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11005 DUALCASE=1; export DUALCASE # for MKS sh
11007 # Support unset when possible.
11008 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11015 # Work around bugs in pre-3.0 UWIN ksh.
11016 $as_unset ENV MAIL MAILPATH
11023 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11024 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11025 LC_TELEPHONE LC_TIME
11027 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11028 eval $as_var=C; export $as_var
11034 # Required to use basename.
11035 if expr a : '\(a\)' >/dev/null 2>&1; then
11041 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11042 as_basename=basename
11048 # Name of the executable.
11049 as_me=`$as_basename "$0" ||
11050 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11051 X"$0" : 'X\(//\)$' \| \
11052 X"$0" : 'X\(/\)$' \| \
11053 . : '\(.\)' 2>/dev/null ||
11055 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11056 /^X\/\(\/\/\)$/{ s//\1/; q; }
11057 /^X\/\(\/\).*/{ s//\1/; q; }
11061 # PATH needs CR, and LINENO needs CR and PATH.
11062 # Avoid depending upon Character Ranges.
11063 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11064 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11065 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11066 as_cr_digits='0123456789'
11067 as_cr_alnum=$as_cr_Letters$as_cr_digits
11069 # The user is always right.
11070 if test "${PATH_SEPARATOR+set}" != set; then
11071 echo "#! /bin/sh" >conf$$.sh
11072 echo "exit 0" >>conf$$.sh
11074 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11083 as_lineno_1=$LINENO
11084 as_lineno_2=$LINENO
11085 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11086 test "x$as_lineno_1" != "x$as_lineno_2" &&
11087 test "x$as_lineno_3" = "x$as_lineno_2" || {
11088 # Find who we are. Look in the path if we contain no path at all
11091 *[\\/]* ) as_myself=$0 ;;
11092 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093 for as_dir in $PATH
11096 test -z "$as_dir" && as_dir=.
11097 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11102 # We did not find ourselves, most probably we were run as `sh COMMAND'
11103 # in which case we are not to be found in the path.
11104 if test "x$as_myself" = x; then
11107 if test ! -f "$as_myself"; then
11108 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11109 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11110 { (exit 1); exit 1; }; }
11112 case $CONFIG_SHELL in
11114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11118 test -z "$as_dir" && as_dir=.
11119 for as_base in sh bash ksh sh5; do
11122 if ("$as_dir/$as_base" -c '
11123 as_lineno_1=$LINENO
11124 as_lineno_2=$LINENO
11125 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11126 test "x$as_lineno_1" != "x$as_lineno_2" &&
11127 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11128 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11129 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11130 CONFIG_SHELL=$as_dir/$as_base
11131 export CONFIG_SHELL
11132 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11140 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11141 # uniformly replaced by the line number. The first 'sed' inserts a
11142 # line-number line before each line; the second 'sed' does the real
11143 # work. The second script uses 'N' to pair each line-number line
11144 # with the numbered line, and appends trailing '-' during
11145 # substitution so that $LINENO is not a special case at line end.
11146 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11147 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11148 sed '=' <$as_myself |
11153 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11156 s,^['$as_cr_digits']*\n,,
11157 ' >$as_me.lineno &&
11158 chmod +x $as_me.lineno ||
11159 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11160 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11161 { (exit 1); exit 1; }; }
11163 # Don't try to exec as it changes $[0], causing all sort of problems
11164 # (the dirname of $[0] is not the place where we might find the
11165 # original and so on. Autoconf is especially sensible to this).
11167 # Exit status is that of the last command.
11172 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11173 *c*,-n*) ECHO_N= ECHO_C='
11175 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11176 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11179 if expr a : '\(a\)' >/dev/null 2>&1; then
11185 rm -f conf$$ conf$$.exe conf$$.file
11187 if ln -s conf$$.file conf$$ 2>/dev/null; then
11188 # We could just check for DJGPP; but this test a) works b) is more generic
11189 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11190 if test -f conf$$.exe; then
11191 # Don't use ln at all; we don't have any links
11196 elif ln conf$$.file conf$$ 2>/dev/null; then
11201 rm -f conf$$ conf$$.exe conf$$.file
11203 if mkdir -p . 2>/dev/null; then
11206 test -d ./-p && rmdir ./-p
11210 as_executable_p="test -f"
11212 # Sed expression to map a string onto a valid CPP name.
11213 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11215 # Sed expression to map a string onto a valid variable name.
11216 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11220 # We need space, tab and new line, in precisely that order.
11230 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11231 # report actual input values of CONFIG_FILES etc. instead of their
11232 # values after options handling. Logging --version etc. is OK.
11236 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11237 ## Running $as_me. ##
11242 This file was extended by $as_me, which was
11243 generated by GNU Autoconf 2.58. Invocation command line was
11245 CONFIG_FILES = $CONFIG_FILES
11246 CONFIG_HEADERS = $CONFIG_HEADERS
11247 CONFIG_LINKS = $CONFIG_LINKS
11248 CONFIG_COMMANDS = $CONFIG_COMMANDS
11252 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11256 # Files that config.status was made for.
11257 if test -n "$ac_config_files"; then
11258 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11261 if test -n "$ac_config_headers"; then
11262 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11265 if test -n "$ac_config_links"; then
11266 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11269 if test -n "$ac_config_commands"; then
11270 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11273 cat >>$CONFIG_STATUS <<\_ACEOF
11276 \`$as_me' instantiates files from templates according to the
11277 current configuration.
11279 Usage: $0 [OPTIONS] [FILE]...
11281 -h, --help print this help, then exit
11282 -V, --version print version number, then exit
11283 -q, --quiet do not print progress messages
11284 -d, --debug don't remove temporary files
11285 --recheck update $as_me by reconfiguring in the same conditions
11286 --file=FILE[:TEMPLATE]
11287 instantiate the configuration file FILE
11288 --header=FILE[:TEMPLATE]
11289 instantiate the configuration header FILE
11291 Configuration files:
11294 Configuration headers:
11297 Report bugs to <bug-autoconf@gnu.org>."
11300 cat >>$CONFIG_STATUS <<_ACEOF
11303 configured by $0, generated by GNU Autoconf 2.58,
11304 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11306 Copyright (C) 2003 Free Software Foundation, Inc.
11307 This config.status script is free software; the Free Software Foundation
11308 gives unlimited permission to copy, distribute and modify it."
11313 cat >>$CONFIG_STATUS <<\_ACEOF
11314 # If no file are specified by the user, then we need to provide default
11315 # value. By we need to know if files were specified by the user.
11321 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11322 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11330 *) # This is not an option, so the user has probably given explicit
11333 ac_need_defaults=false;;
11337 # Handling of the options.
11339 cat >>$CONFIG_STATUS <<\_ACEOF
11340 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11342 --version | --vers* | -V )
11343 echo "$ac_cs_version"; exit 0 ;;
11345 # Conflict between --help and --header
11346 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11347 Try \`$0 --help' for more information." >&5
11348 echo "$as_me: error: ambiguous option: $1
11349 Try \`$0 --help' for more information." >&2;}
11350 { (exit 1); exit 1; }; };;
11351 --help | --hel | -h )
11352 echo "$ac_cs_usage"; exit 0 ;;
11353 --debug | --d* | -d )
11355 --file | --fil | --fi | --f )
11357 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11358 ac_need_defaults=false;;
11359 --header | --heade | --head | --hea )
11361 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11362 ac_need_defaults=false;;
11363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11364 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11367 # This is an error.
11368 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11369 Try \`$0 --help' for more information." >&5
11370 echo "$as_me: error: unrecognized option: $1
11371 Try \`$0 --help' for more information." >&2;}
11372 { (exit 1); exit 1; }; } ;;
11374 *) ac_config_targets="$ac_config_targets $1" ;;
11380 ac_configure_extra_args=
11382 if $ac_cs_silent; then
11384 ac_configure_extra_args="$ac_configure_extra_args --silent"
11388 cat >>$CONFIG_STATUS <<_ACEOF
11389 if \$ac_cs_recheck; then
11390 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11391 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11400 cat >>$CONFIG_STATUS <<\_ACEOF
11401 for ac_config_target in $ac_config_targets
11403 case "$ac_config_target" in
11404 # Handling of arguments.
11405 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11406 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11407 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11408 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11409 { (exit 1); exit 1; }; };;
11413 # If the user did not use the arguments to specify the items to instantiate,
11414 # then the envvar interface is used. Set only those that are not.
11415 # We use the long form for the default assignment because of an extremely
11416 # bizarre bug on SunOS 4.1.3.
11417 if $ac_need_defaults; then
11418 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11419 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11422 # Have a temporary directory for convenience. Make it in the build tree
11423 # simply because there is no reason to put it here, and in addition,
11424 # creating and moving files from /tmp can sometimes cause problems.
11425 # Create a temporary directory, and hook for its removal unless debugging.
11428 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11429 trap '{ (exit 1); exit 1; }' 1 2 13 15
11432 # Create a (secure) tmp directory for tmp files.
11435 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11436 test -n "$tmp" && test -d "$tmp"
11439 tmp=./confstat$$-$RANDOM
11440 (umask 077 && mkdir $tmp)
11443 echo "$me: cannot create a temporary directory in ." >&2
11444 { (exit 1); exit 1; }
11449 cat >>$CONFIG_STATUS <<_ACEOF
11452 # CONFIG_FILES section.
11455 # No need to generate the scripts if there are no CONFIG_FILES.
11456 # This happens for instance when ./config.status config.h
11457 if test -n "\$CONFIG_FILES"; then
11458 # Protect against being on the right side of a sed subst in config.status.
11459 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11460 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11461 s,@SHELL@,$SHELL,;t t
11462 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11463 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11464 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11465 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11466 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11467 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11468 s,@exec_prefix@,$exec_prefix,;t t
11469 s,@prefix@,$prefix,;t t
11470 s,@program_transform_name@,$program_transform_name,;t t
11471 s,@bindir@,$bindir,;t t
11472 s,@sbindir@,$sbindir,;t t
11473 s,@libexecdir@,$libexecdir,;t t
11474 s,@datadir@,$datadir,;t t
11475 s,@sysconfdir@,$sysconfdir,;t t
11476 s,@sharedstatedir@,$sharedstatedir,;t t
11477 s,@localstatedir@,$localstatedir,;t t
11478 s,@libdir@,$libdir,;t t
11479 s,@includedir@,$includedir,;t t
11480 s,@oldincludedir@,$oldincludedir,;t t
11481 s,@infodir@,$infodir,;t t
11482 s,@mandir@,$mandir,;t t
11483 s,@build_alias@,$build_alias,;t t
11484 s,@host_alias@,$host_alias,;t t
11485 s,@target_alias@,$target_alias,;t t
11486 s,@DEFS@,$DEFS,;t t
11487 s,@ECHO_C@,$ECHO_C,;t t
11488 s,@ECHO_N@,$ECHO_N,;t t
11489 s,@ECHO_T@,$ECHO_T,;t t
11490 s,@LIBS@,$LIBS,;t t
11491 s,@build@,$build,;t t
11492 s,@build_cpu@,$build_cpu,;t t
11493 s,@build_vendor@,$build_vendor,;t t
11494 s,@build_os@,$build_os,;t t
11495 s,@host@,$host,;t t
11496 s,@host_cpu@,$host_cpu,;t t
11497 s,@host_vendor@,$host_vendor,;t t
11498 s,@host_os@,$host_os,;t t
11500 s,@CFLAGS@,$CFLAGS,;t t
11501 s,@LDFLAGS@,$LDFLAGS,;t t
11502 s,@CPPFLAGS@,$CPPFLAGS,;t t
11503 s,@ac_ct_CC@,$ac_ct_CC,;t t
11504 s,@EXEEXT@,$EXEEXT,;t t
11505 s,@OBJEXT@,$OBJEXT,;t t
11507 s,@CXXFLAGS@,$CXXFLAGS,;t t
11508 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11510 s,@RANLIB@,$RANLIB,;t t
11511 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11512 s,@SET_MAKE@,$SET_MAKE,;t t
11513 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11514 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11515 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11516 s,@LN_S@,$LN_S,;t t
11517 s,@ECHO@,$ECHO,;t t
11518 s,@STRIP@,$STRIP,;t t
11519 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11520 s,@EGREP@,$EGREP,;t t
11521 s,@LIBTOOL@,$LIBTOOL,;t t
11522 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
11524 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
11525 s,@target@,$target,;t t
11526 s,@target_cpu@,$target_cpu,;t t
11527 s,@target_vendor@,$target_vendor,;t t
11528 s,@target_os@,$target_os,;t t
11529 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
11530 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
11531 s,@PACKAGE@,$PACKAGE,;t t
11532 s,@VERSION@,$VERSION,;t t
11533 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
11534 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
11535 s,@lame_objects@,$lame_objects,;t t
11536 s,@USE_GZIP@,$USE_GZIP,;t t
11537 s,@JPEG2SWF@,$JPEG2SWF,;t t
11538 s,@PNG2SWF@,$PNG2SWF,;t t
11539 s,@LIBOBJS@,$LIBOBJS,;t t
11540 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11545 cat >>$CONFIG_STATUS <<\_ACEOF
11546 # Split the substitutions into bite-sized pieces for seds with
11547 # small command number limits, like on Digital OSF/1 and HP-UX.
11548 ac_max_sed_lines=48
11549 ac_sed_frag=1 # Number of current file.
11550 ac_beg=1 # First line for current file.
11551 ac_end=$ac_max_sed_lines # Line after last line for current file.
11554 while $ac_more_lines; do
11555 if test $ac_beg -gt 1; then
11556 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11558 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11560 if test ! -s $tmp/subs.frag; then
11561 ac_more_lines=false
11563 # The purpose of the label and of the branching condition is to
11564 # speed up the sed processing (if there are no `@' at all, there
11565 # is no need to browse any of the substitutions).
11566 # These are the two extra sed commands mentioned above.
11568 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11569 if test -z "$ac_sed_cmds"; then
11570 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11572 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11574 ac_sed_frag=`expr $ac_sed_frag + 1`
11576 ac_end=`expr $ac_end + $ac_max_sed_lines`
11579 if test -z "$ac_sed_cmds"; then
11582 fi # test -n "$CONFIG_FILES"
11585 cat >>$CONFIG_STATUS <<\_ACEOF
11586 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11587 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11589 - | *:- | *:-:* ) # input from stdin
11591 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11592 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11593 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11594 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11595 * ) ac_file_in=$ac_file.in ;;
11598 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11599 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11600 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11601 X"$ac_file" : 'X\(//\)[^/]' \| \
11602 X"$ac_file" : 'X\(//\)$' \| \
11603 X"$ac_file" : 'X\(/\)' \| \
11604 . : '\(.\)' 2>/dev/null ||
11606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11608 /^X\(\/\/\)$/{ s//\1/; q; }
11609 /^X\(\/\).*/{ s//\1/; q; }
11611 { if $as_mkdir_p; then
11616 while test ! -d "$as_dir"; do
11617 as_dirs="$as_dir $as_dirs"
11618 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11619 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11620 X"$as_dir" : 'X\(//\)[^/]' \| \
11621 X"$as_dir" : 'X\(//\)$' \| \
11622 X"$as_dir" : 'X\(/\)' \| \
11623 . : '\(.\)' 2>/dev/null ||
11625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11626 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11627 /^X\(\/\/\)$/{ s//\1/; q; }
11628 /^X\(\/\).*/{ s//\1/; q; }
11631 test ! -n "$as_dirs" || mkdir $as_dirs
11632 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11633 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11634 { (exit 1); exit 1; }; }; }
11638 if test "$ac_dir" != .; then
11639 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11640 # A "../" for each directory in $ac_dir_suffix.
11641 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11643 ac_dir_suffix= ac_top_builddir=
11647 .) # No --srcdir option. We are building in place.
11649 if test -z "$ac_top_builddir"; then
11652 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11654 [\\/]* | ?:[\\/]* ) # Absolute path.
11655 ac_srcdir=$srcdir$ac_dir_suffix;
11656 ac_top_srcdir=$srcdir ;;
11657 *) # Relative path.
11658 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11659 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11662 .) ac_abs_builddir=$ac_builddir;;
11664 case $ac_builddir in
11665 .) ac_abs_builddir="$ac_dir";;
11666 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
11667 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
11671 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11673 case ${ac_top_builddir}. in
11674 .) ac_abs_top_builddir="$ac_dir";;
11675 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11676 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
11680 .) ac_abs_srcdir=$ac_srcdir;;
11683 .) ac_abs_srcdir="$ac_dir";;
11684 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11685 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
11689 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11691 case $ac_top_srcdir in
11692 .) ac_abs_top_srcdir="$ac_dir";;
11693 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11694 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
11700 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11701 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11704 if test x"$ac_file" != x-; then
11705 { echo "$as_me:$LINENO: creating $ac_file" >&5
11706 echo "$as_me: creating $ac_file" >&6;}
11709 # Let's still pretend it is `configure' which instantiates (i.e., don't
11710 # use $as_me), people would be surprised to read:
11711 # /* config.h. Generated by config.status. */
11712 if test x"$ac_file" = x-; then
11715 configure_input="$ac_file. "
11717 configure_input=$configure_input"Generated from `echo $ac_file_in |
11718 sed 's,.*/,,'` by configure."
11720 # First look for the input files in the build tree, otherwise in the
11722 ac_file_inputs=`IFS=:
11723 for f in $ac_file_in; do
11725 -) echo $tmp/stdin ;;
11727 # Absolute (can't be DOS-style, as IFS=:)
11728 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11729 echo "$as_me: error: cannot find input file: $f" >&2;}
11730 { (exit 1); exit 1; }; }
11733 if test -f "$f"; then
11736 elif test -f "$srcdir/$f"; then
11741 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11742 echo "$as_me: error: cannot find input file: $f" >&2;}
11743 { (exit 1); exit 1; }; }
11746 done` || { (exit 1); exit 1; }
11748 cat >>$CONFIG_STATUS <<_ACEOF
11752 cat >>$CONFIG_STATUS <<\_ACEOF
11754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11755 s,@configure_input@,$configure_input,;t t
11756 s,@srcdir@,$ac_srcdir,;t t
11757 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11758 s,@top_srcdir@,$ac_top_srcdir,;t t
11759 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11760 s,@builddir@,$ac_builddir,;t t
11761 s,@abs_builddir@,$ac_abs_builddir,;t t
11762 s,@top_builddir@,$ac_top_builddir,;t t
11763 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11764 s,@INSTALL@,$ac_INSTALL,;t t
11765 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11767 if test x"$ac_file" != x-; then
11768 mv $tmp/out $ac_file
11776 cat >>$CONFIG_STATUS <<\_ACEOF
11779 # CONFIG_HEADER section.
11782 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11783 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11785 # ac_d sets the value in "#define NAME VALUE" lines.
11786 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11787 ac_dB='[ ].*$,\1#\2'
11790 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11791 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11792 ac_uB='$,\1#\2define\3'
11796 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11799 - | *:- | *:-:* ) # input from stdin
11801 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11802 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11803 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11804 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11805 * ) ac_file_in=$ac_file.in ;;
11808 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11809 echo "$as_me: creating $ac_file" >&6;}
11811 # First look for the input files in the build tree, otherwise in the
11813 ac_file_inputs=`IFS=:
11814 for f in $ac_file_in; do
11816 -) echo $tmp/stdin ;;
11818 # Absolute (can't be DOS-style, as IFS=:)
11819 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11820 echo "$as_me: error: cannot find input file: $f" >&2;}
11821 { (exit 1); exit 1; }; }
11822 # Do quote $f, to prevent DOS paths from being IFS'd.
11825 if test -f "$f"; then
11828 elif test -f "$srcdir/$f"; then
11833 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11834 echo "$as_me: error: cannot find input file: $f" >&2;}
11835 { (exit 1); exit 1; }; }
11838 done` || { (exit 1); exit 1; }
11839 # Remove the trailing spaces.
11840 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11844 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11845 # `conftest.undefs', that substitutes the proper values into
11846 # config.h.in to produce config.h. The first handles `#define'
11847 # templates, and the second `#undef' templates.
11848 # And first: Protect against being on the right side of a sed subst in
11849 # config.status. Protect against being in an unquoted here document
11850 # in config.status.
11851 rm -f conftest.defines conftest.undefs
11852 # Using a here document instead of a string reduces the quoting nightmare.
11853 # Putting comments in sed scripts is not portable.
11855 # `end' is used to avoid that the second main sed command (meant for
11856 # 0-ary CPP macros) applies to n-ary macro definitions.
11857 # See the Autoconf documentation for `clear'.
11858 cat >confdef2sed.sed <<\_ACEOF
11863 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11865 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11868 # If some macros were called several times there might be several times
11869 # the same #defines, which is useless. Nevertheless, we may not want to
11870 # sort them, since we want the *last* AC-DEFINE to be honored.
11871 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11872 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11873 rm -f confdef2sed.sed
11875 # This sed command replaces #undef with comments. This is necessary, for
11876 # example, in the case of _POSIX_SOURCE, which is predefined and required
11877 # on some systems where configure will not decide to define it.
11878 cat >>conftest.undefs <<\_ACEOF
11879 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11882 # Break up conftest.defines because some shells have a limit on the size
11883 # of here documents, and old seds have small limits too (100 cmds).
11884 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11885 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11886 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11887 echo ' :' >>$CONFIG_STATUS
11888 rm -f conftest.tail
11889 while grep . conftest.defines >/dev/null
11891 # Write a limited-size here document to $tmp/defines.sed.
11892 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11893 # Speed up: don't consider the non `#define' lines.
11894 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11895 # Work around the forget-to-reset-the-flag bug.
11896 echo 't clr' >>$CONFIG_STATUS
11897 echo ': clr' >>$CONFIG_STATUS
11898 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11900 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11902 mv $tmp/out $tmp/in
11904 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11905 rm -f conftest.defines
11906 mv conftest.tail conftest.defines
11908 rm -f conftest.defines
11909 echo ' fi # grep' >>$CONFIG_STATUS
11910 echo >>$CONFIG_STATUS
11912 # Break up conftest.undefs because some shells have a limit on the size
11913 # of here documents, and old seds have small limits too (100 cmds).
11914 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11915 rm -f conftest.tail
11916 while grep . conftest.undefs >/dev/null
11918 # Write a limited-size here document to $tmp/undefs.sed.
11919 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11920 # Speed up: don't consider the non `#undef'
11921 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11922 # Work around the forget-to-reset-the-flag bug.
11923 echo 't clr' >>$CONFIG_STATUS
11924 echo ': clr' >>$CONFIG_STATUS
11925 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11927 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11929 mv $tmp/out $tmp/in
11931 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11932 rm -f conftest.undefs
11933 mv conftest.tail conftest.undefs
11935 rm -f conftest.undefs
11937 cat >>$CONFIG_STATUS <<\_ACEOF
11938 # Let's still pretend it is `configure' which instantiates (i.e., don't
11939 # use $as_me), people would be surprised to read:
11940 # /* config.h. Generated by config.status. */
11941 if test x"$ac_file" = x-; then
11942 echo "/* Generated by configure. */" >$tmp/config.h
11944 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11946 cat $tmp/in >>$tmp/config.h
11948 if test x"$ac_file" != x-; then
11949 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11950 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11951 echo "$as_me: $ac_file is unchanged" >&6;}
11953 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11955 X"$ac_file" : 'X\(//\)[^/]' \| \
11956 X"$ac_file" : 'X\(//\)$' \| \
11957 X"$ac_file" : 'X\(/\)' \| \
11958 . : '\(.\)' 2>/dev/null ||
11960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11962 /^X\(\/\/\)$/{ s//\1/; q; }
11963 /^X\(\/\).*/{ s//\1/; q; }
11965 { if $as_mkdir_p; then
11970 while test ! -d "$as_dir"; do
11971 as_dirs="$as_dir $as_dirs"
11972 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11974 X"$as_dir" : 'X\(//\)[^/]' \| \
11975 X"$as_dir" : 'X\(//\)$' \| \
11976 X"$as_dir" : 'X\(/\)' \| \
11977 . : '\(.\)' 2>/dev/null ||
11979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11981 /^X\(\/\/\)$/{ s//\1/; q; }
11982 /^X\(\/\).*/{ s//\1/; q; }
11985 test ! -n "$as_dirs" || mkdir $as_dirs
11986 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11987 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11988 { (exit 1); exit 1; }; }; }
11991 mv $tmp/config.h $ac_file
11995 rm -f $tmp/config.h
12000 cat >>$CONFIG_STATUS <<\_ACEOF
12002 { (exit 0); exit 0; }
12004 chmod +x $CONFIG_STATUS
12005 ac_clean_files=$ac_clean_files_save
12008 # configure is writing to config.log, and then calls config.status.
12009 # config.status does its own redirection, appending to config.log.
12010 # Unfortunately, on DOS this fails, as config.log is still kept open
12011 # by configure, so config.status won't be able to write to it; its
12012 # output is simply discarded. So we exec the FD to /dev/null,
12013 # effectively closing config.log, so it can be properly (re)opened and
12014 # appended to by config.status. When coming back to configure, we
12015 # need to make the FD available again.
12016 if test "$no_create" != yes; then
12018 ac_config_status_args=
12019 test "$silent" = yes &&
12020 ac_config_status_args="$ac_config_status_args --quiet"
12022 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12024 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12025 # would make configure fail if this is the last instruction.
12026 $ac_cs_success || { (exit 1); exit 1; }
12030 if test "x${srcdir}" != "x."; then
12031 echo "Warning: --srcdir is not supported"