2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
244 # Find the correct PATH separator. Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
252 PATH_SEPARATOR=$lt_cv_sys_path_separator
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Remove one level of quotation (which was required for Make).
262 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
267 if test "X$1" = X--no-reexec; then
268 # Discard the --no-reexec flag, and continue.
270 elif test "X$1" = X--fallback-echo; then
271 # Avoid inline document here, it may be left over
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274 # Yippee, $echo works!
277 # Restart under the correct shell.
278 exec $SHELL "$0" --no-reexec ${1+"$@"}
281 if test "X$1" = X--fallback-echo; then
282 # used as fallback echo
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300 echo_test_string="`eval $cmd`" &&
301 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310 test "X$echo_testing_string" = "X$echo_test_string"; then
313 # The Solaris, AIX, and Digital Unix default echo programs unquote
314 # backslashes. This makes it impossible to quote backslashes using
315 # echo "$something" | sed 's/\\/\\\\/g'
317 # So, first we look for a working echo in the user's PATH.
319 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320 for dir in $PATH /usr/ucb; do
321 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
331 if test "X$echo" = Xecho; then
332 # We didn't find a better echo, so look for alternatives.
333 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335 test "X$echo_testing_string" = "X$echo_test_string"; then
336 # This shell has a builtin print -r that does the trick.
338 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339 test "X$CONFIG_SHELL" != X/bin/ksh; then
340 # If we have ksh, try running configure again with it.
341 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342 export ORIGINAL_CONFIG_SHELL
343 CONFIG_SHELL=/bin/ksh
345 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
349 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
354 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360 SHELL="$CONFIG_SHELL"
362 echo="$CONFIG_SHELL $0 --fallback-echo"
363 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364 test "X$echo_testing_string" = 'X\t' &&
365 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366 test "X$echo_testing_string" = "X$echo_test_string"; then
367 echo="$CONFIG_SHELL $0 --fallback-echo"
369 # maybe with a smaller string...
372 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
380 if test "$prev" != 'sed 50q "$0"'; then
381 echo_test_string=`eval $prev`
382 export echo_test_string
383 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385 # Oops. We lost completely, so just stick with echo.
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
419 SHELL=${CONFIG_SHELL-/bin/sh}
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete. It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
426 # Identity of this package.
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
438 # include <sys/types.h>
441 # include <sys/stat.h>
452 # if !STDC_HEADERS && HAVE_MEMORY_H
458 # include <strings.h>
461 # include <inttypes.h>
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHARED CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AREXT AR SLEXT target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H FREETYPE_CONFIG lame_objects AVIFILE_CONFIG VIDEO_LIBS VIDEO_CFLAGS USE_GZIP PYTHON_LIB PYTHON_INCLUDES JPEG2SWF GIF2SWF PNG2SWF LIBOBJS LTLIBOBJS'
474 # Initialize some variables set by options.
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
486 program_transform_name=s,x,x,
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524 # Accept the important Cygnus configure options, so we can diagnose typos.
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build_alias ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build_alias=$ac_optarg ;;
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543 cache_file=$ac_optarg ;;
546 cache_file=config.cache ;;
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552 datadir=$ac_optarg ;;
554 -disable-* | --disable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 eval "enable_$ac_feature=no" ;;
563 -enable-* | --enable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574 eval "enable_$ac_feature='$ac_optarg'" ;;
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
583 exec_prefix=$ac_optarg ;;
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
589 -help | --help | --hel | --he | -h)
591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592 ac_init_help=recursive ;;
593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594 ac_init_help=short ;;
596 -host | --host | --hos | --ho)
597 ac_prev=host_alias ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host_alias=$ac_optarg ;;
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
606 includedir=$ac_optarg ;;
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
613 -libdir | --libdir | --libdi | --libd)
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir=$ac_optarg ;;
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632 localstatedir=$ac_optarg ;;
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
640 # Obsolete; use --without-fp.
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c | -n)
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658 oldincludedir=$ac_optarg ;;
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670 program_prefix=$ac_optarg ;;
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677 program_suffix=$ac_optarg ;;
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
694 program_transform_name=$ac_optarg ;;
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704 sbindir=$ac_optarg ;;
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715 sharedstatedir=$ac_optarg ;;
717 -site | --site | --sit)
719 -site=* | --site=* | --sit=*)
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732 sysconfdir=$ac_optarg ;;
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target_alias ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target_alias=$ac_optarg ;;
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
742 -version | --version | --versio | --versi | --vers | -V)
746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756 eval "with_$ac_package='$ac_optarg'" ;;
758 -without-* | --without-*)
759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760 # Reject names that are not valid shell variable names.
761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package | sed 's/-/_/g'`
765 eval "with_$ac_package=no" ;;
768 # Obsolete; use --with-x.
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes=$ac_optarg ;;
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries=$ac_optarg ;;
785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795 { (exit 1); exit 1; }; }
796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797 eval "$ac_envvar='$ac_optarg'"
801 # FIXME: should be removed in autoconf 3.0.
802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811 if test -n "$ac_prev"; then
812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
820 eval ac_val=$`echo $ac_var`
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830 localstatedir libdir includedir oldincludedir infodir mandir
832 eval ac_val=$`echo $ac_var`
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849 if test "x$build_alias" = x; then
850 cross_compiling=maybe
851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852 If a cross compiler is detected then cross compile mode will be used." >&2
853 elif test "x$build_alias" != "x$host_alias"; then
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
861 test "$silent" = yes && exec 6>/dev/null
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866 ac_srcdir_defaulted=yes
867 # Try the directory containing this script, then its parent.
868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
881 if test ! -r $srcdir/$ac_unique_file; then
885 ac_srcdir_defaulted=no
887 if test ! -r $srcdir/$ac_unique_file; then
888 if test "$ac_srcdir_defaulted" = yes; then
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890 { (exit 1); exit 1; }; }
892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893 { (exit 1); exit 1; }; }
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898 { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
942 # Report the --help message.
944 if test "$ac_init_help" = "long"; then
945 # Omit some internal or obsolete options to make the list less imposing.
946 # This message is too long to be a string in the A/UX 3.1 sh.
948 \`configure' configures this package to adapt to many kinds of systems.
950 Usage: $0 [OPTION]... [VAR=VALUE]...
952 To assign environment variables (e.g., CC, CFLAGS...), specify them as
953 VAR=VALUE. See below for descriptions of some of the useful variables.
955 Defaults for the options are specified in brackets.
958 -h, --help display this help and exit
959 --help=short display options specific to this package
960 --help=recursive display the short help of all the included packages
961 -V, --version display version information and exit
962 -q, --quiet, --silent do not print \`checking...' messages
963 --cache-file=FILE cache test results in FILE [disabled]
964 -C, --config-cache alias for \`--cache-file=config.cache'
965 -n, --no-create do not create output files
966 --srcdir=DIR find the sources in DIR [configure dir or \`..']
971 Installation directories:
972 --prefix=PREFIX install architecture-independent files in PREFIX
974 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
977 By default, \`make install' will install all the files in
978 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
979 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980 for instance \`--prefix=\$HOME'.
982 For better control, use the options below.
984 Fine tuning of the installation directories:
985 --bindir=DIR user executables [EPREFIX/bin]
986 --sbindir=DIR system admin executables [EPREFIX/sbin]
987 --libexecdir=DIR program executables [EPREFIX/libexec]
988 --datadir=DIR read-only architecture-independent data [PREFIX/share]
989 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
990 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
991 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
992 --libdir=DIR object code libraries [EPREFIX/lib]
993 --includedir=DIR C header files [PREFIX/include]
994 --oldincludedir=DIR C header files for non-gcc [/usr/include]
995 --infodir=DIR info documentation [PREFIX/info]
996 --mandir=DIR man documentation [PREFIX/man]
1002 --program-prefix=PREFIX prepend PREFIX to installed program names
1003 --program-suffix=SUFFIX append SUFFIX to installed program names
1004 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1007 --build=BUILD configure for building on BUILD [guessed]
1008 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1009 --target=TARGET configure for building compilers for TARGET [HOST]
1013 if test -n "$ac_init_help"; then
1018 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1019 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1020 --enable-checkmem turn on ccmalloc debugging
1021 --enable-debug turn on debugging
1022 --enable-profiling turn on profiling
1023 --enable-warnings turn on compiler warnings
1024 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1025 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1026 --enable-shared=PKGS build shared libraries default=yes
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1032 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1033 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1034 --with-gnu-ld assume the C compiler uses GNU ld default=no
1035 --with-pic try to use only PIC/non-PIC objects default=use both
1037 Some influential environment variables:
1038 CC C compiler command
1039 CFLAGS C compiler flags
1040 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1041 nonstandard directory <lib dir>
1042 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1043 headers in a nonstandard directory <include dir>
1044 CXX C++ compiler command
1045 CXXFLAGS C++ compiler flags
1048 Use these variables to override the choices made by `configure' or to help
1049 it to find libraries and programs with nonstandard names/locations.
1054 if test "$ac_init_help" = "recursive"; then
1055 # If there are subdirs, report their specific --help.
1057 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058 test -d $ac_dir || continue
1061 if test "$ac_dir" != .; then
1062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063 # A "../" for each directory in $ac_dir_suffix.
1064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1066 ac_dir_suffix= ac_top_builddir=
1070 .) # No --srcdir option. We are building in place.
1072 if test -z "$ac_top_builddir"; then
1075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1077 [\\/]* | ?:[\\/]* ) # Absolute path.
1078 ac_srcdir=$srcdir$ac_dir_suffix;
1079 ac_top_srcdir=$srcdir ;;
1081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1085 # Do not use `cd foo && pwd` to compute absolute paths, because
1086 # the directories may not exist.
1088 .) ac_abs_builddir="$ac_dir";;
1091 .) ac_abs_builddir=`pwd`;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1096 case $ac_abs_builddir in
1097 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1099 case ${ac_top_builddir}. in
1100 .) ac_abs_top_builddir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1105 case $ac_abs_builddir in
1106 .) ac_abs_srcdir=$ac_srcdir;;
1109 .) ac_abs_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1117 case $ac_top_srcdir in
1118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1125 # Check for guested configure; otherwise get Cygnus style configure.
1126 if test -f $ac_srcdir/configure.gnu; then
1128 $SHELL $ac_srcdir/configure.gnu --help=recursive
1129 elif test -f $ac_srcdir/configure; then
1131 $SHELL $ac_srcdir/configure --help=recursive
1132 elif test -f $ac_srcdir/configure.ac ||
1133 test -f $ac_srcdir/configure.in; then
1135 $ac_configure --help
1137 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1143 test -n "$ac_init_help" && exit 0
1144 if $ac_init_version; then
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1158 It was created by $as_me, which was
1159 generated by GNU Autoconf 2.59. Invocation command line was
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1218 ac_must_keep_next=false
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1247 -* ) ac_must_keep_next=true ;;
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log. We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1276 # The following way of writing the cache mishandles newlines in values,
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1299 for ac_var in $ac_subst_vars
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1306 if test -n "$ac_subst_files"; then
1313 for ac_var in $ac_subst_files
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1321 if test -s confdefs.h; then
1328 sed "/^$/d" confdefs.h | sort
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1339 for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1349 # Predefined preprocessor variables.
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1385 for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1394 if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1411 # Check that the precious variables saved in the cache have kept the same
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
1432 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1433 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1434 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1435 echo "$as_me: former value: $ac_old_val" >&2;}
1436 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1437 echo "$as_me: current value: $ac_new_val" >&2;}
1438 ac_cache_corrupted=:
1441 # Pass precious variables to config.status.
1442 if test "$ac_new_set" = set; then
1444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 *) ac_arg=$ac_var=$ac_new_val ;;
1448 case " $ac_configure_args " in
1449 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1450 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1454 if $ac_cache_corrupted; then
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1488 # Check whether --enable-checkmem or --disable-checkmem was given.
1489 if test "${enable_checkmem+set}" = set; then
1490 enableval="$enable_checkmem"
1493 # Check whether --enable-debug or --disable-debug was given.
1494 if test "${enable_debug+set}" = set; then
1495 enableval="$enable_debug"
1498 # Check whether --enable-profiling or --disable-profiling was given.
1499 if test "${enable_profiling+set}" = set; then
1500 enableval="$enable_profiling"
1503 # Check whether --enable-warnings or --disable-warnings was given.
1504 if test "${enable_warnings+set}" = set; then
1505 enableval="$enable_warnings"
1506 ENABLE_WARNINGS=true
1508 # Check whether --enable-optimizations or --disable-optimizations was given.
1509 if test "${enable_optimizations+set}" = set; then
1510 enableval="$enable_optimizations"
1513 # Check whether --enable-lame or --disable-lame was given.
1514 if test "${enable_lame+set}" = set; then
1515 enableval="$enable_lame"
1520 VERSION=2005-01-24-2220
1523 # ------------------------------------------------------------------
1525 if test "x${srcdir}" != "x."; then
1526 echo "--srcdir is not supported"
1530 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1531 if test "x$ENABLE_WARNINGS" '!=' "x";then
1532 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1535 if test "x$CHECKMEM" '!=' "x";then
1538 if test "x$PROFILING" '!=' "x";then
1541 if test "x$DEBUG" '!=' "x";then
1542 if test "x$PROFILING" = "x";then
1543 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1544 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1546 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1547 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1548 LDFLAGS="-g -pg $LIBS"
1550 else if test "x$OPTIMIZE" '!=' "x"; then
1551 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1552 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1554 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1555 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1559 #if test "x$OLDGCC" '!=' "x";then
1560 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1561 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1562 # CFLAGS="$CFLAGS -ansi -pendantic"
1563 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1566 export PACKAGE VERSION CFLAGS CXXFLAGS
1570 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1571 if test -f $ac_dir/install-sh; then
1573 ac_install_sh="$ac_aux_dir/install-sh -c"
1575 elif test -f $ac_dir/install.sh; then
1577 ac_install_sh="$ac_aux_dir/install.sh -c"
1579 elif test -f $ac_dir/shtool; then
1581 ac_install_sh="$ac_aux_dir/shtool install -c"
1585 if test -z "$ac_aux_dir"; then
1586 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1587 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1588 { (exit 1); exit 1; }; }
1590 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1591 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1592 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1594 # Make sure we can run config.sub.
1595 $ac_config_sub sun4 >/dev/null 2>&1 ||
1596 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1597 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1598 { (exit 1); exit 1; }; }
1600 echo "$as_me:$LINENO: checking build system type" >&5
1601 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1602 if test "${ac_cv_build+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 ac_cv_build_alias=$build_alias
1606 test -z "$ac_cv_build_alias" &&
1607 ac_cv_build_alias=`$ac_config_guess`
1608 test -z "$ac_cv_build_alias" &&
1609 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1610 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1611 { (exit 1); exit 1; }; }
1612 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1613 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1614 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1615 { (exit 1); exit 1; }; }
1618 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1619 echo "${ECHO_T}$ac_cv_build" >&6
1621 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626 echo "$as_me:$LINENO: checking host system type" >&5
1627 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1628 if test "${ac_cv_host+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 ac_cv_host_alias=$host_alias
1632 test -z "$ac_cv_host_alias" &&
1633 ac_cv_host_alias=$ac_cv_build_alias
1634 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1640 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1641 echo "${ECHO_T}$ac_cv_host" >&6
1643 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654 CFLAGS="$CFLAGS -fno-rtti"
1655 CXXFLAGS="$CXXFLAGS -fno-rtti"
1663 ac_cpp='$CPP $CPPFLAGS'
1664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1667 if test -n "$ac_tool_prefix"; then
1668 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1669 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1670 echo "$as_me:$LINENO: checking for $ac_word" >&5
1671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672 if test "${ac_cv_prog_CC+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 if test -n "$CC"; then
1676 ac_cv_prog_CC="$CC" # Let the user override the test.
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 test -z "$as_dir" && as_dir=.
1683 for ac_exec_ext in '' $ac_executable_extensions; do
1684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695 if test -n "$CC"; then
1696 echo "$as_me:$LINENO: result: $CC" >&5
1697 echo "${ECHO_T}$CC" >&6
1699 echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1704 if test -z "$ac_cv_prog_CC"; then
1706 # Extract the first word of "gcc", so it can be a program name with args.
1707 set dummy gcc; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 if test -n "$ac_ct_CC"; then
1714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 ac_cv_prog_ac_ct_CC="gcc"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1733 if test -n "$ac_ct_CC"; then
1734 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1735 echo "${ECHO_T}$ac_ct_CC" >&6
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1746 if test -z "$CC"; then
1747 if test -n "$ac_tool_prefix"; then
1748 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1749 set dummy ${ac_tool_prefix}cc; ac_word=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC="$CC" # Let the user override the test.
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 test -z "$as_dir" && as_dir=.
1763 for ac_exec_ext in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_CC="${ac_tool_prefix}cc"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 if test -n "$CC"; then
1776 echo "$as_me:$LINENO: result: $CC" >&5
1777 echo "${ECHO_T}$CC" >&6
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1784 if test -z "$ac_cv_prog_CC"; then
1786 # Extract the first word of "cc", so it can be a program name with args.
1787 set dummy cc; ac_word=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 if test -n "$ac_ct_CC"; then
1794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_ac_ct_CC="cc"
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813 if test -n "$ac_ct_CC"; then
1814 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815 echo "${ECHO_T}$ac_ct_CC" >&6
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1827 if test -z "$CC"; then
1828 # Extract the first word of "cc", so it can be a program name with args.
1829 set dummy cc; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC="$CC" # Let the user override the test.
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1847 ac_prog_rejected=yes
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 if test $ac_prog_rejected = yes; then
1858 # We found a bogon in the path, so make sure we never use it.
1859 set dummy $ac_cv_prog_CC
1861 if test $# != 0; then
1862 # We chose a different compiler from the bogus one.
1863 # However, it has the same basename, so the bogon will be chosen
1864 # first if we set CC to just the basename; use the full file name.
1866 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1872 if test -n "$CC"; then
1873 echo "$as_me:$LINENO: result: $CC" >&5
1874 echo "${ECHO_T}$CC" >&6
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1881 if test -z "$CC"; then
1882 if test -n "$ac_tool_prefix"; then
1885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_CC+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 if test -n "$CC"; then
1893 ac_cv_prog_CC="$CC" # Let the user override the test.
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 if test -n "$CC"; then
1913 echo "$as_me:$LINENO: result: $CC" >&5
1914 echo "${ECHO_T}$CC" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1920 test -n "$CC" && break
1923 if test -z "$CC"; then
1927 # Extract the first word of "$ac_prog", so it can be a program name with args.
1928 set dummy $ac_prog; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 if test -n "$ac_ct_CC"; then
1935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_prog_ac_ct_CC="$ac_prog"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1954 if test -n "$ac_ct_CC"; then
1955 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1956 echo "${ECHO_T}$ac_ct_CC" >&6
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1962 test -n "$ac_ct_CC" && break
1971 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1972 See \`config.log' for more details." >&5
1973 echo "$as_me: error: no acceptable C compiler found in \$PATH
1974 See \`config.log' for more details." >&2;}
1975 { (exit 1); exit 1; }; }
1977 # Provide some information about the compiler.
1978 echo "$as_me:$LINENO:" \
1979 "checking for C compiler version" >&5
1980 ac_compiler=`set X $ac_compile; echo $2`
1981 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1982 (eval $ac_compiler --version </dev/null >&5) 2>&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }
1986 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1987 (eval $ac_compiler -v </dev/null >&5) 2>&5
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); }
1991 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1992 (eval $ac_compiler -V </dev/null >&5) 2>&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }
1997 cat >conftest.$ac_ext <<_ACEOF
2000 cat confdefs.h >>conftest.$ac_ext
2001 cat >>conftest.$ac_ext <<_ACEOF
2002 /* end confdefs.h. */
2012 ac_clean_files_save=$ac_clean_files
2013 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2014 # Try to create an executable without -o first, disregard a.out.
2015 # It will help us diagnose broken compilers, and finding out an intuition
2017 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2018 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2019 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2020 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2021 (eval $ac_link_default) 2>&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; then
2025 # Find the output, starting from the most likely. This scheme is
2026 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2029 # Be careful to initialize this variable, since it used to be cached.
2030 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2032 # b.out is created by i960 compilers.
2033 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2035 test -f "$ac_file" || continue
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2040 # This is the source file.
2043 # We found the default executable, but exeext='' is most
2047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048 # FIXME: I believe we export ac_cv_exeext for Libtool,
2049 # but it would be cool to find out if it's true. Does anybody
2050 # maintain Libtool? --akim.
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2061 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: C compiler cannot create executables
2064 See \`config.log' for more details." >&2;}
2065 { (exit 77); exit 77; }; }
2068 ac_exeext=$ac_cv_exeext
2069 echo "$as_me:$LINENO: result: $ac_file" >&5
2070 echo "${ECHO_T}$ac_file" >&6
2072 # Check the compiler produces executables we can run. If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2075 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2076 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077 # If not cross compiling, check that we can run a simple program.
2078 if test "$cross_compiling" != yes; then
2079 if { ac_try='./$ac_file'
2080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; }; then
2087 if test "$cross_compiling" = maybe; then
2090 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2091 If you meant to cross compile, use \`--host'.
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: cannot run C compiled programs.
2094 If you meant to cross compile, use \`--host'.
2095 See \`config.log' for more details." >&2;}
2096 { (exit 1); exit 1; }; }
2100 echo "$as_me:$LINENO: result: yes" >&5
2101 echo "${ECHO_T}yes" >&6
2103 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2104 ac_clean_files=$ac_clean_files_save
2105 # Check the compiler produces executables we can run. If not, either
2106 # the compiler is broken, or we cross compile.
2107 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2108 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2109 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2110 echo "${ECHO_T}$cross_compiling" >&6
2112 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2113 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2115 (eval $ac_link) 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2120 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2121 # work properly (i.e., refer to `conftest.exe'), while it won't with
2123 for ac_file in conftest.exe conftest conftest.*; do
2124 test -f "$ac_file" || continue
2126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2134 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }
2141 rm -f conftest$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143 echo "${ECHO_T}$ac_cv_exeext" >&6
2145 rm -f conftest.$ac_ext
2146 EXEEXT=$ac_cv_exeext
2148 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2149 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2150 if test "${ac_cv_objext+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 cat >conftest.$ac_ext <<_ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2168 rm -f conftest.o conftest.obj
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; then
2174 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2177 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2185 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2188 See \`config.log' for more details." >&2;}
2189 { (exit 1); exit 1; }; }
2192 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2194 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2195 echo "${ECHO_T}$ac_cv_objext" >&6
2196 OBJEXT=$ac_cv_objext
2198 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2199 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2200 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 cat >conftest.$ac_ext <<_ACEOF
2206 cat confdefs.h >>conftest.$ac_ext
2207 cat >>conftest.$ac_ext <<_ACEOF
2208 /* end confdefs.h. */
2221 rm -f conftest.$ac_objext
2222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223 (eval $ac_compile) 2>conftest.er1
2225 grep -v '^ *+' conftest.er1 >conftest.err
2227 cat conftest.err >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 { ac_try='test -z "$ac_c_werror_flag"
2231 || test ! -s conftest.err'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; } &&
2237 { ac_try='test -s conftest.$ac_objext'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2245 echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2251 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2254 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2255 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2256 GCC=`test $ac_compiler_gnu = yes && echo yes`
2257 ac_test_CFLAGS=${CFLAGS+set}
2258 ac_save_CFLAGS=$CFLAGS
2260 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2261 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2262 if test "${ac_cv_prog_cc_g+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 cat >conftest.$ac_ext <<_ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h. */
2280 rm -f conftest.$ac_objext
2281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2282 (eval $ac_compile) 2>conftest.er1
2284 grep -v '^ *+' conftest.er1 >conftest.err
2286 cat conftest.err >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -z "$ac_c_werror_flag"
2290 || test ! -s conftest.err'
2291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; } &&
2296 { ac_try='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2304 echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2311 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2312 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2313 if test "$ac_test_CFLAGS" = set; then
2314 CFLAGS=$ac_save_CFLAGS
2315 elif test $ac_cv_prog_cc_g = yes; then
2316 if test "$GCC" = yes; then
2322 if test "$GCC" = yes; then
2328 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2329 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2330 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 ac_cv_prog_cc_stdc=no
2335 cat >conftest.$ac_ext <<_ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2343 #include <sys/types.h>
2344 #include <sys/stat.h>
2345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2346 struct buf { int x; };
2347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2348 static char *e (p, i)
2354 static char *f (char * (*g) (char **, int), char **p, ...)
2359 s = g (p, va_arg (v,int));
2364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2365 function prototypes and stuff, but not '\xHH' hex character constants.
2366 These don't provoke an error unfortunately, instead are silently treated
2367 as 'x'. The following induces an error, until -std1 is added to get
2368 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2369 array size at least. It's necessary to write '\x00'==0 to get something
2370 that's true only with -std1. */
2371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2373 int test (int i, double x);
2374 struct s1 {int (*f) (int a);};
2375 struct s2 {int (*f) (double a);};
2376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2382 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2387 # Don't try gcc -ansi; that turns off useful extensions and
2388 # breaks some systems' header files.
2389 # AIX -qlanglvl=ansi
2390 # Ultrix and OSF/1 -std1
2391 # HP-UX 10.20 and later -Ae
2392 # HP-UX older versions -Aa -D_HPUX_SOURCE
2393 # SVR4 -Xc -D__EXTENSIONS__
2394 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2396 CC="$ac_save_CC $ac_arg"
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2401 grep -v '^ *+' conftest.er1 >conftest.err
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try='test -z "$ac_c_werror_flag"
2407 || test ! -s conftest.err'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; } &&
2413 { ac_try='test -s conftest.$ac_objext'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 ac_cv_prog_cc_stdc=$ac_arg
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2426 rm -f conftest.err conftest.$ac_objext
2428 rm -f conftest.$ac_ext conftest.$ac_objext
2433 case "x$ac_cv_prog_cc_stdc" in
2435 echo "$as_me:$LINENO: result: none needed" >&5
2436 echo "${ECHO_T}none needed" >&6 ;;
2438 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2439 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2440 CC="$CC $ac_cv_prog_cc_stdc" ;;
2443 # Some people use a C++ compiler to compile C. Since we use `exit',
2444 # in C++ we need to declare it. In case someone uses the same compiler
2445 # for both compiling C and C++ we need to have the C++ compiler decide
2446 # the declaration of exit, since it's the most demanding environment.
2447 cat >conftest.$ac_ext <<_ACEOF
2452 rm -f conftest.$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>conftest.er1
2456 grep -v '^ *+' conftest.er1 >conftest.err
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -z "$ac_c_werror_flag"
2462 || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 for ac_declaration in \
2476 'extern "C" void std::exit (int) throw (); using std::exit;' \
2477 'extern "C" void std::exit (int); using std::exit;' \
2478 'extern "C" void exit (int) throw ();' \
2479 'extern "C" void exit (int);' \
2482 cat >conftest.$ac_ext <<_ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2502 grep -v '^ *+' conftest.er1 >conftest.err
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528 cat >conftest.$ac_ext <<_ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>conftest.er1
2547 grep -v '^ *+' conftest.er1 >conftest.err
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
2552 { ac_try='test -z "$ac_c_werror_flag"
2553 || test ! -s conftest.err'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest.$ac_objext'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; }; then
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574 if test -n "$ac_declaration"; then
2575 echo '#ifdef __cplusplus' >>confdefs.h
2576 echo $ac_declaration >>confdefs.h
2577 echo '#endif' >>confdefs.h
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_cpp='$CPP $CPPFLAGS'
2588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593 ac_cpp='$CXXCPP $CPPFLAGS'
2594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2597 if test -n "$ac_tool_prefix"; then
2598 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2602 echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2604 if test "${ac_cv_prog_CXX+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 if test -n "$CXX"; then
2608 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 if test -n "$CXX"; then
2628 echo "$as_me:$LINENO: result: $CXX" >&5
2629 echo "${ECHO_T}$CXX" >&6
2631 echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6
2635 test -n "$CXX" && break
2638 if test -z "$CXX"; then
2640 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2642 # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy $ac_prog; ac_word=$2
2644 echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2646 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 if test -n "$ac_ct_CXX"; then
2650 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659 ac_cv_prog_ac_ct_CXX="$ac_prog"
2660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2669 if test -n "$ac_ct_CXX"; then
2670 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2671 echo "${ECHO_T}$ac_ct_CXX" >&6
2673 echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6
2677 test -n "$ac_ct_CXX" && break
2679 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2685 # Provide some information about the compiler.
2686 echo "$as_me:$LINENO:" \
2687 "checking for C++ compiler version" >&5
2688 ac_compiler=`set X $ac_compile; echo $2`
2689 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2690 (eval $ac_compiler --version </dev/null >&5) 2>&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }
2694 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2695 (eval $ac_compiler -v </dev/null >&5) 2>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2700 (eval $ac_compiler -V </dev/null >&5) 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }
2705 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2706 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2707 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 cat >conftest.$ac_ext <<_ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2728 rm -f conftest.$ac_objext
2729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730 (eval $ac_compile) 2>conftest.er1
2732 grep -v '^ *+' conftest.er1 >conftest.err
2734 cat conftest.err >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } &&
2737 { ac_try='test -z "$ac_cxx_werror_flag"
2738 || test ! -s conftest.err'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; } &&
2744 { ac_try='test -s conftest.$ac_objext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2752 echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2758 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2761 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2762 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2763 GXX=`test $ac_compiler_gnu = yes && echo yes`
2764 ac_test_CXXFLAGS=${CXXFLAGS+set}
2765 ac_save_CXXFLAGS=$CXXFLAGS
2767 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2768 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2769 if test "${ac_cv_prog_cxx_g+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 cat >conftest.$ac_ext <<_ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -z "$ac_cxx_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 ac_cv_prog_cxx_g=yes
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2819 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2820 if test "$ac_test_CXXFLAGS" = set; then
2821 CXXFLAGS=$ac_save_CXXFLAGS
2822 elif test $ac_cv_prog_cxx_g = yes; then
2823 if test "$GXX" = yes; then
2829 if test "$GXX" = yes; then
2835 for ac_declaration in \
2837 'extern "C" void std::exit (int) throw (); using std::exit;' \
2838 'extern "C" void std::exit (int); using std::exit;' \
2839 'extern "C" void exit (int) throw ();' \
2840 'extern "C" void exit (int);' \
2843 cat >conftest.$ac_ext <<_ACEOF
2846 cat confdefs.h >>conftest.$ac_ext
2847 cat >>conftest.$ac_ext <<_ACEOF
2848 /* end confdefs.h. */
2859 rm -f conftest.$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>conftest.er1
2863 grep -v '^ *+' conftest.er1 >conftest.err
2865 cat conftest.err >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try='test -z "$ac_cxx_werror_flag"
2869 || test ! -s conftest.err'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; } &&
2875 { ac_try='test -s conftest.$ac_objext'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2883 echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2889 cat >conftest.$ac_ext <<_ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2904 rm -f conftest.$ac_objext
2905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906 (eval $ac_compile) 2>conftest.er1
2908 grep -v '^ *+' conftest.er1 >conftest.err
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try='test -z "$ac_cxx_werror_flag"
2914 || test ! -s conftest.err'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; } &&
2920 { ac_try='test -s conftest.$ac_objext'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; }; then
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2935 if test -n "$ac_declaration"; then
2936 echo '#ifdef __cplusplus' >>confdefs.h
2937 echo $ac_declaration >>confdefs.h
2938 echo '#endif' >>confdefs.h
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 if test "x$CHECKMEM" '!=' "x";then
2952 #unset ac_cv_prog_CC
2953 #unset ac_cv_prog_CXX
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2963 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2964 # On Suns, sometimes $CPP names a directory.
2965 if test -n "$CPP" && test -d "$CPP"; then
2968 if test -z "$CPP"; then
2969 if test "${ac_cv_prog_CPP+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 # Double quotes because CPP needs to be expanded
2973 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2976 for ac_c_preproc_warn_flag in '' yes
2978 # Use a header file that comes with gcc, so configuring glibc
2979 # with a fresh cross-compiler works.
2980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981 # <limits.h> exists even on freestanding compilers.
2982 # On the NeXT, cc -E runs the code through the compiler's parser,
2983 # not just through cpp. "Syntax error" is here to catch this case.
2984 cat >conftest.$ac_ext <<_ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2991 # include <limits.h>
2993 # include <assert.h>
2997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3000 grep -v '^ *+' conftest.er1 >conftest.err
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } >/dev/null; then
3005 if test -s conftest.err; then
3006 ac_cpp_err=$ac_c_preproc_warn_flag
3007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3014 if test -z "$ac_cpp_err"; then
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3020 # Broken: fails on valid input.
3023 rm -f conftest.err conftest.$ac_ext
3025 # OK, works on sane cases. Now check whether non-existent headers
3026 # can be detected and how.
3027 cat >conftest.$ac_ext <<_ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3033 #include <ac_nonexistent.h>
3035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3038 grep -v '^ *+' conftest.er1 >conftest.err
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev/null; then
3043 if test -s conftest.err; then
3044 ac_cpp_err=$ac_c_preproc_warn_flag
3045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3052 if test -z "$ac_cpp_err"; then
3053 # Broken: success on invalid input.
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3059 # Passes both tests.
3063 rm -f conftest.err conftest.$ac_ext
3066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3067 rm -f conftest.err conftest.$ac_ext
3068 if $ac_preproc_ok; then
3080 echo "$as_me:$LINENO: result: $CPP" >&5
3081 echo "${ECHO_T}$CPP" >&6
3083 for ac_c_preproc_warn_flag in '' yes
3085 # Use a header file that comes with gcc, so configuring glibc
3086 # with a fresh cross-compiler works.
3087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3088 # <limits.h> exists even on freestanding compilers.
3089 # On the NeXT, cc -E runs the code through the compiler's parser,
3090 # not just through cpp. "Syntax error" is here to catch this case.
3091 cat >conftest.$ac_ext <<_ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h. */
3098 # include <limits.h>
3100 # include <assert.h>
3104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3107 grep -v '^ *+' conftest.er1 >conftest.err
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } >/dev/null; then
3112 if test -s conftest.err; then
3113 ac_cpp_err=$ac_c_preproc_warn_flag
3114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3121 if test -z "$ac_cpp_err"; then
3124 echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3127 # Broken: fails on valid input.
3130 rm -f conftest.err conftest.$ac_ext
3132 # OK, works on sane cases. Now check whether non-existent headers
3133 # can be detected and how.
3134 cat >conftest.$ac_ext <<_ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3140 #include <ac_nonexistent.h>
3142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } >/dev/null; then
3150 if test -s conftest.err; then
3151 ac_cpp_err=$ac_c_preproc_warn_flag
3152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3159 if test -z "$ac_cpp_err"; then
3160 # Broken: success on invalid input.
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3166 # Passes both tests.
3170 rm -f conftest.err conftest.$ac_ext
3173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3174 rm -f conftest.err conftest.$ac_ext
3175 if $ac_preproc_ok; then
3178 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3179 See \`config.log' for more details." >&5
3180 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3181 See \`config.log' for more details." >&2;}
3182 { (exit 1); exit 1; }; }
3186 ac_cpp='$CPP $CPPFLAGS'
3187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 if test -n "$ac_tool_prefix"; then
3193 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3194 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3195 echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3197 if test "${ac_cv_prog_RANLIB+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 if test -n "$RANLIB"; then
3201 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 RANLIB=$ac_cv_prog_RANLIB
3220 if test -n "$RANLIB"; then
3221 echo "$as_me:$LINENO: result: $RANLIB" >&5
3222 echo "${ECHO_T}$RANLIB" >&6
3224 echo "$as_me:$LINENO: result: no" >&5
3225 echo "${ECHO_T}no" >&6
3229 if test -z "$ac_cv_prog_RANLIB"; then
3230 ac_ct_RANLIB=$RANLIB
3231 # Extract the first word of "ranlib", so it can be a program name with args.
3232 set dummy ranlib; ac_word=$2
3233 echo "$as_me:$LINENO: checking for $ac_word" >&5
3234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 if test -n "$ac_ct_RANLIB"; then
3239 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_ac_ct_RANLIB="ranlib"
3249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3258 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3259 if test -n "$ac_ct_RANLIB"; then
3260 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3261 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3263 echo "$as_me:$LINENO: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3267 RANLIB=$ac_ct_RANLIB
3269 RANLIB="$ac_cv_prog_RANLIB"
3272 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3273 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3274 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3275 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 cat >conftest.make <<\_ACEOF
3280 @echo 'ac_maketemp="$(MAKE)"'
3282 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3283 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3284 if test -n "$ac_maketemp"; then
3285 eval ac_cv_prog_make_${ac_make}_set=yes
3287 eval ac_cv_prog_make_${ac_make}_set=no
3291 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3292 echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3296 echo "$as_me:$LINENO: result: no" >&5
3297 echo "${ECHO_T}no" >&6
3298 SET_MAKE="MAKE=${MAKE-make}"
3301 # Find a good install program. We prefer a C program (faster),
3302 # so one script is as good as another. But avoid the broken or
3303 # incompatible versions:
3304 # SysV /etc/install, /usr/sbin/install
3305 # SunOS /usr/etc/install
3306 # IRIX /sbin/install
3308 # AmigaOS /C/install, which installs bootblocks on floppy discs
3309 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3310 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3311 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3312 # OS/2's system install, which has a completely different semantic
3313 # ./install, which can be erroneously created by make from ./install.sh.
3314 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3315 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3316 if test -z "$INSTALL"; then
3317 if test "${ac_cv_path_install+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir=.
3325 # Account for people who put trailing slashes in PATH elements.
3327 ./ | .// | /cC/* | \
3328 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3329 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3332 # OSF1 and SCO ODT 3.0 have their own names for install.
3333 # Don't use installbsd from OSF since it installs stuff as root
3335 for ac_prog in ginstall scoinst install; do
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3338 if test $ac_prog = install &&
3339 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3340 # AIX install. It has an incompatible calling convention.
3342 elif test $ac_prog = install &&
3343 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3344 # program-specific install script used by HP pwplus--don't use.
3347 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3359 if test "${ac_cv_path_install+set}" = set; then
3360 INSTALL=$ac_cv_path_install
3362 # As a last resort, use the slow shell script. We don't cache a
3363 # path for INSTALL within a source directory, because that will
3364 # break other packages using the cache if that directory is
3365 # removed, or if the path is relative.
3366 INSTALL=$ac_install_sh
3369 echo "$as_me:$LINENO: result: $INSTALL" >&5
3370 echo "${ECHO_T}$INSTALL" >&6
3372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3373 # It thinks the first close brace ends the variable substitution.
3374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3380 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3381 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3383 if test "$LN_S" = "ln -s"; then
3384 echo "$as_me:$LINENO: result: yes" >&5
3385 echo "${ECHO_T}yes" >&6
3387 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3388 echo "${ECHO_T}no, using $LN_S" >&6
3391 # Check whether --enable-shared or --disable-shared was given.
3392 if test "${enable_shared+set}" = set; then
3393 enableval="$enable_shared"
3394 p=${PACKAGE-default}
3396 yes) enable_shared=yes ;;
3397 no) enable_shared=no ;;
3400 # Look at the argument we got. We use all the common list separators.
3401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3402 for pkg in $enableval; do
3403 if test "X$pkg" = "X$p"; then
3413 # Check whether --enable-static or --disable-static was given.
3414 if test "${enable_static+set}" = set; then
3415 enableval="$enable_static"
3416 p=${PACKAGE-default}
3418 yes) enable_static=yes ;;
3419 no) enable_static=no ;;
3422 # Look at the argument we got. We use all the common list separators.
3423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3424 for pkg in $enableval; do
3425 if test "X$pkg" = "X$p"; then
3435 # Check whether --enable-fast-install or --disable-fast-install was given.
3436 if test "${enable_fast_install+set}" = set; then
3437 enableval="$enable_fast_install"
3438 p=${PACKAGE-default}
3440 yes) enable_fast_install=yes ;;
3441 no) enable_fast_install=no ;;
3443 enable_fast_install=no
3444 # Look at the argument we got. We use all the common list separators.
3445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3446 for pkg in $enableval; do
3447 if test "X$pkg" = "X$p"; then
3448 enable_fast_install=yes
3455 enable_fast_install=yes
3457 # Find the correct PATH separator. Usually this is `:', but
3458 # DJGPP uses `;' like DOS.
3459 if test "X${PATH_SEPARATOR+set}" != Xset; then
3460 UNAME=${UNAME-`uname 2>/dev/null`}
3462 *-DOS) lt_cv_sys_path_separator=';' ;;
3463 *) lt_cv_sys_path_separator=':' ;;
3465 PATH_SEPARATOR=$lt_cv_sys_path_separator
3469 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3470 if test "${with_gnu_ld+set}" = set; then
3471 withval="$with_gnu_ld"
3472 test "$withval" = no || with_gnu_ld=yes
3477 if test "$GCC" = yes; then
3478 # Check if gcc -print-prog-name=ld gives a path.
3479 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3480 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3483 # gcc leaves a trailing carriage return which upsets mingw
3484 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3486 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3489 # Accept absolute paths.
3490 [\\/]* | [A-Za-z]:[\\/]*)
3491 re_direlt='/[^/][^/]*/\.\./'
3492 # Canonicalize the path of ld
3493 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3494 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3495 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3497 test -z "$LD" && LD="$ac_prog"
3500 # If it fails, then pretend we aren't using GCC.
3504 # If it is relative, then search for the first ld in PATH.
3508 elif test "$with_gnu_ld" = yes; then
3509 echo "$as_me:$LINENO: checking for GNU ld" >&5
3510 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3512 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3513 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3515 if test "${lt_cv_path_LD+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 if test -z "$LD"; then
3519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3520 for ac_dir in $PATH; do
3521 test -z "$ac_dir" && ac_dir=.
3522 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3523 lt_cv_path_LD="$ac_dir/$ac_prog"
3524 # Check to see if the program is GNU ld. I'd rather use --version,
3525 # but apparently some GNU ld's only accept -v.
3526 # Break only if it was the GNU/non-GNU ld that we prefer.
3527 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3528 test "$with_gnu_ld" != no && break
3530 test "$with_gnu_ld" != yes && break
3536 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3541 if test -n "$LD"; then
3542 echo "$as_me:$LINENO: result: $LD" >&5
3543 echo "${ECHO_T}$LD" >&6
3545 echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3548 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3549 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3550 { (exit 1); exit 1; }; }
3551 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3552 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3553 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3557 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3558 lt_cv_prog_gnu_ld=yes
3560 lt_cv_prog_gnu_ld=no
3563 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3564 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3565 with_gnu_ld=$lt_cv_prog_gnu_ld
3568 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3569 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3570 if test "${lt_cv_ld_reload_flag+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 lt_cv_ld_reload_flag='-r'
3575 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3576 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3577 reload_flag=$lt_cv_ld_reload_flag
3578 test -n "$reload_flag" && reload_flag=" $reload_flag"
3580 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3581 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3582 if test "${lt_cv_path_NM+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 if test -n "$NM"; then
3586 # Let the user override the test.
3589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3590 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3591 test -z "$ac_dir" && ac_dir=.
3592 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3593 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3594 # Check to see if the nm accepts a BSD-compat flag.
3595 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3596 # nm: unknown option "B" ignored
3597 # Tru64's nm complains that /dev/null is an invalid object file
3598 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3599 lt_cv_path_NM="$tmp_nm -B"
3601 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3602 lt_cv_path_NM="$tmp_nm -p"
3605 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3606 continue # so that we can try to find one that supports BSD flags
3611 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3616 echo "$as_me:$LINENO: result: $NM" >&5
3617 echo "${ECHO_T}$NM" >&6
3619 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3620 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3621 if test "${lt_cv_path_SED+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 # Loop through the user's path and test for sed and gsed.
3625 # Then use that list of sed's as ones to test for truncation.
3626 as_executable_p="test -f"
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 test -z "$as_dir" && as_dir=.
3632 for ac_prog in sed gsed; do
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3635 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3641 # Create a temporary directory, and hook for its removal unless debugging.
3644 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3645 trap '{ (exit 1); exit 1; }' 1 2 13 15
3648 # Create a (secure) tmp directory for tmp files.
3651 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3652 test -n "$tmp" && test -d "$tmp"
3655 tmp=$TMPDIR/sed$$-$RANDOM
3656 (umask 077 && mkdir $tmp)
3659 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3660 { (exit 1); exit 1; }
3664 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3665 # along with /bin/sed that truncates output.
3666 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3667 test ! -f ${_sed} && break
3668 cat /dev/null > "$tmp/sed.in"
3670 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3671 # Check for GNU sed and select it if it is found.
3672 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3673 lt_cv_path_SED=${_sed}
3677 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3678 mv "$tmp/sed.tmp" "$tmp/sed.in"
3679 cp "$tmp/sed.in" "$tmp/sed.nl"
3680 echo >>"$tmp/sed.nl"
3681 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3682 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3683 # 40000 chars as input seems more than enough
3684 test $_count -gt 10 && break
3685 _count=`expr $_count + 1`
3686 if test $_count -gt $_max; then
3688 lt_cv_path_SED=$_sed
3696 if test "X$SED" != "X"; then
3701 echo "$as_me:$LINENO: result: $SED" >&5
3702 echo "${ECHO_T}$SED" >&6
3704 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3705 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3706 if test "${lt_cv_deplibs_check_method+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 lt_cv_file_magic_cmd='$MAGIC_CMD'
3710 lt_cv_file_magic_test_file=
3711 lt_cv_deplibs_check_method='unknown'
3712 # Need to set the preceding variable on all platforms that support
3713 # interlibrary dependencies.
3714 # 'none' -- dependencies not supported.
3715 # `unknown' -- same as none, but documents that we really don't know.
3716 # 'pass_all' -- all dependencies passed with no checks.
3717 # 'test_compile' -- check by making test program.
3718 # 'file_magic [[regex]]' -- check by looking for files in library path
3719 # which responds to the $file_magic_cmd with a given egrep regex.
3720 # If you have `file' or equivalent on your system and you're not sure
3721 # whether `pass_all' will *always* work, you probably want this one.
3725 lt_cv_deplibs_check_method=pass_all
3729 lt_cv_deplibs_check_method=pass_all
3733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3734 lt_cv_file_magic_cmd='/usr/bin/file -L'
3735 lt_cv_file_magic_test_file=/shlib/libc.so
3738 cygwin* | mingw* | pw32*)
3739 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3740 lt_cv_file_magic_cmd='$OBJDUMP -f'
3743 darwin* | rhapsody*)
3744 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3745 lt_cv_file_magic_cmd='/usr/bin/file -L'
3747 rhapsody* | darwin1.[012])
3748 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3751 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3757 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3760 # Not sure whether the presence of OpenBSD here was a mistake.
3761 # Let's accept both of them until this is cleared up.
3762 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3763 lt_cv_file_magic_cmd=/usr/bin/file
3764 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3768 lt_cv_deplibs_check_method=pass_all
3773 lt_cv_deplibs_check_method=pass_all
3777 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3778 lt_cv_file_magic_cmd=/usr/bin/file
3779 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3782 irix5* | irix6* | nonstopux*)
3784 irix5* | nonstopux*)
3785 # this will be overridden with pass_all, but let us keep it just in case
3786 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3790 *-32|*"-32 ") libmagic=32-bit;;
3791 *-n32|*"-n32 ") libmagic=N32;;
3792 *-64|*"-64 ") libmagic=64-bit;;
3793 *) libmagic=never-match;;
3795 # this will be overridden with pass_all, but let us keep it just in case
3796 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3799 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3800 lt_cv_deplibs_check_method=pass_all
3803 # This must be Linux ELF.
3806 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3807 lt_cv_deplibs_check_method=pass_all ;;
3809 # glibc up to 2.1.1 does not perform some relocations on ARM
3810 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3812 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3816 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3817 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3819 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3825 lt_cv_file_magic_cmd=/usr/bin/file
3826 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3830 lt_cv_file_magic_cmd=/usr/bin/file
3831 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3832 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3835 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3839 osf3* | osf4* | osf5*)
3840 # this will be overridden with pass_all, but let us keep it just in case
3841 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3842 lt_cv_file_magic_test_file=/shlib/libc.so
3843 lt_cv_deplibs_check_method=pass_all
3847 lt_cv_deplibs_check_method=pass_all
3851 lt_cv_deplibs_check_method=pass_all
3852 lt_cv_file_magic_test_file=/lib/libc.so
3855 sysv5uw[78]* | sysv4*uw2*)
3856 lt_cv_deplibs_check_method=pass_all
3859 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3860 case $host_vendor in
3862 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]'
3863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3866 lt_cv_deplibs_check_method=pass_all
3869 lt_cv_file_magic_cmd='/bin/file'
3870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3873 lt_cv_file_magic_cmd='/bin/file'
3874 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3875 lt_cv_file_magic_test_file=/lib/libc.so
3878 lt_cv_deplibs_check_method=pass_all
3885 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3886 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3887 file_magic_cmd=$lt_cv_file_magic_cmd
3888 deplibs_check_method=$lt_cv_deplibs_check_method
3897 # Check for command to grab the raw symbol name followed by C symbol from nm.
3898 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3899 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3900 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 # These are sane defaults that work on at least a few old systems.
3905 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3907 # Character class describing NM global symbol codes.
3908 symcode='[BCDEGRST]'
3910 # Regexp to match symbols that can be accessed directly from C.
3911 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3913 # Transform the above into a raw symbol and a C symbol.
3914 symxfrm='\1 \2\3 \3'
3916 # Transform an extracted symbol line into a proper C declaration
3917 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3919 # Transform an extracted symbol line into symbol name and symbol address
3920 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'"
3922 # Define system-specific variables.
3927 cygwin* | mingw* | pw32*)
3928 symcode='[ABCDGISTW]'
3930 hpux*) # Its linker distinguishes data from code symbols
3931 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3932 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'"
3935 symcode='[BCDEGRST]'
3938 symcode='[BCDEGQRST]'
3948 # Handle CRLF in mingw tool chain
3952 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3956 # If we're using GNU nm, then use its standard symbol codes.
3957 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3958 symcode='[ABCDGISTW]'
3961 # Try without a prefix undercore, then with it.
3962 for ac_symprfx in "" "_"; do
3964 # Write the raw and C identifiers.
3965 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3967 # Check to see that the pipe works correctly.
3970 cat > conftest.$ac_ext <<EOF
3975 void nm_test_func(){}
3979 int main(){nm_test_var='a';nm_test_func();return(0);}
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; then
3987 # Now try to grab the symbols.
3989 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3990 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } && test -s "$nlist"; then
3994 # Try sorting and uniquifying the output.
3995 if sort "$nlist" | uniq > "$nlist"T; then
3996 mv -f "$nlist"T "$nlist"
4001 # Make sure that we snagged all the symbols we need.
4002 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4003 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4004 cat <<EOF > conftest.$ac_ext
4010 # Now generate the symbol file.
4011 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4013 cat <<EOF >> conftest.$ac_ext
4014 #if defined (__STDC__) && __STDC__
4015 # define lt_ptr void *
4017 # define lt_ptr char *
4021 /* The mapping between symbol names and symbols. */
4026 lt_preloaded_symbols[] =
4029 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4030 cat <<\EOF >> conftest.$ac_ext
4038 # Now try linking the two files.
4039 mv conftest.$ac_objext conftstm.$ac_objext
4041 save_CFLAGS="$CFLAGS"
4042 LIBS="conftstm.$ac_objext"
4043 CFLAGS="$CFLAGS$no_builtin_flag"
4044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4045 (eval $ac_link) 2>&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } && test -s conftest$ac_exeext; then
4052 CFLAGS="$save_CFLAGS"
4054 echo "cannot find nm_test_func in $nlist" >&5
4057 echo "cannot find nm_test_var in $nlist" >&5
4060 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4063 echo "$progname: failed program was:" >&5
4064 cat conftest.$ac_ext >&5
4066 rm -f conftest* conftst*
4068 # Do not use the global_symbol_pipe unless it works.
4069 if test "$pipe_works" = yes; then
4072 lt_cv_sys_global_symbol_pipe=
4078 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4079 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4080 global_symbol_to_cdecl=
4081 global_symbol_to_c_name_address=
4083 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4084 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4086 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4088 echo "$as_me:$LINENO: result: failed" >&5
4089 echo "${ECHO_T}failed" >&6
4091 echo "$as_me:$LINENO: result: ok" >&5
4092 echo "${ECHO_T}ok" >&6
4096 echo "$as_me:$LINENO: checking for egrep" >&5
4097 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4098 if test "${ac_cv_prog_egrep+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4102 then ac_cv_prog_egrep='grep -E'
4103 else ac_cv_prog_egrep='egrep'
4106 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4107 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4108 EGREP=$ac_cv_prog_egrep
4111 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4112 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4113 if test "${ac_cv_header_stdc+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4135 rm -f conftest.$ac_objext
4136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4137 (eval $ac_compile) 2>conftest.er1
4139 grep -v '^ *+' conftest.er1 >conftest.err
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } &&
4144 { ac_try='test -z "$ac_c_werror_flag"
4145 || test ! -s conftest.err'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 ac_cv_header_stdc=yes
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 ac_cv_header_stdc=no
4164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4166 if test $ac_cv_header_stdc = yes; then
4167 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4168 cat >conftest.$ac_ext <<_ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4178 $EGREP "memchr" >/dev/null 2>&1; then
4181 ac_cv_header_stdc=no
4187 if test $ac_cv_header_stdc = yes; then
4188 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4189 cat >conftest.$ac_ext <<_ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4199 $EGREP "free" >/dev/null 2>&1; then
4202 ac_cv_header_stdc=no
4208 if test $ac_cv_header_stdc = yes; then
4209 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4210 if test "$cross_compiling" = yes; then
4213 cat >conftest.$ac_ext <<_ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4220 #if ((' ' & 0x0FF) == 0x020)
4221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4224 # define ISLOWER(c) \
4225 (('a' <= (c) && (c) <= 'i') \
4226 || ('j' <= (c) && (c) <= 'r') \
4227 || ('s' <= (c) && (c) <= 'z'))
4228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4236 for (i = 0; i < 256; i++)
4237 if (XOR (islower (i), ISLOWER (i))
4238 || toupper (i) != TOUPPER (i))
4243 rm -f conftest$ac_exeext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245 (eval $ac_link) 2>&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4256 echo "$as_me: program exited with status $ac_status" >&5
4257 echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4261 ac_cv_header_stdc=no
4263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4267 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4268 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4269 if test $ac_cv_header_stdc = yes; then
4271 cat >>confdefs.h <<\_ACEOF
4272 #define STDC_HEADERS 1
4277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4288 inttypes.h stdint.h unistd.h
4290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4291 echo "$as_me:$LINENO: checking for $ac_header" >&5
4292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 cat >conftest.$ac_ext <<_ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 $ac_includes_default
4304 #include <$ac_header>
4306 rm -f conftest.$ac_objext
4307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4308 (eval $ac_compile) 2>conftest.er1
4310 grep -v '^ *+' conftest.er1 >conftest.err
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } &&
4315 { ac_try='test -z "$ac_c_werror_flag"
4316 || test ! -s conftest.err'
4317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); }; } &&
4322 { ac_try='test -s conftest.$ac_objext'
4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 eval "$as_ac_Header=yes"
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4333 eval "$as_ac_Header=no"
4335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4340 cat >>confdefs.h <<_ACEOF
4341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4350 for ac_header in dlfcn.h
4352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4354 echo "$as_me:$LINENO: checking for $ac_header" >&5
4355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4362 # Is the header compilable?
4363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4365 cat >conftest.$ac_ext <<_ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 $ac_includes_default
4372 #include <$ac_header>
4374 rm -f conftest.$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4378 grep -v '^ *+' conftest.er1 >conftest.err
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -z "$ac_c_werror_flag"
4384 || test ! -s conftest.err'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try='test -s conftest.$ac_objext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 ac_header_compiler=yes
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 ac_header_compiler=no
4403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4405 echo "${ECHO_T}$ac_header_compiler" >&6
4407 # Is the header present?
4408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4410 cat >conftest.$ac_ext <<_ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 #include <$ac_header>
4418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } >/dev/null; then
4426 if test -s conftest.err; then
4427 ac_cpp_err=$ac_c_preproc_warn_flag
4428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4435 if test -z "$ac_cpp_err"; then
4436 ac_header_preproc=yes
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 ac_header_preproc=no
4443 rm -f conftest.err conftest.$ac_ext
4444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4445 echo "${ECHO_T}$ac_header_preproc" >&6
4447 # So? What about this header?
4448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4454 ac_header_preproc=yes
4457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4471 ## ------------------------------------------ ##
4472 ## Report this to the AC_PACKAGE_NAME lists. ##
4473 ## ------------------------------------------ ##
4476 sed "s/^/$as_me: WARNING: /" >&2
4479 echo "$as_me:$LINENO: checking for $ac_header" >&5
4480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 eval "$as_ac_Header=\$ac_header_preproc"
4486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4491 cat >>confdefs.h <<_ACEOF
4492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4504 # Only perform the check for file, if the check method requires it
4505 case $deplibs_check_method in
4507 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4508 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4509 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4510 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4521 ac_save_MAGIC_CMD="$MAGIC_CMD"
4522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4523 ac_dummy="/usr/bin:$PATH"
4524 for ac_dir in $ac_dummy; do
4525 test -z "$ac_dir" && ac_dir=.
4526 if test -f $ac_dir/${ac_tool_prefix}file; then
4527 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4528 if test -n "$file_magic_test_file"; then
4529 case $deplibs_check_method in
4531 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4534 egrep "$file_magic_regex" > /dev/null; then
4539 *** Warning: the command libtool uses to detect shared libraries,
4540 *** $file_magic_cmd, produces output that libtool cannot recognize.
4541 *** The result is that libtool may fail to recognize shared libraries
4542 *** as such. This will affect the creation of libtool libraries that
4543 *** depend on shared libraries, but programs linked with such libtool
4544 *** libraries will work regardless of this problem. Nevertheless, you
4545 *** may want to report the problem to your system manager and/or to
4546 *** bug-libtool@gnu.org
4556 MAGIC_CMD="$ac_save_MAGIC_CMD"
4561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4562 if test -n "$MAGIC_CMD"; then
4563 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4564 echo "${ECHO_T}$MAGIC_CMD" >&6
4566 echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4570 if test -z "$lt_cv_path_MAGIC_CMD"; then
4571 if test -n "$ac_tool_prefix"; then
4572 echo "$as_me:$LINENO: checking for file" >&5
4573 echo $ECHO_N "checking for file... $ECHO_C" >&6
4574 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4582 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4585 ac_save_MAGIC_CMD="$MAGIC_CMD"
4586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4587 ac_dummy="/usr/bin:$PATH"
4588 for ac_dir in $ac_dummy; do
4589 test -z "$ac_dir" && ac_dir=.
4590 if test -f $ac_dir/file; then
4591 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4592 if test -n "$file_magic_test_file"; then
4593 case $deplibs_check_method in
4595 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4597 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4598 egrep "$file_magic_regex" > /dev/null; then
4603 *** Warning: the command libtool uses to detect shared libraries,
4604 *** $file_magic_cmd, produces output that libtool cannot recognize.
4605 *** The result is that libtool may fail to recognize shared libraries
4606 *** as such. This will affect the creation of libtool libraries that
4607 *** depend on shared libraries, but programs linked with such libtool
4608 *** libraries will work regardless of this problem. Nevertheless, you
4609 *** may want to report the problem to your system manager and/or to
4610 *** bug-libtool@gnu.org
4620 MAGIC_CMD="$ac_save_MAGIC_CMD"
4625 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4626 if test -n "$MAGIC_CMD"; then
4627 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4628 echo "${ECHO_T}$MAGIC_CMD" >&6
4630 echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6
4643 if test -n "$ac_tool_prefix"; then
4644 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4646 echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4648 if test "${ac_cv_prog_RANLIB+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 if test -n "$RANLIB"; then
4652 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 RANLIB=$ac_cv_prog_RANLIB
4671 if test -n "$RANLIB"; then
4672 echo "$as_me:$LINENO: result: $RANLIB" >&5
4673 echo "${ECHO_T}$RANLIB" >&6
4675 echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6
4680 if test -z "$ac_cv_prog_RANLIB"; then
4681 ac_ct_RANLIB=$RANLIB
4682 # Extract the first word of "ranlib", so it can be a program name with args.
4683 set dummy ranlib; ac_word=$2
4684 echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 if test -n "$ac_ct_RANLIB"; then
4690 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699 ac_cv_prog_ac_ct_RANLIB="ranlib"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4709 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4710 if test -n "$ac_ct_RANLIB"; then
4711 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4712 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4714 echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6
4718 RANLIB=$ac_ct_RANLIB
4720 RANLIB="$ac_cv_prog_RANLIB"
4723 if test -n "$ac_tool_prefix"; then
4724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4725 set dummy ${ac_tool_prefix}strip; ac_word=$2
4726 echo "$as_me:$LINENO: checking for $ac_word" >&5
4727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4728 if test "${ac_cv_prog_STRIP+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 if test -n "$STRIP"; then
4732 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4741 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 STRIP=$ac_cv_prog_STRIP
4751 if test -n "$STRIP"; then
4752 echo "$as_me:$LINENO: result: $STRIP" >&5
4753 echo "${ECHO_T}$STRIP" >&6
4755 echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6
4760 if test -z "$ac_cv_prog_STRIP"; then
4762 # Extract the first word of "strip", so it can be a program name with args.
4763 set dummy strip; ac_word=$2
4764 echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4766 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 if test -n "$ac_ct_STRIP"; then
4770 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 ac_cv_prog_ac_ct_STRIP="strip"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4789 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4790 if test -n "$ac_ct_STRIP"; then
4791 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4792 echo "${ECHO_T}$ac_ct_STRIP" >&6
4794 echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6
4800 STRIP="$ac_cv_prog_STRIP"
4807 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4808 if test "${enable_libtool_lock+set}" = set; then
4809 enableval="$enable_libtool_lock"
4812 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4814 # Some flags need to be propagated to the compiler or linker for good
4818 # Find out which ABI we are using.
4819 echo '#line 4819 "configure"' > conftest.$ac_ext
4820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821 (eval $ac_compile) 2>&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; then
4825 case `/usr/bin/file conftest.$ac_objext` in
4841 # Test if the compiler is 64bit
4842 echo 'int i;' > conftest.$ac_ext
4843 lt_cv_cc_64bit_output=no
4844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845 (eval $ac_compile) 2>&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; then
4849 case `/usr/bin/file conftest.$ac_objext` in
4851 lt_cv_cc_64bit_output=yes
4859 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4860 SAVE_CFLAGS="$CFLAGS"
4861 CFLAGS="$CFLAGS -belf"
4862 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4863 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4864 if test "${lt_cv_cc_needs_belf+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 ac_cpp='$CPP $CPPFLAGS'
4871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875 cat >conftest.$ac_ext <<_ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4890 rm -f conftest.$ac_objext conftest$ac_exeext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4892 (eval $ac_link) 2>conftest.er1
4894 grep -v '^ *+' conftest.er1 >conftest.err
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
4899 { ac_try='test -z "$ac_c_werror_flag"
4900 || test ! -s conftest.err'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; } &&
4906 { ac_try='test -s conftest$ac_exeext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 lt_cv_cc_needs_belf=yes
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4917 lt_cv_cc_needs_belf=no
4919 rm -f conftest.err conftest.$ac_objext \
4920 conftest$ac_exeext conftest.$ac_ext
4922 ac_cpp='$CPP $CPPFLAGS'
4923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4928 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4929 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4930 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4931 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4932 CFLAGS="$SAVE_CFLAGS"
4939 # Sed substitution that helps us do robust quoting. It backslashifies
4940 # metacharacters that are still active within double-quoted strings.
4941 Xsed='sed -e s/^X//'
4942 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4944 # Same as above, but do not quote variable references.
4945 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4947 # Sed substitution to delay expansion of an escaped shell variable in a
4948 # double_quote_subst'ed string.
4949 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4955 default_ofile=libtool
4956 can_build_shared=yes
4958 # All known linkers require a `.a' archive for static linking (except M$VC,
4959 # which needs '.lib').
4961 ltmain="$ac_aux_dir/ltmain.sh"
4962 ofile="$default_ofile"
4963 with_gnu_ld="$lt_cv_prog_gnu_ld"
4964 need_locks="$enable_libtool_lock"
4967 old_CFLAGS="$CFLAGS"
4969 # Set sane defaults for various variables
4970 test -z "$AR" && AR=ar
4971 test -z "$AR_FLAGS" && AR_FLAGS=cru
4972 test -z "$AS" && AS=as
4973 test -z "$CC" && CC=cc
4974 test -z "$DLLTOOL" && DLLTOOL=dlltool
4975 test -z "$LD" && LD=ld
4976 test -z "$LN_S" && LN_S="ln -s"
4977 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4978 test -z "$NM" && NM=nm
4979 test -z "$OBJDUMP" && OBJDUMP=objdump
4980 test -z "$RANLIB" && RANLIB=:
4981 test -z "$STRIP" && STRIP=:
4982 test -z "$ac_objext" && ac_objext=o
4984 if test x"$host" != x"$build"; then
4985 ac_tool_prefix=${host_alias}-
4990 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4993 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4998 # AIX sometimes has problems with the GCC collect2 program. For some
4999 # reason, if we set the COLLECT_NAMES environment variable, the problems
5000 # vanish in a puff of smoke.
5001 if test "X${COLLECT_NAMES+set}" != Xset; then
5003 export COLLECT_NAMES
5008 # Determine commands to create old-style static archives.
5009 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5010 old_postinstall_cmds='chmod 644 $oldlib'
5011 old_postuninstall_cmds=
5013 if test -n "$RANLIB"; then
5016 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5019 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5022 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5025 # Allow CC to be a program name with arguments.
5029 echo "$as_me:$LINENO: checking for objdir" >&5
5030 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5031 rm -f .libs 2>/dev/null
5032 mkdir .libs 2>/dev/null
5033 if test -d .libs; then
5036 # MS-DOS does not allow filenames that begin with a dot.
5039 rmdir .libs 2>/dev/null
5040 echo "$as_me:$LINENO: result: $objdir" >&5
5041 echo "${ECHO_T}$objdir" >&6
5045 # Check whether --with-pic or --without-pic was given.
5046 if test "${with_pic+set}" = set; then
5052 test -z "$pic_mode" && pic_mode=default
5054 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5055 # in isolation, and that seeing it set (from the cache) indicates that
5056 # the associated values are set (in the cache) correctly too.
5057 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5058 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5059 if test "${lt_cv_prog_cc_pic+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 lt_cv_prog_cc_shlib=
5065 lt_cv_prog_cc_static=
5066 lt_cv_prog_cc_no_builtin=
5067 lt_cv_prog_cc_can_build_shared=$can_build_shared
5069 if test "$GCC" = yes; then
5070 lt_cv_prog_cc_wl='-Wl,'
5071 lt_cv_prog_cc_static='-static'
5075 # Below there is a dirty hack to force normal static linking with -ldl
5076 # The problem is because libdl dynamically linked with both libc and
5077 # libC (AIX C++ library), which obviously doesn't included in libraries
5078 # list by gcc. This cause undefined symbols with -static flags.
5079 # This hack allows C programs to be linked with "-static -ldl", but
5080 # not sure about C++ programs.
5081 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5084 # FIXME: we need at least 68020 code to build shared libraries, but
5085 # adding the `-m68020' flag to GCC prevents building anything better,
5087 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5089 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5090 # PIC is the default for these OSes.
5092 darwin* | rhapsody*)
5093 # PIC is the default on this platform
5094 # Common symbols not allowed in MH_DYLIB files
5095 lt_cv_prog_cc_pic='-fno-common'
5097 cygwin* | mingw* | pw32* | os2*)
5098 # This hack is so that the source file can tell whether it is being
5099 # built for inclusion in a dll (and should export symbols for example).
5100 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5103 if test -d /usr/nec; then
5104 lt_cv_prog_cc_pic=-Kconform_pic
5108 lt_cv_prog_cc_pic='-fPIC'
5112 # PORTME Check for PIC flags for the system compiler.
5114 aix3* | aix4* | aix5*)
5115 lt_cv_prog_cc_wl='-Wl,'
5116 # All AIX code is PIC.
5117 if test "$host_cpu" = ia64; then
5118 # AIX 5 now supports IA64 processor
5119 lt_cv_prog_cc_static='-Bstatic'
5121 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5125 hpux9* | hpux10* | hpux11*)
5126 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5127 lt_cv_prog_cc_wl='-Wl,'
5128 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5129 lt_cv_prog_cc_pic='+Z'
5132 irix5* | irix6* | nonstopux*)
5133 lt_cv_prog_cc_wl='-Wl,'
5134 lt_cv_prog_cc_static='-non_shared'
5135 # PIC (with -KPIC) is the default.
5138 cygwin* | mingw* | pw32* | os2*)
5139 # This hack is so that the source file can tell whether it is being
5140 # built for inclusion in a dll (and should export symbols for example).
5141 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5145 lt_cv_prog_cc_pic='-KPIC'
5146 lt_cv_prog_cc_static='-Bstatic'
5149 osf3* | osf4* | osf5*)
5150 # All OSF/1 code is PIC.
5151 lt_cv_prog_cc_wl='-Wl,'
5152 lt_cv_prog_cc_static='-non_shared'
5156 lt_cv_prog_cc_pic='-Kpic'
5157 lt_cv_prog_cc_static='-dn'
5158 lt_cv_prog_cc_shlib='-belf'
5162 lt_cv_prog_cc_pic='-KPIC'
5163 lt_cv_prog_cc_static='-Bstatic'
5164 lt_cv_prog_cc_wl='-Wl,'
5168 lt_cv_prog_cc_pic='-PIC'
5169 lt_cv_prog_cc_static='-Bstatic'
5170 lt_cv_prog_cc_wl='-Qoption ld '
5173 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5174 lt_cv_prog_cc_pic='-KPIC'
5175 lt_cv_prog_cc_static='-Bstatic'
5176 lt_cv_prog_cc_wl='-Wl,'
5180 lt_cv_prog_cc_pic='-pic'
5181 lt_cv_prog_cc_static='-Bstatic'
5185 if test -d /usr/nec ;then
5186 lt_cv_prog_cc_pic='-Kconform_pic'
5187 lt_cv_prog_cc_static='-Bstatic'
5192 lt_cv_prog_cc_can_build_shared=no
5199 if test -z "$lt_cv_prog_cc_pic"; then
5200 echo "$as_me:$LINENO: result: none" >&5
5201 echo "${ECHO_T}none" >&6
5203 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5204 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5206 # Check to make sure the pic_flag actually works.
5207 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5208 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5209 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 save_CFLAGS="$CFLAGS"
5213 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5214 cat >conftest.$ac_ext <<_ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231 (eval $ac_compile) 2>conftest.er1
5233 grep -v '^ *+' conftest.er1 >conftest.err
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -z "$ac_c_werror_flag"
5239 || test ! -s conftest.err'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; } &&
5245 { ac_try='test -s conftest.$ac_objext'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; }; then
5252 hpux9* | hpux10* | hpux11*)
5253 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5254 # they create non-PIC objects. So, if there were any warnings, we
5255 # assume that PIC is not supported.
5256 if test -s conftest.err; then
5257 lt_cv_prog_cc_pic_works=no
5259 lt_cv_prog_cc_pic_works=yes
5263 lt_cv_prog_cc_pic_works=yes
5268 echo "$as_me: failed program was:" >&5
5269 sed 's/^/| /' conftest.$ac_ext >&5
5271 lt_cv_prog_cc_pic_works=no
5274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5275 CFLAGS="$save_CFLAGS"
5280 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5282 lt_cv_prog_cc_can_build_shared=no
5284 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5287 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5288 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5291 # Check for any special shared library compilation flags.
5292 if test -n "$lt_cv_prog_cc_shlib"; then
5293 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5294 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5295 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5297 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5298 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5299 lt_cv_prog_cc_can_build_shared=no
5303 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5304 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5305 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 lt_cv_prog_cc_static_works=no
5309 save_LDFLAGS="$LDFLAGS"
5310 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5311 cat >conftest.$ac_ext <<_ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5326 rm -f conftest.$ac_objext conftest$ac_exeext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5328 (eval $ac_link) 2>conftest.er1
5330 grep -v '^ *+' conftest.er1 >conftest.err
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try='test -z "$ac_c_werror_flag"
5336 || test ! -s conftest.err'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; } &&
5342 { ac_try='test -s conftest$ac_exeext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 lt_cv_prog_cc_static_works=yes
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5354 rm -f conftest.err conftest.$ac_objext \
5355 conftest$ac_exeext conftest.$ac_ext
5356 LDFLAGS="$save_LDFLAGS"
5361 # Belt *and* braces to stop my trousers falling down:
5362 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5363 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5364 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5366 pic_flag="$lt_cv_prog_cc_pic"
5367 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5368 wl="$lt_cv_prog_cc_wl"
5369 link_static_flag="$lt_cv_prog_cc_static"
5370 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5371 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5374 # Check to see if options -o and -c are simultaneously supported by compiler
5375 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5376 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5377 if test "${lt_cv_compiler_c_o+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 $rm -r conftest 2>/dev/null
5384 echo "int some_variable = 0;" > conftest.$ac_ext
5386 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5387 # that will create temporary files in the current directory regardless of
5388 # the output directory. Thus, making CWD read-only will cause this test
5389 # to fail, enabling locking or at least warning the user not to do parallel
5392 save_CFLAGS="$CFLAGS"
5393 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5395 if { (eval echo configure:5395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5396 # The compiler can only warn and ignore the option if not recognized
5397 # So say no if there are warnings
5398 if test -s out/conftest.err; then
5399 lt_cv_compiler_c_o=no
5401 lt_cv_compiler_c_o=yes
5404 # Append any errors to the config.log.
5405 cat out/conftest.err 1>&5
5406 lt_cv_compiler_c_o=no
5408 CFLAGS="$save_CFLAGS"
5414 $rm -r conftest 2>/dev/null
5418 compiler_c_o=$lt_cv_compiler_c_o
5419 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5420 echo "${ECHO_T}$compiler_c_o" >&6
5422 if test x"$compiler_c_o" = x"yes"; then
5423 # Check to see if we can write to a .lo
5424 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5425 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5426 if test "${lt_cv_compiler_o_lo+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 lt_cv_compiler_o_lo=no
5431 save_CFLAGS="$CFLAGS"
5432 CFLAGS="$CFLAGS -c -o conftest.lo"
5433 save_objext="$ac_objext"
5435 cat >conftest.$ac_ext <<_ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5445 int some_variable = 0;
5450 rm -f conftest.$ac_objext
5451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5452 (eval $ac_compile) 2>conftest.er1
5454 grep -v '^ *+' conftest.er1 >conftest.err
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } &&
5459 { ac_try='test -z "$ac_c_werror_flag"
5460 || test ! -s conftest.err'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; } &&
5466 { ac_try='test -s conftest.$ac_objext'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5472 # The compiler can only warn and ignore the option if not recognized
5473 # So say no if there are warnings
5474 if test -s conftest.err; then
5475 lt_cv_compiler_o_lo=no
5477 lt_cv_compiler_o_lo=yes
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486 ac_objext="$save_objext"
5487 CFLAGS="$save_CFLAGS"
5491 compiler_o_lo=$lt_cv_compiler_o_lo
5492 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5493 echo "${ECHO_T}$compiler_o_lo" >&6
5498 # Check to see if we can do hard links to lock some files if needed
5499 hard_links="nottested"
5500 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5501 # do not overwrite the value of need_locks provided by the user
5502 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5503 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5506 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5508 ln conftest.a conftest.b 2>&5 || hard_links=no
5509 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5510 echo "$as_me:$LINENO: result: $hard_links" >&5
5511 echo "${ECHO_T}$hard_links" >&6
5512 if test "$hard_links" = no; then
5513 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5514 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5521 if test "$GCC" = yes; then
5522 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5523 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5524 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5525 echo "int some_variable = 0;" > conftest.$ac_ext
5526 save_CFLAGS="$CFLAGS"
5527 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5528 compiler_rtti_exceptions=no
5529 cat >conftest.$ac_ext <<_ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5539 int some_variable = 0;
5544 rm -f conftest.$ac_objext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546 (eval $ac_compile) 2>conftest.er1
5548 grep -v '^ *+' conftest.er1 >conftest.err
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } &&
5553 { ac_try='test -z "$ac_c_werror_flag"
5554 || test ! -s conftest.err'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; } &&
5560 { ac_try='test -s conftest.$ac_objext'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
5566 # The compiler can only warn and ignore the option if not recognized
5567 # So say no if there are warnings
5568 if test -s conftest.err; then
5569 compiler_rtti_exceptions=no
5571 compiler_rtti_exceptions=yes
5575 echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5580 CFLAGS="$save_CFLAGS"
5581 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5582 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5584 if test "$compiler_rtti_exceptions" = "yes"; then
5585 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5587 no_builtin_flag=' -fno-builtin'
5591 # See if the linker supports building shared libraries.
5592 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5593 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5595 allow_undefined_flag=
5597 need_lib_prefix=unknown
5598 need_version=unknown
5599 # when you set need_version to no, make sure it does not cause -set_version
5600 # flags to be left without arguments
5602 archive_expsym_cmds=
5603 old_archive_from_new_cmds=
5604 old_archive_from_expsyms_cmds=
5605 export_dynamic_flag_spec=
5606 whole_archive_flag_spec=
5607 thread_safe_flag_spec=
5608 hardcode_into_libs=no
5609 hardcode_libdir_flag_spec=
5610 hardcode_libdir_separator=
5613 hardcode_shlibpath_var=unsupported
5615 link_all_deplibs=unknown
5616 always_export_symbols=no
5617 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5618 # include_expsyms should be a list of space-separated symbols to be *always*
5619 # included in the symbol list
5621 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5622 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5623 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5624 # as well as any symbol that contains `d'.
5625 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5627 # platforms (ab)use it in PIC code, but their linkers get confused if
5628 # the symbol is explicitly referenced. Since portable code cannot
5629 # rely on this symbol name, it's probably fine to never include it in
5630 # preloaded symbol tables.
5631 extract_expsyms_cmds=
5634 cygwin* | mingw* | pw32*)
5635 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5636 # When not using gcc, we currently assume that we are using
5637 # Microsoft Visual C++.
5638 if test "$GCC" != yes; then
5648 if test "$with_gnu_ld" = yes; then
5649 # If archive_cmds runs LD, not CC, wlarc should be empty
5652 # See if GNU ld supports shared libraries.
5654 aix3* | aix4* | aix5*)
5655 # On AIX, the GNU linker is very broken
5656 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5660 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5661 *** to be unable to reliably create shared libraries on AIX.
5662 *** Therefore, libtool is disabling shared libraries support. If you
5663 *** really care for shared libraries, you may want to modify your PATH
5664 *** so that a non-GNU linker is found, and then restart.
5670 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)'
5671 hardcode_libdir_flag_spec='-L$libdir'
5672 hardcode_minus_L=yes
5674 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5675 # that the semantics of dynamic libraries on AmigaOS, at least up
5676 # to version 4, is to share data among multiple programs linked
5677 # with the same dynamic library. Since this doesn't match the
5678 # behavior of shared libraries on other platforms, we can use
5684 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5685 allow_undefined_flag=unsupported
5686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5687 # support --undefined. This deserves some investigation. FIXME
5688 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5694 cygwin* | mingw* | pw32*)
5695 # hardcode_libdir_flag_spec is actually meaningless, as there is
5696 # no search path for DLLs.
5697 hardcode_libdir_flag_spec='-L$libdir'
5698 allow_undefined_flag=unsupported
5699 always_export_symbols=yes
5701 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5702 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5703 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5704 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5705 else $CC -o impgen impgen.c ; fi)~
5706 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5708 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5710 # cygwin and mingw dlls have different entry points and sets of symbols
5712 # FIXME: what about values for MSVC?
5713 dll_entry=__cygwin_dll_entry@12
5714 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5718 dll_entry=_DllMainCRTStartup@12
5719 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5723 # mingw and cygwin differ, and it's simplest to just exclude the union
5724 # of the two symbol sets.
5725 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5727 # recent cygwin and mingw systems supply a stub DllMain which the user
5728 # can override, but on older systems we have to supply one (in ltdll.c)
5729 if test "x$lt_cv_need_dllmain" = "xyes"; then
5730 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5731 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~
5732 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5738 # Extract the symbol export list from an `--export-all' def file,
5739 # then regenerate the def file from the symbol export list, so that
5740 # the compiled dll only exports the symbol export list.
5741 # Be careful not to strip the DATA tag left be newer dlltools.
5742 export_symbols_cmds="$ltdll_cmds"'
5743 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5744 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5746 # If the export-symbols file already is a .def file (1st line
5747 # is EXPORTS), use it as is.
5748 # If DATA tags from a recent dlltool are present, honour them!
5749 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5750 cp $export_symbols $output_objdir/$soname-def;
5752 echo EXPORTS > $output_objdir/$soname-def;
5754 cat $export_symbols | while read symbol; do
5757 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5758 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5759 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5761 _lt_hint=`expr 1 + \$_lt_hint`;
5765 $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~
5766 $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~
5767 $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~
5768 $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~
5769 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5774 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5777 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5778 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5783 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5788 *** create shared libraries on Solaris systems. Therefore, libtool
5789 *** is disabling shared libraries support. We urge you to upgrade GNU
5790 *** binutils to release 2.9.1 or newer. Another option is to modify
5791 *** your PATH or compiler configuration so that the native linker is
5792 *** used, and then restart.
5795 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5804 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5807 hardcode_shlibpath_var=no
5811 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5813 supports_anon_versioning=no
5814 case `$LD -v 2>/dev/null` in
5815 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5816 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5817 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5818 *\ 2.11.*) ;; # other 2.11 versions
5819 *) supports_anon_versioning=yes ;;
5821 if test $supports_anon_versioning = yes; then
5822 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5823 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5824 $echo "local: *; };" >> $output_objdir/$libname.ver~
5825 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5827 $archive_expsym_cmds="$archive_cmds"
5835 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5837 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5844 if test "$ld_shlibs" = yes; then
5845 runpath_var=LD_RUN_PATH
5846 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5847 export_dynamic_flag_spec='${wl}--export-dynamic'
5849 cygwin* | mingw* | pw32*)
5850 # dlltool doesn't understand --whole-archive et. al.
5851 whole_archive_flag_spec=
5854 # ancient GNU ld didn't support --whole-archive et. al.
5855 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5856 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5858 whole_archive_flag_spec=
5864 # PORTME fill in a description of your system's linker (not GNU ld)
5867 allow_undefined_flag=unsupported
5868 always_export_symbols=yes
5869 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'
5870 # Note: this linker hardcodes the directories in LIBPATH if there
5871 # are no directories specified by -L.
5872 hardcode_minus_L=yes
5873 if test "$GCC" = yes && test -z "$link_static_flag"; then
5874 # Neither direct hardcoding nor static linking is supported with a
5876 hardcode_direct=unsupported
5881 if test "$host_cpu" = ia64; then
5882 # On IA64, the linker does run time linking by default, so we don't
5883 # have to do anything special.
5884 aix_use_runtimelinking=no
5885 exp_sym_flag='-Bexport'
5888 aix_use_runtimelinking=no
5890 # Test if we are trying to use run time linking or normal
5891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5892 # need to do runtime linking.
5893 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5894 for ld_flag in $LDFLAGS; do
5897 aix_use_runtimelinking=yes
5904 exp_sym_flag='-bexport'
5905 no_entry_flag='-bnoentry'
5908 # When large executables or shared objects are built, AIX ld can
5909 # have problems creating the table of contents. If linking a library
5910 # or program results in "error TOC overflow" add -mminimal-toc to
5911 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5912 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5916 hardcode_libdir_separator=':'
5917 if test "$GCC" = yes; then
5918 case $host_os in aix4.[012]|aix4.[012].*)
5919 collect2name=`${CC} -print-prog-name=collect2`
5920 if test -f "$collect2name" && \
5921 strings "$collect2name" | grep resolve_lib_name >/dev/null
5923 # We have reworked collect2
5926 # We have old collect2
5927 hardcode_direct=unsupported
5928 # It fails to find uninstalled libraries when the uninstalled
5929 # path is not listed in the libpath. Setting hardcode_minus_L
5930 # to unsupported forces relinking
5931 hardcode_minus_L=yes
5932 hardcode_libdir_flag_spec='-L$libdir'
5933 hardcode_libdir_separator=
5937 shared_flag='-shared'
5940 if test "$host_cpu" = ia64; then
5941 shared_flag='${wl}-G'
5943 if test "$aix_use_runtimelinking" = yes; then
5944 shared_flag='${wl}-G'
5946 shared_flag='${wl}-bM:SRE'
5951 # It seems that -bexpall can do strange things, so it is better to
5952 # generate a list of symbols to export.
5953 always_export_symbols=yes
5954 if test "$aix_use_runtimelinking" = yes; then
5955 # Warning - without using the other runtime loading flags (-brtl),
5956 # -berok will link without error, but may produce a broken library.
5957 allow_undefined_flag='-berok'
5958 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5959 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"
5961 if test "$host_cpu" = ia64; then
5962 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5963 allow_undefined_flag="-z nodefs"
5964 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"
5966 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5967 # Warning - without using the other run time loading flags,
5968 # -berok will link without error, but may produce a broken library.
5969 allow_undefined_flag='${wl}-berok'
5970 # This is a bit strange, but is similar to how AIX traditionally builds
5971 # it's shared libraries.
5972 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'
5978 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)'
5979 hardcode_libdir_flag_spec='-L$libdir'
5980 hardcode_minus_L=yes
5981 # see comment about different semantics on the GNU ld section
5985 cygwin* | mingw* | pw32*)
5986 # When not using gcc, we currently assume that we are using
5987 # Microsoft Visual C++.
5988 # hardcode_libdir_flag_spec is actually meaningless, as there is
5989 # no search path for DLLs.
5990 hardcode_libdir_flag_spec=' '
5991 allow_undefined_flag=unsupported
5992 # Tell ltmain to make .lib files, not .a files.
5994 # FIXME: Setting linknames here is a bad hack.
5995 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5996 # The linker will automatically build a .lib file if we build a DLL.
5997 old_archive_from_new_cmds='true'
5998 # FIXME: Should let the user specify the lib program.
5999 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6000 fix_srcfile_path='`cygpath -w "$srcfile"`'
6003 darwin* | rhapsody*)
6005 rhapsody* | darwin1.[012])
6006 allow_undefined_flag='-undefined suppress'
6009 allow_undefined_flag='-flat_namespace -undefined suppress'
6012 # FIXME: Relying on posixy $() will cause problems for
6013 # cross-compilation, but unfortunately the echo tests do not
6014 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6015 # `"' quotes if we put them in here... so don't!
6016 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)'
6017 # We need to add '_' to the symbols in $export_symbols first
6018 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6020 hardcode_shlibpath_var=no
6021 whole_archive_flag_spec='-all_load $convenience'
6028 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6029 # support. Future versions do this automatically, but an explicit c++rt0.o
6030 # does not break anything, and helps significantly (at the cost of a little
6033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6034 hardcode_libdir_flag_spec='-R$libdir'
6036 hardcode_shlibpath_var=no
6039 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6041 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6043 hardcode_minus_L=yes
6044 hardcode_shlibpath_var=no
6047 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6049 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6050 hardcode_libdir_flag_spec='-R$libdir'
6052 hardcode_shlibpath_var=no
6055 hpux9* | hpux10* | hpux11*)
6057 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' ;;
6058 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6061 hardcode_libdir_separator=:
6063 hardcode_minus_L=yes # Not in the search PATH, but as the default
6064 # location of the library.
6065 export_dynamic_flag_spec='${wl}-E'
6068 irix5* | irix6* | nonstopux*)
6069 if test "$GCC" = yes; then
6070 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'
6071 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6073 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'
6074 hardcode_libdir_flag_spec='-rpath $libdir'
6076 hardcode_libdir_separator=:
6077 link_all_deplibs=yes
6081 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6084 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6086 hardcode_libdir_flag_spec='-R$libdir'
6088 hardcode_shlibpath_var=no
6092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6095 hardcode_libdir_separator=:
6096 hardcode_shlibpath_var=no
6101 hardcode_shlibpath_var=no
6102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6103 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6104 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6105 export_dynamic_flag_spec='${wl}-E'
6108 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6110 hardcode_libdir_flag_spec='-R$libdir'
6113 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6114 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6121 hardcode_libdir_flag_spec='-L$libdir'
6122 hardcode_minus_L=yes
6123 allow_undefined_flag=unsupported
6124 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'
6125 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6129 if test "$GCC" = yes; then
6130 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6131 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'
6133 allow_undefined_flag=' -expect_unresolved \*'
6134 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'
6136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6137 hardcode_libdir_separator=:
6140 osf4* | osf5*) # as osf3* with the addition of -msym flag
6141 if test "$GCC" = yes; then
6142 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6143 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'
6144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6146 allow_undefined_flag=' -expect_unresolved \*'
6147 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'
6148 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6149 $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'
6151 #Both c and cxx compiler support -rpath directly
6152 hardcode_libdir_flag_spec='-rpath $libdir'
6154 hardcode_libdir_separator=:
6158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6159 hardcode_shlibpath_var=no
6160 runpath_var=LD_RUN_PATH
6161 hardcode_runpath_var=yes
6162 export_dynamic_flag_spec='${wl}-Bexport'
6166 # gcc --version < 3.0 without binutils cannot create self contained
6167 # shared libraries reliably, requiring libgcc.a to resolve some of
6168 # the object symbols generated in some cases. Libraries that use
6169 # assert need libgcc.a to resolve __eprintf, for example. Linking
6170 # a copy of libgcc.a into every shared library to guarantee resolving
6171 # such symbols causes other problems: According to Tim Van Holder
6172 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6173 # (to the application) exception stack for one thing.
6174 no_undefined_flag=' -z defs'
6175 if test "$GCC" = yes; then
6176 case `$CC --version 2>/dev/null` in
6180 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6181 *** create self contained shared libraries on Solaris systems, without
6182 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6183 *** -no-undefined support, which will at least allow you to build shared
6184 *** libraries. However, you may find that when you link such libraries
6185 *** into an application without using GCC, you have to manually add
6186 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6187 *** upgrade to a newer version of GCC. Another option is to rebuild your
6188 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6195 # $CC -shared without GNU ld will not create a library from C++
6196 # object files and a static libstdc++, better avoid it by now
6197 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6198 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6199 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6200 hardcode_libdir_flag_spec='-R$libdir'
6201 hardcode_shlibpath_var=no
6203 solaris2.[0-5] | solaris2.[0-5].*) ;;
6204 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6205 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6207 link_all_deplibs=yes
6211 if test "x$host_vendor" = xsequent; then
6212 # Use $CC to link under sequent, because it throws in some extra .o
6213 # files that make .init and .fini sections work.
6214 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6216 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6218 hardcode_libdir_flag_spec='-L$libdir'
6220 hardcode_minus_L=yes
6221 hardcode_shlibpath_var=no
6225 case $host_vendor in
6227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6228 hardcode_direct=yes # is this really true???
6231 ## LD is ld it makes a PLAMLIB
6232 ## CC just makes a GrossModule.
6233 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6234 reload_cmds='$CC -r -o $output$reload_objs'
6238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6239 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6242 runpath_var='LD_RUN_PATH'
6243 hardcode_shlibpath_var=no
6247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6248 hardcode_shlibpath_var=no
6249 export_dynamic_flag_spec='-Bexport'
6253 no_undefined_flag=' -z text'
6254 # $CC -shared without GNU ld will not create a library from C++
6255 # object files and a static libstdc++, better avoid it by now
6256 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6257 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6258 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6259 hardcode_libdir_flag_spec=
6260 hardcode_shlibpath_var=no
6261 runpath_var='LD_RUN_PATH'
6265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6266 hardcode_libdir_flag_spec='-L$libdir'
6267 hardcode_shlibpath_var=no
6271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6272 hardcode_libdir_flag_spec='-L$libdir'
6273 hardcode_shlibpath_var=no
6277 if test -d /usr/nec; then
6278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6279 hardcode_shlibpath_var=no
6280 runpath_var=LD_RUN_PATH
6281 hardcode_runpath_var=yes
6287 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6290 hardcode_shlibpath_var=no
6291 hardcode_runpath_var=yes
6292 runpath_var=LD_RUN_PATH
6295 sysv5uw7* | unixware7*)
6296 no_undefined_flag='${wl}-z ${wl}text'
6297 if test "$GCC" = yes; then
6298 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6300 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6302 runpath_var='LD_RUN_PATH'
6303 hardcode_shlibpath_var=no
6311 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6312 echo "${ECHO_T}$ld_shlibs" >&6
6313 test "$ld_shlibs" = no && can_build_shared=no
6315 # Check hardcoding attributes.
6316 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6317 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6319 if test -n "$hardcode_libdir_flag_spec" || \
6320 test -n "$runpath_var"; then
6322 # We can hardcode non-existant directories.
6323 if test "$hardcode_direct" != no &&
6324 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6325 # have to relink, otherwise we might link with an installed library
6326 # when we should be linking with a yet-to-be-installed one
6327 ## test "$hardcode_shlibpath_var" != no &&
6328 test "$hardcode_minus_L" != no; then
6329 # Linking always hardcodes the temporary library directory.
6330 hardcode_action=relink
6332 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6333 hardcode_action=immediate
6336 # We cannot hardcode anything, or else we can only hardcode existing
6338 hardcode_action=unsupported
6340 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6341 echo "${ECHO_T}$hardcode_action" >&6
6345 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6346 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6347 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6348 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6349 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6350 echo "$as_me:$LINENO: result: yes" >&5
6351 echo "${ECHO_T}yes" >&6
6353 echo "$as_me:$LINENO: result: no" >&5
6354 echo "${ECHO_T}no" >&6
6357 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6358 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6360 # PORTME Fill in your ld.so characteristics
6361 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6362 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6364 libname_spec='lib$name'
6371 shlibpath_overrides_runpath=unknown
6373 dynamic_linker="$host_os ld.so"
6374 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6375 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6380 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6381 shlibpath_var=LIBPATH
6383 # AIX has no versioning support, so we append a major version to the name.
6384 soname_spec='${libname}${release}.so$major'
6391 hardcode_into_libs=yes
6392 if test "$host_cpu" = ia64; then
6393 # AIX 5 supports IA64
6394 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6395 shlibpath_var=LD_LIBRARY_PATH
6397 # With GCC up to 2.95.x, collect2 would create an import file
6398 # for dependence libraries. The import file would start with
6399 # the line `#! .'. This would cause the generated library to
6400 # depend on `.', always an invalid library. This was fixed in
6401 # development snapshots of GCC prior to 3.0.
6403 aix4 | aix4.[01] | aix4.[01].*)
6404 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6406 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6413 # AIX (on Power*) has no versioning support, so currently we can
6414 # not hardcode correct soname into executable. Probably we can
6415 # add versioning support to collect2, so additional links can
6416 # be useful in future.
6417 if test "$aix_use_runtimelinking" = yes; then
6418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6419 # instead of lib<name>.a to let people know that these are not
6420 # typical AIX shared libraries.
6421 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6423 # We preserve .a as extension for shared libraries through AIX4.2
6424 # and later when we are not doing run time linking.
6425 library_names_spec='${libname}${release}.a $libname.a'
6426 soname_spec='${libname}${release}.so$major'
6428 shlibpath_var=LIBPATH
6430 hardcode_into_libs=yes
6434 library_names_spec='$libname.ixlibrary $libname.a'
6435 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6436 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'
6440 library_names_spec='${libname}.so'
6441 dynamic_linker="$host_os ld.so"
6442 shlibpath_var=LIBRARY_PATH
6448 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6449 soname_spec='${libname}${release}.so$major'
6450 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6451 shlibpath_var=LD_LIBRARY_PATH
6452 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6453 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6454 export_dynamic_flag_spec=-rdynamic
6455 # the default ld.so.conf also contains /usr/contrib/lib and
6456 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6457 # libtool to hard-code these into programs
6460 cygwin* | mingw* | pw32*)
6461 version_type=windows
6464 case $GCC,$host_os in
6466 library_names_spec='$libname.dll.a'
6467 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6468 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6469 dldir=$destdir/`dirname \$dlpath`~
6470 test -d \$dldir || mkdir -p \$dldir~
6471 $install_prog .libs/$dlname \$dldir/$dlname'
6472 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6473 dlpath=$dir/\$dldll~
6477 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6478 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6481 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6484 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6487 dynamic_linker='Win32 ld.exe'
6488 # FIXME: first we should search . and the directory the executable is in
6492 darwin* | rhapsody*)
6493 dynamic_linker="$host_os dyld"
6497 # FIXME: Relying on posixy $() will cause problems for
6498 # cross-compilation, but unfortunately the echo tests do not
6499 # yet detect zsh echo's removal of \ escapes.
6500 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)'
6501 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6502 shlibpath_overrides_runpath=yes
6503 shlibpath_var=DYLD_LIBRARY_PATH
6511 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6512 version_type=freebsd-$objformat
6513 case $version_type in
6515 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6520 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6524 shlibpath_var=LD_LIBRARY_PATH
6527 shlibpath_overrides_runpath=yes
6530 shlibpath_overrides_runpath=no
6531 hardcode_into_libs=yes
6540 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6541 soname_spec='${libname}${release}.so$major'
6542 shlibpath_var=LD_LIBRARY_PATH
6543 hardcode_into_libs=yes
6546 hpux9* | hpux10* | hpux11*)
6547 # Give a soname corresponding to the major version so that dld.sl refuses to
6548 # link against other versions.
6549 dynamic_linker="$host_os dld.sl"
6553 shlibpath_var=SHLIB_PATH
6554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6555 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6556 soname_spec='${libname}${release}.sl$major'
6557 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6558 postinstall_cmds='chmod 555 $lib'
6561 irix5* | irix6* | nonstopux*)
6563 nonstopux*) version_type=nonstopux ;;
6564 *) version_type=irix ;;
6568 soname_spec='${libname}${release}.so$major'
6569 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6571 irix5* | nonstopux*)
6575 case $LD in # libtool.m4 will add one of these switches to LD
6576 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6577 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6578 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6579 *) libsuff= shlibsuff= libmagic=never-match;;
6583 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6584 shlibpath_overrides_runpath=no
6585 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6586 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6589 # No shared lib support for Linux oldld, aout, or coff.
6590 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6594 # This must be Linux ELF.
6599 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6600 soname_spec='${libname}${release}.so$major'
6601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6602 shlibpath_var=LD_LIBRARY_PATH
6603 shlibpath_overrides_runpath=no
6604 # This implies no fast_install, which is unacceptable.
6605 # Some rework will be needed to allow for fast_install
6606 # before this can be enabled.
6607 hardcode_into_libs=yes
6609 case $host_cpu:$lt_cv_cc_64bit_output in
6610 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6611 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6612 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6616 # We used to test for /lib/ld.so.1 and disable shared libraries on
6617 # powerpc, because MkLinux only supported shared libraries with the
6618 # GNU dynamic linker. Since this was broken with cross compilers,
6619 # most powerpc-linux boxes support dynamic linking these days and
6620 # people can always --disable-shared, the test was removed, and we
6621 # assume the GNU/Linux dynamic linker is in use.
6622 dynamic_linker='GNU/Linux ld.so'
6624 # Find out which ABI we are using (multilib Linux x86_64 hack).
6628 echo '#line 6628 "configure"' > conftest.$ac_ext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; then
6634 case `/usr/bin/file conftest.$ac_objext` in
6645 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6646 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6654 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6656 dynamic_linker='NetBSD (a.out) ld.so'
6658 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6659 soname_spec='${libname}${release}.so$major'
6660 dynamic_linker='NetBSD ld.elf_so'
6662 shlibpath_var=LD_LIBRARY_PATH
6663 shlibpath_overrides_runpath=yes
6664 hardcode_into_libs=yes
6669 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6670 shlibpath_var=LD_LIBRARY_PATH
6671 shlibpath_overrides_runpath=yes
6678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6680 openbsd2.[89] | openbsd2.[89].*)
6681 shlibpath_overrides_runpath=no
6684 shlibpath_overrides_runpath=yes
6688 shlibpath_overrides_runpath=yes
6690 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6692 shlibpath_var=LD_LIBRARY_PATH
6696 libname_spec='$name'
6698 library_names_spec='$libname.dll $libname.a'
6699 dynamic_linker='OS/2 ld.exe'
6700 shlibpath_var=LIBPATH
6703 osf3* | osf4* | osf5*)
6706 soname_spec='${libname}${release}.so$major'
6707 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6708 shlibpath_var=LD_LIBRARY_PATH
6709 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6710 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6711 hardcode_into_libs=yes
6716 soname_spec='${libname}${release}.so$major'
6717 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6718 shlibpath_var=LD_LIBRARY_PATH
6725 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6726 soname_spec='${libname}${release}.so$major'
6727 shlibpath_var=LD_LIBRARY_PATH
6728 shlibpath_overrides_runpath=yes
6729 hardcode_into_libs=yes
6730 # ldd complains unless libraries are executable
6731 postinstall_cmds='chmod +x $lib'
6736 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6737 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6738 shlibpath_var=LD_LIBRARY_PATH
6739 shlibpath_overrides_runpath=yes
6740 if test "$with_gnu_ld" = yes; then
6746 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6748 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6749 soname_spec='${libname}${release}.so$major'
6750 shlibpath_var=LD_LIBRARY_PATH
6751 case $host_vendor in
6753 shlibpath_overrides_runpath=no
6755 export_dynamic_flag_spec='${wl}-Blargedynsym'
6756 runpath_var=LD_RUN_PATH
6764 shlibpath_overrides_runpath=no
6765 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6772 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6773 soname_spec='${libname}${release}.so$major'
6774 shlibpath_var=LD_LIBRARY_PATH
6781 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6782 soname_spec='${libname}${release}.so$major'
6783 shlibpath_var=LD_LIBRARY_PATH
6787 if test -d /usr/nec ;then
6789 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6790 soname_spec='$libname.so.$major'
6791 shlibpath_var=LD_LIBRARY_PATH
6799 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6800 echo "${ECHO_T}$dynamic_linker" >&6
6801 test "$dynamic_linker" = no && can_build_shared=no
6803 # Report the final consequences.
6804 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6805 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6806 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6807 echo "${ECHO_T}$can_build_shared" >&6
6809 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6810 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6811 test "$can_build_shared" = "no" && enable_shared=no
6813 # On AIX, shared libraries and static libraries use the same namespace, and
6814 # are all built from PIC.
6817 test "$enable_shared" = yes && enable_static=no
6818 if test -n "$RANLIB"; then
6819 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6820 postinstall_cmds='$RANLIB $lib'
6825 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6826 test "$enable_shared" = yes && enable_static=no
6830 echo "$as_me:$LINENO: result: $enable_shared" >&5
6831 echo "${ECHO_T}$enable_shared" >&6
6833 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6834 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6835 # Make sure either enable_shared or enable_static is yes.
6836 test "$enable_shared" = yes || enable_static=yes
6837 echo "$as_me:$LINENO: result: $enable_static" >&5
6838 echo "${ECHO_T}$enable_static" >&6
6840 if test "$hardcode_action" = relink; then
6841 # Fast installation is not supported
6842 enable_fast_install=no
6843 elif test "$shlibpath_overrides_runpath" = yes ||
6844 test "$enable_shared" = no; then
6845 # Fast installation is not necessary
6846 enable_fast_install=needless
6849 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6850 if test "$GCC" = yes; then
6851 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6854 if test "x$enable_dlopen" != xyes; then
6855 enable_dlopen=unknown
6856 enable_dlopen_self=unknown
6857 enable_dlopen_self_static=unknown
6864 lt_cv_dlopen="load_add_on"
6866 lt_cv_dlopen_self=yes
6869 cygwin* | mingw* | pw32*)
6870 lt_cv_dlopen="LoadLibrary"
6875 echo "$as_me:$LINENO: checking for shl_load" >&5
6876 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6877 if test "${ac_cv_func_shl_load+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 cat >conftest.$ac_ext <<_ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6888 #define shl_load innocuous_shl_load
6890 /* System header to define __stub macros and hopefully few prototypes,
6891 which can conflict with char shl_load (); below.
6892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6893 <limits.h> exists even on freestanding compilers. */
6896 # include <limits.h>
6898 # include <assert.h>
6903 /* Override any gcc2 internal prototype to avoid an error. */
6908 /* We use char because int might match the return type of a gcc2
6909 builtin and then its argument prototype would still apply. */
6911 /* The GNU C library defines this for functions which it implements
6912 to always fail with ENOSYS. Some functions are actually named
6913 something starting with __ and the normal name is an alias. */
6914 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6917 char (*f) () = shl_load;
6926 return f != shl_load;
6931 rm -f conftest.$ac_objext conftest$ac_exeext
6932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6933 (eval $ac_link) 2>conftest.er1
6935 grep -v '^ *+' conftest.er1 >conftest.err
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
6940 { ac_try='test -z "$ac_c_werror_flag"
6941 || test ! -s conftest.err'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; } &&
6947 { ac_try='test -s conftest$ac_exeext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 ac_cv_func_shl_load=yes
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 ac_cv_func_shl_load=no
6960 rm -f conftest.err conftest.$ac_objext \
6961 conftest$ac_exeext conftest.$ac_ext
6963 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6964 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6965 if test $ac_cv_func_shl_load = yes; then
6966 lt_cv_dlopen="shl_load"
6968 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6969 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6970 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 ac_check_lib_save_LIBS=$LIBS
6975 cat >conftest.$ac_ext <<_ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h. */
6982 /* Override any gcc2 internal prototype to avoid an error. */
6986 /* We use char because int might match the return type of a gcc2
6987 builtin and then its argument prototype would still apply. */
6997 rm -f conftest.$ac_objext conftest$ac_exeext
6998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6999 (eval $ac_link) 2>conftest.er1
7001 grep -v '^ *+' conftest.er1 >conftest.err
7003 cat conftest.err >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } &&
7006 { ac_try='test -z "$ac_c_werror_flag"
7007 || test ! -s conftest.err'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; } &&
7013 { ac_try='test -s conftest$ac_exeext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 ac_cv_lib_dld_shl_load=yes
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7024 ac_cv_lib_dld_shl_load=no
7026 rm -f conftest.err conftest.$ac_objext \
7027 conftest$ac_exeext conftest.$ac_ext
7028 LIBS=$ac_check_lib_save_LIBS
7030 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7031 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7032 if test $ac_cv_lib_dld_shl_load = yes; then
7033 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7035 echo "$as_me:$LINENO: checking for dlopen" >&5
7036 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7037 if test "${ac_cv_func_dlopen+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 cat >conftest.$ac_ext <<_ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7048 #define dlopen innocuous_dlopen
7050 /* System header to define __stub macros and hopefully few prototypes,
7051 which can conflict with char dlopen (); below.
7052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7053 <limits.h> exists even on freestanding compilers. */
7056 # include <limits.h>
7058 # include <assert.h>
7063 /* Override any gcc2 internal prototype to avoid an error. */
7068 /* We use char because int might match the return type of a gcc2
7069 builtin and then its argument prototype would still apply. */
7071 /* The GNU C library defines this for functions which it implements
7072 to always fail with ENOSYS. Some functions are actually named
7073 something starting with __ and the normal name is an alias. */
7074 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7077 char (*f) () = dlopen;
7091 rm -f conftest.$ac_objext conftest$ac_exeext
7092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7093 (eval $ac_link) 2>conftest.er1
7095 grep -v '^ *+' conftest.er1 >conftest.err
7097 cat conftest.err >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } &&
7100 { ac_try='test -z "$ac_c_werror_flag"
7101 || test ! -s conftest.err'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; } &&
7107 { ac_try='test -s conftest$ac_exeext'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; }; then
7113 ac_cv_func_dlopen=yes
7115 echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7118 ac_cv_func_dlopen=no
7120 rm -f conftest.err conftest.$ac_objext \
7121 conftest$ac_exeext conftest.$ac_ext
7123 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7124 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7125 if test $ac_cv_func_dlopen = yes; then
7126 lt_cv_dlopen="dlopen"
7128 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7129 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7130 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 ac_check_lib_save_LIBS=$LIBS
7135 cat >conftest.$ac_ext <<_ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7142 /* Override any gcc2 internal prototype to avoid an error. */
7146 /* We use char because int might match the return type of a gcc2
7147 builtin and then its argument prototype would still apply. */
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>conftest.er1
7161 grep -v '^ *+' conftest.er1 >conftest.err
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -z "$ac_c_werror_flag"
7167 || test ! -s conftest.err'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; } &&
7173 { ac_try='test -s conftest$ac_exeext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7179 ac_cv_lib_dl_dlopen=yes
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7184 ac_cv_lib_dl_dlopen=no
7186 rm -f conftest.err conftest.$ac_objext \
7187 conftest$ac_exeext conftest.$ac_ext
7188 LIBS=$ac_check_lib_save_LIBS
7190 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7191 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7192 if test $ac_cv_lib_dl_dlopen = yes; then
7193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7195 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7196 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7197 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 ac_check_lib_save_LIBS=$LIBS
7202 cat >conftest.$ac_ext <<_ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7209 /* Override any gcc2 internal prototype to avoid an error. */
7213 /* We use char because int might match the return type of a gcc2
7214 builtin and then its argument prototype would still apply. */
7224 rm -f conftest.$ac_objext conftest$ac_exeext
7225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7226 (eval $ac_link) 2>conftest.er1
7228 grep -v '^ *+' conftest.er1 >conftest.err
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } &&
7233 { ac_try='test -z "$ac_c_werror_flag"
7234 || test ! -s conftest.err'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try='test -s conftest$ac_exeext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7246 ac_cv_lib_svld_dlopen=yes
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 ac_cv_lib_svld_dlopen=no
7253 rm -f conftest.err conftest.$ac_objext \
7254 conftest$ac_exeext conftest.$ac_ext
7255 LIBS=$ac_check_lib_save_LIBS
7257 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7258 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7259 if test $ac_cv_lib_svld_dlopen = yes; then
7260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7262 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7263 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7264 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 ac_check_lib_save_LIBS=$LIBS
7269 cat >conftest.$ac_ext <<_ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h. */
7276 /* Override any gcc2 internal prototype to avoid an error. */
7280 /* We use char because int might match the return type of a gcc2
7281 builtin and then its argument prototype would still apply. */
7291 rm -f conftest.$ac_objext conftest$ac_exeext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7293 (eval $ac_link) 2>conftest.er1
7295 grep -v '^ *+' conftest.er1 >conftest.err
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try='test -z "$ac_c_werror_flag"
7301 || test ! -s conftest.err'
7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; } &&
7307 { ac_try='test -s conftest$ac_exeext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 ac_cv_lib_dld_dld_link=yes
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7318 ac_cv_lib_dld_dld_link=no
7320 rm -f conftest.err conftest.$ac_objext \
7321 conftest$ac_exeext conftest.$ac_ext
7322 LIBS=$ac_check_lib_save_LIBS
7324 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7325 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7326 if test $ac_cv_lib_dld_dld_link = yes; then
7327 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7348 if test "x$lt_cv_dlopen" != xno; then
7354 case $lt_cv_dlopen in
7356 save_CPPFLAGS="$CPPFLAGS"
7357 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7359 save_LDFLAGS="$LDFLAGS"
7360 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7363 LIBS="$lt_cv_dlopen_libs $LIBS"
7365 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7366 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7367 if test "${lt_cv_dlopen_self+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 if test "$cross_compiling" = yes; then :
7371 lt_cv_dlopen_self=cross
7373 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7374 lt_status=$lt_dlunknown
7375 cat > conftest.$ac_ext <<EOF
7376 #line 7376 "configure"
7377 #include "confdefs.h"
7386 # define LT_DLGLOBAL RTLD_GLOBAL
7389 # define LT_DLGLOBAL DL_GLOBAL
7391 # define LT_DLGLOBAL 0
7395 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7396 find out it does not work in some platform. */
7397 #ifndef LT_DLLAZY_OR_NOW
7399 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7402 # define LT_DLLAZY_OR_NOW DL_LAZY
7405 # define LT_DLLAZY_OR_NOW RTLD_NOW
7408 # define LT_DLLAZY_OR_NOW DL_NOW
7410 # define LT_DLLAZY_OR_NOW 0
7418 extern "C" void exit (int);
7421 void fnord() { int i=42;}
7424 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7425 int status = $lt_dlunknown;
7429 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7430 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7431 /* dlclose (self); */
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438 (eval $ac_link) 2>&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7442 (./conftest; exit; ) 2>/dev/null
7445 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7446 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7447 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7450 # compilation failed
7451 lt_cv_dlopen_self=no
7458 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7459 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7461 if test "x$lt_cv_dlopen_self" = xyes; then
7462 LDFLAGS="$LDFLAGS $link_static_flag"
7463 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7464 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7465 if test "${lt_cv_dlopen_self_static+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 if test "$cross_compiling" = yes; then :
7469 lt_cv_dlopen_self_static=cross
7471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7472 lt_status=$lt_dlunknown
7473 cat > conftest.$ac_ext <<EOF
7474 #line 7474 "configure"
7475 #include "confdefs.h"
7484 # define LT_DLGLOBAL RTLD_GLOBAL
7487 # define LT_DLGLOBAL DL_GLOBAL
7489 # define LT_DLGLOBAL 0
7493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7494 find out it does not work in some platform. */
7495 #ifndef LT_DLLAZY_OR_NOW
7497 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7500 # define LT_DLLAZY_OR_NOW DL_LAZY
7503 # define LT_DLLAZY_OR_NOW RTLD_NOW
7506 # define LT_DLLAZY_OR_NOW DL_NOW
7508 # define LT_DLLAZY_OR_NOW 0
7516 extern "C" void exit (int);
7519 void fnord() { int i=42;}
7522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7523 int status = $lt_dlunknown;
7527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7528 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7529 /* dlclose (self); */
7535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7536 (eval $ac_link) 2>&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7540 (./conftest; exit; ) 2>/dev/null
7543 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7544 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7545 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7548 # compilation failed
7549 lt_cv_dlopen_self_static=no
7556 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7557 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7560 CPPFLAGS="$save_CPPFLAGS"
7561 LDFLAGS="$save_LDFLAGS"
7566 case $lt_cv_dlopen_self in
7567 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7568 *) enable_dlopen_self=unknown ;;
7571 case $lt_cv_dlopen_self_static in
7572 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7573 *) enable_dlopen_self_static=unknown ;;
7578 if test "$enable_shared" = yes && test "$GCC" = yes; then
7579 case $archive_cmds in
7581 # FIXME: we may have to deal with multi-command sequences.
7584 # Test whether the compiler implicitly links with -lc since on some
7585 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7586 # to ld, don't add -lc before -lgcc.
7587 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7588 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7589 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 echo 'static int dummy;' > conftest.$ac_ext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7596 (eval $ac_compile) 2>&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; then
7602 libobjs=conftest.$ac_objext
7604 wl=$lt_cv_prog_cc_wl
7610 save_allow_undefined_flag=$allow_undefined_flag
7611 allow_undefined_flag=
7612 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7613 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }
7618 lt_cv_archive_cmds_need_lc=no
7620 lt_cv_archive_cmds_need_lc=yes
7622 allow_undefined_flag=$save_allow_undefined_flag
7624 cat conftest.err 1>&5
7628 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7629 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7633 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7635 # The second clause should only fire when bootstrapping the
7636 # libtool distribution, otherwise you forgot to ship ltmain.sh
7637 # with your package, and you will get complaints that there are
7638 # no rules to generate ltmain.sh.
7639 if test -f "$ltmain"; then
7642 # If there is no Makefile yet, we rely on a make rule to execute
7643 # `config.status --recheck' to rerun these tests and create the
7644 # libtool script then.
7645 test -f Makefile && make "$ltmain"
7648 if test -f "$ltmain"; then
7649 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7652 echo creating $ofile
7654 # Now quote all the things that may contain metacharacters while being
7655 # careful not to overquote the AC_SUBSTed values. We take copies of the
7656 # variables and quote the copies for generation of the libtool script.
7657 for var in echo old_CC old_CFLAGS SED \
7658 AR AR_FLAGS CC LD LN_S NM SHELL \
7659 reload_flag reload_cmds wl \
7660 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7661 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7662 library_names_spec soname_spec \
7663 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7664 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7665 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7666 old_striplib striplib file_magic_cmd export_symbols_cmds \
7667 deplibs_check_method allow_undefined_flag no_undefined_flag \
7668 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7669 global_symbol_to_c_name_address \
7670 hardcode_libdir_flag_spec hardcode_libdir_separator \
7671 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7672 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7675 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7676 old_postinstall_cmds | old_postuninstall_cmds | \
7677 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7678 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7679 postinstall_cmds | postuninstall_cmds | \
7680 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7681 # Double-quote double-evaled strings.
7682 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7690 cat <<__EOF__ > "${ofile}T"
7693 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7694 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7695 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7697 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7698 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7700 # This program is free software; you can redistribute it and/or modify
7701 # it under the terms of the GNU General Public License as published by
7702 # the Free Software Foundation; either version 2 of the License, or
7703 # (at your option) any later version.
7705 # This program is distributed in the hope that it will be useful, but
7706 # WITHOUT ANY WARRANTY; without even the implied warranty of
7707 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7708 # General Public License for more details.
7710 # You should have received a copy of the GNU General Public License
7711 # along with this program; if not, write to the Free Software
7712 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7714 # As a special exception to the GNU General Public License, if you
7715 # distribute this file as part of a program that contains a
7716 # configuration script generated by Autoconf, you may include it under
7717 # the same distribution terms that you use for the rest of that program.
7719 # A sed that does not truncate output.
7722 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7723 Xsed="${SED} -e s/^X//"
7725 # The HP-UX ksh and POSIX shell print the target directory to stdout
7727 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7729 # ### BEGIN LIBTOOL CONFIG
7731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7733 # Shell to use when invoking shell scripts.
7736 # Whether or not to build shared libraries.
7737 build_libtool_libs=$enable_shared
7739 # Whether or not to build static libraries.
7740 build_old_libs=$enable_static
7742 # Whether or not to add -lc for building shared libraries.
7743 build_libtool_need_lc=$need_lc
7745 # Whether or not to optimize for fast installation.
7746 fast_install=$enable_fast_install
7749 host_alias=$host_alias
7752 # An echo program that does not interpret backslashes.
7757 AR_FLAGS=$lt_AR_FLAGS
7759 # The default C compiler.
7762 # Is the compiler the GNU C compiler?
7765 # The linker used to build libraries.
7768 # Whether we need hard or soft links.
7771 # A BSD-compatible nm program.
7774 # A symbol stripping program
7777 # Used to examine libraries when file_magic_cmd begins "file"
7778 MAGIC_CMD=$MAGIC_CMD
7780 # Used on cygwin: DLL creation program.
7783 # Used on cygwin: object dumper.
7786 # Used on cygwin: assembler.
7789 # The name of the directory that contains temporary libtool files.
7792 # How to create reloadable object files.
7793 reload_flag=$lt_reload_flag
7794 reload_cmds=$lt_reload_cmds
7796 # How to pass a linker flag through the compiler.
7799 # Object file suffix (normally "o").
7802 # Old archive suffix (normally "a").
7805 # Executable file suffix (normally "").
7808 # Additional compiler flags for building library objects.
7809 pic_flag=$lt_pic_flag
7812 # Does compiler simultaneously support -c and -o options?
7813 compiler_c_o=$lt_compiler_c_o
7815 # Can we write directly to a .lo ?
7816 compiler_o_lo=$lt_compiler_o_lo
7818 # Must we lock files when doing compilation ?
7819 need_locks=$lt_need_locks
7821 # Do we need the lib prefix for modules?
7822 need_lib_prefix=$need_lib_prefix
7824 # Do we need a version for libraries?
7825 need_version=$need_version
7827 # Whether dlopen is supported.
7828 dlopen_support=$enable_dlopen
7830 # Whether dlopen of programs is supported.
7831 dlopen_self=$enable_dlopen_self
7833 # Whether dlopen of statically linked programs is supported.
7834 dlopen_self_static=$enable_dlopen_self_static
7836 # Compiler flag to prevent dynamic linking.
7837 link_static_flag=$lt_link_static_flag
7839 # Compiler flag to turn off builtin functions.
7840 no_builtin_flag=$lt_no_builtin_flag
7842 # Compiler flag to allow reflexive dlopens.
7843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7845 # Compiler flag to generate shared objects directly from archives.
7846 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7848 # Compiler flag to generate thread-safe objects.
7849 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7851 # Library versioning type.
7852 version_type=$version_type
7854 # Format of library name prefix.
7855 libname_spec=$lt_libname_spec
7857 # List of archive names. First name is the real one, the rest are links.
7858 # The last name is the one that the linker finds with -lNAME.
7859 library_names_spec=$lt_library_names_spec
7861 # The coded name of the library, if different from the real name.
7862 soname_spec=$lt_soname_spec
7864 # Commands used to build and install an old-style archive.
7866 old_archive_cmds=$lt_old_archive_cmds
7867 old_postinstall_cmds=$lt_old_postinstall_cmds
7868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7870 # Create an old-style archive from a shared archive.
7871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7873 # Create a temporary old-style archive to link instead of a shared archive.
7874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7876 # Commands used to build and install a shared archive.
7877 archive_cmds=$lt_archive_cmds
7878 archive_expsym_cmds=$lt_archive_expsym_cmds
7879 postinstall_cmds=$lt_postinstall_cmds
7880 postuninstall_cmds=$lt_postuninstall_cmds
7882 # Commands to strip libraries.
7883 old_striplib=$lt_old_striplib
7884 striplib=$lt_striplib
7886 # Method to check whether dependent libraries are shared objects.
7887 deplibs_check_method=$lt_deplibs_check_method
7889 # Command to use when deplibs_check_method == file_magic.
7890 file_magic_cmd=$lt_file_magic_cmd
7892 # Flag that allows shared libraries with undefined symbols to be built.
7893 allow_undefined_flag=$lt_allow_undefined_flag
7895 # Flag that forces no undefined symbols.
7896 no_undefined_flag=$lt_no_undefined_flag
7898 # Commands used to finish a libtool library installation in a directory.
7899 finish_cmds=$lt_finish_cmds
7901 # Same as above, but a single script fragment to be evaled but not shown.
7902 finish_eval=$lt_finish_eval
7904 # Take the output of nm and produce a listing of raw symbols and C names.
7905 global_symbol_pipe=$lt_global_symbol_pipe
7907 # Transform the output of nm in a proper C declaration
7908 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7910 # Transform the output of nm in a C name address pair
7911 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7913 # This is the shared library runtime path variable.
7914 runpath_var=$runpath_var
7916 # This is the shared library path variable.
7917 shlibpath_var=$shlibpath_var
7919 # Is shlibpath searched before the hard-coded library search path?
7920 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7922 # How to hardcode a shared library path into an executable.
7923 hardcode_action=$hardcode_action
7925 # Whether we should hardcode library paths into libraries.
7926 hardcode_into_libs=$hardcode_into_libs
7928 # Flag to hardcode \$libdir into a binary during linking.
7929 # This must work even if \$libdir does not exist.
7930 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7932 # Whether we need a single -rpath flag with a separated argument.
7933 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7935 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7937 hardcode_direct=$hardcode_direct
7939 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7941 hardcode_minus_L=$hardcode_minus_L
7943 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7944 # the resulting binary.
7945 hardcode_shlibpath_var=$hardcode_shlibpath_var
7947 # Variables whose values should be saved in libtool wrapper scripts and
7948 # restored at relink time.
7949 variables_saved_for_relink="$variables_saved_for_relink"
7951 # Whether libtool must link a program against all its dependency libraries.
7952 link_all_deplibs=$link_all_deplibs
7954 # Compile-time system search path for libraries
7955 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7957 # Run-time system search path for libraries
7958 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7960 # Fix the shell variable \$srcfile for the compiler.
7961 fix_srcfile_path="$fix_srcfile_path"
7963 # Set to yes if exported symbols are required.
7964 always_export_symbols=$always_export_symbols
7966 # The commands to list exported symbols.
7967 export_symbols_cmds=$lt_export_symbols_cmds
7969 # The commands to extract the exported symbol list from a shared archive.
7970 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7972 # Symbols that should not be listed in the preloaded symbols.
7973 exclude_expsyms=$lt_exclude_expsyms
7975 # Symbols that must always be exported.
7976 include_expsyms=$lt_include_expsyms
7978 # ### END LIBTOOL CONFIG
7984 cat <<\EOF >> "${ofile}T"
7986 # AIX sometimes has problems with the GCC collect2 program. For some
7987 # reason, if we set the COLLECT_NAMES environment variable, the problems
7988 # vanish in a puff of smoke.
7989 if test "X${COLLECT_NAMES+set}" != Xset; then
7991 export COLLECT_NAMES
7998 cygwin* | mingw* | pw32* | os2*)
7999 cat <<'EOF' >> "${ofile}T"
8000 # This is a source program that is used to create dlls on Windows
8001 # Don't remove nor modify the starting and closing comments
8002 # /* ltdll.c starts here */
8003 # #define WIN32_LEAN_AND_MEAN
8004 # #include <windows.h>
8005 # #undef WIN32_LEAN_AND_MEAN
8006 # #include <stdio.h>
8008 # #ifndef __CYGWIN__
8009 # # ifdef __CYGWIN32__
8010 # # define __CYGWIN__ __CYGWIN32__
8014 # #ifdef __cplusplus
8017 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8018 # #ifdef __cplusplus
8023 # #include <cygwin/cygwin_dll.h>
8024 # DECLARE_CYGWIN_DLL( DllMain );
8026 # HINSTANCE __hDllInstance_base;
8029 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8031 # __hDllInstance_base = hInst;
8034 # /* ltdll.c ends here */
8035 # This is a source program that is used to create import libraries
8036 # on Windows for dlls which lack them. Don't remove nor modify the
8037 # starting and closing comments
8038 # /* impgen.c starts here */
8039 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8041 # This file is part of GNU libtool.
8043 # This program is free software; you can redistribute it and/or modify
8044 # it under the terms of the GNU General Public License as published by
8045 # the Free Software Foundation; either version 2 of the License, or
8046 # (at your option) any later version.
8048 # This program is distributed in the hope that it will be useful,
8049 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8050 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8051 # GNU General Public License for more details.
8053 # You should have received a copy of the GNU General Public License
8054 # along with this program; if not, write to the Free Software
8055 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8058 # #include <stdio.h> /* for printf() */
8059 # #include <unistd.h> /* for open(), lseek(), read() */
8060 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8061 # #include <string.h> /* for strdup() */
8063 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8065 # #define O_BINARY 0
8068 # static unsigned int
8069 # pe_get16 (fd, offset)
8073 # unsigned char b[2];
8074 # lseek (fd, offset, SEEK_SET);
8076 # return b[0] + (b[1]<<8);
8079 # static unsigned int
8080 # pe_get32 (fd, offset)
8084 # unsigned char b[4];
8085 # lseek (fd, offset, SEEK_SET);
8087 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8090 # static unsigned int
8094 # unsigned char *b = ptr;
8095 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8104 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8105 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8106 # unsigned long name_rvas, nexp;
8107 # unsigned char *expdata, *erva;
8108 # char *filename, *dll_name;
8110 # filename = argv[1];
8112 # dll = open(filename, O_RDONLY|O_BINARY);
8116 # dll_name = filename;
8118 # for (i=0; filename[i]; i++)
8119 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8120 # dll_name = filename + i +1;
8122 # pe_header_offset = pe_get32 (dll, 0x3c);
8123 # opthdr_ofs = pe_header_offset + 4 + 20;
8124 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8126 # if (num_entries < 1) /* no exports */
8129 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8130 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8131 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8132 # secptr = (pe_header_offset + 4 + 20 +
8133 # pe_get16 (dll, pe_header_offset + 4 + 16));
8136 # for (i = 0; i < nsections; i++)
8139 # unsigned long secptr1 = secptr + 40 * i;
8140 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8141 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8142 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8143 # lseek(dll, secptr1, SEEK_SET);
8144 # read(dll, sname, 8);
8145 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8147 # expptr = fptr + (export_rva - vaddr);
8148 # if (export_rva + export_size > vaddr + vsize)
8149 # export_size = vsize - (export_rva - vaddr);
8154 # expdata = (unsigned char*)malloc(export_size);
8155 # lseek (dll, expptr, SEEK_SET);
8156 # read (dll, expdata, export_size);
8157 # erva = expdata - export_rva;
8159 # nexp = pe_as32 (expdata+24);
8160 # name_rvas = pe_as32 (expdata+32);
8162 # printf ("EXPORTS\n");
8163 # for (i = 0; i<nexp; i++)
8165 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8166 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8171 # /* impgen.c ends here */
8177 # We use sed instead of cat because bash on DJGPP gets confused if
8178 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8179 # text mode, it properly converts lines to CR/LF. This bash problem
8180 # is reportedly fixed, but why not run on old versions too?
8181 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8183 mv -f "${ofile}T" "$ofile" || \
8184 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8192 # This can be used to rebuild libtool when needed
8193 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8195 # Always use our own libtool.
8196 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8198 # Prevent multiple expansion
8201 for ac_prog in gzip uncompress compress
8203 # Extract the first word of "$ac_prog", so it can be a program name with args.
8204 set dummy $ac_prog; ac_word=$2
8205 echo "$as_me:$LINENO: checking for $ac_word" >&5
8206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8207 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 if test -n "$UNCOMPRESS"; then
8211 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 test -z "$as_dir" && as_dir=.
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8220 ac_cv_prog_UNCOMPRESS="$ac_prog"
8221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8230 if test -n "$UNCOMPRESS"; then
8231 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8232 echo "${ECHO_T}$UNCOMPRESS" >&6
8234 echo "$as_me:$LINENO: result: no" >&5
8235 echo "${ECHO_T}no" >&6
8238 test -n "$UNCOMPRESS" && break
8247 if test "x$EXEEXT" = "x.exe";then
8258 echo "$as_me:$LINENO: checking for target system" >&5
8259 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8263 *cygwin* ) CYGWIN=yes;;
8264 *mingw* ) MINGW=yes;;
8268 if test "x$MINGW" = "xyes"; then
8269 #fix for the debian distribution of mingw
8270 if test -x "/usr/i586-mingw32msvc/bin/ar";then
8271 AR="/usr/i586-mingw32msvc/bin/ar"
8273 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8274 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8276 #fix for the gentoo distribution of mingw
8277 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8278 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8280 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8281 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8283 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8284 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8290 if test "x${CYGWIN}" = "xyes"; then
8291 cat >>confdefs.h <<_ACEOF
8295 echo "$as_me:$LINENO: result: cygwin" >&5
8296 echo "${ECHO_T}cygwin" >&6
8298 if test "x${MINGW}" = "xyes"; then
8299 cat >>confdefs.h <<_ACEOF
8304 cat >>confdefs.h <<_ACEOF
8308 LIBS="$LIBS -lws2_32"
8309 echo "$as_me:$LINENO: result: mingw" >&5
8310 echo "${ECHO_T}mingw" >&6
8314 cat >>confdefs.h <<_ACEOF
8318 echo "$as_me:$LINENO: result: " >&5
8319 echo "${ECHO_T}" >&6
8325 if test "x${MINGW}" != "xyes"; then
8327 cat >>confdefs.h <<_ACEOF
8338 # The following tries to make use of includes and libraries in
8339 # /usr/local, too. Notice: A -I/usr/local/include might break
8340 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8341 # especially on systems which link /usr/local to /usr, so it has yet
8342 # to be seen how useful this is.
8343 if test -d /usr/local/lib; then
8344 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8346 if test -d /usr/local/include; then
8347 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8348 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8351 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8352 # if the user has a special prefix (like /opt), there might also be $prefix/lib
8353 # and $prefix/include, which should be included in our search paths for libraries
8355 LDFLAGS="$LDFLAGS -L${libdir}"
8356 CPPFLAGS="$CPPFLAGS -I${includedir}"
8357 # TODO- test whether gcc still works after this
8361 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
8364 # this must be done after (I believe) AC_PROG_MAKE_SET
8365 if test "x$DEBUG" '!=' "x";then
8366 STRIP="@echo debug enabled, not stripping "
8372 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8373 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8374 if test "${ac_cv_lib_m_sin+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 ac_check_lib_save_LIBS=$LIBS
8379 cat >conftest.$ac_ext <<_ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8386 /* Override any gcc2 internal prototype to avoid an error. */
8390 /* We use char because int might match the return type of a gcc2
8391 builtin and then its argument prototype would still apply. */
8401 rm -f conftest.$ac_objext conftest$ac_exeext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8403 (eval $ac_link) 2>conftest.er1
8405 grep -v '^ *+' conftest.er1 >conftest.err
8407 cat conftest.err >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } &&
8410 { ac_try='test -z "$ac_c_werror_flag"
8411 || test ! -s conftest.err'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest$ac_exeext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8430 rm -f conftest.err conftest.$ac_objext \
8431 conftest$ac_exeext conftest.$ac_ext
8432 LIBS=$ac_check_lib_save_LIBS
8434 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8435 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8436 if test $ac_cv_lib_m_sin = yes; then
8437 cat >>confdefs.h <<_ACEOF
8444 echo "Error: Math library not found.";
8450 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8451 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8452 if test "${ac_cv_lib_z_deflate+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 ac_check_lib_save_LIBS=$LIBS
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8464 /* Override any gcc2 internal prototype to avoid an error. */
8468 /* We use char because int might match the return type of a gcc2
8469 builtin and then its argument prototype would still apply. */
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481 (eval $ac_link) 2>conftest.er1
8483 grep -v '^ *+' conftest.er1 >conftest.err
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -z "$ac_c_werror_flag"
8489 || test ! -s conftest.err'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; } &&
8495 { ac_try='test -s conftest$ac_exeext'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 ac_cv_lib_z_deflate=yes
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8506 ac_cv_lib_z_deflate=no
8508 rm -f conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 LIBS=$ac_check_lib_save_LIBS
8512 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8513 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8514 if test $ac_cv_lib_z_deflate = yes; then
8515 cat >>confdefs.h <<_ACEOF
8526 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8527 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8528 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 ac_check_lib_save_LIBS=$LIBS
8533 cat >conftest.$ac_ext <<_ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8540 /* Override any gcc2 internal prototype to avoid an error. */
8544 /* We use char because int might match the return type of a gcc2
8545 builtin and then its argument prototype would still apply. */
8546 char jpeg_write_raw_data ();
8550 jpeg_write_raw_data ();
8555 rm -f conftest.$ac_objext conftest$ac_exeext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8557 (eval $ac_link) 2>conftest.er1
8559 grep -v '^ *+' conftest.er1 >conftest.err
8561 cat conftest.err >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } &&
8564 { ac_try='test -z "$ac_c_werror_flag"
8565 || test ! -s conftest.err'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; } &&
8571 { ac_try='test -s conftest$ac_exeext'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; }; then
8577 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8582 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8584 rm -f conftest.err conftest.$ac_objext \
8585 conftest$ac_exeext conftest.$ac_ext
8586 LIBS=$ac_check_lib_save_LIBS
8588 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8589 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8590 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8591 cat >>confdefs.h <<_ACEOF
8592 #define HAVE_LIBJPEG 1
8602 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8603 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8604 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 ac_check_lib_save_LIBS=$LIBS
8609 cat >conftest.$ac_ext <<_ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8616 /* Override any gcc2 internal prototype to avoid an error. */
8620 /* We use char because int might match the return type of a gcc2
8621 builtin and then its argument prototype would still apply. */
8622 char T1_LoadFont ();
8631 rm -f conftest.$ac_objext conftest$ac_exeext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633 (eval $ac_link) 2>conftest.er1
8635 grep -v '^ *+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try='test -z "$ac_c_werror_flag"
8641 || test ! -s conftest.err'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try='test -s conftest$ac_exeext'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 ac_cv_lib_t1_T1_LoadFont=yes
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 ac_cv_lib_t1_T1_LoadFont=no
8660 rm -f conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8662 LIBS=$ac_check_lib_save_LIBS
8664 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8665 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8666 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8667 cat >>confdefs.h <<_ACEOF
8668 #define HAVE_LIBT1 1
8678 echo "$as_me:$LINENO: checking for EGifOpenFileName in -lungif" >&5
8679 echo $ECHO_N "checking for EGifOpenFileName in -lungif... $ECHO_C" >&6
8680 if test "${ac_cv_lib_ungif_EGifOpenFileName+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 ac_check_lib_save_LIBS=$LIBS
8684 LIBS="-lungif $LIBS"
8685 cat >conftest.$ac_ext <<_ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8692 /* Override any gcc2 internal prototype to avoid an error. */
8696 /* We use char because int might match the return type of a gcc2
8697 builtin and then its argument prototype would still apply. */
8698 char EGifOpenFileName ();
8702 EGifOpenFileName ();
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709 (eval $ac_link) 2>conftest.er1
8711 grep -v '^ *+' conftest.er1 >conftest.err
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -z "$ac_c_werror_flag"
8717 || test ! -s conftest.err'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 ac_cv_lib_ungif_EGifOpenFileName=yes
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8734 ac_cv_lib_ungif_EGifOpenFileName=no
8736 rm -f conftest.err conftest.$ac_objext \
8737 conftest$ac_exeext conftest.$ac_ext
8738 LIBS=$ac_check_lib_save_LIBS
8740 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifOpenFileName" >&5
8741 echo "${ECHO_T}$ac_cv_lib_ungif_EGifOpenFileName" >&6
8742 if test $ac_cv_lib_ungif_EGifOpenFileName = yes; then
8743 cat >>confdefs.h <<_ACEOF
8744 #define HAVE_LIBUNGIF 1
8747 LIBS="-lungif $LIBS"
8755 echo "$as_me:$LINENO: checking for byte order" >&5
8756 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8757 if test "$cross_compiling" = yes; then
8760 cat >conftest.$ac_ext <<_ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8767 int main (int argc, char *argv[])
8774 rm -f conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; }; then
8787 echo "$as_me: program exited with status $ac_status" >&5
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8794 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8798 if test "x${CROSSCOMPILE}" = "x1"; then
8799 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
8800 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
8801 echo "$as_me:$LINENO: checking target system type" >&5
8802 echo $ECHO_N "checking target system type... $ECHO_C" >&6
8803 if test "${ac_cv_target+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 ac_cv_target_alias=$target_alias
8807 test "x$ac_cv_target_alias" = "x" &&
8808 ac_cv_target_alias=$ac_cv_host_alias
8809 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
8810 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
8811 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
8812 { (exit 1); exit 1; }; }
8815 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
8816 echo "${ECHO_T}$ac_cv_target" >&6
8817 target=$ac_cv_target
8818 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8819 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8820 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8823 # The aliases save the names the user supplied, while $host etc.
8824 # will get canonicalized.
8825 test -n "$target_alias" &&
8826 test "$program_prefix$program_suffix$program_transform_name" = \
8828 program_prefix=${target_alias}-
8829 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
8830 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
8835 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
8842 if test "x${LITTLEENDIAN}" = "x1"; then
8843 echo "$as_me:$LINENO: result: little endian" >&5
8844 echo "${ECHO_T}little endian" >&6
8848 if test "x${BIGENDIAN}" = "x1"; then
8849 echo "$as_me:$LINENO: result: big endian" >&5
8850 echo "${ECHO_T}big endian" >&6
8853 export WORDS_BIGENDIAN
8854 cat >>confdefs.h <<_ACEOF
8855 #define WORDS_BIGENDIAN 1
8859 if test "x${BYTEORDERCHECKOK}" != "x1"; then
8860 echo "$as_me:$LINENO: result: unknown" >&5
8861 echo "${ECHO_T}unknown" >&6
8862 echo Byte order could not determined.
8868 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
8869 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
8870 if test "$cross_compiling" = yes; then
8873 cat >conftest.$ac_ext <<_ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8881 int main (int argc, char*argv[])
8883 return system("test `touch config.tmp2`");
8887 rm -f conftest$ac_exeext
8888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8889 (eval $ac_link) 2>&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8900 echo "$as_me: program exited with status $ac_status" >&5
8901 echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8908 if test "x${OK}" = "xOK";then
8909 test -f config.tmp2 || OK=
8912 if test "x${CROSSCOMPILE}" = "x1";then
8915 if test "x${OK}" = "xOK";then
8917 echo "$as_me:$LINENO: result: yes" >&5
8918 echo "${ECHO_T}yes" >&6
8920 export SYSTEM_BACKTICKS
8921 cat >>confdefs.h <<_ACEOF
8922 #define SYSTEM_BACKTICKS 1
8926 echo "$as_me:$LINENO: result: no" >&5
8927 echo "${ECHO_T}no" >&6
8932 test "$program_prefix" != NONE &&
8933 program_transform_name="s,^,$program_prefix,;$program_transform_name"
8934 # Use a double $ so make ignores it.
8935 test "$program_suffix" != NONE &&
8936 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8937 # Double any \ or $. echo might interpret backslashes.
8938 # By default was `s,x,x', remove it if useless.
8939 cat <<\_ACEOF >conftest.sed
8940 s/[\\$]/&&/g;s/;s,x,x,$//
8942 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8946 ac_config_headers="$ac_config_headers config.h"
8954 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8955 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8956 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8957 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967 #include <sys/types.h>
8979 rm -f conftest.$ac_objext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8981 (eval $ac_compile) 2>conftest.er1
8983 grep -v '^ *+' conftest.er1 >conftest.err
8985 cat conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } &&
8988 { ac_try='test -z "$ac_c_werror_flag"
8989 || test ! -s conftest.err'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; } &&
8995 { ac_try='test -s conftest.$ac_objext'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; }; then
9001 eval "$as_ac_Header=yes"
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9006 eval "$as_ac_Header=no"
9008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9013 cat >>confdefs.h <<_ACEOF
9014 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9017 ac_header_dirent=$ac_hdr; break
9021 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9022 if test $ac_header_dirent = dirent.h; then
9023 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9024 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9025 if test "${ac_cv_search_opendir+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 ac_func_search_save_LIBS=$LIBS
9029 ac_cv_search_opendir=no
9030 cat >conftest.$ac_ext <<_ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9037 /* Override any gcc2 internal prototype to avoid an error. */
9041 /* We use char because int might match the return type of a gcc2
9042 builtin and then its argument prototype would still apply. */
9052 rm -f conftest.$ac_objext conftest$ac_exeext
9053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9054 (eval $ac_link) 2>conftest.er1
9056 grep -v '^ *+' conftest.er1 >conftest.err
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try='test -z "$ac_c_werror_flag"
9062 || test ! -s conftest.err'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; } &&
9068 { ac_try='test -s conftest$ac_exeext'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 ac_cv_search_opendir="none required"
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9080 rm -f conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
9082 if test "$ac_cv_search_opendir" = no; then
9083 for ac_lib in dir; do
9084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9085 cat >conftest.$ac_ext <<_ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9092 /* Override any gcc2 internal prototype to avoid an error. */
9096 /* We use char because int might match the return type of a gcc2
9097 builtin and then its argument prototype would still apply. */
9107 rm -f conftest.$ac_objext conftest$ac_exeext
9108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9109 (eval $ac_link) 2>conftest.er1
9111 grep -v '^ *+' conftest.er1 >conftest.err
9113 cat conftest.err >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } &&
9116 { ac_try='test -z "$ac_c_werror_flag"
9117 || test ! -s conftest.err'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; } &&
9123 { ac_try='test -s conftest$ac_exeext'
9124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; }; then
9129 ac_cv_search_opendir="-l$ac_lib"
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9136 rm -f conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext conftest.$ac_ext
9140 LIBS=$ac_func_search_save_LIBS
9142 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9143 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9144 if test "$ac_cv_search_opendir" != no; then
9145 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9150 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9151 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9152 if test "${ac_cv_search_opendir+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 ac_func_search_save_LIBS=$LIBS
9156 ac_cv_search_opendir=no
9157 cat >conftest.$ac_ext <<_ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9164 /* Override any gcc2 internal prototype to avoid an error. */
9168 /* We use char because int might match the return type of a gcc2
9169 builtin and then its argument prototype would still apply. */
9179 rm -f conftest.$ac_objext conftest$ac_exeext
9180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9181 (eval $ac_link) 2>conftest.er1
9183 grep -v '^ *+' conftest.er1 >conftest.err
9185 cat conftest.err >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } &&
9188 { ac_try='test -z "$ac_c_werror_flag"
9189 || test ! -s conftest.err'
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; } &&
9195 { ac_try='test -s conftest$ac_exeext'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; }; then
9201 ac_cv_search_opendir="none required"
9203 echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9207 rm -f conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209 if test "$ac_cv_search_opendir" = no; then
9211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9212 cat >conftest.$ac_ext <<_ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9219 /* Override any gcc2 internal prototype to avoid an error. */
9223 /* We use char because int might match the return type of a gcc2
9224 builtin and then its argument prototype would still apply. */
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9238 grep -v '^ *+' conftest.er1 >conftest.err
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 ac_cv_search_opendir="-l$ac_lib"
9259 echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9263 rm -f conftest.err conftest.$ac_objext \
9264 conftest$ac_exeext conftest.$ac_ext
9267 LIBS=$ac_func_search_save_LIBS
9269 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9270 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9271 if test "$ac_cv_search_opendir" != no; then
9272 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9278 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9279 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9280 if test "${ac_cv_header_stdc+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 cat >conftest.$ac_ext <<_ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9302 rm -f conftest.$ac_objext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9304 (eval $ac_compile) 2>conftest.er1
9306 grep -v '^ *+' conftest.er1 >conftest.err
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
9311 { ac_try='test -z "$ac_c_werror_flag"
9312 || test ! -s conftest.err'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; } &&
9318 { ac_try='test -s conftest.$ac_objext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_cv_header_stdc=yes
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 ac_cv_header_stdc=no
9331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9333 if test $ac_cv_header_stdc = yes; then
9334 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9335 cat >conftest.$ac_ext <<_ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9345 $EGREP "memchr" >/dev/null 2>&1; then
9348 ac_cv_header_stdc=no
9354 if test $ac_cv_header_stdc = yes; then
9355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9356 cat >conftest.$ac_ext <<_ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366 $EGREP "free" >/dev/null 2>&1; then
9369 ac_cv_header_stdc=no
9375 if test $ac_cv_header_stdc = yes; then
9376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9377 if test "$cross_compiling" = yes; then
9380 cat >conftest.$ac_ext <<_ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9387 #if ((' ' & 0x0FF) == 0x020)
9388 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9389 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9391 # define ISLOWER(c) \
9392 (('a' <= (c) && (c) <= 'i') \
9393 || ('j' <= (c) && (c) <= 'r') \
9394 || ('s' <= (c) && (c) <= 'z'))
9395 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9398 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9403 for (i = 0; i < 256; i++)
9404 if (XOR (islower (i), ISLOWER (i))
9405 || toupper (i) != TOUPPER (i))
9410 rm -f conftest$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; }; then
9423 echo "$as_me: program exited with status $ac_status" >&5
9424 echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9428 ac_cv_header_stdc=no
9430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9434 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9435 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9436 if test $ac_cv_header_stdc = yes; then
9438 cat >>confdefs.h <<\_ACEOF
9439 #define STDC_HEADERS 1
9459 for ac_header in zlib.h gif_lib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
9461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9463 echo "$as_me:$LINENO: checking for $ac_header" >&5
9464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9471 # Is the header compilable?
9472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9474 cat >conftest.$ac_ext <<_ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 $ac_includes_default
9481 #include <$ac_header>
9483 rm -f conftest.$ac_objext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9485 (eval $ac_compile) 2>conftest.er1
9487 grep -v '^ *+' conftest.er1 >conftest.err
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } &&
9492 { ac_try='test -z "$ac_c_werror_flag"
9493 || test ! -s conftest.err'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; } &&
9499 { ac_try='test -s conftest.$ac_objext'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9505 ac_header_compiler=yes
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9510 ac_header_compiler=no
9512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9514 echo "${ECHO_T}$ac_header_compiler" >&6
9516 # Is the header present?
9517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9518 echo $ECHO_N "checking $ac_header presence... $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. */
9525 #include <$ac_header>
9527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9530 grep -v '^ *+' conftest.er1 >conftest.err
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } >/dev/null; then
9535 if test -s conftest.err; then
9536 ac_cpp_err=$ac_c_preproc_warn_flag
9537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9544 if test -z "$ac_cpp_err"; then
9545 ac_header_preproc=yes
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9550 ac_header_preproc=no
9552 rm -f conftest.err conftest.$ac_ext
9553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9554 echo "${ECHO_T}$ac_header_preproc" >&6
9556 # So? What about this header?
9557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9563 ac_header_preproc=yes
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9580 ## ------------------------------------------ ##
9581 ## Report this to the AC_PACKAGE_NAME lists. ##
9582 ## ------------------------------------------ ##
9585 sed "s/^/$as_me: WARNING: /" >&2
9588 echo "$as_me:$LINENO: checking for $ac_header" >&5
9589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 eval "$as_ac_Header=\$ac_header_preproc"
9595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9600 cat >>confdefs.h <<_ACEOF
9601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9609 cat >>confdefs.h <<_ACEOF
9610 #define PACKAGE "$PACKAGE"
9613 cat >>confdefs.h <<_ACEOF
9614 #define VERSION "$VERSION"
9623 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9624 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9625 if test "${ac_cv_c_const+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 cat >conftest.$ac_ext <<_ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9638 /* FIXME: Include the comments suggested by Paul. */
9640 /* Ultrix mips cc rejects this. */
9641 typedef int charset[2];
9643 /* SunOS 4.1.1 cc rejects this. */
9644 char const *const *ccp;
9646 /* NEC SVR4.0.2 mips cc rejects this. */
9647 struct point {int x, y;};
9648 static struct point const zero = {0,0};
9649 /* AIX XL C 1.02.0.0 rejects this.
9650 It does not let you subtract one const X* pointer from another in
9651 an arm of an if-expression whose if-part is not a constant
9653 const char *g = "string";
9654 ccp = &g + (g ? g-g : 0);
9655 /* HPUX 7.0 cc rejects these. */
9658 ccp = (char const *const *) p;
9659 { /* SCO 3.2v4 cc rejects this. */
9661 char const *s = 0 ? (char *) 0 : (char const *) 0;
9665 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9667 const int *foo = &x[0];
9670 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9671 typedef const int *iptr;
9675 { /* AIX XL C 1.02.0.0 rejects this saying
9676 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9677 struct s { int j; const int *ap[3]; };
9678 struct s *b; b->j = 5;
9680 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9689 rm -f conftest.$ac_objext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9691 (eval $ac_compile) 2>conftest.er1
9693 grep -v '^ *+' conftest.er1 >conftest.err
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -z "$ac_c_werror_flag"
9699 || test ! -s conftest.err'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; } &&
9705 { ac_try='test -s conftest.$ac_objext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9720 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9721 echo "${ECHO_T}$ac_cv_c_const" >&6
9722 if test $ac_cv_c_const = no; then
9724 cat >>confdefs.h <<\_ACEOF
9730 echo "$as_me:$LINENO: checking for inline" >&5
9731 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9732 if test "${ac_cv_c_inline+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 for ac_kw in inline __inline__ __inline; do
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9745 static $ac_kw foo_t static_foo () {return 0; }
9746 $ac_kw foo_t foo () {return 0; }
9750 rm -f conftest.$ac_objext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9752 (eval $ac_compile) 2>conftest.er1
9754 grep -v '^ *+' conftest.er1 >conftest.err
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -z "$ac_c_werror_flag"
9760 || test ! -s conftest.err'
9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; } &&
9766 { ac_try='test -s conftest.$ac_objext'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 ac_cv_c_inline=$ac_kw; break
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9782 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9783 echo "${ECHO_T}$ac_cv_c_inline" >&6
9786 case $ac_cv_c_inline in
9789 case $ac_cv_c_inline in
9791 *) ac_val=$ac_cv_c_inline;;
9793 cat >>confdefs.h <<_ACEOF
9795 #define inline $ac_val
9801 echo "$as_me:$LINENO: checking for off_t" >&5
9802 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9803 if test "${ac_cv_type_off_t+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 cat >conftest.$ac_ext <<_ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 $ac_includes_default
9824 rm -f conftest.$ac_objext
9825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9826 (eval $ac_compile) 2>conftest.er1
9828 grep -v '^ *+' conftest.er1 >conftest.err
9830 cat conftest.err >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } &&
9833 { ac_try='test -z "$ac_c_werror_flag"
9834 || test ! -s conftest.err'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try='test -s conftest.$ac_objext'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_cv_type_off_t=yes
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9855 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9856 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9857 if test $ac_cv_type_off_t = yes; then
9861 cat >>confdefs.h <<_ACEOF
9867 echo "$as_me:$LINENO: checking for size_t" >&5
9868 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9869 if test "${ac_cv_type_size_t+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 cat >conftest.$ac_ext <<_ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 $ac_includes_default
9884 if (sizeof (size_t))
9890 rm -f conftest.$ac_objext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9892 (eval $ac_compile) 2>conftest.er1
9894 grep -v '^ *+' conftest.er1 >conftest.err
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_c_werror_flag"
9900 || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest.$ac_objext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_type_size_t=yes
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9917 ac_cv_type_size_t=no
9919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9921 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9922 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9923 if test $ac_cv_type_size_t = yes; then
9927 cat >>confdefs.h <<_ACEOF
9928 #define size_t unsigned
9933 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9934 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9935 if test "${ac_cv_struct_tm+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 cat >conftest.$ac_ext <<_ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9944 #include <sys/types.h>
9950 struct tm *tp; tp->tm_sec;
9955 rm -f conftest.$ac_objext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9957 (eval $ac_compile) 2>conftest.er1
9959 grep -v '^ *+' conftest.er1 >conftest.err
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } &&
9964 { ac_try='test -z "$ac_c_werror_flag"
9965 || test ! -s conftest.err'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; } &&
9971 { ac_try='test -s conftest.$ac_objext'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; }; then
9977 ac_cv_struct_tm=time.h
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9982 ac_cv_struct_tm=sys/time.h
9984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9986 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9987 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9988 if test $ac_cv_struct_tm = sys/time.h; then
9990 cat >>confdefs.h <<\_ACEOF
9991 #define TM_IN_SYS_TIME 1
9996 echo "$as_me:$LINENO: checking for boolean" >&5
9997 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
9998 if test "${ac_cv_type_boolean+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 cat >conftest.$ac_ext <<_ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10007 $ac_includes_default
10013 if (sizeof (boolean))
10019 rm -f conftest.$ac_objext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10021 (eval $ac_compile) 2>conftest.er1
10023 grep -v '^ *+' conftest.er1 >conftest.err
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try='test -z "$ac_c_werror_flag"
10029 || test ! -s conftest.err'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; } &&
10035 { ac_try='test -s conftest.$ac_objext'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; }; then
10041 ac_cv_type_boolean=yes
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 ac_cv_type_boolean=no
10048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10050 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10051 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10052 if test $ac_cv_type_boolean = yes; then
10056 cat >>confdefs.h <<_ACEOF
10057 #define boolean int
10061 #needed for jpeglib
10073 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10076 echo "$as_me:$LINENO: checking for $ac_func" >&5
10077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10078 if eval "test \"\${$as_ac_var+set}\" = set"; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 cat >conftest.$ac_ext <<_ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10089 #define $ac_func innocuous_$ac_func
10091 /* System header to define __stub macros and hopefully few prototypes,
10092 which can conflict with char $ac_func (); below.
10093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10094 <limits.h> exists even on freestanding compilers. */
10097 # include <limits.h>
10099 # include <assert.h>
10104 /* Override any gcc2 internal prototype to avoid an error. */
10109 /* We use char because int might match the return type of a gcc2
10110 builtin and then its argument prototype would still apply. */
10112 /* The GNU C library defines this for functions which it implements
10113 to always fail with ENOSYS. Some functions are actually named
10114 something starting with __ and the normal name is an alias. */
10115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10118 char (*f) () = $ac_func;
10127 return f != $ac_func;
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
10136 grep -v '^ *+' conftest.er1 >conftest.err
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -z "$ac_c_werror_flag"
10142 || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 eval "$as_ac_var=yes"
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 eval "$as_ac_var=no"
10161 rm -f conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10166 if test `eval echo '${'$as_ac_var'}'` = yes; then
10167 cat >>confdefs.h <<_ACEOF
10168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10175 # ------------------------------------------------------------------
10179 # Extract the first word of "freetype-config", so it can be a program name with args.
10180 set dummy freetype-config; ac_word=$2
10181 echo "$as_me:$LINENO: checking for $ac_word" >&5
10182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10183 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 case $FREETYPE_CONFIG in
10188 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
10191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
10193 for as_dir in $as_dummy
10196 test -z "$as_dir" && as_dir=.
10197 for ac_exec_ext in '' $ac_executable_extensions; do
10198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10199 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10209 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
10211 if test -n "$FREETYPE_CONFIG"; then
10212 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
10213 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
10215 echo "$as_me:$LINENO: result: no" >&5
10216 echo "${ECHO_T}no" >&6
10220 OLDCPPFLAGS="${CPPFLAGS}"
10222 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10223 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
10224 else if test -d /usr/include/freetype2; then
10225 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
10226 else if test -d /usr/local/include/freetype2; then
10227 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
10232 if test "x${FREETYPE_CONFIG}" '=' "x";then
10233 # if we didn't find the freetype-config program, we won't
10234 # know where the libs are expected to be. So just blindly
10235 # try to link against them.
10236 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10237 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10238 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-lfreetype $LIBS"
10243 cat >conftest.$ac_ext <<_ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10250 /* Override any gcc2 internal prototype to avoid an error. */
10254 /* We use char because int might match the return type of a gcc2
10255 builtin and then its argument prototype would still apply. */
10256 char FT_Init_FreeType ();
10260 FT_Init_FreeType ();
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10267 (eval $ac_link) 2>conftest.er1
10269 grep -v '^ *+' conftest.er1 >conftest.err
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try='test -z "$ac_c_werror_flag"
10275 || test ! -s conftest.err'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; } &&
10281 { ac_try='test -s conftest$ac_exeext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 ac_cv_lib_freetype_FT_Init_FreeType=yes
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10292 ac_cv_lib_freetype_FT_Init_FreeType=no
10294 rm -f conftest.err conftest.$ac_objext \
10295 conftest$ac_exeext conftest.$ac_ext
10296 LIBS=$ac_check_lib_save_LIBS
10298 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10299 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10300 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10301 HAVE_LIB_FREETYPE=1
10307 for ac_header in ft2build.h
10309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10311 echo "$as_me:$LINENO: checking for $ac_header" >&5
10312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10319 # Is the header compilable?
10320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10322 cat >conftest.$ac_ext <<_ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 $ac_includes_default
10329 #include <$ac_header>
10331 rm -f conftest.$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>conftest.er1
10335 grep -v '^ *+' conftest.er1 >conftest.err
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try='test -s conftest.$ac_objext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_header_compiler=yes
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 ac_header_compiler=no
10360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10362 echo "${ECHO_T}$ac_header_compiler" >&6
10364 # Is the header present?
10365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10367 cat >conftest.$ac_ext <<_ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 #include <$ac_header>
10375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10378 grep -v '^ *+' conftest.er1 >conftest.err
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } >/dev/null; then
10383 if test -s conftest.err; then
10384 ac_cpp_err=$ac_c_preproc_warn_flag
10385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10392 if test -z "$ac_cpp_err"; then
10393 ac_header_preproc=yes
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10398 ac_header_preproc=no
10400 rm -f conftest.err conftest.$ac_ext
10401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10402 echo "${ECHO_T}$ac_header_preproc" >&6
10404 # So? What about this header?
10405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10411 ac_header_preproc=yes
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10428 ## ------------------------------------------ ##
10429 ## Report this to the AC_PACKAGE_NAME lists. ##
10430 ## ------------------------------------------ ##
10433 sed "s/^/$as_me: WARNING: /" >&2
10436 echo "$as_me:$LINENO: checking for $ac_header" >&5
10437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 eval "$as_ac_Header=\$ac_header_preproc"
10443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10448 cat >>confdefs.h <<_ACEOF
10449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10456 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
10458 for ac_header in freetype/freetype.h
10460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10462 echo "$as_me:$LINENO: checking for $ac_header" >&5
10463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10470 # Is the header compilable?
10471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10473 cat >conftest.$ac_ext <<_ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10479 $ac_includes_default
10480 #include <$ac_header>
10482 rm -f conftest.$ac_objext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10484 (eval $ac_compile) 2>conftest.er1
10486 grep -v '^ *+' conftest.er1 >conftest.err
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } &&
10491 { ac_try='test -z "$ac_c_werror_flag"
10492 || test ! -s conftest.err'
10493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try='test -s conftest.$ac_objext'
10499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500 (eval $ac_try) 2>&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; }; then
10504 ac_header_compiler=yes
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10509 ac_header_compiler=no
10511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10513 echo "${ECHO_T}$ac_header_compiler" >&6
10515 # Is the header present?
10516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10518 cat >conftest.$ac_ext <<_ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 #include <$ac_header>
10526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10529 grep -v '^ *+' conftest.er1 >conftest.err
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } >/dev/null; then
10534 if test -s conftest.err; then
10535 ac_cpp_err=$ac_c_preproc_warn_flag
10536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10543 if test -z "$ac_cpp_err"; then
10544 ac_header_preproc=yes
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10549 ac_header_preproc=no
10551 rm -f conftest.err conftest.$ac_ext
10552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10553 echo "${ECHO_T}$ac_header_preproc" >&6
10555 # So? What about this header?
10556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10562 ac_header_preproc=yes
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10579 ## ------------------------------------------ ##
10580 ## Report this to the AC_PACKAGE_NAME lists. ##
10581 ## ------------------------------------------ ##
10584 sed "s/^/$as_me: WARNING: /" >&2
10587 echo "$as_me:$LINENO: checking for $ac_header" >&5
10588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 eval "$as_ac_Header=\$ac_header_preproc"
10594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10599 cat >>confdefs.h <<_ACEOF
10600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10602 HAVE_FREETYPE_FREETYPE_H=1
10609 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
10610 "x${FREETYPE_CONFIG}" '!=' "x";then
10611 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
10614 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
10619 if test "x${HAVE_FREETYPE}" = "x1"; then
10620 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10621 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
10623 LIBS="$LIBS -lfreetype"
10626 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
10627 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
10630 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
10631 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
10633 cat > conftest.c << EOF
10634 $HAVE_FT2BUILD_H_DEFINE
10636 #ifdef HAVE_FT2BUILD_H
10637 #include <ft2build.h>
10638 #include FT_FREETYPE_H
10639 #include FT_GLYPH_H
10640 #include FT_SIZES_H
10641 #include FT_SFNT_NAMES_H
10642 #include FT_TRUETYPE_IDS_H
10643 #include FT_OUTLINE_H
10645 #include <freetype/freetype.h>
10646 #include <freetype/ftglyph.h>
10647 #include <freetype/ftsizes.h>
10648 #include <freetype/ftsnames.h>
10649 #include <freetype/ttnameid.h>
10650 #include <freetype/ftoutln.h>
10655 FT_Library ftlibrary;
10667 FT_Init_FreeType(&ftlibrary);
10668 FT_New_Face(ftlibrary, "filename", 0, &face);
10669 i = face->num_glyphs - 1;
10670 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
10671 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
10672 FT_Get_Postscript_Name(face);
10673 FT_Get_Char_Index(face, 33);
10674 FT_Get_First_Char(face, &i);
10675 FT_Get_Next_Char(face, 33, &i);
10676 if(FT_HAS_GLYPH_NAMES(face)) {
10677 FT_Get_Glyph_Name(face, 33, name, 127);
10679 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
10680 FT_Get_Glyph(face->glyph, &glyph);
10681 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
10682 FT_Done_Glyph(glyph);
10683 FT_Done_Face(face);
10684 FT_Done_FreeType(ftlibrary);
10689 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10690 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10691 echo "$as_me:$LINENO: result: yes" >&5
10692 echo "${ECHO_T}yes" >&6
10693 cat >>confdefs.h <<_ACEOF
10694 #define HAVE_FREETYPE 1
10697 cat >>confdefs.h <<_ACEOF
10698 #define USE_FREETYPE 1
10702 echo "configure: failed program was:" >&5
10705 echo "$as_me:$LINENO: result: no" >&5
10706 echo "${ECHO_T}no" >&6
10711 # if the above didn't work out, reset all changes to the compiler variables.
10712 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
10713 CPPFLAGS=$OLDCPPFLAGS
10719 OLDCPPFLAGS="${CPPFLAGS}"
10722 if test -d /usr/include/fontconfig; then
10723 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
10726 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
10727 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
10728 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-lfontconfig $LIBS"
10733 cat >conftest.$ac_ext <<_ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10740 /* Override any gcc2 internal prototype to avoid an error. */
10744 /* We use char because int might match the return type of a gcc2
10745 builtin and then its argument prototype would still apply. */
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10757 (eval $ac_link) 2>conftest.er1
10759 grep -v '^ *+' conftest.er1 >conftest.err
10761 cat conftest.err >&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } &&
10764 { ac_try='test -z "$ac_c_werror_flag"
10765 || test ! -s conftest.err'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; } &&
10771 { ac_try='test -s conftest$ac_exeext'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; }; then
10777 ac_cv_lib_fontconfig_FcInit=yes
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10782 ac_cv_lib_fontconfig_FcInit=no
10784 rm -f conftest.err conftest.$ac_objext \
10785 conftest$ac_exeext conftest.$ac_ext
10786 LIBS=$ac_check_lib_save_LIBS
10788 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
10789 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
10790 if test $ac_cv_lib_fontconfig_FcInit = yes; then
10791 HAVE_LIB_FONTCONFIG=1
10795 for ac_header in fontconfig.h
10797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10799 echo "$as_me:$LINENO: checking for $ac_header" >&5
10800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10807 # Is the header compilable?
10808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10810 cat >conftest.$ac_ext <<_ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h. */
10816 $ac_includes_default
10817 #include <$ac_header>
10819 rm -f conftest.$ac_objext
10820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10821 (eval $ac_compile) 2>conftest.er1
10823 grep -v '^ *+' conftest.er1 >conftest.err
10825 cat conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } &&
10828 { ac_try='test -z "$ac_c_werror_flag"
10829 || test ! -s conftest.err'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; } &&
10835 { ac_try='test -s conftest.$ac_objext'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; }; then
10841 ac_header_compiler=yes
10843 echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10846 ac_header_compiler=no
10848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10850 echo "${ECHO_T}$ac_header_compiler" >&6
10852 # Is the header present?
10853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10855 cat >conftest.$ac_ext <<_ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10861 #include <$ac_header>
10863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10866 grep -v '^ *+' conftest.er1 >conftest.err
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } >/dev/null; then
10871 if test -s conftest.err; then
10872 ac_cpp_err=$ac_c_preproc_warn_flag
10873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10880 if test -z "$ac_cpp_err"; then
10881 ac_header_preproc=yes
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ac_header_preproc=no
10888 rm -f conftest.err conftest.$ac_ext
10889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10890 echo "${ECHO_T}$ac_header_preproc" >&6
10892 # So? What about this header?
10893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10899 ac_header_preproc=yes
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10916 ## ------------------------------------------ ##
10917 ## Report this to the AC_PACKAGE_NAME lists. ##
10918 ## ------------------------------------------ ##
10921 sed "s/^/$as_me: WARNING: /" >&2
10924 echo "$as_me:$LINENO: checking for $ac_header" >&5
10925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 eval "$as_ac_Header=\$ac_header_preproc"
10931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10936 cat >>confdefs.h <<_ACEOF
10937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10939 HAVE_FONTCONFIG_H=1
10945 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
10946 if test "x${HAVE_FONTCONFIG_H}" != "x";then
10951 if test "x${HAVE_FONTCONFIG}" = "x1"; then
10952 LIBS="$LIBS -lfontconfig"
10953 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
10954 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
10956 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
10957 #move freetype library to the end of libraries, otherwise fontconfig
10959 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
10962 cat > conftest.c << EOF
10963 #include <fontconfig.h>
10967 FcPattern *pattern, *match;
10971 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
10972 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
10973 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
10974 FcConfigSubstitute(0, pattern, FcMatchPattern);
10975 FcDefaultSubstitute(pattern);
10976 match = FcFontMatch(0, pattern, &result);
10977 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
10978 FcPatternPrint(pattern);
10979 FcPatternDestroy(pattern);
10980 FcPatternDestroy(match);
10985 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10986 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10987 echo "$as_me:$LINENO: result: yes" >&5
10988 echo "${ECHO_T}yes" >&6
10989 cat >>confdefs.h <<_ACEOF
10990 #define HAVE_FONTCONFIG 1
10994 echo "configure: failed program was:" >&5
10997 echo "$as_me:$LINENO: result: no" >&5
10998 echo "${ECHO_T}no" >&6
11003 # if the above didn't work out, reset all changes to the compiler variables.
11004 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
11005 CPPFLAGS=$OLDCPPFLAGS
11010 # ------------------------------------------------------------------
11014 if test "x${DISABLE_LAME}" = "xtrue"; then
11015 echo "*" Disabling lame support...
11017 # old lame code at lib/lame
11018 if test -f lib/lame/Makefile.in; then
11019 lame_objects="lame/psymodel.\$(O) lame/fft.\$(O) lame/newmdct.\$(O) lame/quantize.\$(O) lame/takehiro.\$(O) lame/reservoir.\$(O) lame/quantize_pvt.\$(O) lame/vbrquantize.\$(O) lame/encoder.\$(O) lame/id3tag.\$(O) lame/version.\$(O) lame/tables.\$(O) lame/util.\$(O) lame/bitstream.\$(O) lame/set_get.\$(O) lame/VbrTag.\$(O) lame/lame.\$(O)"
11020 lame_makefile="lib/lame/Makefile"
11021 CPPFLAGS="$CPPFLAGS -Ilame"
11022 cat >>confdefs.h <<_ACEOF
11023 #define HAVE_LAME 1
11027 if test -d /usr/include/lame; then
11028 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
11030 if test -d /usr/local/include/lame; then
11031 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
11035 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
11036 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
11037 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-lmp3lame $LIBS"
11042 cat >conftest.$ac_ext <<_ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11049 /* Override any gcc2 internal prototype to avoid an error. */
11053 /* We use char because int might match the return type of a gcc2
11054 builtin and then its argument prototype would still apply. */
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>conftest.er1
11068 grep -v '^ *+' conftest.er1 >conftest.err
11070 cat conftest.err >&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } &&
11073 { ac_try='test -z "$ac_c_werror_flag"
11074 || test ! -s conftest.err'
11075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; } &&
11080 { ac_try='test -s conftest$ac_exeext'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; }; then
11086 ac_cv_lib_mp3lame_lame_init=yes
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11091 ac_cv_lib_mp3lame_lame_init=no
11093 rm -f conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11095 LIBS=$ac_check_lib_save_LIBS
11097 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
11098 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
11099 if test $ac_cv_lib_mp3lame_lame_init = yes; then
11100 cat >>confdefs.h <<_ACEOF
11101 #define HAVE_LIBMP3LAME 1
11104 LIBS="-lmp3lame $LIBS"
11111 for ac_header in lame.h
11113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11115 echo "$as_me:$LINENO: checking for $ac_header" >&5
11116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11123 # Is the header compilable?
11124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11126 cat >conftest.$ac_ext <<_ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132 $ac_includes_default
11133 #include <$ac_header>
11135 rm -f conftest.$ac_objext
11136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11137 (eval $ac_compile) 2>conftest.er1
11139 grep -v '^ *+' conftest.er1 >conftest.err
11141 cat conftest.err >&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } &&
11144 { ac_try='test -z "$ac_c_werror_flag"
11145 || test ! -s conftest.err'
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; } &&
11151 { ac_try='test -s conftest.$ac_objext'
11152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }; then
11157 ac_header_compiler=yes
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11162 ac_header_compiler=no
11164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11166 echo "${ECHO_T}$ac_header_compiler" >&6
11168 # Is the header present?
11169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11171 cat >conftest.$ac_ext <<_ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 #include <$ac_header>
11179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11182 grep -v '^ *+' conftest.er1 >conftest.err
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } >/dev/null; then
11187 if test -s conftest.err; then
11188 ac_cpp_err=$ac_c_preproc_warn_flag
11189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11196 if test -z "$ac_cpp_err"; then
11197 ac_header_preproc=yes
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 ac_header_preproc=no
11204 rm -f conftest.err conftest.$ac_ext
11205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 echo "${ECHO_T}$ac_header_preproc" >&6
11208 # So? What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215 ac_header_preproc=yes
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11232 ## ------------------------------------------ ##
11233 ## Report this to the AC_PACKAGE_NAME lists. ##
11234 ## ------------------------------------------ ##
11237 sed "s/^/$as_me: WARNING: /" >&2
11240 echo "$as_me:$LINENO: checking for $ac_header" >&5
11241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 eval "$as_ac_Header=\$ac_header_preproc"
11247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11252 cat >>confdefs.h <<_ACEOF
11253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11260 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
11261 cat >>confdefs.h <<_ACEOF
11262 #define HAVE_LAME 1
11270 # ------------------------------------------------------------------
11274 for ac_prog in avifile-config
11276 # Extract the first word of "$ac_prog", so it can be a program name with args.
11277 set dummy $ac_prog; ac_word=$2
11278 echo "$as_me:$LINENO: checking for $ac_word" >&5
11279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11280 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 if test -n "$AVIFILE_CONFIG"; then
11284 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
11286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287 for as_dir in $PATH
11290 test -z "$as_dir" && as_dir=.
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11293 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
11294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11302 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
11303 if test -n "$AVIFILE_CONFIG"; then
11304 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
11305 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
11307 echo "$as_me:$LINENO: result: no" >&5
11308 echo "${ECHO_T}no" >&6
11311 test -n "$AVIFILE_CONFIG" && break
11315 if test "x$AVIFILE_CONFIG" '!=' "x";then
11316 OLDCPPFLAGS="$CPPFLAGS"
11317 # temporarily add avifile paths to CPPFLAGS...
11318 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
11321 for ac_header in avifile/version.h version.h
11323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11325 echo "$as_me:$LINENO: checking for $ac_header" >&5
11326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11333 # Is the header compilable?
11334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11336 cat >conftest.$ac_ext <<_ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 $ac_includes_default
11343 #include <$ac_header>
11345 rm -f conftest.$ac_objext
11346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11347 (eval $ac_compile) 2>conftest.er1
11349 grep -v '^ *+' conftest.er1 >conftest.err
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try='test -z "$ac_c_werror_flag"
11355 || test ! -s conftest.err'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; } &&
11361 { ac_try='test -s conftest.$ac_objext'
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11367 ac_header_compiler=yes
11369 echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11372 ac_header_compiler=no
11374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11376 echo "${ECHO_T}$ac_header_compiler" >&6
11378 # Is the header present?
11379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11381 cat >conftest.$ac_ext <<_ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h. */
11387 #include <$ac_header>
11389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11392 grep -v '^ *+' conftest.er1 >conftest.err
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } >/dev/null; then
11397 if test -s conftest.err; then
11398 ac_cpp_err=$ac_c_preproc_warn_flag
11399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11406 if test -z "$ac_cpp_err"; then
11407 ac_header_preproc=yes
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11412 ac_header_preproc=no
11414 rm -f conftest.err conftest.$ac_ext
11415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11416 echo "${ECHO_T}$ac_header_preproc" >&6
11418 # So? What about this header?
11419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11425 ac_header_preproc=yes
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11442 ## ------------------------------------------ ##
11443 ## Report this to the AC_PACKAGE_NAME lists. ##
11444 ## ------------------------------------------ ##
11447 sed "s/^/$as_me: WARNING: /" >&2
11450 echo "$as_me:$LINENO: checking for $ac_header" >&5
11451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 eval "$as_ac_Header=\$ac_header_preproc"
11457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11462 cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11471 CPPFLAGS="$OLDCPPFLAGS"
11474 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11475 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
11477 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11478 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11480 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11481 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11484 cat > conftest.cpp << EOF
11486 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11487 // so we have to introduce them this way
11488 $HAVE_VERSION_H_DEFINE
11489 $HAVE_AVIFILE_VERSION_H_DEFINE
11491 #ifdef HAVE_VERSION_H
11492 #include <version.h>
11494 #ifdef HAVE_AVIFILE_VERSION_H
11495 #include <avifile/version.h>
11498 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11499 #include <avifile.h>
11500 #include <aviplay.h>
11501 #include <fourcc.h>
11502 #include <creators.h>
11503 #include <StreamInfo.h>
11506 #include <avifile.h>
11507 #include <aviplay.h>
11508 #include <aviutil.h>
11509 #define Width width
11510 #define Height height
11517 IAviReadFile* player;
11518 IAviReadStream* astream;
11519 IAviReadStream* vstream;
11520 player = CreateIAviReadFile(0);
11521 astream = player->GetStream(0, AviStream::Audio);
11522 vstream = player->GetStream(0, AviStream::Video);
11523 vstream -> StartStreaming();
11524 astream -> StartStreaming();
11526 MainAVIHeader head;
11527 player->GetFileHeader(&head);
11528 head.dwMicroSecPerFrame;
11529 head.dwTotalFrames;
11533 head.dwMicroSecPerFrame;
11534 astream->GetEndPos(),
11535 astream->GetEndTime());
11536 player->StreamCount();
11538 StreamInfo*audioinfo;
11539 StreamInfo*videoinfo;
11540 audioinfo = astream->GetStreamInfo();
11541 videoinfo = vstream->GetStreamInfo();
11542 videoinfo->GetVideoWidth();
11543 videoinfo->GetVideoHeight();
11544 audioinfo->GetAudioSamplesPerSec();
11545 videoinfo->GetFps();
11547 CImage*img = vstream->GetFrame();
11554 astream->GetAudioFormatInfo(&wave,0);
11556 astream->ReadFrames(0,0,0,a,b);
11558 int main (int argc, char*argv)
11564 if test "x$AVIFILE_CONFIG" '!=' "x";then
11565 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
11566 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
11567 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
11568 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11569 echo "$as_me:$LINENO: result: yes" >&5
11570 echo "${ECHO_T}yes" >&6
11573 cat >>confdefs.h <<_ACEOF
11574 #define AVIFILE true
11578 echo "configure: failed program was:" >&5
11579 cat conftest.cpp >&5
11580 echo "$as_me:$LINENO: result: no" >&5
11581 echo "${ECHO_T}no" >&6
11584 echo "$as_me:$LINENO: result: no" >&5
11585 echo "${ECHO_T}no" >&6
11589 if test "x${AVIFILE}" = "xtrue"; then
11590 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
11591 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
11592 cat >>confdefs.h <<_ACEOF
11593 #define HAVE_AVIFILE 1
11598 if test "x${WIN32}" != "x"; then
11599 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
11600 #if test "x${AVIFIL32}" != "x"; then
11601 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11603 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11609 # ------------------------------------------------------------------
11611 if test "x${UNCOMPRESS}" = "xgzip"; then
11612 cat >>confdefs.h <<_ACEOF
11619 # ------------------------------------------------------------------
11622 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11623 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11625 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
11628 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
11629 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
11631 # iterate through version 2.2 to 2.4
11634 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
11636 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11637 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11639 elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
11640 #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
11642 PYTHON_LIB="-framework Python"
11643 if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
11644 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
11646 PYTHON_LIB2="$PYTHON_LIB"
11648 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
11650 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
11651 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
11652 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
11654 -a -f "/sw/include/python2.$v/Python.h" \
11655 -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
11657 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
11658 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
11663 if test "x$PY_VERSION" "!=" "x"; then
11664 echo "$as_me:$LINENO: result: $PY_VERSION" >&5
11665 echo "${ECHO_T}$PY_VERSION" >&6
11666 export PYTHON_INCLUDES PYTHON_LIB
11669 echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11670 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11672 cat > conftest.c << EOF
11673 #include <Python.h>
11674 #include <Imaging.h>
11679 ret = Py_Main(0, 0);
11680 int x; // check also for gcc 2.95.x incompatibilities
11684 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11685 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11686 echo "$as_me:$LINENO: result: yes" >&5
11687 echo "${ECHO_T}yes" >&6
11690 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
11691 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11692 echo "$as_me:$LINENO: result: yes" >&5
11693 echo "${ECHO_T}yes" >&6
11694 PYTHON_LIB="${PYTHON_LIB2}"
11697 echo "configure: failed program was:" >&5
11699 echo "$as_me:$LINENO: result: no" >&5
11700 echo "${ECHO_T}no" >&6
11705 echo "$as_me:$LINENO: result: nope" >&5
11706 echo "${ECHO_T}nope" >&6
11710 if test "x$PYTHON_OK" '!=' "xyes";then
11711 echo all install uninstall clean: > lib/python/Makefile
11712 # fail silently- the most users won't have any need for the
11713 # python interface anyway
11715 pythonrfxswf="lib/python/Makefile"
11718 # ------------------------------------------------------------------
11720 echo "$as_me:$LINENO: checking for missing libraries" >&5
11721 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
11723 if test "x$ZLIBMISSING" = "xtrue";then
11724 MISSINGLIBS="${MISSINGLIBS} zlib"
11725 DISABLEPNG2SWF=true
11728 if test "x$JPEGLIBMISSING" = "xtrue";then
11729 MISSINGLIBS="${MISSINGLIBS} jpeglib"
11730 DISABLEPDF2SWF=true
11731 DISABLEJPEG2SWF=true
11734 if test "x$T1LIBMISSING" = "xtrue";then
11735 MISSINGLIBS="${MISSINGLIBS} t1lib"
11737 if test "x$UNGIFMISSING" = "xtrue";then
11738 DISABLEGIF2SWF=true
11739 MISSINGLIBS="${MISSINGLIBS} ungif"
11743 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11744 DISABLEPDF2SWF=true;
11745 DISABLEJPEG2SWF=true;
11746 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11749 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11750 DISABLEPDF2SWF=true;
11751 MISSINGLIBS="${MISSINGLIBS} freetype"
11754 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11755 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11757 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
11758 DISABLEGIF2SWF=true
11759 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
11762 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11763 DISABLEPNG2SWF=true;
11764 MISSINGLIBS="${MISSINGLIBS} zlib.h"
11767 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11768 MISSINGLIBS="${MISSINGLIBS} avifile"
11772 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11773 echo "${ECHO_T}${MISSINGLIBS}" >&6
11775 # ------------------------------------------------------------------
11777 if test "x${MISSINGLIBS}" '!=' "x"; then
11778 echo "***************************************************"
11779 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11782 avi2swf="avi2swf/Makefile"
11783 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11784 echo "* Disabling avi2swf tool..."
11785 echo all install uninstall clean: > avi2swf/Makefile
11789 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
11790 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11791 echo "* Disabling pdf2swf tool..."
11792 rm -f pdf2swf/Makefile
11793 echo all install uninstall clean: > pdf2swf/Makefile
11794 pdf2swf_makefile=""
11797 if test "x${ZLIBMISSING}" = "xtrue"; then
11799 echo "* Warning! Without zlib, you will not be able to read"
11800 echo "* or write compressed Flash MX files!"
11803 JPEG2SWF='jpeg2swf$(E)'
11804 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11805 echo "* Disabling jpeg2swf tool..."
11811 GIF2SWF='gif2swf$(E)'
11812 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
11813 echo "* Disabling gif2swf tool..."
11819 PNG2SWF='png2swf$(E)'
11820 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11821 echo "* Disabling png2swf tool..."
11827 if test "x${MISSINGLIBS}" '!=' "x"; then
11828 if test "x${PARTIAL}" '=' "x"; then
11829 echo "* (never mind)"
11831 echo "***************************************************"
11834 # ------------------------------------------------------------------
11836 if test -f "release.in"; then release_in="./release"; fi
11837 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11839 ac_config_files="$ac_config_files ${FILES}"
11841 cat >confcache <<\_ACEOF
11842 # This file is a shell script that caches the results of configure
11843 # tests run on this system so they can be shared between configure
11844 # scripts and configure runs, see configure's option --config-cache.
11845 # It is not useful on other systems. If it contains results you don't
11846 # want to keep, you may remove or edit it.
11848 # config.status only pays attention to the cache file if you give it
11849 # the --recheck option to rerun configure.
11851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11853 # following values.
11857 # The following way of writing the cache mishandles newlines in values,
11858 # but we know of no workaround that is simple, portable, and efficient.
11859 # So, don't put newlines in cache variables' values.
11860 # Ultrix sh set writes to stderr and can't be redirected directly,
11861 # and sets the high bit in the cache file unless we assign to the vars.
11864 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11866 # `set' does not quote correctly, so add quotes (double-quote
11867 # substitution turns \\\\ into \\, and sed turns \\ into \).
11870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11873 # `set' quotes correctly as required by POSIX, so do not add quotes.
11875 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11884 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11886 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11887 if test -w $cache_file; then
11888 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11889 cat confcache >$cache_file
11891 echo "not updating unwritable cache $cache_file"
11896 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11897 # Let make expand exec_prefix.
11898 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11900 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11901 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11902 # trailing colons and then remove the whole line if VPATH becomes empty
11903 # (actually we leave an empty line to preserve line numbers).
11904 if test "x$srcdir" = x.; then
11905 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11906 s/:*\$(srcdir):*/:/;
11907 s/:*\${srcdir}:*/:/;
11909 s/^\([^=]*=[ ]*\):*/\1/;
11915 DEFS=-DHAVE_CONFIG_H
11919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11920 # 1. Remove the extension, and $U if already installed.
11921 ac_i=`echo "$ac_i" |
11922 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11924 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11925 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11927 LIBOBJS=$ac_libobjs
11929 LTLIBOBJS=$ac_ltlibobjs
11933 : ${CONFIG_STATUS=./config.status}
11934 ac_clean_files_save=$ac_clean_files
11935 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11936 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11937 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11938 cat >$CONFIG_STATUS <<_ACEOF
11940 # Generated by $as_me.
11941 # Run this file to recreate the current configuration.
11942 # Compiler output produced by configure, useful for debugging
11943 # configure, is in config.log if it exists.
11946 ac_cs_recheck=false
11948 SHELL=\${CONFIG_SHELL-$SHELL}
11951 cat >>$CONFIG_STATUS <<\_ACEOF
11952 ## --------------------- ##
11953 ## M4sh Initialization. ##
11954 ## --------------------- ##
11956 # Be Bourne compatible
11957 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11960 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11961 # is contrary to our usage. Disable this feature.
11962 alias -g '${1+"$@"}'='"$@"'
11963 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11966 DUALCASE=1; export DUALCASE # for MKS sh
11968 # Support unset when possible.
11969 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11976 # Work around bugs in pre-3.0 UWIN ksh.
11977 $as_unset ENV MAIL MAILPATH
11984 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11985 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11986 LC_TELEPHONE LC_TIME
11988 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11989 eval $as_var=C; export $as_var
11995 # Required to use basename.
11996 if expr a : '\(a\)' >/dev/null 2>&1; then
12002 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12003 as_basename=basename
12009 # Name of the executable.
12010 as_me=`$as_basename "$0" ||
12011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12012 X"$0" : 'X\(//\)$' \| \
12013 X"$0" : 'X\(/\)$' \| \
12014 . : '\(.\)' 2>/dev/null ||
12016 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12017 /^X\/\(\/\/\)$/{ s//\1/; q; }
12018 /^X\/\(\/\).*/{ s//\1/; q; }
12022 # PATH needs CR, and LINENO needs CR and PATH.
12023 # Avoid depending upon Character Ranges.
12024 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12025 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12026 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12027 as_cr_digits='0123456789'
12028 as_cr_alnum=$as_cr_Letters$as_cr_digits
12030 # The user is always right.
12031 if test "${PATH_SEPARATOR+set}" != set; then
12032 echo "#! /bin/sh" >conf$$.sh
12033 echo "exit 0" >>conf$$.sh
12035 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12044 as_lineno_1=$LINENO
12045 as_lineno_2=$LINENO
12046 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12047 test "x$as_lineno_1" != "x$as_lineno_2" &&
12048 test "x$as_lineno_3" = "x$as_lineno_2" || {
12049 # Find who we are. Look in the path if we contain no path at all
12052 *[\\/]* ) as_myself=$0 ;;
12053 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $PATH
12057 test -z "$as_dir" && as_dir=.
12058 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12063 # We did not find ourselves, most probably we were run as `sh COMMAND'
12064 # in which case we are not to be found in the path.
12065 if test "x$as_myself" = x; then
12068 if test ! -f "$as_myself"; then
12069 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12070 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12071 { (exit 1); exit 1; }; }
12073 case $CONFIG_SHELL in
12075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12079 test -z "$as_dir" && as_dir=.
12080 for as_base in sh bash ksh sh5; do
12083 if ("$as_dir/$as_base" -c '
12084 as_lineno_1=$LINENO
12085 as_lineno_2=$LINENO
12086 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12087 test "x$as_lineno_1" != "x$as_lineno_2" &&
12088 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12089 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12090 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12091 CONFIG_SHELL=$as_dir/$as_base
12092 export CONFIG_SHELL
12093 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12101 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12102 # uniformly replaced by the line number. The first 'sed' inserts a
12103 # line-number line before each line; the second 'sed' does the real
12104 # work. The second script uses 'N' to pair each line-number line
12105 # with the numbered line, and appends trailing '-' during
12106 # substitution so that $LINENO is not a special case at line end.
12107 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12108 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12109 sed '=' <$as_myself |
12114 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12117 s,^['$as_cr_digits']*\n,,
12118 ' >$as_me.lineno &&
12119 chmod +x $as_me.lineno ||
12120 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12121 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12122 { (exit 1); exit 1; }; }
12124 # Don't try to exec as it changes $[0], causing all sort of problems
12125 # (the dirname of $[0] is not the place where we might find the
12126 # original and so on. Autoconf is especially sensible to this).
12128 # Exit status is that of the last command.
12133 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12134 *c*,-n*) ECHO_N= ECHO_C='
12136 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12137 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12140 if expr a : '\(a\)' >/dev/null 2>&1; then
12146 rm -f conf$$ conf$$.exe conf$$.file
12148 if ln -s conf$$.file conf$$ 2>/dev/null; then
12149 # We could just check for DJGPP; but this test a) works b) is more generic
12150 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12151 if test -f conf$$.exe; then
12152 # Don't use ln at all; we don't have any links
12157 elif ln conf$$.file conf$$ 2>/dev/null; then
12162 rm -f conf$$ conf$$.exe conf$$.file
12164 if mkdir -p . 2>/dev/null; then
12167 test -d ./-p && rmdir ./-p
12171 as_executable_p="test -f"
12173 # Sed expression to map a string onto a valid CPP name.
12174 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12176 # Sed expression to map a string onto a valid variable name.
12177 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12181 # We need space, tab and new line, in precisely that order.
12191 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12192 # report actual input values of CONFIG_FILES etc. instead of their
12193 # values after options handling. Logging --version etc. is OK.
12197 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12198 ## Running $as_me. ##
12203 This file was extended by $as_me, which was
12204 generated by GNU Autoconf 2.59. Invocation command line was
12206 CONFIG_FILES = $CONFIG_FILES
12207 CONFIG_HEADERS = $CONFIG_HEADERS
12208 CONFIG_LINKS = $CONFIG_LINKS
12209 CONFIG_COMMANDS = $CONFIG_COMMANDS
12213 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12217 # Files that config.status was made for.
12218 if test -n "$ac_config_files"; then
12219 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12222 if test -n "$ac_config_headers"; then
12223 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12226 if test -n "$ac_config_links"; then
12227 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12230 if test -n "$ac_config_commands"; then
12231 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12234 cat >>$CONFIG_STATUS <<\_ACEOF
12237 \`$as_me' instantiates files from templates according to the
12238 current configuration.
12240 Usage: $0 [OPTIONS] [FILE]...
12242 -h, --help print this help, then exit
12243 -V, --version print version number, then exit
12244 -q, --quiet do not print progress messages
12245 -d, --debug don't remove temporary files
12246 --recheck update $as_me by reconfiguring in the same conditions
12247 --file=FILE[:TEMPLATE]
12248 instantiate the configuration file FILE
12249 --header=FILE[:TEMPLATE]
12250 instantiate the configuration header FILE
12252 Configuration files:
12255 Configuration headers:
12258 Report bugs to <bug-autoconf@gnu.org>."
12261 cat >>$CONFIG_STATUS <<_ACEOF
12264 configured by $0, generated by GNU Autoconf 2.59,
12265 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12267 Copyright (C) 2003 Free Software Foundation, Inc.
12268 This config.status script is free software; the Free Software Foundation
12269 gives unlimited permission to copy, distribute and modify it."
12274 cat >>$CONFIG_STATUS <<\_ACEOF
12275 # If no file are specified by the user, then we need to provide default
12276 # value. By we need to know if files were specified by the user.
12282 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12283 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12291 *) # This is not an option, so the user has probably given explicit
12294 ac_need_defaults=false;;
12298 # Handling of the options.
12300 cat >>$CONFIG_STATUS <<\_ACEOF
12301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12303 --version | --vers* | -V )
12304 echo "$ac_cs_version"; exit 0 ;;
12306 # Conflict between --help and --header
12307 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12308 Try \`$0 --help' for more information." >&5
12309 echo "$as_me: error: ambiguous option: $1
12310 Try \`$0 --help' for more information." >&2;}
12311 { (exit 1); exit 1; }; };;
12312 --help | --hel | -h )
12313 echo "$ac_cs_usage"; exit 0 ;;
12314 --debug | --d* | -d )
12316 --file | --fil | --fi | --f )
12318 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12319 ac_need_defaults=false;;
12320 --header | --heade | --head | --hea )
12322 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12323 ac_need_defaults=false;;
12324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12328 # This is an error.
12329 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12330 Try \`$0 --help' for more information." >&5
12331 echo "$as_me: error: unrecognized option: $1
12332 Try \`$0 --help' for more information." >&2;}
12333 { (exit 1); exit 1; }; } ;;
12335 *) ac_config_targets="$ac_config_targets $1" ;;
12341 ac_configure_extra_args=
12343 if $ac_cs_silent; then
12345 ac_configure_extra_args="$ac_configure_extra_args --silent"
12349 cat >>$CONFIG_STATUS <<_ACEOF
12350 if \$ac_cs_recheck; then
12351 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12352 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12361 cat >>$CONFIG_STATUS <<\_ACEOF
12362 for ac_config_target in $ac_config_targets
12364 case "$ac_config_target" in
12365 # Handling of arguments.
12366 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
12367 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12368 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12369 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12370 { (exit 1); exit 1; }; };;
12374 # If the user did not use the arguments to specify the items to instantiate,
12375 # then the envvar interface is used. Set only those that are not.
12376 # We use the long form for the default assignment because of an extremely
12377 # bizarre bug on SunOS 4.1.3.
12378 if $ac_need_defaults; then
12379 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12380 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12383 # Have a temporary directory for convenience. Make it in the build tree
12384 # simply because there is no reason to put it here, and in addition,
12385 # creating and moving files from /tmp can sometimes cause problems.
12386 # Create a temporary directory, and hook for its removal unless debugging.
12389 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12390 trap '{ (exit 1); exit 1; }' 1 2 13 15
12393 # Create a (secure) tmp directory for tmp files.
12396 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12397 test -n "$tmp" && test -d "$tmp"
12400 tmp=./confstat$$-$RANDOM
12401 (umask 077 && mkdir $tmp)
12404 echo "$me: cannot create a temporary directory in ." >&2
12405 { (exit 1); exit 1; }
12410 cat >>$CONFIG_STATUS <<_ACEOF
12413 # CONFIG_FILES section.
12416 # No need to generate the scripts if there are no CONFIG_FILES.
12417 # This happens for instance when ./config.status config.h
12418 if test -n "\$CONFIG_FILES"; then
12419 # Protect against being on the right side of a sed subst in config.status.
12420 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12421 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12422 s,@SHELL@,$SHELL,;t t
12423 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12424 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12425 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12426 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12427 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12428 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12429 s,@exec_prefix@,$exec_prefix,;t t
12430 s,@prefix@,$prefix,;t t
12431 s,@program_transform_name@,$program_transform_name,;t t
12432 s,@bindir@,$bindir,;t t
12433 s,@sbindir@,$sbindir,;t t
12434 s,@libexecdir@,$libexecdir,;t t
12435 s,@datadir@,$datadir,;t t
12436 s,@sysconfdir@,$sysconfdir,;t t
12437 s,@sharedstatedir@,$sharedstatedir,;t t
12438 s,@localstatedir@,$localstatedir,;t t
12439 s,@libdir@,$libdir,;t t
12440 s,@includedir@,$includedir,;t t
12441 s,@oldincludedir@,$oldincludedir,;t t
12442 s,@infodir@,$infodir,;t t
12443 s,@mandir@,$mandir,;t t
12444 s,@build_alias@,$build_alias,;t t
12445 s,@host_alias@,$host_alias,;t t
12446 s,@target_alias@,$target_alias,;t t
12447 s,@DEFS@,$DEFS,;t t
12448 s,@ECHO_C@,$ECHO_C,;t t
12449 s,@ECHO_N@,$ECHO_N,;t t
12450 s,@ECHO_T@,$ECHO_T,;t t
12451 s,@LIBS@,$LIBS,;t t
12452 s,@build@,$build,;t t
12453 s,@build_cpu@,$build_cpu,;t t
12454 s,@build_vendor@,$build_vendor,;t t
12455 s,@build_os@,$build_os,;t t
12456 s,@host@,$host,;t t
12457 s,@host_cpu@,$host_cpu,;t t
12458 s,@host_vendor@,$host_vendor,;t t
12459 s,@host_os@,$host_os,;t t
12460 s,@SHARED@,$SHARED,;t t
12462 s,@CFLAGS@,$CFLAGS,;t t
12463 s,@LDFLAGS@,$LDFLAGS,;t t
12464 s,@CPPFLAGS@,$CPPFLAGS,;t t
12465 s,@ac_ct_CC@,$ac_ct_CC,;t t
12466 s,@EXEEXT@,$EXEEXT,;t t
12467 s,@OBJEXT@,$OBJEXT,;t t
12469 s,@CXXFLAGS@,$CXXFLAGS,;t t
12470 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12472 s,@RANLIB@,$RANLIB,;t t
12473 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12474 s,@SET_MAKE@,$SET_MAKE,;t t
12475 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12476 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12477 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12478 s,@LN_S@,$LN_S,;t t
12479 s,@ECHO@,$ECHO,;t t
12480 s,@STRIP@,$STRIP,;t t
12481 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12482 s,@EGREP@,$EGREP,;t t
12483 s,@LIBTOOL@,$LIBTOOL,;t t
12484 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
12485 s,@AREXT@,$AREXT,;t t
12487 s,@SLEXT@,$SLEXT,;t t
12488 s,@target@,$target,;t t
12489 s,@target_cpu@,$target_cpu,;t t
12490 s,@target_vendor@,$target_vendor,;t t
12491 s,@target_os@,$target_os,;t t
12492 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
12493 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
12494 s,@PACKAGE@,$PACKAGE,;t t
12495 s,@VERSION@,$VERSION,;t t
12496 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
12497 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
12498 s,@lame_objects@,$lame_objects,;t t
12499 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
12500 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
12501 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
12502 s,@USE_GZIP@,$USE_GZIP,;t t
12503 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
12504 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
12505 s,@JPEG2SWF@,$JPEG2SWF,;t t
12506 s,@GIF2SWF@,$GIF2SWF,;t t
12507 s,@PNG2SWF@,$PNG2SWF,;t t
12508 s,@LIBOBJS@,$LIBOBJS,;t t
12509 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12514 cat >>$CONFIG_STATUS <<\_ACEOF
12515 # Split the substitutions into bite-sized pieces for seds with
12516 # small command number limits, like on Digital OSF/1 and HP-UX.
12517 ac_max_sed_lines=48
12518 ac_sed_frag=1 # Number of current file.
12519 ac_beg=1 # First line for current file.
12520 ac_end=$ac_max_sed_lines # Line after last line for current file.
12523 while $ac_more_lines; do
12524 if test $ac_beg -gt 1; then
12525 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12527 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12529 if test ! -s $tmp/subs.frag; then
12530 ac_more_lines=false
12532 # The purpose of the label and of the branching condition is to
12533 # speed up the sed processing (if there are no `@' at all, there
12534 # is no need to browse any of the substitutions).
12535 # These are the two extra sed commands mentioned above.
12537 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12538 if test -z "$ac_sed_cmds"; then
12539 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12541 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12543 ac_sed_frag=`expr $ac_sed_frag + 1`
12545 ac_end=`expr $ac_end + $ac_max_sed_lines`
12548 if test -z "$ac_sed_cmds"; then
12551 fi # test -n "$CONFIG_FILES"
12554 cat >>$CONFIG_STATUS <<\_ACEOF
12555 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12556 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12558 - | *:- | *:-:* ) # input from stdin
12560 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12561 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12562 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12563 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12564 * ) ac_file_in=$ac_file.in ;;
12567 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12568 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12569 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12570 X"$ac_file" : 'X\(//\)[^/]' \| \
12571 X"$ac_file" : 'X\(//\)$' \| \
12572 X"$ac_file" : 'X\(/\)' \| \
12573 . : '\(.\)' 2>/dev/null ||
12575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12576 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12577 /^X\(\/\/\)$/{ s//\1/; q; }
12578 /^X\(\/\).*/{ s//\1/; q; }
12580 { if $as_mkdir_p; then
12585 while test ! -d "$as_dir"; do
12586 as_dirs="$as_dir $as_dirs"
12587 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12589 X"$as_dir" : 'X\(//\)[^/]' \| \
12590 X"$as_dir" : 'X\(//\)$' \| \
12591 X"$as_dir" : 'X\(/\)' \| \
12592 . : '\(.\)' 2>/dev/null ||
12594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12596 /^X\(\/\/\)$/{ s//\1/; q; }
12597 /^X\(\/\).*/{ s//\1/; q; }
12600 test ! -n "$as_dirs" || mkdir $as_dirs
12601 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12602 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12603 { (exit 1); exit 1; }; }; }
12607 if test "$ac_dir" != .; then
12608 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12609 # A "../" for each directory in $ac_dir_suffix.
12610 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12612 ac_dir_suffix= ac_top_builddir=
12616 .) # No --srcdir option. We are building in place.
12618 if test -z "$ac_top_builddir"; then
12621 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12623 [\\/]* | ?:[\\/]* ) # Absolute path.
12624 ac_srcdir=$srcdir$ac_dir_suffix;
12625 ac_top_srcdir=$srcdir ;;
12626 *) # Relative path.
12627 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12628 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12631 # Do not use `cd foo && pwd` to compute absolute paths, because
12632 # the directories may not exist.
12634 .) ac_abs_builddir="$ac_dir";;
12637 .) ac_abs_builddir=`pwd`;;
12638 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12639 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12642 case $ac_abs_builddir in
12643 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12645 case ${ac_top_builddir}. in
12646 .) ac_abs_top_builddir=$ac_abs_builddir;;
12647 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12648 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12651 case $ac_abs_builddir in
12652 .) ac_abs_srcdir=$ac_srcdir;;
12655 .) ac_abs_srcdir=$ac_abs_builddir;;
12656 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12657 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12660 case $ac_abs_builddir in
12661 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12663 case $ac_top_srcdir in
12664 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12665 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12666 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12672 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12673 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12676 if test x"$ac_file" != x-; then
12677 { echo "$as_me:$LINENO: creating $ac_file" >&5
12678 echo "$as_me: creating $ac_file" >&6;}
12681 # Let's still pretend it is `configure' which instantiates (i.e., don't
12682 # use $as_me), people would be surprised to read:
12683 # /* config.h. Generated by config.status. */
12684 if test x"$ac_file" = x-; then
12687 configure_input="$ac_file. "
12689 configure_input=$configure_input"Generated from `echo $ac_file_in |
12690 sed 's,.*/,,'` by configure."
12692 # First look for the input files in the build tree, otherwise in the
12694 ac_file_inputs=`IFS=:
12695 for f in $ac_file_in; do
12697 -) echo $tmp/stdin ;;
12699 # Absolute (can't be DOS-style, as IFS=:)
12700 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12701 echo "$as_me: error: cannot find input file: $f" >&2;}
12702 { (exit 1); exit 1; }; }
12705 if test -f "$f"; then
12708 elif test -f "$srcdir/$f"; then
12713 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12714 echo "$as_me: error: cannot find input file: $f" >&2;}
12715 { (exit 1); exit 1; }; }
12718 done` || { (exit 1); exit 1; }
12720 cat >>$CONFIG_STATUS <<_ACEOF
12724 cat >>$CONFIG_STATUS <<\_ACEOF
12726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12727 s,@configure_input@,$configure_input,;t t
12728 s,@srcdir@,$ac_srcdir,;t t
12729 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12730 s,@top_srcdir@,$ac_top_srcdir,;t t
12731 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12732 s,@builddir@,$ac_builddir,;t t
12733 s,@abs_builddir@,$ac_abs_builddir,;t t
12734 s,@top_builddir@,$ac_top_builddir,;t t
12735 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12736 s,@INSTALL@,$ac_INSTALL,;t t
12737 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12739 if test x"$ac_file" != x-; then
12740 mv $tmp/out $ac_file
12748 cat >>$CONFIG_STATUS <<\_ACEOF
12751 # CONFIG_HEADER section.
12754 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12755 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12757 # ac_d sets the value in "#define NAME VALUE" lines.
12758 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12759 ac_dB='[ ].*$,\1#\2'
12762 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12763 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12764 ac_uB='$,\1#\2define\3'
12768 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12771 - | *:- | *:-:* ) # input from stdin
12773 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12775 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12777 * ) ac_file_in=$ac_file.in ;;
12780 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12781 echo "$as_me: creating $ac_file" >&6;}
12783 # First look for the input files in the build tree, otherwise in the
12785 ac_file_inputs=`IFS=:
12786 for f in $ac_file_in; do
12788 -) echo $tmp/stdin ;;
12790 # Absolute (can't be DOS-style, as IFS=:)
12791 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12792 echo "$as_me: error: cannot find input file: $f" >&2;}
12793 { (exit 1); exit 1; }; }
12794 # Do quote $f, to prevent DOS paths from being IFS'd.
12797 if test -f "$f"; then
12800 elif test -f "$srcdir/$f"; then
12805 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12806 echo "$as_me: error: cannot find input file: $f" >&2;}
12807 { (exit 1); exit 1; }; }
12810 done` || { (exit 1); exit 1; }
12811 # Remove the trailing spaces.
12812 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12816 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12817 # `conftest.undefs', that substitutes the proper values into
12818 # config.h.in to produce config.h. The first handles `#define'
12819 # templates, and the second `#undef' templates.
12820 # And first: Protect against being on the right side of a sed subst in
12821 # config.status. Protect against being in an unquoted here document
12822 # in config.status.
12823 rm -f conftest.defines conftest.undefs
12824 # Using a here document instead of a string reduces the quoting nightmare.
12825 # Putting comments in sed scripts is not portable.
12827 # `end' is used to avoid that the second main sed command (meant for
12828 # 0-ary CPP macros) applies to n-ary macro definitions.
12829 # See the Autoconf documentation for `clear'.
12830 cat >confdef2sed.sed <<\_ACEOF
12835 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12837 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12840 # If some macros were called several times there might be several times
12841 # the same #defines, which is useless. Nevertheless, we may not want to
12842 # sort them, since we want the *last* AC-DEFINE to be honored.
12843 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12844 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12845 rm -f confdef2sed.sed
12847 # This sed command replaces #undef with comments. This is necessary, for
12848 # example, in the case of _POSIX_SOURCE, which is predefined and required
12849 # on some systems where configure will not decide to define it.
12850 cat >>conftest.undefs <<\_ACEOF
12851 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12854 # Break up conftest.defines because some shells have a limit on the size
12855 # of here documents, and old seds have small limits too (100 cmds).
12856 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12857 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12858 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12859 echo ' :' >>$CONFIG_STATUS
12860 rm -f conftest.tail
12861 while grep . conftest.defines >/dev/null
12863 # Write a limited-size here document to $tmp/defines.sed.
12864 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12865 # Speed up: don't consider the non `#define' lines.
12866 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12867 # Work around the forget-to-reset-the-flag bug.
12868 echo 't clr' >>$CONFIG_STATUS
12869 echo ': clr' >>$CONFIG_STATUS
12870 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12872 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12874 mv $tmp/out $tmp/in
12876 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12877 rm -f conftest.defines
12878 mv conftest.tail conftest.defines
12880 rm -f conftest.defines
12881 echo ' fi # grep' >>$CONFIG_STATUS
12882 echo >>$CONFIG_STATUS
12884 # Break up conftest.undefs because some shells have a limit on the size
12885 # of here documents, and old seds have small limits too (100 cmds).
12886 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12887 rm -f conftest.tail
12888 while grep . conftest.undefs >/dev/null
12890 # Write a limited-size here document to $tmp/undefs.sed.
12891 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12892 # Speed up: don't consider the non `#undef'
12893 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12894 # Work around the forget-to-reset-the-flag bug.
12895 echo 't clr' >>$CONFIG_STATUS
12896 echo ': clr' >>$CONFIG_STATUS
12897 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12899 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12901 mv $tmp/out $tmp/in
12903 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12904 rm -f conftest.undefs
12905 mv conftest.tail conftest.undefs
12907 rm -f conftest.undefs
12909 cat >>$CONFIG_STATUS <<\_ACEOF
12910 # Let's still pretend it is `configure' which instantiates (i.e., don't
12911 # use $as_me), people would be surprised to read:
12912 # /* config.h. Generated by config.status. */
12913 if test x"$ac_file" = x-; then
12914 echo "/* Generated by configure. */" >$tmp/config.h
12916 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12918 cat $tmp/in >>$tmp/config.h
12920 if test x"$ac_file" != x-; then
12921 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12922 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12923 echo "$as_me: $ac_file is unchanged" >&6;}
12925 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12926 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12927 X"$ac_file" : 'X\(//\)[^/]' \| \
12928 X"$ac_file" : 'X\(//\)$' \| \
12929 X"$ac_file" : 'X\(/\)' \| \
12930 . : '\(.\)' 2>/dev/null ||
12932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12933 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12934 /^X\(\/\/\)$/{ s//\1/; q; }
12935 /^X\(\/\).*/{ s//\1/; q; }
12937 { if $as_mkdir_p; then
12942 while test ! -d "$as_dir"; do
12943 as_dirs="$as_dir $as_dirs"
12944 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12946 X"$as_dir" : 'X\(//\)[^/]' \| \
12947 X"$as_dir" : 'X\(//\)$' \| \
12948 X"$as_dir" : 'X\(/\)' \| \
12949 . : '\(.\)' 2>/dev/null ||
12951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12953 /^X\(\/\/\)$/{ s//\1/; q; }
12954 /^X\(\/\).*/{ s//\1/; q; }
12957 test ! -n "$as_dirs" || mkdir $as_dirs
12958 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12959 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12960 { (exit 1); exit 1; }; }; }
12963 mv $tmp/config.h $ac_file
12967 rm -f $tmp/config.h
12972 cat >>$CONFIG_STATUS <<\_ACEOF
12974 { (exit 0); exit 0; }
12976 chmod +x $CONFIG_STATUS
12977 ac_clean_files=$ac_clean_files_save
12980 # configure is writing to config.log, and then calls config.status.
12981 # config.status does its own redirection, appending to config.log.
12982 # Unfortunately, on DOS this fails, as config.log is still kept open
12983 # by configure, so config.status won't be able to write to it; its
12984 # output is simply discarded. So we exec the FD to /dev/null,
12985 # effectively closing config.log, so it can be properly (re)opened and
12986 # appended to by config.status. When coming back to configure, we
12987 # need to make the FD available again.
12988 if test "$no_create" != yes; then
12990 ac_config_status_args=
12991 test "$silent" = yes &&
12992 ac_config_status_args="$ac_config_status_args --quiet"
12994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12997 # would make configure fail if this is the last instruction.
12998 $ac_cs_success || { (exit 1); exit 1; }
13002 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
13003 if test "x${MINGW}" = "xyes"; then
13004 echo cp config.status config.status.win32
13005 cp config.status config.status.win32
13007 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
13008 echo cp config.status config.status.linux
13009 cp config.status config.status.linux
13011 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
13012 echo cp config.status config.status.debug
13013 cp config.status config.status.debug
13015 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
13016 echo cp config.status config.status.optimize
13017 cp config.status config.status.optimize