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.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="src/"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S EGREP ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL UNCOMPRESS SLEXT target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H FREETYPE_CONFIG lame_objects AVIFILE_CONFIG USE_GZIP PYTHON_LIB PYTHON_INCLUDES JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
469 # Initialize some variables set by options.
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name=s,x,x,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
584 -help | --help | --hel | --he | -h)
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 # Obsolete; use --without-fp.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
714 -site=* | --site=* | --sit=*)
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 -version | --version | --versio | --versi | --vers | -V)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CXX_set=${CXX+set}
924 ac_env_CXX_value=$CXX
925 ac_cv_env_CXX_set=${CXX+set}
926 ac_cv_env_CXX_value=$CXX
927 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928 ac_env_CXXFLAGS_value=$CXXFLAGS
929 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 --target=TARGET configure for building compilers for TARGET [HOST]
1020 if test -n "$ac_init_help"; then
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --enable-checkmem turn on ccmalloc debugging
1028 --enable-debug turn on debugging
1029 --enable-warnings turn on compiler warnings
1030 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1031 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1047 include additional configurations [automatic]
1049 Some influential environment variables:
1050 CC C compiler command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053 nonstandard directory <lib dir>
1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055 headers in a nonstandard directory <include dir>
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1059 CXXCPP C++ preprocessor
1060 F77 Fortran 77 compiler command
1061 FFLAGS Fortran 77 compiler flags
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1069 if test "$ac_init_help" = "recursive"; then
1070 # If there are subdirs, report their specific --help.
1072 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073 test -d $ac_dir || continue
1076 if test "$ac_dir" != .; then
1077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078 # A "../" for each directory in $ac_dir_suffix.
1079 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081 ac_dir_suffix= ac_top_builddir=
1085 .) # No --srcdir option. We are building in place.
1087 if test -z "$ac_top_builddir"; then
1090 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092 [\\/]* | ?:[\\/]* ) # Absolute path.
1093 ac_srcdir=$srcdir$ac_dir_suffix;
1094 ac_top_srcdir=$srcdir ;;
1096 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 # Do not use `cd foo && pwd` to compute absolute paths, because
1101 # the directories may not exist.
1103 .) ac_abs_builddir="$ac_dir";;
1106 .) ac_abs_builddir=`pwd`;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 case ${ac_top_builddir}. in
1115 .) ac_abs_top_builddir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120 case $ac_abs_builddir in
1121 .) ac_abs_srcdir=$ac_srcdir;;
1124 .) ac_abs_srcdir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 case $ac_top_srcdir in
1133 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140 # Check for guested configure; otherwise get Cygnus style configure.
1141 if test -f $ac_srcdir/configure.gnu; then
1143 $SHELL $ac_srcdir/configure.gnu --help=recursive
1144 elif test -f $ac_srcdir/configure; then
1146 $SHELL $ac_srcdir/configure --help=recursive
1147 elif test -f $ac_srcdir/configure.ac ||
1148 test -f $ac_srcdir/configure.in; then
1150 $ac_configure --help
1152 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 test -n "$ac_init_help" && exit 0
1159 if $ac_init_version; then
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1173 It was created by $as_me, which was
1174 generated by GNU Autoconf 2.59. Invocation command line was
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1194 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1195 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1198 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1199 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1200 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208 test -z "$as_dir" && as_dir=.
1209 echo "PATH: $as_dir"
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_must_keep_next=false
1239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250 if test $ac_must_keep_next = true; then
1251 ac_must_keep_next=false # Got value, back to normal.
1254 *=* | --config-cache | -C | -disable-* | --disable-* \
1255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257 | -with-* | --with-* | -without-* | --without-* | --x)
1258 case "$ac_configure_args0 " in
1259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262 -* ) ac_must_keep_next=true ;;
1265 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266 # Get rid of the leading space.
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log. We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281 # Save into config.log some information that might help in debugging.
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1291 # The following way of writing the cache mishandles newlines in values,
1294 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1314 for ac_var in $ac_subst_vars
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1321 if test -n "$ac_subst_files"; then
1328 for ac_var in $ac_subst_files
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -s confdefs.h; then
1343 sed "/^$/d" confdefs.h | sort
1346 test "$ac_signal" != 0 &&
1347 echo "$as_me: caught signal $ac_signal"
1348 echo "$as_me: exit $exit_status"
1350 rm -f core *.core &&
1351 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354 for ac_signal in 1 2 13 15; do
1355 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364 # Predefined preprocessor variables.
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394 if test "x$prefix" != xNONE; then
1395 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1397 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400 for ac_site_file in $CONFIG_SITE; do
1401 if test -r "$ac_site_file"; then
1402 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404 sed 's/^/| /' "$ac_site_file" >&5
1409 if test -r "$cache_file"; then
1410 # Some versions of bash will fail to source /dev/null (special
1411 # files actually), so we avoid doing that.
1412 if test -f "$cache_file"; then
1413 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1416 [\\/]* | ?:[\\/]* ) . $cache_file;;
1417 *) . ./$cache_file;;
1421 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1426 # Check that the precious variables saved in the cache have kept the same
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432 eval ac_new_set=\$ac_env_${ac_var}_set
1433 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434 eval ac_new_val="\$ac_env_${ac_var}_value"
1435 case $ac_old_set,$ac_new_set in
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1446 if test "x$ac_old_val" != "x$ac_new_val"; then
1447 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1450 echo "$as_me: former value: $ac_old_val" >&2;}
1451 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1452 echo "$as_me: current value: $ac_new_val" >&2;}
1453 ac_cache_corrupted=:
1456 # Pass precious variables to config.status.
1457 if test "$ac_new_set" = set; then
1459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461 *) ac_arg=$ac_var=$ac_new_val ;;
1463 case " $ac_configure_args " in
1464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1465 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469 if $ac_cache_corrupted; then
1470 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474 { (exit 1); exit 1; }; }
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503 # Check whether --enable-checkmem or --disable-checkmem was given.
1504 if test "${enable_checkmem+set}" = set; then
1505 enableval="$enable_checkmem"
1508 # Check whether --enable-debug or --disable-debug was given.
1509 if test "${enable_debug+set}" = set; then
1510 enableval="$enable_debug"
1513 # Check whether --enable-warnings or --disable-warnings was given.
1514 if test "${enable_warnings+set}" = set; then
1515 enableval="$enable_warnings"
1516 ENABLE_WARNINGS=true
1518 # Check whether --enable-optimizations or --disable-optimizations was given.
1519 if test "${enable_optimizations+set}" = set; then
1520 enableval="$enable_optimizations"
1523 # Check whether --enable-lame or --disable-lame was given.
1524 if test "${enable_lame+set}" = set; then
1525 enableval="$enable_lame"
1530 VERSION=2004-09-02-2157
1532 # ------------------------------------------------------------------
1534 if test "x${srcdir}" != "x."; then
1535 echo "--srcdir is not supported"
1539 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1540 if test "x$ENABLE_WARNINGS" '!=' "x";then
1541 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1544 if test "x$CHECKMEM" '!=' "x";then
1547 if test "x$DEBUG" '!=' "x";then
1548 CFLAGS="$WARNINGS -g $CFLAGS"
1549 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
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
1569 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1570 if test -f $ac_dir/install-sh; then
1572 ac_install_sh="$ac_aux_dir/install-sh -c"
1574 elif test -f $ac_dir/install.sh; then
1576 ac_install_sh="$ac_aux_dir/install.sh -c"
1578 elif test -f $ac_dir/shtool; then
1580 ac_install_sh="$ac_aux_dir/shtool install -c"
1584 if test -z "$ac_aux_dir"; then
1585 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1586 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1587 { (exit 1); exit 1; }; }
1589 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1590 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1591 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1593 # Make sure we can run config.sub.
1594 $ac_config_sub sun4 >/dev/null 2>&1 ||
1595 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1596 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1597 { (exit 1); exit 1; }; }
1599 echo "$as_me:$LINENO: checking build system type" >&5
1600 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1601 if test "${ac_cv_build+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 ac_cv_build_alias=$build_alias
1605 test -z "$ac_cv_build_alias" &&
1606 ac_cv_build_alias=`$ac_config_guess`
1607 test -z "$ac_cv_build_alias" &&
1608 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1609 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1610 { (exit 1); exit 1; }; }
1611 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1612 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1613 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1614 { (exit 1); exit 1; }; }
1617 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1618 echo "${ECHO_T}$ac_cv_build" >&6
1620 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1621 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1622 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1625 echo "$as_me:$LINENO: checking host system type" >&5
1626 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1627 if test "${ac_cv_host+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 ac_cv_host_alias=$host_alias
1631 test -z "$ac_cv_host_alias" &&
1632 ac_cv_host_alias=$ac_cv_build_alias
1633 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1635 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1639 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1640 echo "${ECHO_T}$ac_cv_host" >&6
1642 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651 CFLAGS="$CFLAGS -fno-rtti"
1652 CXXFLAGS="$CXXFLAGS -fno-rtti"
1656 ac_cpp='$CPP $CPPFLAGS'
1657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1660 if test -n "$ac_tool_prefix"; then
1661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1662 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 if test -n "$CC"; then
1669 ac_cv_prog_CC="$CC" # Let the user override the test.
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 if test -n "$CC"; then
1689 echo "$as_me:$LINENO: result: $CC" >&5
1690 echo "${ECHO_T}$CC" >&6
1692 echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1697 if test -z "$ac_cv_prog_CC"; then
1699 # Extract the first word of "gcc", so it can be a program name with args.
1700 set dummy gcc; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="gcc"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726 if test -n "$ac_ct_CC"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728 echo "${ECHO_T}$ac_ct_CC" >&6
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1739 if test -z "$CC"; then
1740 if test -n "$ac_tool_prefix"; then
1741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1742 set dummy ${ac_tool_prefix}cc; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 if test -n "$CC"; then
1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_CC="${ac_tool_prefix}cc"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 if test -n "$CC"; then
1769 echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1777 if test -z "$ac_cv_prog_CC"; then
1779 # Extract the first word of "cc", so it can be a program name with args.
1780 set dummy cc; ac_word=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1786 if test -n "$ac_ct_CC"; then
1787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 test -z "$as_dir" && as_dir=.
1794 for ac_exec_ext in '' $ac_executable_extensions; do
1795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796 ac_cv_prog_ac_ct_CC="cc"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1806 if test -n "$ac_ct_CC"; then
1807 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1808 echo "${ECHO_T}$ac_ct_CC" >&6
1810 echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1820 if test -z "$CC"; then
1821 # Extract the first word of "cc", so it can be a program name with args.
1822 set dummy cc; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1840 ac_prog_rejected=yes
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 if test $ac_prog_rejected = yes; then
1851 # We found a bogon in the path, so make sure we never use it.
1852 set dummy $ac_cv_prog_CC
1854 if test $# != 0; then
1855 # We chose a different compiler from the bogus one.
1856 # However, it has the same basename, so the bogon will be chosen
1857 # first if we set CC to just the basename; use the full file name.
1859 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1865 if test -n "$CC"; then
1866 echo "$as_me:$LINENO: result: $CC" >&5
1867 echo "${ECHO_T}$CC" >&6
1869 echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1874 if test -z "$CC"; then
1875 if test -n "$ac_tool_prefix"; then
1878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 if test -n "$CC"; then
1906 echo "$as_me:$LINENO: result: $CC" >&5
1907 echo "${ECHO_T}$CC" >&6
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1913 test -n "$CC" && break
1916 if test -z "$CC"; then
1920 # Extract the first word of "$ac_prog", so it can be a program name with args.
1921 set dummy $ac_prog; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 if test -n "$ac_ct_CC"; then
1928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_ac_ct_CC="$ac_prog"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1947 if test -n "$ac_ct_CC"; then
1948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1949 echo "${ECHO_T}$ac_ct_CC" >&6
1951 echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1955 test -n "$ac_ct_CC" && break
1964 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1965 See \`config.log' for more details." >&5
1966 echo "$as_me: error: no acceptable C compiler found in \$PATH
1967 See \`config.log' for more details." >&2;}
1968 { (exit 1); exit 1; }; }
1970 # Provide some information about the compiler.
1971 echo "$as_me:$LINENO:" \
1972 "checking for C compiler version" >&5
1973 ac_compiler=`set X $ac_compile; echo $2`
1974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1975 (eval $ac_compiler --version </dev/null >&5) 2>&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }
1979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1980 (eval $ac_compiler -v </dev/null >&5) 2>&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }
1984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1985 (eval $ac_compiler -V </dev/null >&5) 2>&5
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }
1990 cat >conftest.$ac_ext <<_ACEOF
1993 cat confdefs.h >>conftest.$ac_ext
1994 cat >>conftest.$ac_ext <<_ACEOF
1995 /* end confdefs.h. */
2005 ac_clean_files_save=$ac_clean_files
2006 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2007 # Try to create an executable without -o first, disregard a.out.
2008 # It will help us diagnose broken compilers, and finding out an intuition
2010 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2011 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2012 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2013 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2014 (eval $ac_link_default) 2>&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }; then
2018 # Find the output, starting from the most likely. This scheme is
2019 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2022 # Be careful to initialize this variable, since it used to be cached.
2023 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2025 # b.out is created by i960 compilers.
2026 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2028 test -f "$ac_file" || continue
2030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2033 # This is the source file.
2036 # We found the default executable, but exeext='' is most
2040 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2041 # FIXME: I believe we export ac_cv_exeext for Libtool,
2042 # but it would be cool to find out if it's true. Does anybody
2043 # maintain Libtool? --akim.
2051 echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2054 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2055 See \`config.log' for more details." >&5
2056 echo "$as_me: error: C compiler cannot create executables
2057 See \`config.log' for more details." >&2;}
2058 { (exit 77); exit 77; }; }
2061 ac_exeext=$ac_cv_exeext
2062 echo "$as_me:$LINENO: result: $ac_file" >&5
2063 echo "${ECHO_T}$ac_file" >&6
2065 # Check the compiler produces executables we can run. If not, either
2066 # the compiler is broken, or we cross compile.
2067 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2068 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2069 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2070 # If not cross compiling, check that we can run a simple program.
2071 if test "$cross_compiling" != yes; then
2072 if { ac_try='./$ac_file'
2073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); }; }; then
2080 if test "$cross_compiling" = maybe; then
2083 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2084 If you meant to cross compile, use \`--host'.
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: cannot run C compiled programs.
2087 If you meant to cross compile, use \`--host'.
2088 See \`config.log' for more details." >&2;}
2089 { (exit 1); exit 1; }; }
2093 echo "$as_me:$LINENO: result: yes" >&5
2094 echo "${ECHO_T}yes" >&6
2096 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2097 ac_clean_files=$ac_clean_files_save
2098 # Check the compiler produces executables we can run. If not, either
2099 # the compiler is broken, or we cross compile.
2100 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2101 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2102 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2103 echo "${ECHO_T}$cross_compiling" >&6
2105 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2106 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2108 (eval $ac_link) 2>&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }; then
2112 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2113 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2114 # work properly (i.e., refer to `conftest.exe'), while it won't with
2116 for ac_file in conftest.exe conftest conftest.*; do
2117 test -f "$ac_file" || continue
2119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2120 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2127 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2128 See \`config.log' for more details." >&5
2129 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2130 See \`config.log' for more details." >&2;}
2131 { (exit 1); exit 1; }; }
2134 rm -f conftest$ac_cv_exeext
2135 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2136 echo "${ECHO_T}$ac_cv_exeext" >&6
2138 rm -f conftest.$ac_ext
2139 EXEEXT=$ac_cv_exeext
2141 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2142 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2143 if test "${ac_cv_objext+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 cat >conftest.$ac_ext <<_ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h. */
2161 rm -f conftest.o conftest.obj
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; then
2167 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2170 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2175 echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2178 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2179 See \`config.log' for more details." >&5
2180 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2181 See \`config.log' for more details." >&2;}
2182 { (exit 1); exit 1; }; }
2185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2187 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2188 echo "${ECHO_T}$ac_cv_objext" >&6
2189 OBJEXT=$ac_cv_objext
2191 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2192 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2193 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 cat >conftest.$ac_ext <<_ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h. */
2214 rm -f conftest.$ac_objext
2215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216 (eval $ac_compile) 2>conftest.er1
2218 grep -v '^ *+' conftest.er1 >conftest.err
2220 cat conftest.err >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); } &&
2223 { ac_try='test -z "$ac_c_werror_flag"
2224 || test ! -s conftest.err'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2238 echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2244 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2247 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2248 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2249 GCC=`test $ac_compiler_gnu = yes && echo yes`
2250 ac_test_CFLAGS=${CFLAGS+set}
2251 ac_save_CFLAGS=$CFLAGS
2253 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2254 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2255 if test "${ac_cv_prog_cc_g+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 cat >conftest.$ac_ext <<_ACEOF
2261 cat confdefs.h >>conftest.$ac_ext
2262 cat >>conftest.$ac_ext <<_ACEOF
2263 /* end confdefs.h. */
2273 rm -f conftest.$ac_objext
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275 (eval $ac_compile) 2>conftest.er1
2277 grep -v '^ *+' conftest.er1 >conftest.err
2279 cat conftest.err >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); } &&
2282 { ac_try='test -z "$ac_c_werror_flag"
2283 || test ! -s conftest.err'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; } &&
2289 { ac_try='test -s conftest.$ac_objext'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2297 echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2304 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2305 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2306 if test "$ac_test_CFLAGS" = set; then
2307 CFLAGS=$ac_save_CFLAGS
2308 elif test $ac_cv_prog_cc_g = yes; then
2309 if test "$GCC" = yes; then
2315 if test "$GCC" = yes; then
2321 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2322 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2323 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 ac_cv_prog_cc_stdc=no
2328 cat >conftest.$ac_ext <<_ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2336 #include <sys/types.h>
2337 #include <sys/stat.h>
2338 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2339 struct buf { int x; };
2340 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2341 static char *e (p, i)
2347 static char *f (char * (*g) (char **, int), char **p, ...)
2352 s = g (p, va_arg (v,int));
2357 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2358 function prototypes and stuff, but not '\xHH' hex character constants.
2359 These don't provoke an error unfortunately, instead are silently treated
2360 as 'x'. The following induces an error, until -std1 is added to get
2361 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2362 array size at least. It's necessary to write '\x00'==0 to get something
2363 that's true only with -std1. */
2364 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2366 int test (int i, double x);
2367 struct s1 {int (*f) (int a);};
2368 struct s2 {int (*f) (double a);};
2369 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2375 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2380 # Don't try gcc -ansi; that turns off useful extensions and
2381 # breaks some systems' header files.
2382 # AIX -qlanglvl=ansi
2383 # Ultrix and OSF/1 -std1
2384 # HP-UX 10.20 and later -Ae
2385 # HP-UX older versions -Aa -D_HPUX_SOURCE
2386 # SVR4 -Xc -D__EXTENSIONS__
2387 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2389 CC="$ac_save_CC $ac_arg"
2390 rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>conftest.er1
2394 grep -v '^ *+' conftest.er1 >conftest.err
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag"
2400 || test ! -s conftest.err'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_cv_prog_cc_stdc=$ac_arg
2415 echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2419 rm -f conftest.err conftest.$ac_objext
2421 rm -f conftest.$ac_ext conftest.$ac_objext
2426 case "x$ac_cv_prog_cc_stdc" in
2428 echo "$as_me:$LINENO: result: none needed" >&5
2429 echo "${ECHO_T}none needed" >&6 ;;
2431 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2432 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2433 CC="$CC $ac_cv_prog_cc_stdc" ;;
2436 # Some people use a C++ compiler to compile C. Since we use `exit',
2437 # in C++ we need to declare it. In case someone uses the same compiler
2438 # for both compiling C and C++ we need to have the C++ compiler decide
2439 # the declaration of exit, since it's the most demanding environment.
2440 cat >conftest.$ac_ext <<_ACEOF
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2449 grep -v '^ *+' conftest.er1 >conftest.err
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 for ac_declaration in \
2469 'extern "C" void std::exit (int) throw (); using std::exit;' \
2470 'extern "C" void std::exit (int); using std::exit;' \
2471 'extern "C" void exit (int) throw ();' \
2472 'extern "C" void exit (int);' \
2475 cat >conftest.$ac_ext <<_ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2491 rm -f conftest.$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>conftest.er1
2495 grep -v '^ *+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -z "$ac_c_werror_flag"
2501 || test ! -s conftest.err'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2521 cat >conftest.$ac_ext <<_ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2536 rm -f conftest.$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538 (eval $ac_compile) 2>conftest.er1
2540 grep -v '^ *+' conftest.er1 >conftest.err
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try='test -z "$ac_c_werror_flag"
2546 || test ! -s conftest.err'
2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; } &&
2552 { ac_try='test -s conftest.$ac_objext'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; }; then
2560 echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2567 if test -n "$ac_declaration"; then
2568 echo '#ifdef __cplusplus' >>confdefs.h
2569 echo $ac_declaration >>confdefs.h
2570 echo '#endif' >>confdefs.h
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586 ac_cpp='$CXXCPP $CPPFLAGS'
2587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2590 if test -n "$ac_tool_prefix"; then
2591 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2595 echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2597 if test "${ac_cv_prog_CXX+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 if test -n "$CXX"; then
2601 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 if test -n "$CXX"; then
2621 echo "$as_me:$LINENO: result: $CXX" >&5
2622 echo "${ECHO_T}$CXX" >&6
2624 echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6
2628 test -n "$CXX" && break
2631 if test -z "$CXX"; then
2633 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2639 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 if test -n "$ac_ct_CXX"; then
2643 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_ac_ct_CXX="$ac_prog"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2662 if test -n "$ac_ct_CXX"; then
2663 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2664 echo "${ECHO_T}$ac_ct_CXX" >&6
2666 echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6
2670 test -n "$ac_ct_CXX" && break
2672 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2678 # Provide some information about the compiler.
2679 echo "$as_me:$LINENO:" \
2680 "checking for C++ compiler version" >&5
2681 ac_compiler=`set X $ac_compile; echo $2`
2682 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2683 (eval $ac_compiler --version </dev/null >&5) 2>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2687 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2688 (eval $ac_compiler -v </dev/null >&5) 2>&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }
2692 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2693 (eval $ac_compiler -V </dev/null >&5) 2>&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }
2698 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2699 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2700 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 cat >conftest.$ac_ext <<_ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2721 rm -f conftest.$ac_objext
2722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723 (eval $ac_compile) 2>conftest.er1
2725 grep -v '^ *+' conftest.er1 >conftest.err
2727 cat conftest.err >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } &&
2730 { ac_try='test -z "$ac_cxx_werror_flag"
2731 || test ! -s conftest.err'
2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; } &&
2737 { ac_try='test -s conftest.$ac_objext'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; }; then
2745 echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2751 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2754 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2755 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2756 GXX=`test $ac_compiler_gnu = yes && echo yes`
2757 ac_test_CXXFLAGS=${CXXFLAGS+set}
2758 ac_save_CXXFLAGS=$CXXFLAGS
2760 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2761 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2762 if test "${ac_cv_prog_cxx_g+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 cat >conftest.$ac_ext <<_ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2780 rm -f conftest.$ac_objext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782 (eval $ac_compile) 2>conftest.er1
2784 grep -v '^ *+' conftest.er1 >conftest.err
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try='test -z "$ac_cxx_werror_flag"
2790 || test ! -s conftest.err'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 ac_cv_prog_cxx_g=yes
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2812 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2813 if test "$ac_test_CXXFLAGS" = set; then
2814 CXXFLAGS=$ac_save_CXXFLAGS
2815 elif test $ac_cv_prog_cxx_g = yes; then
2816 if test "$GXX" = yes; then
2822 if test "$GXX" = yes; then
2828 for ac_declaration in \
2830 'extern "C" void std::exit (int) throw (); using std::exit;' \
2831 'extern "C" void std::exit (int); using std::exit;' \
2832 'extern "C" void exit (int) throw ();' \
2833 'extern "C" void exit (int);' \
2836 cat >conftest.$ac_ext <<_ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2856 grep -v '^ *+' conftest.er1 >conftest.err
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -z "$ac_cxx_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882 cat >conftest.$ac_ext <<_ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>conftest.er1
2901 grep -v '^ *+' conftest.er1 >conftest.err
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -z "$ac_cxx_werror_flag"
2907 || test ! -s conftest.err'
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; } &&
2913 { ac_try='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928 if test -n "$ac_declaration"; then
2929 echo '#ifdef __cplusplus' >>confdefs.h
2930 echo $ac_declaration >>confdefs.h
2931 echo '#endif' >>confdefs.h
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941 if test "x$CHECKMEM" '!=' "x";then
2945 #unset ac_cv_prog_CC
2946 #unset ac_cv_prog_CXX
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2956 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2957 # On Suns, sometimes $CPP names a directory.
2958 if test -n "$CPP" && test -d "$CPP"; then
2961 if test -z "$CPP"; then
2962 if test "${ac_cv_prog_CPP+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 # Double quotes because CPP needs to be expanded
2966 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2969 for ac_c_preproc_warn_flag in '' yes
2971 # Use a header file that comes with gcc, so configuring glibc
2972 # with a fresh cross-compiler works.
2973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2974 # <limits.h> exists even on freestanding compilers.
2975 # On the NeXT, cc -E runs the code through the compiler's parser,
2976 # not just through cpp. "Syntax error" is here to catch this case.
2977 cat >conftest.$ac_ext <<_ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2984 # include <limits.h>
2986 # include <assert.h>
2990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2993 grep -v '^ *+' conftest.er1 >conftest.err
2995 cat conftest.err >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } >/dev/null; then
2998 if test -s conftest.err; then
2999 ac_cpp_err=$ac_c_preproc_warn_flag
3000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3007 if test -z "$ac_cpp_err"; then
3010 echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3013 # Broken: fails on valid input.
3016 rm -f conftest.err conftest.$ac_ext
3018 # OK, works on sane cases. Now check whether non-existent headers
3019 # can be detected and how.
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026 #include <ac_nonexistent.h>
3028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3031 grep -v '^ *+' conftest.er1 >conftest.err
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } >/dev/null; then
3036 if test -s conftest.err; then
3037 ac_cpp_err=$ac_c_preproc_warn_flag
3038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3045 if test -z "$ac_cpp_err"; then
3046 # Broken: success on invalid input.
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3052 # Passes both tests.
3056 rm -f conftest.err conftest.$ac_ext
3059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3060 rm -f conftest.err conftest.$ac_ext
3061 if $ac_preproc_ok; then
3073 echo "$as_me:$LINENO: result: $CPP" >&5
3074 echo "${ECHO_T}$CPP" >&6
3076 for ac_c_preproc_warn_flag in '' yes
3078 # Use a header file that comes with gcc, so configuring glibc
3079 # with a fresh cross-compiler works.
3080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3081 # <limits.h> exists even on freestanding compilers.
3082 # On the NeXT, cc -E runs the code through the compiler's parser,
3083 # not just through cpp. "Syntax error" is here to catch this case.
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3091 # include <limits.h>
3093 # include <assert.h>
3097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3100 grep -v '^ *+' conftest.er1 >conftest.err
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } >/dev/null; then
3105 if test -s conftest.err; then
3106 ac_cpp_err=$ac_c_preproc_warn_flag
3107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3114 if test -z "$ac_cpp_err"; then
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3120 # Broken: fails on valid input.
3123 rm -f conftest.err conftest.$ac_ext
3125 # OK, works on sane cases. Now check whether non-existent headers
3126 # can be detected and how.
3127 cat >conftest.$ac_ext <<_ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3133 #include <ac_nonexistent.h>
3135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null; then
3143 if test -s conftest.err; then
3144 ac_cpp_err=$ac_c_preproc_warn_flag
3145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3152 if test -z "$ac_cpp_err"; then
3153 # Broken: success on invalid input.
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 # Passes both tests.
3163 rm -f conftest.err conftest.$ac_ext
3166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3167 rm -f conftest.err conftest.$ac_ext
3168 if $ac_preproc_ok; then
3171 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3172 See \`config.log' for more details." >&5
3173 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3174 See \`config.log' for more details." >&2;}
3175 { (exit 1); exit 1; }; }
3179 ac_cpp='$CPP $CPPFLAGS'
3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_RANLIB+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if test -n "$RANLIB"; then
3194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 RANLIB=$ac_cv_prog_RANLIB
3213 if test -n "$RANLIB"; then
3214 echo "$as_me:$LINENO: result: $RANLIB" >&5
3215 echo "${ECHO_T}$RANLIB" >&6
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3222 if test -z "$ac_cv_prog_RANLIB"; then
3223 ac_ct_RANLIB=$RANLIB
3224 # Extract the first word of "ranlib", so it can be a program name with args.
3225 set dummy ranlib; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 if test -n "$ac_ct_RANLIB"; then
3232 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_ac_ct_RANLIB="ranlib"
3242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3252 if test -n "$ac_ct_RANLIB"; then
3253 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3254 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3256 echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3260 RANLIB=$ac_ct_RANLIB
3262 RANLIB="$ac_cv_prog_RANLIB"
3265 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3266 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3267 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3268 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 cat >conftest.make <<\_ACEOF
3273 @echo 'ac_maketemp="$(MAKE)"'
3275 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3276 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3277 if test -n "$ac_maketemp"; then
3278 eval ac_cv_prog_make_${ac_make}_set=yes
3280 eval ac_cv_prog_make_${ac_make}_set=no
3284 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3285 echo "$as_me:$LINENO: result: yes" >&5
3286 echo "${ECHO_T}yes" >&6
3289 echo "$as_me:$LINENO: result: no" >&5
3290 echo "${ECHO_T}no" >&6
3291 SET_MAKE="MAKE=${MAKE-make}"
3294 # Find a good install program. We prefer a C program (faster),
3295 # so one script is as good as another. But avoid the broken or
3296 # incompatible versions:
3297 # SysV /etc/install, /usr/sbin/install
3298 # SunOS /usr/etc/install
3299 # IRIX /sbin/install
3301 # AmigaOS /C/install, which installs bootblocks on floppy discs
3302 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3303 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3304 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3305 # OS/2's system install, which has a completely different semantic
3306 # ./install, which can be erroneously created by make from ./install.sh.
3307 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3308 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3309 if test -z "$INSTALL"; then
3310 if test "${ac_cv_path_install+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 test -z "$as_dir" && as_dir=.
3318 # Account for people who put trailing slashes in PATH elements.
3320 ./ | .// | /cC/* | \
3321 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3322 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3325 # OSF1 and SCO ODT 3.0 have their own names for install.
3326 # Don't use installbsd from OSF since it installs stuff as root
3328 for ac_prog in ginstall scoinst install; do
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3331 if test $ac_prog = install &&
3332 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3333 # AIX install. It has an incompatible calling convention.
3335 elif test $ac_prog = install &&
3336 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3337 # program-specific install script used by HP pwplus--don't use.
3340 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3352 if test "${ac_cv_path_install+set}" = set; then
3353 INSTALL=$ac_cv_path_install
3355 # As a last resort, use the slow shell script. We don't cache a
3356 # path for INSTALL within a source directory, because that will
3357 # break other packages using the cache if that directory is
3358 # removed, or if the path is relative.
3359 INSTALL=$ac_install_sh
3362 echo "$as_me:$LINENO: result: $INSTALL" >&5
3363 echo "${ECHO_T}$INSTALL" >&6
3365 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3366 # It thinks the first close brace ends the variable substitution.
3367 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3369 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3371 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3373 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3374 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3376 if test "$LN_S" = "ln -s"; then
3377 echo "$as_me:$LINENO: result: yes" >&5
3378 echo "${ECHO_T}yes" >&6
3380 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3381 echo "${ECHO_T}no, using $LN_S" >&6
3384 # Check whether --enable-shared or --disable-shared was given.
3385 if test "${enable_shared+set}" = set; then
3386 enableval="$enable_shared"
3387 p=${PACKAGE-default}
3389 yes) enable_shared=yes ;;
3390 no) enable_shared=no ;;
3393 # Look at the argument we got. We use all the common list separators.
3394 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3395 for pkg in $enableval; do
3397 if test "X$pkg" = "X$p"; then
3408 # Check whether --enable-static or --disable-static was given.
3409 if test "${enable_static+set}" = set; then
3410 enableval="$enable_static"
3411 p=${PACKAGE-default}
3413 yes) enable_static=yes ;;
3414 no) enable_static=no ;;
3417 # Look at the argument we got. We use all the common list separators.
3418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3419 for pkg in $enableval; do
3421 if test "X$pkg" = "X$p"; then
3432 # Check whether --enable-fast-install or --disable-fast-install was given.
3433 if test "${enable_fast_install+set}" = set; then
3434 enableval="$enable_fast_install"
3435 p=${PACKAGE-default}
3437 yes) enable_fast_install=yes ;;
3438 no) enable_fast_install=no ;;
3440 enable_fast_install=no
3441 # Look at the argument we got. We use all the common list separators.
3442 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3443 for pkg in $enableval; do
3445 if test "X$pkg" = "X$p"; then
3446 enable_fast_install=yes
3453 enable_fast_install=yes
3456 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3457 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3458 if test "${lt_cv_path_SED+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 # Loop through the user's path and test for sed and gsed.
3462 # Then use that list of sed's as ones to test for truncation.
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 test -z "$as_dir" && as_dir=.
3468 for lt_ac_prog in sed gsed; do
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3471 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3478 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3479 # along with /bin/sed that truncates output.
3480 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3481 test ! -f $lt_ac_sed && break
3482 cat /dev/null > conftest.in
3484 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3485 # Check for GNU sed and select it if it is found.
3486 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3487 lt_cv_path_SED=$lt_ac_sed
3491 cat conftest.in conftest.in >conftest.tmp
3492 mv conftest.tmp conftest.in
3493 cp conftest.in conftest.nl
3495 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3496 cmp -s conftest.out conftest.nl || break
3497 # 10000 chars as input seems more than enough
3498 test $lt_ac_count -gt 10 && break
3499 lt_ac_count=`expr $lt_ac_count + 1`
3500 if test $lt_ac_count -gt $lt_ac_max; then
3501 lt_ac_max=$lt_ac_count
3502 lt_cv_path_SED=$lt_ac_sed
3510 echo "$as_me:$LINENO: result: $SED" >&5
3511 echo "${ECHO_T}$SED" >&6
3513 echo "$as_me:$LINENO: checking for egrep" >&5
3514 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3515 if test "${ac_cv_prog_egrep+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3519 then ac_cv_prog_egrep='grep -E'
3520 else ac_cv_prog_egrep='egrep'
3523 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3524 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3525 EGREP=$ac_cv_prog_egrep
3529 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3530 if test "${with_gnu_ld+set}" = set; then
3531 withval="$with_gnu_ld"
3532 test "$withval" = no || with_gnu_ld=yes
3537 if test "$GCC" = yes; then
3538 # Check if gcc -print-prog-name=ld gives a path.
3539 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3540 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3543 # gcc leaves a trailing carriage return which upsets mingw
3544 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3546 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3549 # Accept absolute paths.
3551 re_direlt='/[^/][^/]*/\.\./'
3552 # Canonicalize the pathname of ld
3553 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3554 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3555 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3557 test -z "$LD" && LD="$ac_prog"
3560 # If it fails, then pretend we aren't using GCC.
3564 # If it is relative, then search for the first ld in PATH.
3568 elif test "$with_gnu_ld" = yes; then
3569 echo "$as_me:$LINENO: checking for GNU ld" >&5
3570 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3572 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3573 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3575 if test "${lt_cv_path_LD+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 if test -z "$LD"; then
3579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3580 for ac_dir in $PATH; do
3582 test -z "$ac_dir" && ac_dir=.
3583 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3584 lt_cv_path_LD="$ac_dir/$ac_prog"
3585 # Check to see if the program is GNU ld. I'd rather use --version,
3586 # but apparently some GNU ld's only accept -v.
3587 # Break only if it was the GNU/non-GNU ld that we prefer.
3588 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3589 *GNU* | *'with BFD'*)
3590 test "$with_gnu_ld" != no && break
3593 test "$with_gnu_ld" != yes && break
3600 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3605 if test -n "$LD"; then
3606 echo "$as_me:$LINENO: result: $LD" >&5
3607 echo "${ECHO_T}$LD" >&6
3609 echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3612 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3613 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3614 { (exit 1); exit 1; }; }
3615 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3616 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3617 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3621 case `$LD -v 2>&1 </dev/null` in
3622 *GNU* | *'with BFD'*)
3623 lt_cv_prog_gnu_ld=yes
3626 lt_cv_prog_gnu_ld=no
3630 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3631 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3632 with_gnu_ld=$lt_cv_prog_gnu_ld
3635 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3636 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3637 if test "${lt_cv_ld_reload_flag+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 lt_cv_ld_reload_flag='-r'
3642 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3643 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3644 reload_flag=$lt_cv_ld_reload_flag
3645 case $reload_flag in
3647 *) reload_flag=" $reload_flag" ;;
3649 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3651 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3652 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3653 if test "${lt_cv_path_NM+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 if test -n "$NM"; then
3657 # Let the user override the test.
3660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3661 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3663 test -z "$ac_dir" && ac_dir=.
3664 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3665 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3666 # Check to see if the nm accepts a BSD-compat flag.
3667 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3668 # nm: unknown option "B" ignored
3669 # Tru64's nm complains that /dev/null is an invalid object file
3670 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3671 */dev/null* | *'Invalid file or object type'*)
3672 lt_cv_path_NM="$tmp_nm -B"
3676 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3678 lt_cv_path_NM="$tmp_nm -p"
3682 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3683 continue # so that we can try to find one that supports BSD flags
3690 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3693 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3694 echo "${ECHO_T}$lt_cv_path_NM" >&6
3697 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3698 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3699 if test "${lt_cv_deplibs_check_method+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 lt_cv_file_magic_cmd='$MAGIC_CMD'
3703 lt_cv_file_magic_test_file=
3704 lt_cv_deplibs_check_method='unknown'
3705 # Need to set the preceding variable on all platforms that support
3706 # interlibrary dependencies.
3707 # 'none' -- dependencies not supported.
3708 # `unknown' -- same as none, but documents that we really don't know.
3709 # 'pass_all' -- all dependencies passed with no checks.
3710 # 'test_compile' -- check by making test program.
3711 # 'file_magic [[regex]]' -- check by looking for files in library path
3712 # which responds to the $file_magic_cmd with a given extended regex.
3713 # If you have `file' or equivalent on your system and you're not sure
3714 # whether `pass_all' will *always* work, you probably want this one.
3718 lt_cv_deplibs_check_method=pass_all
3722 lt_cv_deplibs_check_method=pass_all
3726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3727 lt_cv_file_magic_cmd='/usr/bin/file -L'
3728 lt_cv_file_magic_test_file=/shlib/libc.so
3732 # win32_libid is a shell function defined in ltmain.sh
3733 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3734 lt_cv_file_magic_cmd='win32_libid'
3738 # Base MSYS/MinGW do not provide the 'file' command needed by
3739 # win32_libid shell function, so use a weaker test based on 'objdump'.
3740 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3741 lt_cv_file_magic_cmd='$OBJDUMP -f'
3744 darwin* | rhapsody*)
3745 lt_cv_deplibs_check_method=pass_all
3748 freebsd* | kfreebsd*-gnu)
3749 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3752 # Not sure whether the presence of OpenBSD here was a mistake.
3753 # Let's accept both of them until this is cleared up.
3754 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3755 lt_cv_file_magic_cmd=/usr/bin/file
3756 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3760 lt_cv_deplibs_check_method=pass_all
3765 lt_cv_deplibs_check_method=pass_all
3768 hpux10.20* | hpux11*)
3769 lt_cv_file_magic_cmd=/usr/bin/file
3772 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3773 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3777 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3780 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3781 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3786 irix5* | irix6* | nonstopux*)
3788 *-32|*"-32 ") libmagic=32-bit;;
3789 *-n32|*"-n32 ") libmagic=N32;;
3790 *-64|*"-64 ") libmagic=64-bit;;
3791 *) libmagic=never-match;;
3793 lt_cv_deplibs_check_method=pass_all
3796 # This must be Linux ELF.
3799 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3800 lt_cv_deplibs_check_method=pass_all ;;
3802 # glibc up to 2.1.1 does not perform some relocations on ARM
3803 # this will be overridden with pass_all, but let us keep it just in case
3804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3806 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3807 lt_cv_deplibs_check_method=pass_all
3811 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3820 lt_cv_file_magic_cmd=/usr/bin/file
3821 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3825 lt_cv_deplibs_check_method=unknown
3829 lt_cv_file_magic_cmd=/usr/bin/file
3830 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3831 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3834 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3838 osf3* | osf4* | osf5*)
3839 lt_cv_deplibs_check_method=pass_all
3843 lt_cv_deplibs_check_method=pass_all
3847 lt_cv_deplibs_check_method=pass_all
3850 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3851 case $host_vendor in
3853 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]'
3854 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3857 lt_cv_deplibs_check_method=pass_all
3860 lt_cv_file_magic_cmd='/bin/file'
3861 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3864 lt_cv_file_magic_cmd='/bin/file'
3865 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3866 lt_cv_file_magic_test_file=/lib/libc.so
3869 lt_cv_deplibs_check_method=pass_all
3874 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3875 lt_cv_deplibs_check_method=pass_all
3880 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3881 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3882 file_magic_cmd=$lt_cv_file_magic_cmd
3883 deplibs_check_method=$lt_cv_deplibs_check_method
3884 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3889 # If no C compiler was specified, use CC.
3892 # Allow CC to be a program name with arguments.
3896 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3897 if test "${enable_libtool_lock+set}" = set; then
3898 enableval="$enable_libtool_lock"
3901 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3903 # Some flags need to be propagated to the compiler or linker for good
3907 # Find out which ABI we are using.
3908 echo 'int i;' > conftest.$ac_ext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; then
3914 case `/usr/bin/file conftest.$ac_objext` in
3926 # Find out which ABI we are using.
3927 echo '#line 3927 "configure"' > conftest.$ac_ext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; then
3933 if test "$lt_cv_prog_gnu_ld" = yes; then
3934 case `/usr/bin/file conftest.$ac_objext` in
3936 LD="${LD-ld} -melf32bsmip"
3939 LD="${LD-ld} -melf32bmipn32"
3942 LD="${LD-ld} -melf64bmip"
3946 case `/usr/bin/file conftest.$ac_objext` in
3962 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3963 # Find out which ABI we are using.
3964 echo 'int i;' > conftest.$ac_ext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966 (eval $ac_compile) 2>&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; then
3970 case "`/usr/bin/file conftest.o`" in
3974 LD="${LD-ld} -m elf_i386"
3976 ppc64-*linux*|powerpc64-*linux*)
3977 LD="${LD-ld} -m elf32ppclinux"
3980 LD="${LD-ld} -m elf_s390"
3983 LD="${LD-ld} -m elf32_sparc"
3990 LD="${LD-ld} -m elf_x86_64"
3992 ppc*-*linux*|powerpc*-*linux*)
3993 LD="${LD-ld} -m elf64ppc"
3996 LD="${LD-ld} -m elf64_s390"
3999 LD="${LD-ld} -m elf64_sparc"
4009 # Test if the compiler is 64bit
4010 echo 'int i;' > conftest.$ac_ext
4011 lt_cv_cc_64bit_output=no
4012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; then
4017 case `/usr/bin/file conftest.$ac_objext` in
4019 lt_cv_cc_64bit_output=yes
4027 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4028 SAVE_CFLAGS="$CFLAGS"
4029 CFLAGS="$CFLAGS -belf"
4030 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4031 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4032 if test "${lt_cv_cc_needs_belf+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041 cat >conftest.$ac_ext <<_ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4056 rm -f conftest.$ac_objext conftest$ac_exeext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4058 (eval $ac_link) 2>conftest.er1
4060 grep -v '^ *+' conftest.er1 >conftest.err
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest$ac_exeext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 lt_cv_cc_needs_belf=yes
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4083 lt_cv_cc_needs_belf=no
4085 rm -f conftest.err conftest.$ac_objext \
4086 conftest$ac_exeext conftest.$ac_ext
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4095 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4096 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4097 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4098 CFLAGS="$SAVE_CFLAGS"
4104 need_locks="$enable_libtool_lock"
4108 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4109 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4110 if test "${ac_cv_header_stdc+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 cat >conftest.$ac_ext <<_ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4132 rm -f conftest.$ac_objext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>conftest.er1
4136 grep -v '^ *+' conftest.er1 >conftest.err
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
4141 { ac_try='test -z "$ac_c_werror_flag"
4142 || test ! -s conftest.err'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; } &&
4148 { ac_try='test -s conftest.$ac_objext'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; }; then
4154 ac_cv_header_stdc=yes
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 ac_cv_header_stdc=no
4161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4163 if test $ac_cv_header_stdc = yes; then
4164 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175 $EGREP "memchr" >/dev/null 2>&1; then
4178 ac_cv_header_stdc=no
4184 if test $ac_cv_header_stdc = yes; then
4185 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4196 $EGREP "free" >/dev/null 2>&1; then
4199 ac_cv_header_stdc=no
4205 if test $ac_cv_header_stdc = yes; then
4206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4207 if test "$cross_compiling" = yes; then
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4217 #if ((' ' & 0x0FF) == 0x020)
4218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4221 # define ISLOWER(c) \
4222 (('a' <= (c) && (c) <= 'i') \
4223 || ('j' <= (c) && (c) <= 'r') \
4224 || ('s' <= (c) && (c) <= 'z'))
4225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4233 for (i = 0; i < 256; i++)
4234 if (XOR (islower (i), ISLOWER (i))
4235 || toupper (i) != TOUPPER (i))
4240 rm -f conftest$ac_exeext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242 (eval $ac_link) 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4253 echo "$as_me: program exited with status $ac_status" >&5
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4258 ac_cv_header_stdc=no
4260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4264 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4265 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4266 if test $ac_cv_header_stdc = yes; then
4268 cat >>confdefs.h <<\_ACEOF
4269 #define STDC_HEADERS 1
4274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4284 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4285 inttypes.h stdint.h unistd.h
4287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4288 echo "$as_me:$LINENO: checking for $ac_header" >&5
4289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 cat >conftest.$ac_ext <<_ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 $ac_includes_default
4301 #include <$ac_header>
4303 rm -f conftest.$ac_objext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4305 (eval $ac_compile) 2>conftest.er1
4307 grep -v '^ *+' conftest.er1 >conftest.err
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest.$ac_objext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 eval "$as_ac_Header=yes"
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 eval "$as_ac_Header=no"
4332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4337 cat >>confdefs.h <<_ACEOF
4338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4347 for ac_header in dlfcn.h
4349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4351 echo "$as_me:$LINENO: checking for $ac_header" >&5
4352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4359 # Is the header compilable?
4360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 $ac_includes_default
4369 #include <$ac_header>
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>conftest.er1
4375 grep -v '^ *+' conftest.er1 >conftest.err
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
4380 { ac_try='test -z "$ac_c_werror_flag"
4381 || test ! -s conftest.err'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest.$ac_objext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_header_compiler=yes
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 ac_header_compiler=no
4400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4402 echo "${ECHO_T}$ac_header_compiler" >&6
4404 # Is the header present?
4405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4407 cat >conftest.$ac_ext <<_ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <$ac_header>
4415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4418 grep -v '^ *+' conftest.er1 >conftest.err
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } >/dev/null; then
4423 if test -s conftest.err; then
4424 ac_cpp_err=$ac_c_preproc_warn_flag
4425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4432 if test -z "$ac_cpp_err"; then
4433 ac_header_preproc=yes
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 ac_header_preproc=no
4440 rm -f conftest.err conftest.$ac_ext
4441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4442 echo "${ECHO_T}$ac_header_preproc" >&6
4444 # So? What about this header?
4445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4451 ac_header_preproc=yes
4454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4468 ## ------------------------------------------ ##
4469 ## Report this to the AC_PACKAGE_NAME lists. ##
4470 ## ------------------------------------------ ##
4473 sed "s/^/$as_me: WARNING: /" >&2
4476 echo "$as_me:$LINENO: checking for $ac_header" >&5
4477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 eval "$as_ac_Header=\$ac_header_preproc"
4483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4488 cat >>confdefs.h <<_ACEOF
4489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4497 ac_cpp='$CXXCPP $CPPFLAGS'
4498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4501 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4502 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4503 if test -z "$CXXCPP"; then
4504 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 # Double quotes because CXXCPP needs to be expanded
4508 for CXXCPP in "$CXX -E" "/lib/cpp"
4511 for ac_cxx_preproc_warn_flag in '' yes
4513 # Use a header file that comes with gcc, so configuring glibc
4514 # with a fresh cross-compiler works.
4515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4516 # <limits.h> exists even on freestanding compilers.
4517 # On the NeXT, cc -E runs the code through the compiler's parser,
4518 # not just through cpp. "Syntax error" is here to catch this case.
4519 cat >conftest.$ac_ext <<_ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4526 # include <limits.h>
4528 # include <assert.h>
4532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4535 grep -v '^ *+' conftest.er1 >conftest.err
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } >/dev/null; then
4540 if test -s conftest.err; then
4541 ac_cpp_err=$ac_cxx_preproc_warn_flag
4542 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4549 if test -z "$ac_cpp_err"; then
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 # Broken: fails on valid input.
4558 rm -f conftest.err conftest.$ac_ext
4560 # OK, works on sane cases. Now check whether non-existent headers
4561 # can be detected and how.
4562 cat >conftest.$ac_ext <<_ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4568 #include <ac_nonexistent.h>
4570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4573 grep -v '^ *+' conftest.er1 >conftest.err
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } >/dev/null; then
4578 if test -s conftest.err; then
4579 ac_cpp_err=$ac_cxx_preproc_warn_flag
4580 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4587 if test -z "$ac_cpp_err"; then
4588 # Broken: success on invalid input.
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4594 # Passes both tests.
4598 rm -f conftest.err conftest.$ac_ext
4601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4602 rm -f conftest.err conftest.$ac_ext
4603 if $ac_preproc_ok; then
4608 ac_cv_prog_CXXCPP=$CXXCPP
4611 CXXCPP=$ac_cv_prog_CXXCPP
4613 ac_cv_prog_CXXCPP=$CXXCPP
4615 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4616 echo "${ECHO_T}$CXXCPP" >&6
4618 for ac_cxx_preproc_warn_flag in '' yes
4620 # Use a header file that comes with gcc, so configuring glibc
4621 # with a fresh cross-compiler works.
4622 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4623 # <limits.h> exists even on freestanding compilers.
4624 # On the NeXT, cc -E runs the code through the compiler's parser,
4625 # not just through cpp. "Syntax error" is here to catch this case.
4626 cat >conftest.$ac_ext <<_ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4633 # include <limits.h>
4635 # include <assert.h>
4639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4642 grep -v '^ *+' conftest.er1 >conftest.err
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } >/dev/null; then
4647 if test -s conftest.err; then
4648 ac_cpp_err=$ac_cxx_preproc_warn_flag
4649 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4656 if test -z "$ac_cpp_err"; then
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 # Broken: fails on valid input.
4665 rm -f conftest.err conftest.$ac_ext
4667 # OK, works on sane cases. Now check whether non-existent headers
4668 # can be detected and how.
4669 cat >conftest.$ac_ext <<_ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 #include <ac_nonexistent.h>
4677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4680 grep -v '^ *+' conftest.er1 >conftest.err
4682 cat conftest.err >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } >/dev/null; then
4685 if test -s conftest.err; then
4686 ac_cpp_err=$ac_cxx_preproc_warn_flag
4687 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4694 if test -z "$ac_cpp_err"; then
4695 # Broken: success on invalid input.
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 # Passes both tests.
4705 rm -f conftest.err conftest.$ac_ext
4708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4709 rm -f conftest.err conftest.$ac_ext
4710 if $ac_preproc_ok; then
4713 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4714 See \`config.log' for more details." >&5
4715 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4716 See \`config.log' for more details." >&2;}
4717 { (exit 1); exit 1; }; }
4721 ac_cpp='$CXXCPP $CPPFLAGS'
4722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4728 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4729 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4731 if test -n "$ac_tool_prefix"; then
4732 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_prog_F77+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 if test -n "$F77"; then
4742 ac_cv_prog_F77="$F77" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 if test -n "$F77"; then
4762 echo "$as_me:$LINENO: result: $F77" >&5
4763 echo "${ECHO_T}$F77" >&6
4765 echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4769 test -n "$F77" && break
4772 if test -z "$F77"; then
4774 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4776 # Extract the first word of "$ac_prog", so it can be a program name with args.
4777 set dummy $ac_prog; ac_word=$2
4778 echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4780 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 if test -n "$ac_ct_F77"; then
4784 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_prog_ac_ct_F77="$ac_prog"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4803 if test -n "$ac_ct_F77"; then
4804 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4805 echo "${ECHO_T}$ac_ct_F77" >&6
4807 echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6
4811 test -n "$ac_ct_F77" && break
4818 # Provide some information about the compiler.
4819 echo "$as_me:4819:" \
4820 "checking for Fortran 77 compiler version" >&5
4821 ac_compiler=`set X $ac_compile; echo $2`
4822 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4823 (eval $ac_compiler --version </dev/null >&5) 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }
4827 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4828 (eval $ac_compiler -v </dev/null >&5) 2>&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }
4832 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4833 (eval $ac_compiler -V </dev/null >&5) 2>&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }
4839 # If we don't use `.F' as extension, the preprocessor is not run on the
4840 # input file. (Note that this only needs to work for GNU compilers.)
4843 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4844 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4845 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 cat >conftest.$ac_ext <<_ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_f77_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4889 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4890 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4892 ac_test_FFLAGS=${FFLAGS+set}
4893 ac_save_FFLAGS=$FFLAGS
4895 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4896 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4897 if test "${ac_cv_prog_f77_g+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 cat >conftest.$ac_ext <<_ACEOF
4906 rm -f conftest.$ac_objext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>conftest.er1
4910 grep -v '^ *+' conftest.er1 >conftest.err
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -z "$ac_f77_werror_flag"
4916 || test ! -s conftest.err'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
4922 { ac_try='test -s conftest.$ac_objext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 ac_cv_prog_f77_g=yes
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4938 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4939 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4940 if test "$ac_test_FFLAGS" = set; then
4941 FFLAGS=$ac_save_FFLAGS
4942 elif test $ac_cv_prog_f77_g = yes; then
4943 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4949 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4956 G77=`test $ac_compiler_gnu = yes && echo yes`
4958 ac_cpp='$CPP $CPPFLAGS'
4959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4967 # find the maximum length of command line arguments
4968 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4969 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4970 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 # On DJGPP, this test can blow up pretty badly due to problems in libc
4979 # (any single argument exceeding 2000 bytes causes a buffer overrun
4980 # during glob expansion). Even if it were fixed, the result of this
4981 # check would be larger than it should be.
4982 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4986 # Under GNU Hurd, this test is not required because there is
4987 # no limit to the length of command line arguments.
4988 # Libtool will interpret -1 as no limit whatsoever
4989 lt_cv_sys_max_cmd_len=-1;
4993 # On Win9x/ME, this test blows up -- it succeeds, but takes
4994 # about 5 minutes as the teststring grows exponentially.
4995 # Worse, since 9x/ME are not pre-emptively multitasking,
4996 # you end up with a "frozen" computer, even though with patience
4997 # the test eventually succeeds (with a max line length of 256k).
4998 # Instead, let's just punt: use the minimum linelength reported by
4999 # all of the supported platforms: 8192 (on NT/2K/XP).
5000 lt_cv_sys_max_cmd_len=8192;
5004 # On AmigaOS with pdksh, this test takes hours, literally.
5005 # So we just punt and use a minimum line length of 8192.
5006 lt_cv_sys_max_cmd_len=8192;
5010 # If test is not a shell built-in, we'll probably end up computing a
5011 # maximum length that is only half of the actual maximum length, but
5013 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5014 = "XX$testring") >/dev/null 2>&1 &&
5015 new_result=`expr "X$testring" : ".*" 2>&1` &&
5016 lt_cv_sys_max_cmd_len=$new_result &&
5017 test $i != 17 # 1/2 MB should be enough
5020 testring=$testring$testring
5023 # Add a significant safety factor because C++ compilers can tack on massive
5024 # amounts of additional arguments before passing them to the linker.
5025 # It appears as though 1/2 is a usable value.
5026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5032 if test -n $lt_cv_sys_max_cmd_len ; then
5033 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5034 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5036 echo "$as_me:$LINENO: result: none" >&5
5037 echo "${ECHO_T}none" >&6
5043 # Check for command to grab the raw symbol name followed by C symbol from nm.
5044 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5045 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5046 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 # These are sane defaults that work on at least a few old systems.
5051 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5053 # Character class describing NM global symbol codes.
5054 symcode='[BCDEGRST]'
5056 # Regexp to match symbols that can be accessed directly from C.
5057 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5059 # Transform the above into a raw symbol and a C symbol.
5060 symxfrm='\1 \2\3 \3'
5062 # Transform an extracted symbol line into a proper C declaration
5063 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5065 # Transform an extracted symbol line into symbol name and symbol address
5066 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5068 # Define system-specific variables.
5073 cygwin* | mingw* | pw32*)
5074 symcode='[ABCDGISTW]'
5076 hpux*) # Its linker distinguishes data from code symbols
5077 if test "$host_cpu" = ia64; then
5078 symcode='[ABCDEGRST]'
5080 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5081 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5084 symcode='[BCDEGRST]'
5087 symcode='[BCDEGQRST]'
5097 # Handle CRLF in mingw tool chain
5101 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5105 # If we're using GNU nm, then use its standard symbol codes.
5106 case `$NM -V 2>&1` in
5107 *GNU* | *'with BFD'*)
5108 symcode='[ABCDGIRSTW]' ;;
5111 # Try without a prefix undercore, then with it.
5112 for ac_symprfx in "" "_"; do
5114 # Write the raw and C identifiers.
5115 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5117 # Check to see that the pipe works correctly.
5121 cat > conftest.$ac_ext <<EOF
5126 void nm_test_func(){}
5130 int main(){nm_test_var='a';nm_test_func();return(0);}
5133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134 (eval $ac_compile) 2>&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; then
5138 # Now try to grab the symbols.
5140 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5141 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } && test -s "$nlist"; then
5145 # Try sorting and uniquifying the output.
5146 if sort "$nlist" | uniq > "$nlist"T; then
5147 mv -f "$nlist"T "$nlist"
5152 # Make sure that we snagged all the symbols we need.
5153 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5154 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5155 cat <<EOF > conftest.$ac_ext
5161 # Now generate the symbol file.
5162 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5164 cat <<EOF >> conftest.$ac_ext
5165 #if defined (__STDC__) && __STDC__
5166 # define lt_ptr_t void *
5168 # define lt_ptr_t char *
5172 /* The mapping between symbol names and symbols. */
5177 lt_preloaded_symbols[] =
5180 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5181 cat <<\EOF >> conftest.$ac_ext
5189 # Now try linking the two files.
5190 mv conftest.$ac_objext conftstm.$ac_objext
5191 lt_save_LIBS="$LIBS"
5192 lt_save_CFLAGS="$CFLAGS"
5193 LIBS="conftstm.$ac_objext"
5194 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5196 (eval $ac_link) 2>&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5202 LIBS="$lt_save_LIBS"
5203 CFLAGS="$lt_save_CFLAGS"
5205 echo "cannot find nm_test_func in $nlist" >&5
5208 echo "cannot find nm_test_var in $nlist" >&5
5211 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5214 echo "$progname: failed program was:" >&5
5215 cat conftest.$ac_ext >&5
5217 rm -f conftest* conftst*
5219 # Do not use the global_symbol_pipe unless it works.
5220 if test "$pipe_works" = yes; then
5223 lt_cv_sys_global_symbol_pipe=
5229 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5230 lt_cv_sys_global_symbol_to_cdecl=
5232 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5233 echo "$as_me:$LINENO: result: failed" >&5
5234 echo "${ECHO_T}failed" >&6
5236 echo "$as_me:$LINENO: result: ok" >&5
5237 echo "${ECHO_T}ok" >&6
5240 echo "$as_me:$LINENO: checking for objdir" >&5
5241 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5242 if test "${lt_cv_objdir+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 rm -f .libs 2>/dev/null
5246 mkdir .libs 2>/dev/null
5247 if test -d .libs; then
5250 # MS-DOS does not allow filenames that begin with a dot.
5253 rmdir .libs 2>/dev/null
5255 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5256 echo "${ECHO_T}$lt_cv_objdir" >&6
5257 objdir=$lt_cv_objdir
5265 # AIX sometimes has problems with the GCC collect2 program. For some
5266 # reason, if we set the COLLECT_NAMES environment variable, the problems
5267 # vanish in a puff of smoke.
5268 if test "X${COLLECT_NAMES+set}" != Xset; then
5270 export COLLECT_NAMES
5275 # Sed substitution that helps us do robust quoting. It backslashifies
5276 # metacharacters that are still active within double-quoted strings.
5277 Xsed='sed -e s/^X//'
5278 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5280 # Same as above, but do not quote variable references.
5281 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5283 # Sed substitution to delay expansion of an escaped shell variable in a
5284 # double_quote_subst'ed string.
5285 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5287 # Sed substitution to avoid accidental globbing in evaled expressions
5288 no_glob_subst='s/\*/\\\*/g'
5294 default_ofile=libtool
5295 can_build_shared=yes
5297 # All known linkers require a `.a' archive for static linking (except M$VC,
5298 # which needs '.lib').
5300 ltmain="$ac_aux_dir/ltmain.sh"
5301 ofile="$default_ofile"
5302 with_gnu_ld="$lt_cv_prog_gnu_ld"
5304 if test -n "$ac_tool_prefix"; then
5305 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5306 set dummy ${ac_tool_prefix}ar; ac_word=$2
5307 echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5309 if test "${ac_cv_prog_AR+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 if test -n "$AR"; then
5313 ac_cv_prog_AR="$AR" # Let the user override the test.
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5322 ac_cv_prog_AR="${ac_tool_prefix}ar"
5323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 if test -n "$AR"; then
5333 echo "$as_me:$LINENO: result: $AR" >&5
5334 echo "${ECHO_T}$AR" >&6
5336 echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6
5341 if test -z "$ac_cv_prog_AR"; then
5343 # Extract the first word of "ar", so it can be a program name with args.
5344 set dummy ar; ac_word=$2
5345 echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 if test -n "$ac_ct_AR"; then
5351 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_ac_ct_AR="ar"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5370 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5371 if test -n "$ac_ct_AR"; then
5372 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5373 echo "${ECHO_T}$ac_ct_AR" >&6
5375 echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5384 if test -n "$ac_tool_prefix"; then
5385 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5386 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389 if test "${ac_cv_prog_RANLIB+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 if test -n "$RANLIB"; then
5393 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 RANLIB=$ac_cv_prog_RANLIB
5412 if test -n "$RANLIB"; then
5413 echo "$as_me:$LINENO: result: $RANLIB" >&5
5414 echo "${ECHO_T}$RANLIB" >&6
5416 echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6
5421 if test -z "$ac_cv_prog_RANLIB"; then
5422 ac_ct_RANLIB=$RANLIB
5423 # Extract the first word of "ranlib", so it can be a program name with args.
5424 set dummy ranlib; ac_word=$2
5425 echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 if test -n "$ac_ct_RANLIB"; then
5431 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_ac_ct_RANLIB="ranlib"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5450 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5451 if test -n "$ac_ct_RANLIB"; then
5452 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5453 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5455 echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6
5459 RANLIB=$ac_ct_RANLIB
5461 RANLIB="$ac_cv_prog_RANLIB"
5464 if test -n "$ac_tool_prefix"; then
5465 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5466 set dummy ${ac_tool_prefix}strip; ac_word=$2
5467 echo "$as_me:$LINENO: checking for $ac_word" >&5
5468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469 if test "${ac_cv_prog_STRIP+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 if test -n "$STRIP"; then
5473 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 STRIP=$ac_cv_prog_STRIP
5492 if test -n "$STRIP"; then
5493 echo "$as_me:$LINENO: result: $STRIP" >&5
5494 echo "${ECHO_T}$STRIP" >&6
5496 echo "$as_me:$LINENO: result: no" >&5
5497 echo "${ECHO_T}no" >&6
5501 if test -z "$ac_cv_prog_STRIP"; then
5503 # Extract the first word of "strip", so it can be a program name with args.
5504 set dummy strip; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 if test -n "$ac_ct_STRIP"; then
5511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_ac_ct_STRIP="strip"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5531 if test -n "$ac_ct_STRIP"; then
5532 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5533 echo "${ECHO_T}$ac_ct_STRIP" >&6
5535 echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5541 STRIP="$ac_cv_prog_STRIP"
5546 old_CFLAGS="$CFLAGS"
5548 # Set sane defaults for various variables
5549 test -z "$AR" && AR=ar
5550 test -z "$AR_FLAGS" && AR_FLAGS=cru
5551 test -z "$AS" && AS=as
5552 test -z "$CC" && CC=cc
5553 test -z "$LTCC" && LTCC=$CC
5554 test -z "$DLLTOOL" && DLLTOOL=dlltool
5555 test -z "$LD" && LD=ld
5556 test -z "$LN_S" && LN_S="ln -s"
5557 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5558 test -z "$NM" && NM=nm
5559 test -z "$SED" && SED=sed
5560 test -z "$OBJDUMP" && OBJDUMP=objdump
5561 test -z "$RANLIB" && RANLIB=:
5562 test -z "$STRIP" && STRIP=:
5563 test -z "$ac_objext" && ac_objext=o
5565 # Determine commands to create old-style static archives.
5566 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5567 old_postinstall_cmds='chmod 644 $oldlib'
5568 old_postuninstall_cmds=
5570 if test -n "$RANLIB"; then
5573 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5576 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5579 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5582 # Only perform the check for file, if the check method requires it
5583 case $deplibs_check_method in
5585 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5586 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5587 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5588 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5596 lt_save_MAGIC_CMD="$MAGIC_CMD"
5597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5598 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5599 for ac_dir in $ac_dummy; do
5601 test -z "$ac_dir" && ac_dir=.
5602 if test -f $ac_dir/${ac_tool_prefix}file; then
5603 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5604 if test -n "$file_magic_test_file"; then
5605 case $deplibs_check_method in
5607 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5609 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5610 $EGREP "$file_magic_regex" > /dev/null; then
5615 *** Warning: the command libtool uses to detect shared libraries,
5616 *** $file_magic_cmd, produces output that libtool cannot recognize.
5617 *** The result is that libtool may fail to recognize shared libraries
5618 *** as such. This will affect the creation of libtool libraries that
5619 *** depend on shared libraries, but programs linked with such libtool
5620 *** libraries will work regardless of this problem. Nevertheless, you
5621 *** may want to report the problem to your system manager and/or to
5622 *** bug-libtool@gnu.org
5632 MAGIC_CMD="$lt_save_MAGIC_CMD"
5637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5638 if test -n "$MAGIC_CMD"; then
5639 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5640 echo "${ECHO_T}$MAGIC_CMD" >&6
5642 echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6
5646 if test -z "$lt_cv_path_MAGIC_CMD"; then
5647 if test -n "$ac_tool_prefix"; then
5648 echo "$as_me:$LINENO: checking for file" >&5
5649 echo $ECHO_N "checking for file... $ECHO_C" >&6
5650 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5658 lt_save_MAGIC_CMD="$MAGIC_CMD"
5659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5660 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5661 for ac_dir in $ac_dummy; do
5663 test -z "$ac_dir" && ac_dir=.
5664 if test -f $ac_dir/file; then
5665 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5666 if test -n "$file_magic_test_file"; then
5667 case $deplibs_check_method in
5669 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5672 $EGREP "$file_magic_regex" > /dev/null; then
5677 *** Warning: the command libtool uses to detect shared libraries,
5678 *** $file_magic_cmd, produces output that libtool cannot recognize.
5679 *** The result is that libtool may fail to recognize shared libraries
5680 *** as such. This will affect the creation of libtool libraries that
5681 *** depend on shared libraries, but programs linked with such libtool
5682 *** libraries will work regardless of this problem. Nevertheless, you
5683 *** may want to report the problem to your system manager and/or to
5684 *** bug-libtool@gnu.org
5694 MAGIC_CMD="$lt_save_MAGIC_CMD"
5699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5700 if test -n "$MAGIC_CMD"; then
5701 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5702 echo "${ECHO_T}$MAGIC_CMD" >&6
5704 echo "$as_me:$LINENO: result: no" >&5
5705 echo "${ECHO_T}no" >&6
5720 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5721 if test "${enable_libtool_lock+set}" = set; then
5722 enableval="$enable_libtool_lock"
5725 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5728 # Check whether --with-pic or --without-pic was given.
5729 if test "${with_pic+set}" = set; then
5735 test -z "$pic_mode" && pic_mode=default
5737 # Use C for the default configuration in the libtool script
5741 ac_cpp='$CPP $CPPFLAGS'
5742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747 # Source file extension for C test sources.
5750 # Object file extension for compiled C test sources.
5754 # Code to be used in simple compile tests
5755 lt_simple_compile_test_code="int some_variable = 0;\n"
5757 # Code to be used in simple link tests
5758 lt_simple_link_test_code='int main(){return(0);}\n'
5761 # If no C compiler was specified, use CC.
5764 # Allow CC to be a program name with arguments.
5769 # Check for any special shared library compilation flags.
5772 if test "$GCC" = no; then
5775 lt_prog_cc_shlib='-belf'
5779 if test -n "$lt_prog_cc_shlib"; then
5780 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5781 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5782 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5784 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5785 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5786 lt_cv_prog_cc_can_build_shared=no
5792 # Check to make sure the static flag actually works.
5794 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5795 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5796 if test "${lt_prog_compiler_static_works+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 lt_prog_compiler_static_works=no
5800 save_LDFLAGS="$LDFLAGS"
5801 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5802 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5803 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5804 # The compiler can only warn and ignore the option if not recognized
5805 # So say no if there are warnings
5806 if test -s conftest.err; then
5807 # Append any errors to the config.log.
5808 cat conftest.err 1>&5
5810 lt_prog_compiler_static_works=yes
5814 LDFLAGS="$save_LDFLAGS"
5817 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5818 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5820 if test x"$lt_prog_compiler_static_works" = xyes; then
5823 lt_prog_compiler_static=
5829 lt_prog_compiler_no_builtin_flag=
5831 if test "$GCC" = yes; then
5832 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5835 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5836 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5837 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 lt_cv_prog_compiler_rtti_exceptions=no
5841 ac_outfile=conftest.$ac_objext
5842 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5843 lt_compiler_flag="-fno-rtti -fno-exceptions"
5844 # Insert the option either (1) after the last *FLAGS variable, or
5845 # (2) before a word containing "conftest.", or (3) at the end.
5846 # Note that $ac_compile itself does not contain backslashes and begins
5847 # with a dollar sign (not a hyphen), so the echo should work correctly.
5848 # The option is referenced via a variable to avoid confusing sed.
5849 lt_compile=`echo "$ac_compile" | $SED \
5850 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5852 -e 's:$: $lt_compiler_flag:'`
5853 (eval echo "\"\$as_me:5853: $lt_compile\"" >&5)
5854 (eval "$lt_compile" 2>conftest.err)
5856 cat conftest.err >&5
5857 echo "$as_me:5857: \$? = $ac_status" >&5
5858 if (exit $ac_status) && test -s "$ac_outfile"; then
5859 # The compiler can only warn and ignore the option if not recognized
5860 # So say no if there are warnings
5861 if test ! -s conftest.err; then
5862 lt_cv_prog_compiler_rtti_exceptions=yes
5868 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5869 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5871 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5872 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5879 lt_prog_compiler_wl=
5880 lt_prog_compiler_pic=
5881 lt_prog_compiler_static=
5883 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5884 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5886 if test "$GCC" = yes; then
5887 lt_prog_compiler_wl='-Wl,'
5888 lt_prog_compiler_static='-static'
5892 # All AIX code is PIC.
5893 if test "$host_cpu" = ia64; then
5894 # AIX 5 now supports IA64 processor
5895 lt_prog_compiler_static='-Bstatic'
5900 # FIXME: we need at least 68020 code to build shared libraries, but
5901 # adding the `-m68020' flag to GCC prevents building anything better,
5903 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5906 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5907 # PIC is the default for these OSes.
5910 mingw* | pw32* | os2*)
5911 # This hack is so that the source file can tell whether it is being
5912 # built for inclusion in a dll (and should export symbols for example).
5913 lt_prog_compiler_pic='-DDLL_EXPORT'
5916 darwin* | rhapsody*)
5917 # PIC is the default on this platform
5918 # Common symbols not allowed in MH_DYLIB files
5919 lt_prog_compiler_pic='-fno-common'
5923 # Just because we use GCC doesn't mean we suddenly get shared libraries
5924 # on systems that don't support them.
5925 lt_prog_compiler_can_build_shared=no
5930 if test -d /usr/nec; then
5931 lt_prog_compiler_pic=-Kconform_pic
5936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5943 lt_prog_compiler_pic='-fPIC'
5949 lt_prog_compiler_pic='-fPIC'
5953 # PORTME Check for flag to pass linker flags through the system compiler.
5956 lt_prog_compiler_wl='-Wl,'
5957 if test "$host_cpu" = ia64; then
5958 # AIX 5 now supports IA64 processor
5959 lt_prog_compiler_static='-Bstatic'
5961 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5965 mingw* | pw32* | os2*)
5966 # This hack is so that the source file can tell whether it is being
5967 # built for inclusion in a dll (and should export symbols for example).
5968 lt_prog_compiler_pic='-DDLL_EXPORT'
5971 hpux9* | hpux10* | hpux11*)
5972 lt_prog_compiler_wl='-Wl,'
5973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5980 lt_prog_compiler_pic='+Z'
5983 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5984 lt_prog_compiler_static='${wl}-a ${wl}archive'
5987 irix5* | irix6* | nonstopux*)
5988 lt_prog_compiler_wl='-Wl,'
5989 # PIC (with -KPIC) is the default.
5990 lt_prog_compiler_static='-non_shared'
5994 lt_prog_compiler_pic='-KPIC'
5995 lt_prog_compiler_static='-Bstatic'
6001 lt_prog_compiler_wl='-Wl,'
6002 lt_prog_compiler_pic='-KPIC'
6003 lt_prog_compiler_static='-static'
6006 lt_prog_compiler_wl='-Wl,'
6007 # All Alpha code is PIC.
6008 lt_prog_compiler_static='-non_shared'
6013 osf3* | osf4* | osf5*)
6014 lt_prog_compiler_wl='-Wl,'
6015 # All OSF/1 code is PIC.
6016 lt_prog_compiler_static='-non_shared'
6020 lt_prog_compiler_pic='-Kpic'
6021 lt_prog_compiler_static='-dn'
6025 lt_prog_compiler_wl='-Wl,'
6026 lt_prog_compiler_pic='-KPIC'
6027 lt_prog_compiler_static='-Bstatic'
6031 lt_prog_compiler_wl='-Qoption ld '
6032 lt_prog_compiler_pic='-PIC'
6033 lt_prog_compiler_static='-Bstatic'
6036 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6037 lt_prog_compiler_wl='-Wl,'
6038 lt_prog_compiler_pic='-KPIC'
6039 lt_prog_compiler_static='-Bstatic'
6043 if test -d /usr/nec ;then
6044 lt_prog_compiler_pic='-Kconform_pic'
6045 lt_prog_compiler_static='-Bstatic'
6050 lt_prog_compiler_pic='-pic'
6051 lt_prog_compiler_static='-Bstatic'
6055 lt_prog_compiler_can_build_shared=no
6060 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6061 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6064 # Check to make sure the PIC flag actually works.
6066 if test -n "$lt_prog_compiler_pic"; then
6068 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6069 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6070 if test "${lt_prog_compiler_pic_works+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 lt_prog_compiler_pic_works=no
6074 ac_outfile=conftest.$ac_objext
6075 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6076 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6077 # Insert the option either (1) after the last *FLAGS variable, or
6078 # (2) before a word containing "conftest.", or (3) at the end.
6079 # Note that $ac_compile itself does not contain backslashes and begins
6080 # with a dollar sign (not a hyphen), so the echo should work correctly.
6081 # The option is referenced via a variable to avoid confusing sed.
6082 lt_compile=`echo "$ac_compile" | $SED \
6083 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6085 -e 's:$: $lt_compiler_flag:'`
6086 (eval echo "\"\$as_me:6086: $lt_compile\"" >&5)
6087 (eval "$lt_compile" 2>conftest.err)
6089 cat conftest.err >&5
6090 echo "$as_me:6090: \$? = $ac_status" >&5
6091 if (exit $ac_status) && test -s "$ac_outfile"; then
6092 # The compiler can only warn and ignore the option if not recognized
6093 # So say no if there are warnings
6094 if test ! -s conftest.err; then
6095 lt_prog_compiler_pic_works=yes
6101 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6102 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6104 if test x"$lt_prog_compiler_pic_works" = xyes; then
6105 case $lt_prog_compiler_pic in
6107 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6110 lt_prog_compiler_pic=
6111 lt_prog_compiler_can_build_shared=no
6116 # For platforms which do not support PIC, -DPIC is meaningless:
6118 lt_prog_compiler_pic=
6121 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6125 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6126 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6127 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 lt_cv_prog_compiler_c_o=no
6131 $rm -r conftest 2>/dev/null
6135 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6137 lt_compiler_flag="-o out/conftest2.$ac_objext"
6138 # Insert the option either (1) after the last *FLAGS variable, or
6139 # (2) before a word containing "conftest.", or (3) at the end.
6140 # Note that $ac_compile itself does not contain backslashes and begins
6141 # with a dollar sign (not a hyphen), so the echo should work correctly.
6142 lt_compile=`echo "$ac_compile" | $SED \
6143 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6145 -e 's:$: $lt_compiler_flag:'`
6146 (eval echo "\"\$as_me:6146: $lt_compile\"" >&5)
6147 (eval "$lt_compile" 2>out/conftest.err)
6149 cat out/conftest.err >&5
6150 echo "$as_me:6150: \$? = $ac_status" >&5
6151 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6153 # The compiler can only warn and ignore the option if not recognized
6154 # So say no if there are warnings
6155 if test ! -s out/conftest.err; then
6156 lt_cv_prog_compiler_c_o=yes
6161 # SGI C++ compiler will create directory out/ii_files/ for
6162 # template instantiation
6163 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6164 $rm out/* && rmdir out
6170 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6171 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6174 hard_links="nottested"
6175 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6176 # do not overwrite the value of need_locks provided by the user
6177 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6178 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6183 ln conftest.a conftest.b 2>&5 || hard_links=no
6184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6185 echo "$as_me:$LINENO: result: $hard_links" >&5
6186 echo "${ECHO_T}$hard_links" >&6
6187 if test "$hard_links" = no; then
6188 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6189 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6196 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6197 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6200 allow_undefined_flag=
6201 enable_shared_with_static_runtimes=no
6203 archive_expsym_cmds=
6204 old_archive_From_new_cmds=
6205 old_archive_from_expsyms_cmds=
6206 export_dynamic_flag_spec=
6207 whole_archive_flag_spec=
6208 thread_safe_flag_spec=
6209 hardcode_libdir_flag_spec=
6210 hardcode_libdir_flag_spec_ld=
6211 hardcode_libdir_separator=
6214 hardcode_shlibpath_var=unsupported
6215 link_all_deplibs=unknown
6216 hardcode_automatic=no
6219 always_export_symbols=no
6220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6221 # include_expsyms should be a list of space-separated symbols to be *always*
6222 # included in the symbol list
6224 # exclude_expsyms can be an extended regexp of symbols to exclude
6225 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6226 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6227 # as well as any symbol that contains `d'.
6228 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6229 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6230 # platforms (ab)use it in PIC code, but their linkers get confused if
6231 # the symbol is explicitly referenced. Since portable code cannot
6232 # rely on this symbol name, it's probably fine to never include it in
6233 # preloaded symbol tables.
6234 extract_expsyms_cmds=
6237 cygwin* | mingw* | pw32*)
6238 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6239 # When not using gcc, we currently assume that we are using
6240 # Microsoft Visual C++.
6241 if test "$GCC" != yes; then
6251 if test "$with_gnu_ld" = yes; then
6252 # If archive_cmds runs LD, not CC, wlarc should be empty
6255 # See if GNU ld supports shared libraries.
6257 aix3* | aix4* | aix5*)
6258 # On AIX/PPC, the GNU linker is very broken
6259 if test "$host_cpu" != ia64; then
6263 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6264 *** to be unable to reliably create shared libraries on AIX.
6265 *** Therefore, libtool is disabling shared libraries support. If you
6266 *** really care for shared libraries, you may want to modify your PATH
6267 *** so that a non-GNU linker is found, and then restart.
6274 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)'
6275 hardcode_libdir_flag_spec='-L$libdir'
6276 hardcode_minus_L=yes
6278 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6279 # that the semantics of dynamic libraries on AmigaOS, at least up
6280 # to version 4, is to share data among multiple programs linked
6281 # with the same dynamic library. Since this doesn't match the
6282 # behavior of shared libraries on other platforms, we can't use
6288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6289 allow_undefined_flag=unsupported
6290 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6291 # support --undefined. This deserves some investigation. FIXME
6292 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6298 cygwin* | mingw* | pw32*)
6299 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6300 # as there is no search path for DLLs.
6301 hardcode_libdir_flag_spec='-L$libdir'
6302 allow_undefined_flag=unsupported
6303 always_export_symbols=no
6304 enable_shared_with_static_runtimes=yes
6305 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6307 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6309 # If the export-symbols file already is a .def file (1st line
6310 # is EXPORTS), use it as is; otherwise, prepend...
6311 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6312 cp $export_symbols $output_objdir/$soname.def;
6314 echo EXPORTS > $output_objdir/$soname.def;
6315 cat $export_symbols >> $output_objdir/$soname.def;
6317 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6325 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6334 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6338 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6339 *** create shared libraries on Solaris systems. Therefore, libtool
6340 *** is disabling shared libraries support. We urge you to upgrade GNU
6341 *** binutils to release 2.9.1 or newer. Another option is to modify
6342 *** your PATH or compiler configuration so that the native linker is
6343 *** used, and then restart.
6346 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6348 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6355 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6358 hardcode_shlibpath_var=no
6362 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6363 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6364 archive_cmds="$tmp_archive_cmds"
6365 supports_anon_versioning=no
6366 case `$LD -v 2>/dev/null` in
6367 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6368 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6369 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6370 *\ 2.11.*) ;; # other 2.11 versions
6371 *) supports_anon_versioning=yes ;;
6373 if test $supports_anon_versioning = yes; then
6374 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6375 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6376 $echo "local: *; };" >> $output_objdir/$libname.ver~
6377 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6379 archive_expsym_cmds="$tmp_archive_cmds"
6387 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6396 if test "$ld_shlibs" = yes; then
6397 runpath_var=LD_RUN_PATH
6398 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6399 export_dynamic_flag_spec='${wl}--export-dynamic'
6400 # ancient GNU ld didn't support --whole-archive et. al.
6401 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6402 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6404 whole_archive_flag_spec=
6408 # PORTME fill in a description of your system's linker (not GNU ld)
6411 allow_undefined_flag=unsupported
6412 always_export_symbols=yes
6413 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'
6414 # Note: this linker hardcodes the directories in LIBPATH if there
6415 # are no directories specified by -L.
6416 hardcode_minus_L=yes
6417 if test "$GCC" = yes && test -z "$link_static_flag"; then
6418 # Neither direct hardcoding nor static linking is supported with a
6420 hardcode_direct=unsupported
6425 if test "$host_cpu" = ia64; then
6426 # On IA64, the linker does run time linking by default, so we don't
6427 # have to do anything special.
6428 aix_use_runtimelinking=no
6429 exp_sym_flag='-Bexport'
6432 # If we're using GNU nm, then we don't want the "-C" option.
6433 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6434 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6435 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6437 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6439 aix_use_runtimelinking=no
6441 # Test if we are trying to use run time linking or normal
6442 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6443 # need to do runtime linking.
6444 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6445 for ld_flag in $LDFLAGS; do
6446 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6447 aix_use_runtimelinking=yes
6453 exp_sym_flag='-bexport'
6454 no_entry_flag='-bnoentry'
6457 # When large executables or shared objects are built, AIX ld can
6458 # have problems creating the table of contents. If linking a library
6459 # or program results in "error TOC overflow" add -mminimal-toc to
6460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6465 hardcode_libdir_separator=':'
6466 link_all_deplibs=yes
6468 if test "$GCC" = yes; then
6469 case $host_os in aix4.012|aix4.012.*)
6470 # We only want to do this on AIX 4.2 and lower, the check
6471 # below for broken collect2 doesn't work under 4.3+
6472 collect2name=`${CC} -print-prog-name=collect2`
6473 if test -f "$collect2name" && \
6474 strings "$collect2name" | grep resolve_lib_name >/dev/null
6476 # We have reworked collect2
6479 # We have old collect2
6480 hardcode_direct=unsupported
6481 # It fails to find uninstalled libraries when the uninstalled
6482 # path is not listed in the libpath. Setting hardcode_minus_L
6483 # to unsupported forces relinking
6484 hardcode_minus_L=yes
6485 hardcode_libdir_flag_spec='-L$libdir'
6486 hardcode_libdir_separator=
6489 shared_flag='-shared'
6492 if test "$host_cpu" = ia64; then
6493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6494 # chokes on -Wl,-G. The following line is correct:
6497 if test "$aix_use_runtimelinking" = yes; then
6498 shared_flag='${wl}-G'
6500 shared_flag='${wl}-bM:SRE'
6505 # It seems that -bexpall does not export symbols beginning with
6506 # underscore (_), so it is better to generate a list of symbols to export.
6507 always_export_symbols=yes
6508 if test "$aix_use_runtimelinking" = yes; then
6509 # Warning - without using the other runtime loading flags (-brtl),
6510 # -berok will link without error, but may produce a broken library.
6511 allow_undefined_flag='-berok'
6512 # Determine the default libpath from the value encoded in an empty executable.
6513 cat >conftest.$ac_ext <<_ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530 (eval $ac_link) 2>conftest.er1
6532 grep -v '^ *+' conftest.er1 >conftest.err
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_c_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest$ac_exeext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6553 # Check for a 64-bit object if we didn't find anything.
6554 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6561 rm -f conftest.err conftest.$ac_objext \
6562 conftest$ac_exeext conftest.$ac_ext
6563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6565 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6566 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"
6568 if test "$host_cpu" = ia64; then
6569 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6570 allow_undefined_flag="-z nodefs"
6571 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6573 # Determine the default libpath from the value encoded in an empty executable.
6574 cat >conftest.$ac_ext <<_ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6589 rm -f conftest.$ac_objext conftest$ac_exeext
6590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6591 (eval $ac_link) 2>conftest.er1
6593 grep -v '^ *+' conftest.er1 >conftest.err
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } &&
6598 { ac_try='test -z "$ac_c_werror_flag"
6599 || test ! -s conftest.err'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; } &&
6605 { ac_try='test -s conftest$ac_exeext'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6614 # Check for a 64-bit object if we didn't find anything.
6615 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6622 rm -f conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext conftest.$ac_ext
6624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6626 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6627 # Warning - without using the other run time loading flags,
6628 # -berok will link without error, but may produce a broken library.
6629 no_undefined_flag=' ${wl}-bernotok'
6630 allow_undefined_flag=' ${wl}-berok'
6631 # -bexpall does not export symbols beginning with underscore (_)
6632 always_export_symbols=yes
6633 # Exported symbols can be pulled into shared objects from archives
6634 whole_archive_flag_spec=' '
6635 archive_cmds_need_lc=yes
6636 # This is similar to how AIX traditionally builds it's shared libraries.
6637 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6643 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)'
6644 hardcode_libdir_flag_spec='-L$libdir'
6645 hardcode_minus_L=yes
6646 # see comment about different semantics on the GNU ld section
6651 export_dynamic_flag_spec=-rdynamic
6654 cygwin* | mingw* | pw32*)
6655 # When not using gcc, we currently assume that we are using
6656 # Microsoft Visual C++.
6657 # hardcode_libdir_flag_spec is actually meaningless, as there is
6658 # no search path for DLLs.
6659 hardcode_libdir_flag_spec=' '
6660 allow_undefined_flag=unsupported
6661 # Tell ltmain to make .lib files, not .a files.
6663 # Tell ltmain to make .dll files, not .so files.
6665 # FIXME: Setting linknames here is a bad hack.
6666 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6667 # The linker will automatically build a .lib file if we build a DLL.
6668 old_archive_From_new_cmds='true'
6669 # FIXME: Should let the user specify the lib program.
6670 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6671 fix_srcfile_path='`cygpath -w "$srcfile"`'
6672 enable_shared_with_static_runtimes=yes
6675 darwin* | rhapsody*)
6676 if test "$GXX" = yes ; then
6677 archive_cmds_need_lc=no
6679 rhapsody* | darwin1.[012])
6680 allow_undefined_flag='-undefined suppress'
6683 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6684 allow_undefined_flag='-flat_namespace -undefined suppress'
6686 case ${MACOSX_DEPLOYMENT_TARGET} in
6688 allow_undefined_flag='-flat_namespace -undefined suppress'
6691 allow_undefined_flag='-undefined dynamic_lookup'
6697 lt_int_apple_cc_single_mod=no
6698 output_verbose_link_cmd='echo'
6699 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6700 lt_int_apple_cc_single_mod=yes
6702 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6703 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6705 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6707 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6708 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6709 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6710 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6712 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6714 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6716 hardcode_automatic=yes
6717 hardcode_shlibpath_var=unsupported
6718 whole_archive_flag_spec='-all_load $convenience'
6719 link_all_deplibs=yes
6726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6727 hardcode_libdir_flag_spec='-L$libdir'
6728 hardcode_shlibpath_var=no
6735 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6736 # support. Future versions do this automatically, but an explicit c++rt0.o
6737 # does not break anything, and helps significantly (at the cost of a little
6740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6741 hardcode_libdir_flag_spec='-R$libdir'
6743 hardcode_shlibpath_var=no
6746 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6750 hardcode_minus_L=yes
6751 hardcode_shlibpath_var=no
6754 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6755 freebsd* | kfreebsd*-gnu)
6756 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6757 hardcode_libdir_flag_spec='-R$libdir'
6759 hardcode_shlibpath_var=no
6763 if test "$GCC" = yes; then
6764 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6766 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'
6768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6769 hardcode_libdir_separator=:
6772 # hardcode_minus_L: Not really in the search PATH,
6773 # but as the default location of the library.
6774 hardcode_minus_L=yes
6775 export_dynamic_flag_spec='${wl}-E'
6779 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6782 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6785 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6791 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6794 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6798 if test "$with_gnu_ld" = no; then
6801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6802 hardcode_libdir_flag_spec_ld='+b $libdir'
6803 hardcode_libdir_separator=:
6805 hardcode_shlibpath_var=no
6808 hardcode_libdir_flag_spec='-L$libdir'
6810 hardcode_shlibpath_var=no
6812 # hardcode_minus_L: Not really in the search PATH,
6813 # but as the default location of the library.
6814 hardcode_minus_L=yes
6817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6818 hardcode_libdir_separator=:
6820 export_dynamic_flag_spec='${wl}-E'
6822 # hardcode_minus_L: Not really in the search PATH,
6823 # but as the default location of the library.
6824 hardcode_minus_L=yes
6830 irix5* | irix6* | nonstopux*)
6831 if test "$GCC" = yes; then
6832 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'
6834 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'
6835 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6838 hardcode_libdir_separator=:
6839 link_all_deplibs=yes
6843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6846 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6848 hardcode_libdir_flag_spec='-R$libdir'
6850 hardcode_shlibpath_var=no
6854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6857 hardcode_libdir_separator=:
6858 hardcode_shlibpath_var=no
6863 hardcode_shlibpath_var=no
6864 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6865 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6866 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6867 export_dynamic_flag_spec='${wl}-E'
6870 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6872 hardcode_libdir_flag_spec='-R$libdir'
6875 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6876 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6883 hardcode_libdir_flag_spec='-L$libdir'
6884 hardcode_minus_L=yes
6885 allow_undefined_flag=unsupported
6886 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'
6887 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6891 if test "$GCC" = yes; then
6892 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6893 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'
6895 allow_undefined_flag=' -expect_unresolved \*'
6896 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'
6898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6899 hardcode_libdir_separator=:
6902 osf4* | osf5*) # as osf3* with the addition of -msym flag
6903 if test "$GCC" = yes; then
6904 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6905 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'
6906 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6908 allow_undefined_flag=' -expect_unresolved \*'
6909 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'
6910 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6911 $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'
6913 # Both c and cxx compiler support -rpath directly
6914 hardcode_libdir_flag_spec='-rpath $libdir'
6916 hardcode_libdir_separator=:
6920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6921 hardcode_shlibpath_var=no
6922 export_dynamic_flag_spec='${wl}-Bexport'
6923 runpath_var=LD_RUN_PATH
6924 hardcode_runpath_var=yes
6928 no_undefined_flag=' -z text'
6929 if test "$GCC" = yes; then
6930 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6931 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6932 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6934 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6935 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6936 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6938 hardcode_libdir_flag_spec='-R$libdir'
6939 hardcode_shlibpath_var=no
6941 solaris2.[0-5] | solaris2.[0-5].*) ;;
6942 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6943 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6945 link_all_deplibs=yes
6949 if test "x$host_vendor" = xsequent; then
6950 # Use $CC to link under sequent, because it throws in some extra .o
6951 # files that make .init and .fini sections work.
6952 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6954 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6956 hardcode_libdir_flag_spec='-L$libdir'
6958 hardcode_minus_L=yes
6959 hardcode_shlibpath_var=no
6963 case $host_vendor in
6965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6966 hardcode_direct=yes # is this really true???
6969 ## LD is ld it makes a PLAMLIB
6970 ## CC just makes a GrossModule.
6971 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6972 reload_cmds='$CC -r -o $output$reload_objs'
6976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6977 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6980 runpath_var='LD_RUN_PATH'
6981 hardcode_shlibpath_var=no
6985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6986 hardcode_shlibpath_var=no
6987 export_dynamic_flag_spec='-Bexport'
6991 if test -d /usr/nec; then
6992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6993 hardcode_shlibpath_var=no
6994 runpath_var=LD_RUN_PATH
6995 hardcode_runpath_var=yes
7001 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7004 hardcode_shlibpath_var=no
7005 hardcode_runpath_var=yes
7006 runpath_var=LD_RUN_PATH
7009 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7010 no_undefined_flag='${wl}-z ${wl}text'
7011 if test "$GCC" = yes; then
7012 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7014 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7016 runpath_var='LD_RUN_PATH'
7017 hardcode_shlibpath_var=no
7021 no_undefined_flag=' -z text'
7022 # $CC -shared without GNU ld will not create a library from C++
7023 # object files and a static libstdc++, better avoid it by now
7024 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7025 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7026 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7027 hardcode_libdir_flag_spec=
7028 hardcode_shlibpath_var=no
7029 runpath_var='LD_RUN_PATH'
7033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7034 hardcode_libdir_flag_spec='-L$libdir'
7035 hardcode_shlibpath_var=no
7044 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7045 echo "${ECHO_T}$ld_shlibs" >&6
7046 test "$ld_shlibs" = no && can_build_shared=no
7048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7049 if test "$GCC" = yes; then
7050 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7054 # Do we need to explicitly link libc?
7056 case "x$archive_cmds_need_lc" in
7058 # Assume -lc should be added
7059 archive_cmds_need_lc=yes
7061 if test "$enable_shared" = yes && test "$GCC" = yes; then
7062 case $archive_cmds in
7064 # FIXME: we may have to deal with multi-command sequences.
7067 # Test whether the compiler implicitly links with -lc since on some
7068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7069 # to ld, don't add -lc before -lgcc.
7070 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7071 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7076 (eval $ac_compile) 2>&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } 2>conftest.err; then
7082 libobjs=conftest.$ac_objext
7084 wl=$lt_prog_compiler_wl
7090 lt_save_allow_undefined_flag=$allow_undefined_flag
7091 allow_undefined_flag=
7092 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7093 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }
7098 archive_cmds_need_lc=no
7100 archive_cmds_need_lc=yes
7102 allow_undefined_flag=$lt_save_allow_undefined_flag
7104 cat conftest.err 1>&5
7107 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7108 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7115 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7116 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7118 libname_spec='lib$name'
7126 shlibpath_overrides_runpath=unknown
7128 dynamic_linker="$host_os ld.so"
7129 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7130 if test "$GCC" = yes; then
7131 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7132 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7133 # if the path contains ";" then we assume it to be the separator
7134 # otherwise default to the standard path separator (i.e. ":") - it is
7135 # assumed that no part of a normal pathname contains ";" but that should
7136 # okay in the real world where ";" in dirpaths is itself problematic.
7137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7142 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7144 need_lib_prefix=unknown
7145 hardcode_into_libs=no
7147 # when you set need_version to no, make sure it does not cause -set_version
7148 # flags to be left without arguments
7149 need_version=unknown
7154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7155 shlibpath_var=LIBPATH
7157 # AIX 3 has no versioning support, so we append a major version to the name.
7158 soname_spec='${libname}${release}${shared_ext}$major'
7165 hardcode_into_libs=yes
7166 if test "$host_cpu" = ia64; then
7167 # AIX 5 supports IA64
7168 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7169 shlibpath_var=LD_LIBRARY_PATH
7171 # With GCC up to 2.95.x, collect2 would create an import file
7172 # for dependence libraries. The import file would start with
7173 # the line `#! .'. This would cause the generated library to
7174 # depend on `.', always an invalid library. This was fixed in
7175 # development snapshots of GCC prior to 3.0.
7177 aix4 | aix4.[01] | aix4.[01].*)
7178 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7180 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7187 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7188 # soname into executable. Probably we can add versioning support to
7189 # collect2, so additional links can be useful in future.
7190 if test "$aix_use_runtimelinking" = yes; then
7191 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7192 # instead of lib<name>.a to let people know that these are not
7193 # typical AIX shared libraries.
7194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7196 # We preserve .a as extension for shared libraries through AIX4.2
7197 # and later when we are not doing run time linking.
7198 library_names_spec='${libname}${release}.a $libname.a'
7199 soname_spec='${libname}${release}${shared_ext}$major'
7201 shlibpath_var=LIBPATH
7206 library_names_spec='$libname.ixlibrary $libname.a'
7207 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7208 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'
7212 library_names_spec='${libname}${shared_ext}'
7213 dynamic_linker="$host_os ld.so"
7214 shlibpath_var=LIBRARY_PATH
7220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7221 soname_spec='${libname}${release}${shared_ext}$major'
7222 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7223 shlibpath_var=LD_LIBRARY_PATH
7224 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7225 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7226 # the default ld.so.conf also contains /usr/contrib/lib and
7227 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7228 # libtool to hard-code these into programs
7231 cygwin* | mingw* | pw32*)
7232 version_type=windows
7237 case $GCC,$host_os in
7238 yes,cygwin* | yes,mingw* | yes,pw32*)
7239 library_names_spec='$libname.dll.a'
7240 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7241 postinstall_cmds='base_file=`basename \${file}`~
7242 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7243 dldir=$destdir/`dirname \$dlpath`~
7244 test -d \$dldir || mkdir -p \$dldir~
7245 $install_prog $dir/$dlname \$dldir/$dlname'
7246 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7247 dlpath=$dir/\$dldll~
7249 shlibpath_overrides_runpath=yes
7253 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7254 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7255 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7258 # MinGW DLLs use traditional 'lib' prefix
7259 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7261 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7262 # It is most probably a Windows format PATH printed by
7263 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7264 # path with ; separators, and with drive letters. We can handle the
7265 # drive letters (cygwin fileutils understands them), so leave them,
7266 # especially as we might pass files found there to a mingw objdump,
7267 # which wouldn't understand a cygwinified path. Ahh.
7268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7274 # pw32 DLLs use 'pw' prefix rather than 'lib'
7275 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7281 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7283 supports_anon_versioning=no
7284 case `$LD -v 2>/dev/null` in
7285 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7286 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7287 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7288 *\ 2.11.*) ;; # other 2.11 versions
7289 *) supports_anon_versioning=yes ;;
7291 if test $supports_anon_versioning = yes; then
7292 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7294 $echo "local: *; };" >> $output_objdir/$libname.ver~
7295 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7297 $archive_expsym_cmds="$archive_cmds"
7305 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7308 dynamic_linker='Win32 ld.exe'
7309 # FIXME: first we should search . and the directory the executable is in
7313 darwin* | rhapsody*)
7314 dynamic_linker="$host_os dyld"
7318 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7319 soname_spec='${libname}${release}${major}$shared_ext'
7320 shlibpath_overrides_runpath=yes
7321 shlibpath_var=DYLD_LIBRARY_PATH
7322 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7323 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7324 if test "$GCC" = yes; then
7325 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7327 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7329 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7337 soname_spec='${libname}${release}${shared_ext}$major'
7338 shlibpath_var=LD_LIBRARY_PATH
7349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7350 soname_spec='${libname}${release}${shared_ext}$major'
7351 shlibpath_var=LD_LIBRARY_PATH
7352 shlibpath_overrides_runpath=no
7353 hardcode_into_libs=yes
7354 dynamic_linker='GNU ld.so'
7358 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7359 version_type=freebsd-$objformat
7360 case $version_type in
7362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7371 shlibpath_var=LD_LIBRARY_PATH
7374 shlibpath_overrides_runpath=yes
7376 freebsd3.01* | freebsdelf3.01*)
7377 shlibpath_overrides_runpath=yes
7378 hardcode_into_libs=yes
7381 shlibpath_overrides_runpath=no
7382 hardcode_into_libs=yes
7391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7392 soname_spec='${libname}${release}${shared_ext}$major'
7393 shlibpath_var=LD_LIBRARY_PATH
7394 hardcode_into_libs=yes
7397 hpux9* | hpux10* | hpux11*)
7398 # Give a soname corresponding to the major version so that dld.sl refuses to
7399 # link against other versions.
7406 hardcode_into_libs=yes
7407 dynamic_linker="$host_os dld.so"
7408 shlibpath_var=LD_LIBRARY_PATH
7409 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7411 soname_spec='${libname}${release}${shared_ext}$major'
7412 if test "X$HPUX_IA64_MODE" = X32; then
7413 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7415 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7421 hardcode_into_libs=yes
7422 dynamic_linker="$host_os dld.sl"
7423 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7424 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7426 soname_spec='${libname}${release}${shared_ext}$major'
7427 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7428 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7432 dynamic_linker="$host_os dld.sl"
7433 shlibpath_var=SHLIB_PATH
7434 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7436 soname_spec='${libname}${release}${shared_ext}$major'
7439 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7440 postinstall_cmds='chmod 555 $lib'
7443 irix5* | irix6* | nonstopux*)
7445 nonstopux*) version_type=nonstopux ;;
7447 if test "$lt_cv_prog_gnu_ld" = yes; then
7455 soname_spec='${libname}${release}${shared_ext}$major'
7456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7458 irix5* | nonstopux*)
7462 case $LD in # libtool.m4 will add one of these switches to LD
7463 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7464 libsuff= shlibsuff= libmagic=32-bit;;
7465 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7466 libsuff=32 shlibsuff=N32 libmagic=N32;;
7467 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7468 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7469 *) libsuff= shlibsuff= libmagic=never-match;;
7473 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7474 shlibpath_overrides_runpath=no
7475 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7476 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7477 hardcode_into_libs=yes
7480 # No shared lib support for Linux oldld, aout, or coff.
7481 linux*oldld* | linux*aout* | linux*coff*)
7485 # This must be Linux ELF.
7490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7491 soname_spec='${libname}${release}${shared_ext}$major'
7492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7493 shlibpath_var=LD_LIBRARY_PATH
7494 shlibpath_overrides_runpath=no
7495 # This implies no fast_install, which is unacceptable.
7496 # Some rework will be needed to allow for fast_install
7497 # before this can be enabled.
7498 hardcode_into_libs=yes
7500 # Append ld.so.conf contents to the search path
7501 if test -f /etc/ld.so.conf; then
7502 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7503 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7506 case $host_cpu:$lt_cv_cc_64bit_output in
7507 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
7508 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
7509 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
7513 # We used to test for /lib/ld.so.1 and disable shared libraries on
7514 # powerpc, because MkLinux only supported shared libraries with the
7515 # GNU dynamic linker. Since this was broken with cross compilers,
7516 # most powerpc-linux boxes support dynamic linking these days and
7517 # people can always --disable-shared, the test was removed, and we
7518 # assume the GNU/Linux dynamic linker is in use.
7519 dynamic_linker='GNU/Linux ld.so'
7521 # Find out which ABI we are using (multilib Linux x86_64 hack).
7525 echo '#line 7525 "configure"' > conftest.$ac_ext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7527 (eval $ac_compile) 2>&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; then
7531 case `/usr/bin/file conftest.$ac_objext` in
7542 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7543 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7551 soname_spec='${libname}${release}${shared_ext}$major'
7552 shlibpath_var=LD_LIBRARY_PATH
7553 shlibpath_overrides_runpath=no
7554 hardcode_into_libs=yes
7555 dynamic_linker='GNU ld.so'
7562 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7565 dynamic_linker='NetBSD (a.out) ld.so'
7567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7568 soname_spec='${libname}${release}${shared_ext}$major'
7569 dynamic_linker='NetBSD ld.elf_so'
7571 shlibpath_var=LD_LIBRARY_PATH
7572 shlibpath_overrides_runpath=yes
7573 hardcode_into_libs=yes
7578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7579 shlibpath_var=LD_LIBRARY_PATH
7580 shlibpath_overrides_runpath=yes
7587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7588 soname_spec='${libname}${release}${shared_ext}$major'
7589 shlibpath_var=LD_LIBRARY_PATH
7590 shlibpath_overrides_runpath=yes
7597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7599 shlibpath_var=LD_LIBRARY_PATH
7600 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7602 openbsd2.[89] | openbsd2.[89].*)
7603 shlibpath_overrides_runpath=no
7606 shlibpath_overrides_runpath=yes
7610 shlibpath_overrides_runpath=yes
7615 libname_spec='$name'
7618 library_names_spec='$libname${shared_ext} $libname.a'
7619 dynamic_linker='OS/2 ld.exe'
7620 shlibpath_var=LIBPATH
7623 osf3* | osf4* | osf5*)
7627 soname_spec='${libname}${release}${shared_ext}$major'
7628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7629 shlibpath_var=LD_LIBRARY_PATH
7630 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7631 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7636 soname_spec='${libname}${release}${shared_ext}$major'
7637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7638 shlibpath_var=LD_LIBRARY_PATH
7645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7646 soname_spec='${libname}${release}${shared_ext}$major'
7647 shlibpath_var=LD_LIBRARY_PATH
7648 shlibpath_overrides_runpath=yes
7649 hardcode_into_libs=yes
7650 # ldd complains unless libraries are executable
7651 postinstall_cmds='chmod +x $lib'
7656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7657 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7658 shlibpath_var=LD_LIBRARY_PATH
7659 shlibpath_overrides_runpath=yes
7660 if test "$with_gnu_ld" = yes; then
7666 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669 soname_spec='${libname}${release}${shared_ext}$major'
7670 shlibpath_var=LD_LIBRARY_PATH
7671 case $host_vendor in
7673 shlibpath_overrides_runpath=no
7675 export_dynamic_flag_spec='${wl}-Blargedynsym'
7676 runpath_var=LD_RUN_PATH
7684 shlibpath_overrides_runpath=no
7685 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7691 if test -d /usr/nec ;then
7693 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7694 soname_spec='$libname${shared_ext}.$major'
7695 shlibpath_var=LD_LIBRARY_PATH
7701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7702 soname_spec='${libname}${release}${shared_ext}$major'
7703 shlibpath_var=LD_LIBRARY_PATH
7710 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7711 echo "${ECHO_T}$dynamic_linker" >&6
7712 test "$dynamic_linker" = no && can_build_shared=no
7714 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7715 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7717 if test -n "$hardcode_libdir_flag_spec" || \
7718 test -n "$runpath_var " || \
7719 test "X$hardcode_automatic"="Xyes" ; then
7721 # We can hardcode non-existant directories.
7722 if test "$hardcode_direct" != no &&
7723 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7724 # have to relink, otherwise we might link with an installed library
7725 # when we should be linking with a yet-to-be-installed one
7726 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7727 test "$hardcode_minus_L" != no; then
7728 # Linking always hardcodes the temporary library directory.
7729 hardcode_action=relink
7731 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7732 hardcode_action=immediate
7735 # We cannot hardcode anything, or else we can only hardcode existing
7737 hardcode_action=unsupported
7739 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7740 echo "${ECHO_T}$hardcode_action" >&6
7742 if test "$hardcode_action" = relink; then
7743 # Fast installation is not supported
7744 enable_fast_install=no
7745 elif test "$shlibpath_overrides_runpath" = yes ||
7746 test "$enable_shared" = no; then
7747 # Fast installation is not necessary
7748 enable_fast_install=needless
7753 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7754 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7755 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7756 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7757 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7758 echo "$as_me:$LINENO: result: yes" >&5
7759 echo "${ECHO_T}yes" >&6
7761 # FIXME - insert some real tests, host_os isn't really good enough
7764 if test -n "$STRIP" ; then
7765 striplib="$STRIP -x"
7766 echo "$as_me:$LINENO: result: yes" >&5
7767 echo "${ECHO_T}yes" >&6
7769 echo "$as_me:$LINENO: result: no" >&5
7770 echo "${ECHO_T}no" >&6
7774 echo "$as_me:$LINENO: result: no" >&5
7775 echo "${ECHO_T}no" >&6
7780 if test "x$enable_dlopen" != xyes; then
7781 enable_dlopen=unknown
7782 enable_dlopen_self=unknown
7783 enable_dlopen_self_static=unknown
7790 lt_cv_dlopen="load_add_on"
7792 lt_cv_dlopen_self=yes
7796 lt_cv_dlopen="LoadLibrary"
7801 lt_cv_dlopen="dlopen"
7806 # if libdl is installed we need to link against it
7807 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7808 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7809 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 ac_check_lib_save_LIBS=$LIBS
7814 cat >conftest.$ac_ext <<_ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7821 /* Override any gcc2 internal prototype to avoid an error. */
7825 /* We use char because int might match the return type of a gcc2
7826 builtin and then its argument prototype would still apply. */
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>conftest.er1
7840 grep -v '^ *+' conftest.er1 >conftest.err
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try='test -z "$ac_c_werror_flag"
7846 || test ! -s conftest.err'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; } &&
7852 { ac_try='test -s conftest$ac_exeext'
7853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; }; then
7858 ac_cv_lib_dl_dlopen=yes
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7863 ac_cv_lib_dl_dlopen=no
7865 rm -f conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7867 LIBS=$ac_check_lib_save_LIBS
7869 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7870 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7871 if test $ac_cv_lib_dl_dlopen = yes; then
7872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7877 lt_cv_dlopen_self=yes
7884 echo "$as_me:$LINENO: checking for shl_load" >&5
7885 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7886 if test "${ac_cv_func_shl_load+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 cat >conftest.$ac_ext <<_ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7897 #define shl_load innocuous_shl_load
7899 /* System header to define __stub macros and hopefully few prototypes,
7900 which can conflict with char shl_load (); below.
7901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7902 <limits.h> exists even on freestanding compilers. */
7905 # include <limits.h>
7907 # include <assert.h>
7912 /* Override any gcc2 internal prototype to avoid an error. */
7917 /* We use char because int might match the return type of a gcc2
7918 builtin and then its argument prototype would still apply. */
7920 /* The GNU C library defines this for functions which it implements
7921 to always fail with ENOSYS. Some functions are actually named
7922 something starting with __ and the normal name is an alias. */
7923 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7926 char (*f) () = shl_load;
7935 return f != shl_load;
7940 rm -f conftest.$ac_objext conftest$ac_exeext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7942 (eval $ac_link) 2>conftest.er1
7944 grep -v '^ *+' conftest.er1 >conftest.err
7946 cat conftest.err >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } &&
7949 { ac_try='test -z "$ac_c_werror_flag"
7950 || test ! -s conftest.err'
7951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; } &&
7956 { ac_try='test -s conftest$ac_exeext'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 ac_cv_func_shl_load=yes
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 ac_cv_func_shl_load=no
7969 rm -f conftest.err conftest.$ac_objext \
7970 conftest$ac_exeext conftest.$ac_ext
7972 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7973 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7974 if test $ac_cv_func_shl_load = yes; then
7975 lt_cv_dlopen="shl_load"
7977 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7978 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7979 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 ac_check_lib_save_LIBS=$LIBS
7984 cat >conftest.$ac_ext <<_ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7991 /* Override any gcc2 internal prototype to avoid an error. */
7995 /* We use char because int might match the return type of a gcc2
7996 builtin and then its argument prototype would still apply. */
8006 rm -f conftest.$ac_objext conftest$ac_exeext
8007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8008 (eval $ac_link) 2>conftest.er1
8010 grep -v '^ *+' conftest.er1 >conftest.err
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } &&
8015 { ac_try='test -z "$ac_c_werror_flag"
8016 || test ! -s conftest.err'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; } &&
8022 { ac_try='test -s conftest$ac_exeext'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8028 ac_cv_lib_dld_shl_load=yes
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8033 ac_cv_lib_dld_shl_load=no
8035 rm -f conftest.err conftest.$ac_objext \
8036 conftest$ac_exeext conftest.$ac_ext
8037 LIBS=$ac_check_lib_save_LIBS
8039 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8040 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8041 if test $ac_cv_lib_dld_shl_load = yes; then
8042 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8044 echo "$as_me:$LINENO: checking for dlopen" >&5
8045 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8046 if test "${ac_cv_func_dlopen+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 cat >conftest.$ac_ext <<_ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8055 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8057 #define dlopen innocuous_dlopen
8059 /* System header to define __stub macros and hopefully few prototypes,
8060 which can conflict with char dlopen (); below.
8061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8062 <limits.h> exists even on freestanding compilers. */
8065 # include <limits.h>
8067 # include <assert.h>
8072 /* Override any gcc2 internal prototype to avoid an error. */
8077 /* We use char because int might match the return type of a gcc2
8078 builtin and then its argument prototype would still apply. */
8080 /* The GNU C library defines this for functions which it implements
8081 to always fail with ENOSYS. Some functions are actually named
8082 something starting with __ and the normal name is an alias. */
8083 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8086 char (*f) () = dlopen;
8100 rm -f conftest.$ac_objext conftest$ac_exeext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8102 (eval $ac_link) 2>conftest.er1
8104 grep -v '^ *+' conftest.er1 >conftest.err
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
8109 { ac_try='test -z "$ac_c_werror_flag"
8110 || test ! -s conftest.err'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; } &&
8116 { ac_try='test -s conftest$ac_exeext'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 ac_cv_func_dlopen=yes
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8127 ac_cv_func_dlopen=no
8129 rm -f conftest.err conftest.$ac_objext \
8130 conftest$ac_exeext conftest.$ac_ext
8132 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8133 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8134 if test $ac_cv_func_dlopen = yes; then
8135 lt_cv_dlopen="dlopen"
8137 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8138 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8139 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 ac_check_lib_save_LIBS=$LIBS
8144 cat >conftest.$ac_ext <<_ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8151 /* Override any gcc2 internal prototype to avoid an error. */
8155 /* We use char because int might match the return type of a gcc2
8156 builtin and then its argument prototype would still apply. */
8166 rm -f conftest.$ac_objext conftest$ac_exeext
8167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8168 (eval $ac_link) 2>conftest.er1
8170 grep -v '^ *+' conftest.er1 >conftest.err
8172 cat conftest.err >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } &&
8175 { ac_try='test -z "$ac_c_werror_flag"
8176 || test ! -s conftest.err'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; } &&
8182 { ac_try='test -s conftest$ac_exeext'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
8188 ac_cv_lib_dl_dlopen=yes
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8193 ac_cv_lib_dl_dlopen=no
8195 rm -f conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8197 LIBS=$ac_check_lib_save_LIBS
8199 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8200 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8201 if test $ac_cv_lib_dl_dlopen = yes; then
8202 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8204 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8205 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8206 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 ac_check_lib_save_LIBS=$LIBS
8211 cat >conftest.$ac_ext <<_ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8218 /* Override any gcc2 internal prototype to avoid an error. */
8222 /* We use char because int might match the return type of a gcc2
8223 builtin and then its argument prototype would still apply. */
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235 (eval $ac_link) 2>conftest.er1
8237 grep -v '^ *+' conftest.er1 >conftest.err
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
8242 { ac_try='test -z "$ac_c_werror_flag"
8243 || test ! -s conftest.err'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; } &&
8249 { ac_try='test -s conftest$ac_exeext'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; }; then
8255 ac_cv_lib_svld_dlopen=yes
8257 echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8260 ac_cv_lib_svld_dlopen=no
8262 rm -f conftest.err conftest.$ac_objext \
8263 conftest$ac_exeext conftest.$ac_ext
8264 LIBS=$ac_check_lib_save_LIBS
8266 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8267 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8268 if test $ac_cv_lib_svld_dlopen = yes; then
8269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8271 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8272 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8273 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 ac_check_lib_save_LIBS=$LIBS
8278 cat >conftest.$ac_ext <<_ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8285 /* Override any gcc2 internal prototype to avoid an error. */
8289 /* We use char because int might match the return type of a gcc2
8290 builtin and then its argument prototype would still apply. */
8300 rm -f conftest.$ac_objext conftest$ac_exeext
8301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8302 (eval $ac_link) 2>conftest.er1
8304 grep -v '^ *+' conftest.er1 >conftest.err
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -z "$ac_c_werror_flag"
8310 || test ! -s conftest.err'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; } &&
8316 { ac_try='test -s conftest$ac_exeext'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 ac_cv_lib_dld_dld_link=yes
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8327 ac_cv_lib_dld_dld_link=no
8329 rm -f conftest.err conftest.$ac_objext \
8330 conftest$ac_exeext conftest.$ac_ext
8331 LIBS=$ac_check_lib_save_LIBS
8333 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8334 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8335 if test $ac_cv_lib_dld_dld_link = yes; then
8336 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8357 if test "x$lt_cv_dlopen" != xno; then
8363 case $lt_cv_dlopen in
8365 save_CPPFLAGS="$CPPFLAGS"
8366 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8368 save_LDFLAGS="$LDFLAGS"
8369 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8372 LIBS="$lt_cv_dlopen_libs $LIBS"
8374 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8375 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8376 if test "${lt_cv_dlopen_self+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 if test "$cross_compiling" = yes; then :
8380 lt_cv_dlopen_self=cross
8382 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8383 lt_status=$lt_dlunknown
8384 cat > conftest.$ac_ext <<EOF
8385 #line 8385 "configure"
8386 #include "confdefs.h"
8395 # define LT_DLGLOBAL RTLD_GLOBAL
8398 # define LT_DLGLOBAL DL_GLOBAL
8400 # define LT_DLGLOBAL 0
8404 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8405 find out it does not work in some platform. */
8406 #ifndef LT_DLLAZY_OR_NOW
8408 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8411 # define LT_DLLAZY_OR_NOW DL_LAZY
8414 # define LT_DLLAZY_OR_NOW RTLD_NOW
8417 # define LT_DLLAZY_OR_NOW DL_NOW
8419 # define LT_DLLAZY_OR_NOW 0
8427 extern "C" void exit (int);
8430 void fnord() { int i=42;}
8433 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8434 int status = $lt_dlunknown;
8438 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8439 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8440 /* dlclose (self); */
8446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8447 (eval $ac_link) 2>&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8451 (./conftest; exit; ) 2>/dev/null
8454 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8455 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8456 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8459 # compilation failed
8460 lt_cv_dlopen_self=no
8467 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8468 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8470 if test "x$lt_cv_dlopen_self" = xyes; then
8471 LDFLAGS="$LDFLAGS $link_static_flag"
8472 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8473 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8474 if test "${lt_cv_dlopen_self_static+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8477 if test "$cross_compiling" = yes; then :
8478 lt_cv_dlopen_self_static=cross
8480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8481 lt_status=$lt_dlunknown
8482 cat > conftest.$ac_ext <<EOF
8483 #line 8483 "configure"
8484 #include "confdefs.h"
8493 # define LT_DLGLOBAL RTLD_GLOBAL
8496 # define LT_DLGLOBAL DL_GLOBAL
8498 # define LT_DLGLOBAL 0
8502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8503 find out it does not work in some platform. */
8504 #ifndef LT_DLLAZY_OR_NOW
8506 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8509 # define LT_DLLAZY_OR_NOW DL_LAZY
8512 # define LT_DLLAZY_OR_NOW RTLD_NOW
8515 # define LT_DLLAZY_OR_NOW DL_NOW
8517 # define LT_DLLAZY_OR_NOW 0
8525 extern "C" void exit (int);
8528 void fnord() { int i=42;}
8531 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8532 int status = $lt_dlunknown;
8536 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8537 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8538 /* dlclose (self); */
8544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8545 (eval $ac_link) 2>&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8549 (./conftest; exit; ) 2>/dev/null
8552 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8553 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8554 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8557 # compilation failed
8558 lt_cv_dlopen_self_static=no
8565 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8566 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8569 CPPFLAGS="$save_CPPFLAGS"
8570 LDFLAGS="$save_LDFLAGS"
8575 case $lt_cv_dlopen_self in
8576 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8577 *) enable_dlopen_self=unknown ;;
8580 case $lt_cv_dlopen_self_static in
8581 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8582 *) enable_dlopen_self_static=unknown ;;
8587 # Report which librarie types wil actually be built
8588 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8589 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8590 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8591 echo "${ECHO_T}$can_build_shared" >&6
8593 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8594 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8595 test "$can_build_shared" = "no" && enable_shared=no
8597 # On AIX, shared libraries and static libraries use the same namespace, and
8598 # are all built from PIC.
8601 test "$enable_shared" = yes && enable_static=no
8602 if test -n "$RANLIB"; then
8603 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8604 postinstall_cmds='$RANLIB $lib'
8609 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8610 test "$enable_shared" = yes && enable_static=no
8613 darwin* | rhapsody*)
8614 if test "$GCC" = yes; then
8615 archive_cmds_need_lc=no
8617 rhapsody* | darwin1.[012])
8618 allow_undefined_flag='-undefined suppress'
8621 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8622 allow_undefined_flag='-flat_namespace -undefined suppress'
8624 case ${MACOSX_DEPLOYMENT_TARGET} in
8626 allow_undefined_flag='-flat_namespace -undefined suppress'
8629 allow_undefined_flag='-undefined dynamic_lookup'
8635 output_verbose_link_cmd='echo'
8636 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8637 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8638 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8639 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8640 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8642 hardcode_automatic=yes
8643 hardcode_shlibpath_var=unsupported
8644 whole_archive_flag_spec='-all_load $convenience'
8645 link_all_deplibs=yes
8651 echo "$as_me:$LINENO: result: $enable_shared" >&5
8652 echo "${ECHO_T}$enable_shared" >&6
8654 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8655 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8656 # Make sure either enable_shared or enable_static is yes.
8657 test "$enable_shared" = yes || enable_static=yes
8658 echo "$as_me:$LINENO: result: $enable_static" >&5
8659 echo "${ECHO_T}$enable_static" >&6
8661 # The else clause should only fire when bootstrapping the
8662 # libtool distribution, otherwise you forgot to ship ltmain.sh
8663 # with your package, and you will get complaints that there are
8664 # no rules to generate ltmain.sh.
8665 if test -f "$ltmain"; then
8666 # See if we are running on zsh, and set the options which allow our commands through
8667 # without removal of \ escapes.
8668 if test -n "${ZSH_VERSION+set}" ; then
8669 setopt NO_GLOB_SUBST
8671 # Now quote all the things that may contain metacharacters while being
8672 # careful not to overquote the AC_SUBSTed values. We take copies of the
8673 # variables and quote the copies for generation of the libtool script.
8674 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8676 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8677 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8678 deplibs_check_method reload_flag reload_cmds need_locks \
8679 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8680 lt_cv_sys_global_symbol_to_c_name_address \
8681 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8682 old_postinstall_cmds old_postuninstall_cmds \
8686 lt_prog_compiler_wl \
8687 lt_prog_compiler_pic \
8688 lt_prog_compiler_static \
8689 lt_prog_compiler_no_builtin_flag \
8690 export_dynamic_flag_spec \
8691 thread_safe_flag_spec \
8692 whole_archive_flag_spec \
8693 enable_shared_with_static_runtimes \
8695 old_archive_from_new_cmds \
8700 compiler_lib_search_path \
8702 archive_expsym_cmds \
8704 postuninstall_cmds \
8705 old_archive_from_expsyms_cmds \
8706 allow_undefined_flag \
8708 export_symbols_cmds \
8709 hardcode_libdir_flag_spec \
8710 hardcode_libdir_flag_spec_ld \
8711 hardcode_libdir_separator \
8712 hardcode_automatic \
8714 module_expsym_cmds \
8715 lt_cv_prog_compiler_c_o \
8720 old_archive_cmds | \
8721 old_archive_from_new_cmds | \
8723 archive_expsym_cmds | \
8725 module_expsym_cmds | \
8726 old_archive_from_expsyms_cmds | \
8727 export_symbols_cmds | \
8728 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8729 postinstall_cmds | postuninstall_cmds | \
8730 old_postinstall_cmds | old_postuninstall_cmds | \
8731 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8732 # Double-quote double-evaled strings.
8733 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8736 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8742 *'\$0 --fallback-echo"')
8743 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8748 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8750 { echo "$as_me:$LINENO: creating $ofile" >&5
8751 echo "$as_me: creating $ofile" >&6;}
8753 cat <<__EOF__ >> "$cfgfile"
8756 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8757 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8758 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8760 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8761 # Free Software Foundation, Inc.
8763 # This file is part of GNU Libtool:
8764 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8766 # This program is free software; you can redistribute it and/or modify
8767 # it under the terms of the GNU General Public License as published by
8768 # the Free Software Foundation; either version 2 of the License, or
8769 # (at your option) any later version.
8771 # This program is distributed in the hope that it will be useful, but
8772 # WITHOUT ANY WARRANTY; without even the implied warranty of
8773 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8774 # General Public License for more details.
8776 # You should have received a copy of the GNU General Public License
8777 # along with this program; if not, write to the Free Software
8778 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8780 # As a special exception to the GNU General Public License, if you
8781 # distribute this file as part of a program that contains a
8782 # configuration script generated by Autoconf, you may include it under
8783 # the same distribution terms that you use for the rest of that program.
8785 # A sed program that does not truncate output.
8788 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8789 Xsed="$SED -e s/^X//"
8791 # The HP-UX ksh and POSIX shell print the target directory to stdout
8793 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8795 # The names of the tagged configurations supported by this script.
8798 # ### BEGIN LIBTOOL CONFIG
8800 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8802 # Shell to use when invoking shell scripts.
8805 # Whether or not to build shared libraries.
8806 build_libtool_libs=$enable_shared
8808 # Whether or not to build static libraries.
8809 build_old_libs=$enable_static
8811 # Whether or not to add -lc for building shared libraries.
8812 build_libtool_need_lc=$archive_cmds_need_lc
8814 # Whether or not to disallow shared libs when runtime libs are static
8815 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8817 # Whether or not to optimize for fast installation.
8818 fast_install=$enable_fast_install
8821 host_alias=$host_alias
8824 # An echo program that does not interpret backslashes.
8829 AR_FLAGS=$lt_AR_FLAGS
8834 # A language-specific compiler.
8837 # Is the compiler the GNU C compiler?
8843 # The linker used to build libraries.
8846 # Whether we need hard or soft links.
8849 # A BSD-compatible nm program.
8852 # A symbol stripping program
8855 # Used to examine libraries when file_magic_cmd begins "file"
8856 MAGIC_CMD=$MAGIC_CMD
8858 # Used on cygwin: DLL creation program.
8861 # Used on cygwin: object dumper.
8864 # Used on cygwin: assembler.
8867 # The name of the directory that contains temporary libtool files.
8870 # How to create reloadable object files.
8871 reload_flag=$lt_reload_flag
8872 reload_cmds=$lt_reload_cmds
8874 # How to pass a linker flag through the compiler.
8875 wl=$lt_lt_prog_compiler_wl
8877 # Object file suffix (normally "o").
8880 # Old archive suffix (normally "a").
8883 # Shared library suffix (normally ".so").
8886 # Executable file suffix (normally "").
8889 # Additional compiler flags for building library objects.
8890 pic_flag=$lt_lt_prog_compiler_pic
8893 # What is the maximum length of a command?
8894 max_cmd_len=$lt_cv_sys_max_cmd_len
8896 # Does compiler simultaneously support -c and -o options?
8897 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8899 # Must we lock files when doing compilation ?
8900 need_locks=$lt_need_locks
8902 # Do we need the lib prefix for modules?
8903 need_lib_prefix=$need_lib_prefix
8905 # Do we need a version for libraries?
8906 need_version=$need_version
8908 # Whether dlopen is supported.
8909 dlopen_support=$enable_dlopen
8911 # Whether dlopen of programs is supported.
8912 dlopen_self=$enable_dlopen_self
8914 # Whether dlopen of statically linked programs is supported.
8915 dlopen_self_static=$enable_dlopen_self_static
8917 # Compiler flag to prevent dynamic linking.
8918 link_static_flag=$lt_lt_prog_compiler_static
8920 # Compiler flag to turn off builtin functions.
8921 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8923 # Compiler flag to allow reflexive dlopens.
8924 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8926 # Compiler flag to generate shared objects directly from archives.
8927 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8929 # Compiler flag to generate thread-safe objects.
8930 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8932 # Library versioning type.
8933 version_type=$version_type
8935 # Format of library name prefix.
8936 libname_spec=$lt_libname_spec
8938 # List of archive names. First name is the real one, the rest are links.
8939 # The last name is the one that the linker finds with -lNAME.
8940 library_names_spec=$lt_library_names_spec
8942 # The coded name of the library, if different from the real name.
8943 soname_spec=$lt_soname_spec
8945 # Commands used to build and install an old-style archive.
8947 old_archive_cmds=$lt_old_archive_cmds
8948 old_postinstall_cmds=$lt_old_postinstall_cmds
8949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8951 # Create an old-style archive from a shared archive.
8952 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8954 # Create a temporary old-style archive to link instead of a shared archive.
8955 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8957 # Commands used to build and install a shared archive.
8958 archive_cmds=$lt_archive_cmds
8959 archive_expsym_cmds=$lt_archive_expsym_cmds
8960 postinstall_cmds=$lt_postinstall_cmds
8961 postuninstall_cmds=$lt_postuninstall_cmds
8963 # Commands used to build a loadable module (assumed same as above if empty)
8964 module_cmds=$lt_module_cmds
8965 module_expsym_cmds=$lt_module_expsym_cmds
8967 # Commands to strip libraries.
8968 old_striplib=$lt_old_striplib
8969 striplib=$lt_striplib
8971 # Dependencies to place before the objects being linked to create a
8973 predep_objects=$lt_predep_objects
8975 # Dependencies to place after the objects being linked to create a
8977 postdep_objects=$lt_postdep_objects
8979 # Dependencies to place before the objects being linked to create a
8983 # Dependencies to place after the objects being linked to create a
8985 postdeps=$lt_postdeps
8987 # The library search path used internally by the compiler when linking
8989 compiler_lib_search_path=$lt_compiler_lib_search_path
8991 # Method to check whether dependent libraries are shared objects.
8992 deplibs_check_method=$lt_deplibs_check_method
8994 # Command to use when deplibs_check_method == file_magic.
8995 file_magic_cmd=$lt_file_magic_cmd
8997 # Flag that allows shared libraries with undefined symbols to be built.
8998 allow_undefined_flag=$lt_allow_undefined_flag
9000 # Flag that forces no undefined symbols.
9001 no_undefined_flag=$lt_no_undefined_flag
9003 # Commands used to finish a libtool library installation in a directory.
9004 finish_cmds=$lt_finish_cmds
9006 # Same as above, but a single script fragment to be evaled but not shown.
9007 finish_eval=$lt_finish_eval
9009 # Take the output of nm and produce a listing of raw symbols and C names.
9010 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9012 # Transform the output of nm in a proper C declaration
9013 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9015 # Transform the output of nm in a C name address pair
9016 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9018 # This is the shared library runtime path variable.
9019 runpath_var=$runpath_var
9021 # This is the shared library path variable.
9022 shlibpath_var=$shlibpath_var
9024 # Is shlibpath searched before the hard-coded library search path?
9025 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9027 # How to hardcode a shared library path into an executable.
9028 hardcode_action=$hardcode_action
9030 # Whether we should hardcode library paths into libraries.
9031 hardcode_into_libs=$hardcode_into_libs
9033 # Flag to hardcode \$libdir into a binary during linking.
9034 # This must work even if \$libdir does not exist.
9035 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9037 # If ld is used when linking, flag to hardcode \$libdir into
9038 # a binary during linking. This must work even if \$libdir does
9040 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9042 # Whether we need a single -rpath flag with a separated argument.
9043 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9045 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9047 hardcode_direct=$hardcode_direct
9049 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9051 hardcode_minus_L=$hardcode_minus_L
9053 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9054 # the resulting binary.
9055 hardcode_shlibpath_var=$hardcode_shlibpath_var
9057 # Set to yes if building a shared library automatically hardcodes DIR into the library
9058 # and all subsequent libraries and executables linked against it.
9059 hardcode_automatic=$hardcode_automatic
9061 # Variables whose values should be saved in libtool wrapper scripts and
9062 # restored at relink time.
9063 variables_saved_for_relink="$variables_saved_for_relink"
9065 # Whether libtool must link a program against all its dependency libraries.
9066 link_all_deplibs=$link_all_deplibs
9068 # Compile-time system search path for libraries
9069 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9071 # Run-time system search path for libraries
9072 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9074 # Fix the shell variable \$srcfile for the compiler.
9075 fix_srcfile_path="$fix_srcfile_path"
9077 # Set to yes if exported symbols are required.
9078 always_export_symbols=$always_export_symbols
9080 # The commands to list exported symbols.
9081 export_symbols_cmds=$lt_export_symbols_cmds
9083 # The commands to extract the exported symbol list from a shared archive.
9084 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9086 # Symbols that should not be listed in the preloaded symbols.
9087 exclude_expsyms=$lt_exclude_expsyms
9089 # Symbols that must always be exported.
9090 include_expsyms=$lt_include_expsyms
9092 # ### END LIBTOOL CONFIG
9099 cat <<\EOF >> "$cfgfile"
9101 # AIX sometimes has problems with the GCC collect2 program. For some
9102 # reason, if we set the COLLECT_NAMES environment variable, the problems
9103 # vanish in a puff of smoke.
9104 if test "X${COLLECT_NAMES+set}" != Xset; then
9106 export COLLECT_NAMES
9112 # We use sed instead of cat because bash on DJGPP gets confused if
9113 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9114 # text mode, it properly converts lines to CR/LF. This bash problem
9115 # is reportedly fixed, but why not run on old versions too?
9116 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9118 mv -f "$cfgfile" "$ofile" || \
9119 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9123 # If there is no Makefile yet, we rely on a make rule to execute
9124 # `config.status --recheck' to rerun these tests and create the
9125 # libtool script then.
9126 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9127 if test -f "$ltmain_in"; then
9128 test -f Makefile && make "$ltmain"
9134 ac_cpp='$CPP $CPPFLAGS'
9135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9142 # Check whether --with-tags or --without-tags was given.
9143 if test "${with_tags+set}" = set; then
9144 withval="$with_tags"
9148 if test -f "$ltmain" && test -n "$tagnames"; then
9149 if test ! -f "${ofile}"; then
9150 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9151 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9154 if test -z "$LTCC"; then
9155 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9156 if test -z "$LTCC"; then
9157 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9158 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9161 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9165 # Extract list of available tagged configurations in $ofile.
9166 # Note that this assumes the entire list is on one line.
9167 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9169 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9170 for tagname in $tagnames; do
9172 # Check whether tagname contains only valid characters
9173 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9175 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9176 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9177 { (exit 1); exit 1; }; }
9181 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9183 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9184 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9185 { (exit 1); exit 1; }; }
9188 # Update the list of available tags.
9189 if test -n "$tagname"; then
9190 echo appending configuration tag \"$tagname\" to $ofile
9194 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9196 ac_cpp='$CXXCPP $CPPFLAGS'
9197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9204 archive_cmds_need_lc_CXX=no
9205 allow_undefined_flag_CXX=
9206 always_export_symbols_CXX=no
9207 archive_expsym_cmds_CXX=
9208 export_dynamic_flag_spec_CXX=
9209 hardcode_direct_CXX=no
9210 hardcode_libdir_flag_spec_CXX=
9211 hardcode_libdir_flag_spec_ld_CXX=
9212 hardcode_libdir_separator_CXX=
9213 hardcode_minus_L_CXX=no
9214 hardcode_automatic_CXX=no
9216 module_expsym_cmds_CXX=
9217 link_all_deplibs_CXX=unknown
9218 old_archive_cmds_CXX=$old_archive_cmds
9219 no_undefined_flag_CXX=
9220 whole_archive_flag_spec_CXX=
9221 enable_shared_with_static_runtimes_CXX=no
9223 # Dependencies to place before and after the object being linked:
9225 postdep_objects_CXX=
9228 compiler_lib_search_path_CXX=
9230 # Source file extension for C++ test sources.
9233 # Object file extension for compiled C++ test sources.
9237 # Code to be used in simple compile tests
9238 lt_simple_compile_test_code="int some_variable = 0;\n"
9240 # Code to be used in simple link tests
9241 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9243 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9245 # If no C compiler was specified, use CC.
9248 # Allow CC to be a program name with arguments.
9252 # Allow CC to be a program name with arguments.
9257 lt_save_with_gnu_ld=$with_gnu_ld
9258 lt_save_path_LD=$lt_cv_path_LD
9259 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9260 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9262 unset lt_cv_prog_gnu_ld
9264 if test -n "${lt_cv_path_LDCXX+set}"; then
9265 lt_cv_path_LD=$lt_cv_path_LDCXX
9269 test -z "${LDCXX+set}" || LD=$LDCXX
9273 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9275 # We don't want -fno-exception wen compiling C++ code, so set the
9276 # no_builtin_flag separately
9277 if test "$GXX" = yes; then
9278 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9280 lt_prog_compiler_no_builtin_flag_CXX=
9283 if test "$GXX" = yes; then
9284 # Set up default GNU C++ configuration
9287 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9288 if test "${with_gnu_ld+set}" = set; then
9289 withval="$with_gnu_ld"
9290 test "$withval" = no || with_gnu_ld=yes
9295 if test "$GCC" = yes; then
9296 # Check if gcc -print-prog-name=ld gives a path.
9297 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9298 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9301 # gcc leaves a trailing carriage return which upsets mingw
9302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9307 # Accept absolute paths.
9309 re_direlt='/[^/][^/]*/\.\./'
9310 # Canonicalize the pathname of ld
9311 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9312 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9313 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9315 test -z "$LD" && LD="$ac_prog"
9318 # If it fails, then pretend we aren't using GCC.
9322 # If it is relative, then search for the first ld in PATH.
9326 elif test "$with_gnu_ld" = yes; then
9327 echo "$as_me:$LINENO: checking for GNU ld" >&5
9328 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9330 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9331 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9333 if test "${lt_cv_path_LD+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9336 if test -z "$LD"; then
9337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9338 for ac_dir in $PATH; do
9340 test -z "$ac_dir" && ac_dir=.
9341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9342 lt_cv_path_LD="$ac_dir/$ac_prog"
9343 # Check to see if the program is GNU ld. I'd rather use --version,
9344 # but apparently some GNU ld's only accept -v.
9345 # Break only if it was the GNU/non-GNU ld that we prefer.
9346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9347 *GNU* | *'with BFD'*)
9348 test "$with_gnu_ld" != no && break
9351 test "$with_gnu_ld" != yes && break
9358 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9363 if test -n "$LD"; then
9364 echo "$as_me:$LINENO: result: $LD" >&5
9365 echo "${ECHO_T}$LD" >&6
9367 echo "$as_me:$LINENO: result: no" >&5
9368 echo "${ECHO_T}no" >&6
9370 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9371 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9372 { (exit 1); exit 1; }; }
9373 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9374 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9375 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9379 case `$LD -v 2>&1 </dev/null` in
9380 *GNU* | *'with BFD'*)
9381 lt_cv_prog_gnu_ld=yes
9384 lt_cv_prog_gnu_ld=no
9388 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9389 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9390 with_gnu_ld=$lt_cv_prog_gnu_ld
9394 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9395 # archiving commands below assume that GNU ld is being used.
9396 if test "$with_gnu_ld" = yes; then
9397 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9400 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9401 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9403 # If archive_cmds runs LD, not CC, wlarc should be empty
9404 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9405 # investigate it a little bit more. (MM)
9408 # ancient GNU ld didn't support --whole-archive et. al.
9409 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9410 grep 'no-whole-archive' > /dev/null; then
9411 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9413 whole_archive_flag_spec_CXX=
9419 # A generic and very simple default shared library creation
9420 # command for GNU C++ for the case where it uses the native
9421 # linker, instead of GNU ld. If possible, this setting should
9422 # overridden to take advantage of the native linker features on
9423 # the platform it is being used on.
9424 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9427 # Commands to make compiler produce verbose output that lists
9428 # what "hidden" libraries, object files and flags are used when
9429 # linking a shared library.
9430 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9438 # PORTME: fill in a description of your system's C++ link characteristics
9439 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9440 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9444 # FIXME: insert proper C++ library support
9448 if test "$host_cpu" = ia64; then
9449 # On IA64, the linker does run time linking by default, so we don't
9450 # have to do anything special.
9451 aix_use_runtimelinking=no
9452 exp_sym_flag='-Bexport'
9455 aix_use_runtimelinking=no
9457 # Test if we are trying to use run time linking or normal
9458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9459 # need to do runtime linking.
9460 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9461 for ld_flag in $LDFLAGS; do
9464 aix_use_runtimelinking=yes
9471 exp_sym_flag='-bexport'
9472 no_entry_flag='-bnoentry'
9475 # When large executables or shared objects are built, AIX ld can
9476 # have problems creating the table of contents. If linking a library
9477 # or program results in "error TOC overflow" add -mminimal-toc to
9478 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9479 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9482 hardcode_direct_CXX=yes
9483 hardcode_libdir_separator_CXX=':'
9484 link_all_deplibs_CXX=yes
9486 if test "$GXX" = yes; then
9487 case $host_os in aix4.012|aix4.012.*)
9488 # We only want to do this on AIX 4.2 and lower, the check
9489 # below for broken collect2 doesn't work under 4.3+
9490 collect2name=`${CC} -print-prog-name=collect2`
9491 if test -f "$collect2name" && \
9492 strings "$collect2name" | grep resolve_lib_name >/dev/null
9494 # We have reworked collect2
9495 hardcode_direct_CXX=yes
9497 # We have old collect2
9498 hardcode_direct_CXX=unsupported
9499 # It fails to find uninstalled libraries when the uninstalled
9500 # path is not listed in the libpath. Setting hardcode_minus_L
9501 # to unsupported forces relinking
9502 hardcode_minus_L_CXX=yes
9503 hardcode_libdir_flag_spec_CXX='-L$libdir'
9504 hardcode_libdir_separator_CXX=
9507 shared_flag='-shared'
9510 if test "$host_cpu" = ia64; then
9511 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9512 # chokes on -Wl,-G. The following line is correct:
9515 if test "$aix_use_runtimelinking" = yes; then
9516 shared_flag='${wl}-G'
9518 shared_flag='${wl}-bM:SRE'
9523 # It seems that -bexpall does not export symbols beginning with
9524 # underscore (_), so it is better to generate a list of symbols to export.
9525 always_export_symbols_CXX=yes
9526 if test "$aix_use_runtimelinking" = yes; then
9527 # Warning - without using the other runtime loading flags (-brtl),
9528 # -berok will link without error, but may produce a broken library.
9529 allow_undefined_flag_CXX='-berok'
9530 # Determine the default libpath from the value encoded in an empty executable.
9531 cat >conftest.$ac_ext <<_ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9546 rm -f conftest.$ac_objext conftest$ac_exeext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548 (eval $ac_link) 2>conftest.er1
9550 grep -v '^ *+' conftest.er1 >conftest.err
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try='test -z "$ac_cxx_werror_flag"
9556 || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9571 # Check for a 64-bit object if we didn't find anything.
9572 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9579 rm -f conftest.err conftest.$ac_objext \
9580 conftest$ac_exeext conftest.$ac_ext
9581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9583 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9585 archive_expsym_cmds_CXX="\$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"
9587 if test "$host_cpu" = ia64; then
9588 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9589 allow_undefined_flag_CXX="-z nodefs"
9590 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9592 # Determine the default libpath from the value encoded in an empty executable.
9593 cat >conftest.$ac_ext <<_ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9610 (eval $ac_link) 2>conftest.er1
9612 grep -v '^ *+' conftest.er1 >conftest.err
9614 cat conftest.err >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } &&
9617 { ac_try='test -z "$ac_cxx_werror_flag"
9618 || test ! -s conftest.err'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; } &&
9624 { ac_try='test -s conftest$ac_exeext'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; }; then
9631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9633 # Check for a 64-bit object if we didn't find anything.
9634 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9641 rm -f conftest.err conftest.$ac_objext \
9642 conftest$ac_exeext conftest.$ac_ext
9643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9645 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9646 # Warning - without using the other run time loading flags,
9647 # -berok will link without error, but may produce a broken library.
9648 no_undefined_flag_CXX=' ${wl}-bernotok'
9649 allow_undefined_flag_CXX=' ${wl}-berok'
9650 # -bexpall does not export symbols beginning with underscore (_)
9651 always_export_symbols_CXX=yes
9652 # Exported symbols can be pulled into shared objects from archives
9653 whole_archive_flag_spec_CXX=' '
9654 archive_cmds_need_lc_CXX=yes
9655 # This is similar to how AIX traditionally builds it's shared libraries.
9656 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9661 case $cc_basename in
9663 # FIXME: insert proper C++ library support
9669 cygwin* | mingw* | pw32*)
9670 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9671 # as there is no search path for DLLs.
9672 hardcode_libdir_flag_spec_CXX='-L$libdir'
9673 allow_undefined_flag_CXX=unsupported
9674 always_export_symbols_CXX=no
9675 enable_shared_with_static_runtimes_CXX=yes
9677 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9678 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9679 # If the export-symbols file already is a .def file (1st line
9680 # is EXPORTS), use it as is; otherwise, prepend...
9681 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9682 cp $export_symbols $output_objdir/$soname.def;
9684 echo EXPORTS > $output_objdir/$soname.def;
9685 cat $export_symbols >> $output_objdir/$soname.def;
9687 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9693 darwin* | rhapsody*)
9694 if test "$GXX" = yes; then
9695 archive_cmds_need_lc_CXX=no
9697 rhapsody* | darwin1.[012])
9698 allow_undefined_flag_CXX='-undefined suppress'
9701 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9702 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9704 case ${MACOSX_DEPLOYMENT_TARGET} in
9706 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9709 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9715 lt_int_apple_cc_single_mod=no
9716 output_verbose_link_cmd='echo'
9717 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9718 lt_int_apple_cc_single_mod=yes
9720 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9721 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9723 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9725 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9727 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9728 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9729 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9731 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9733 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9734 hardcode_direct_CXX=no
9735 hardcode_automatic_CXX=yes
9736 hardcode_shlibpath_var_CXX=unsupported
9737 whole_archive_flag_spec_CXX='-all_load $convenience'
9738 link_all_deplibs_CXX=yes
9745 case $cc_basename in
9747 # FIXME: insert proper C++ library support
9751 # Green Hills C++ Compiler
9752 # FIXME: insert proper C++ library support
9756 # FIXME: insert proper C++ library support
9762 # C++ shared libraries reported to be fairly broken before switch to ELF
9766 archive_cmds_need_lc_CXX=no
9768 freebsd* | kfreebsd*-gnu)
9769 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9776 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9777 hardcode_libdir_separator_CXX=:
9778 export_dynamic_flag_spec_CXX='${wl}-E'
9779 hardcode_direct_CXX=yes
9780 hardcode_minus_L_CXX=yes # Not in the search PATH,
9781 # but as the default
9782 # location of the library.
9784 case $cc_basename in
9786 # FIXME: insert proper C++ library support
9790 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9791 # Commands to make compiler produce verbose output that lists
9792 # what "hidden" libraries, object files and flags are used when
9793 # linking a shared library.
9795 # There doesn't appear to be a way to prevent this compiler from
9796 # explicitly linking system object files so we need to strip them
9797 # from the output so that they don't get included in the library
9799 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9802 if test "$GXX" = yes; then
9803 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9805 # FIXME: insert proper C++ library support
9812 if test $with_gnu_ld = no; then
9815 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9816 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9817 hardcode_libdir_separator_CXX=:
9820 hardcode_libdir_flag_spec_CXX='-L$libdir'
9823 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9824 hardcode_libdir_separator_CXX=:
9825 export_dynamic_flag_spec_CXX='${wl}-E'
9831 hardcode_direct_CXX=no
9832 hardcode_shlibpath_var_CXX=no
9835 hardcode_direct_CXX=no
9836 hardcode_shlibpath_var_CXX=no
9837 hardcode_minus_L_CXX=yes # Not in the search PATH,
9838 # but as the default
9839 # location of the library.
9842 hardcode_direct_CXX=yes
9843 hardcode_minus_L_CXX=yes # Not in the search PATH,
9844 # but as the default
9845 # location of the library.
9849 case $cc_basename in
9851 # FIXME: insert proper C++ library support
9857 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9860 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9863 # Commands to make compiler produce verbose output that lists
9864 # what "hidden" libraries, object files and flags are used when
9865 # linking a shared library.
9867 # There doesn't appear to be a way to prevent this compiler from
9868 # explicitly linking system object files so we need to strip them
9869 # from the output so that they don't get included in the library
9871 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9874 if test "$GXX" = yes; then
9875 if test $with_gnu_ld = no; then
9878 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9881 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9886 # FIXME: insert proper C++ library support
9893 case $cc_basename in
9896 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9898 # Archives containing C++ object files must be created using
9899 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9900 # necessary to make sure instantiated templates are included
9902 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9905 if test "$GXX" = yes; then
9906 if test "$with_gnu_ld" = no; then
9907 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9909 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
9912 link_all_deplibs_CXX=yes
9915 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9916 hardcode_libdir_separator_CXX=:
9919 case $cc_basename in
9921 # Kuck and Associates, Inc. (KAI) C++ Compiler
9923 # KCC will only create a shared library if the output file
9924 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9925 # to its proper name (with version) after linking.
9926 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9927 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9928 # Commands to make compiler produce verbose output that lists
9929 # what "hidden" libraries, object files and flags are used when
9930 # linking a shared library.
9932 # There doesn't appear to be a way to prevent this compiler from
9933 # explicitly linking system object files so we need to strip them
9934 # from the output so that they don't get included in the library
9936 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9938 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9939 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9941 # Archives containing C++ object files must be created using
9942 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9943 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9948 archive_cmds_need_lc_CXX=no
9949 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9950 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9951 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9952 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9953 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9957 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9958 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9960 runpath_var=LD_RUN_PATH
9961 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9962 hardcode_libdir_separator_CXX=:
9964 # Commands to make compiler produce verbose output that lists
9965 # what "hidden" libraries, object files and flags are used when
9966 # linking a shared library.
9968 # There doesn't appear to be a way to prevent this compiler from
9969 # explicitly linking system object files so we need to strip them
9970 # from the output so that they don't get included in the library
9972 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9977 # FIXME: insert proper C++ library support
9981 # FIXME: insert proper C++ library support
9985 case $cc_basename in
9987 # FIXME: insert proper C++ library support
9991 # FIXME: insert proper C++ library support
9997 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9998 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10000 hardcode_libdir_flag_spec_CXX='-R$libdir'
10001 hardcode_direct_CXX=yes
10002 hardcode_shlibpath_var_CXX=no
10004 # Workaround some broken pre-1.5 toolchains
10005 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10008 case $cc_basename in
10010 # Kuck and Associates, Inc. (KAI) C++ Compiler
10012 # KCC will only create a shared library if the output file
10013 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10014 # to its proper name (with version) after linking.
10015 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10017 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10018 hardcode_libdir_separator_CXX=:
10020 # Archives containing C++ object files must be created using
10021 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10022 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10026 # Rational C++ 2.4.1
10027 # FIXME: insert proper C++ library support
10031 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10032 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10034 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10035 hardcode_libdir_separator_CXX=:
10037 # Commands to make compiler produce verbose output that lists
10038 # what "hidden" libraries, object files and flags are used when
10039 # linking a shared library.
10041 # There doesn't appear to be a way to prevent this compiler from
10042 # explicitly linking system object files so we need to strip them
10043 # from the output so that they don't get included in the library
10045 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10048 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10049 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10050 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10052 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10053 hardcode_libdir_separator_CXX=:
10055 # Commands to make compiler produce verbose output that lists
10056 # what "hidden" libraries, object files and flags are used when
10057 # linking a shared library.
10058 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10061 # FIXME: insert proper C++ library support
10068 case $cc_basename in
10070 # Kuck and Associates, Inc. (KAI) C++ Compiler
10072 # KCC will only create a shared library if the output file
10073 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10074 # to its proper name (with version) after linking.
10075 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10077 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10078 hardcode_libdir_separator_CXX=:
10080 # Archives containing C++ object files must be created using
10081 # the KAI C++ compiler.
10082 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10085 # Rational C++ 2.4.1
10086 # FIXME: insert proper C++ library support
10090 allow_undefined_flag_CXX=' -expect_unresolved \*'
10091 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10092 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10093 echo "-hidden">> $lib.exp~
10094 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10097 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10098 hardcode_libdir_separator_CXX=:
10100 # Commands to make compiler produce verbose output that lists
10101 # what "hidden" libraries, object files and flags are used when
10102 # linking a shared library.
10104 # There doesn't appear to be a way to prevent this compiler from
10105 # explicitly linking system object files so we need to strip them
10106 # from the output so that they don't get included in the library
10108 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10111 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10112 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10113 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10115 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10116 hardcode_libdir_separator_CXX=:
10118 # Commands to make compiler produce verbose output that lists
10119 # what "hidden" libraries, object files and flags are used when
10120 # linking a shared library.
10121 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10124 # FIXME: insert proper C++ library support
10131 # FIXME: insert proper C++ library support
10135 archive_cmds_need_lc_CXX=no
10136 case $cc_basename in
10138 # FIXME: insert proper C++ library support
10142 # FIXME: insert proper C++ library support
10148 case $cc_basename in
10151 # FIXME: insert proper C++ library support
10156 # FIXME: insert proper C++ library support
10160 # FIXME: insert proper C++ library support
10166 case $cc_basename in
10168 # Sun C++ 4.2, 5.x and Centerline C++
10169 no_undefined_flag_CXX=' -zdefs'
10170 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10171 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10172 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10174 hardcode_libdir_flag_spec_CXX='-R$libdir'
10175 hardcode_shlibpath_var_CXX=no
10177 solaris2.0-5 | solaris2.0-5.*) ;;
10179 # The C++ compiler is used as linker so we must use $wl
10180 # flag to pass the commands to the underlying system
10182 # Supported since Solaris 2.6 (maybe 2.5.1?)
10183 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10186 link_all_deplibs_CXX=yes
10188 # Commands to make compiler produce verbose output that lists
10189 # what "hidden" libraries, object files and flags are used when
10190 # linking a shared library.
10192 # There doesn't appear to be a way to prevent this compiler from
10193 # explicitly linking system object files so we need to strip them
10194 # from the output so that they don't get included in the library
10196 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10198 # Archives containing C++ object files must be created using
10199 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10200 # necessary to make sure instantiated templates are included
10202 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10205 # Green Hills C++ Compiler
10206 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10208 # The C++ compiler must be used to create the archive.
10209 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10212 # GNU C++ compiler with Solaris linker
10213 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10214 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10215 if $CC --version | grep -v '^2\.7' > /dev/null; then
10216 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10217 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10218 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10220 # Commands to make compiler produce verbose output that lists
10221 # what "hidden" libraries, object files and flags are used when
10222 # linking a shared library.
10223 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10225 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10227 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10228 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10229 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10231 # Commands to make compiler produce verbose output that lists
10232 # what "hidden" libraries, object files and flags are used when
10233 # linking a shared library.
10234 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10237 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10242 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10243 archive_cmds_need_lc_CXX=no
10246 case $cc_basename in
10248 # NonStop-UX NCC 3.20
10249 # FIXME: insert proper C++ library support
10253 # FIXME: insert proper C++ library support
10259 # FIXME: insert proper C++ library support
10263 # FIXME: insert proper C++ library support
10267 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10268 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10269 test "$ld_shlibs_CXX" = no && can_build_shared=no
10275 cat > conftest.$ac_ext <<EOF
10279 Foo (void) { a = 0; }
10285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286 (eval $ac_compile) 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; then
10290 # Parse the compiler output and extract the necessary
10291 # objects, libraries and library flags.
10293 # Sentinel used to keep track of whether or not we are before
10294 # the conftest object file.
10295 pre_test_object_deps_done=no
10297 # The `*' in the case matches for architectures that use `case' in
10298 # $output_verbose_cmd can trigger glob expansion during the loop
10299 # eval without this substitution.
10300 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10302 for p in `eval $output_verbose_link_cmd`; do
10306 # Some compilers place space between "-{L,R}" and the path.
10307 # Remove the space.
10308 if test $p = "-L" \
10309 || test $p = "-R"; then
10316 if test "$pre_test_object_deps_done" = no; then
10319 # Internal compiler library paths should come after those
10320 # provided the user. The postdeps already come after the
10321 # user supplied libs so there is no need to process them.
10322 if test -z "$compiler_lib_search_path_CXX"; then
10323 compiler_lib_search_path_CXX="${prev}${p}"
10325 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10328 # The "-l" case would never come before the object being
10329 # linked, so don't bother handling this case.
10332 if test -z "$postdeps_CXX"; then
10333 postdeps_CXX="${prev}${p}"
10335 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10341 # This assumes that the test object file only shows up
10342 # once in the compiler output.
10343 if test "$p" = "conftest.$objext"; then
10344 pre_test_object_deps_done=yes
10348 if test "$pre_test_object_deps_done" = no; then
10349 if test -z "$predep_objects_CXX"; then
10350 predep_objects_CXX="$p"
10352 predep_objects_CXX="$predep_objects_CXX $p"
10355 if test -z "$postdep_objects_CXX"; then
10356 postdep_objects_CXX="$p"
10358 postdep_objects_CXX="$postdep_objects_CXX $p"
10363 *) ;; # Ignore the rest.
10371 echo "libtool.m4: error: problem compiling CXX test program"
10374 $rm -f confest.$objext
10376 case " $postdeps_CXX " in
10377 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10380 lt_prog_compiler_wl_CXX=
10381 lt_prog_compiler_pic_CXX=
10382 lt_prog_compiler_static_CXX=
10384 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10385 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10387 # C++ specific cases for pic, static, wl, etc.
10388 if test "$GXX" = yes; then
10389 lt_prog_compiler_wl_CXX='-Wl,'
10390 lt_prog_compiler_static_CXX='-static'
10394 # All AIX code is PIC.
10395 if test "$host_cpu" = ia64; then
10396 # AIX 5 now supports IA64 processor
10397 lt_prog_compiler_static_CXX='-Bstatic'
10401 # FIXME: we need at least 68020 code to build shared libraries, but
10402 # adding the `-m68020' flag to GCC prevents building anything better,
10404 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10406 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10407 # PIC is the default for these OSes.
10409 mingw* | os2* | pw32*)
10410 # This hack is so that the source file can tell whether it is being
10411 # built for inclusion in a dll (and should export symbols for example).
10412 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10414 darwin* | rhapsody*)
10415 # PIC is the default on this platform
10416 # Common symbols not allowed in MH_DYLIB files
10417 lt_prog_compiler_pic_CXX='-fno-common'
10420 # DJGPP does not support shared libraries at all
10421 lt_prog_compiler_pic_CXX=
10424 if test -d /usr/nec; then
10425 lt_prog_compiler_pic_CXX=-Kconform_pic
10429 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10430 # not for PA HP-UX.
10431 case "$host_cpu" in
10435 lt_prog_compiler_pic_CXX='-fPIC'
10440 lt_prog_compiler_pic_CXX='-fPIC'
10446 # All AIX code is PIC.
10447 if test "$host_cpu" = ia64; then
10448 # AIX 5 now supports IA64 processor
10449 lt_prog_compiler_static_CXX='-Bstatic'
10451 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10455 case $cc_basename in
10457 # Green Hills C++ Compiler
10458 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10463 case $cc_basename in
10465 lt_prog_compiler_pic_CXX='-KPIC'
10468 # Green Hills C++ Compiler
10469 lt_prog_compiler_pic_CXX='-pic'
10475 freebsd* | kfreebsd*-gnu)
10476 # FreeBSD uses GNU C++
10478 hpux9* | hpux10* | hpux11*)
10479 case $cc_basename in
10481 lt_prog_compiler_wl_CXX='-Wl,'
10482 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10483 if test "$host_cpu" != ia64; then
10484 lt_prog_compiler_pic_CXX='+Z'
10488 lt_prog_compiler_wl_CXX='-Wl,'
10489 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10490 case "$host_cpu" in
10495 lt_prog_compiler_pic_CXX='+Z'
10503 irix5* | irix6* | nonstopux*)
10504 case $cc_basename in
10506 lt_prog_compiler_wl_CXX='-Wl,'
10507 lt_prog_compiler_static_CXX='-non_shared'
10508 # CC pic flag -KPIC is the default.
10515 case $cc_basename in
10518 lt_prog_compiler_wl_CXX='--backend -Wl,'
10519 lt_prog_compiler_pic_CXX='-fPIC'
10523 lt_prog_compiler_wl_CXX='-Wl,'
10524 lt_prog_compiler_pic_CXX='-KPIC'
10525 lt_prog_compiler_static_CXX='-static'
10529 # Make sure the PIC flag is empty. It appears that all Alpha
10530 # Linux and Compaq Tru64 Unix objects are PIC.
10531 lt_prog_compiler_pic_CXX=
10532 lt_prog_compiler_static_CXX='-non_shared'
10543 case $cc_basename in
10545 lt_prog_compiler_pic_CXX='-W c,exportall'
10553 osf3* | osf4* | osf5*)
10554 case $cc_basename in
10556 lt_prog_compiler_wl_CXX='--backend -Wl,'
10559 # Rational C++ 2.4.1
10560 lt_prog_compiler_pic_CXX='-pic'
10563 # Digital/Compaq C++
10564 lt_prog_compiler_wl_CXX='-Wl,'
10565 # Make sure the PIC flag is empty. It appears that all Alpha
10566 # Linux and Compaq Tru64 Unix objects are PIC.
10567 lt_prog_compiler_pic_CXX=
10568 lt_prog_compiler_static_CXX='-non_shared'
10577 case $cc_basename in
10579 lt_prog_compiler_pic_CXX='-fPIC'
10586 case $cc_basename in
10588 # Sun C++ 4.2, 5.x and Centerline C++
10589 lt_prog_compiler_pic_CXX='-KPIC'
10590 lt_prog_compiler_static_CXX='-Bstatic'
10591 lt_prog_compiler_wl_CXX='-Qoption ld '
10594 # Green Hills C++ Compiler
10595 lt_prog_compiler_pic_CXX='-PIC'
10602 case $cc_basename in
10605 lt_prog_compiler_pic_CXX='-pic'
10606 lt_prog_compiler_static_CXX='-Bstatic'
10610 lt_prog_compiler_pic_CXX='-pic'
10617 case $cc_basename in
10619 # NonStop-UX NCC 3.20
10620 lt_prog_compiler_pic_CXX='-KPIC'
10631 lt_prog_compiler_can_build_shared_CXX=no
10636 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10637 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10640 # Check to make sure the PIC flag actually works.
10642 if test -n "$lt_prog_compiler_pic_CXX"; then
10644 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10645 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10646 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 lt_prog_compiler_pic_works_CXX=no
10650 ac_outfile=conftest.$ac_objext
10651 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10652 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10653 # Insert the option either (1) after the last *FLAGS variable, or
10654 # (2) before a word containing "conftest.", or (3) at the end.
10655 # Note that $ac_compile itself does not contain backslashes and begins
10656 # with a dollar sign (not a hyphen), so the echo should work correctly.
10657 # The option is referenced via a variable to avoid confusing sed.
10658 lt_compile=`echo "$ac_compile" | $SED \
10659 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10661 -e 's:$: $lt_compiler_flag:'`
10662 (eval echo "\"\$as_me:10662: $lt_compile\"" >&5)
10663 (eval "$lt_compile" 2>conftest.err)
10665 cat conftest.err >&5
10666 echo "$as_me:10666: \$? = $ac_status" >&5
10667 if (exit $ac_status) && test -s "$ac_outfile"; then
10668 # The compiler can only warn and ignore the option if not recognized
10669 # So say no if there are warnings
10670 if test ! -s conftest.err; then
10671 lt_prog_compiler_pic_works_CXX=yes
10677 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10678 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10680 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10681 case $lt_prog_compiler_pic_CXX in
10683 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10686 lt_prog_compiler_pic_CXX=
10687 lt_prog_compiler_can_build_shared_CXX=no
10692 # For platforms which do not support PIC, -DPIC is meaningless:
10694 lt_prog_compiler_pic_CXX=
10697 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10701 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10702 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10703 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 lt_cv_prog_compiler_c_o_CXX=no
10707 $rm -r conftest 2>/dev/null
10711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10713 lt_compiler_flag="-o out/conftest2.$ac_objext"
10714 # Insert the option either (1) after the last *FLAGS variable, or
10715 # (2) before a word containing "conftest.", or (3) at the end.
10716 # Note that $ac_compile itself does not contain backslashes and begins
10717 # with a dollar sign (not a hyphen), so the echo should work correctly.
10718 lt_compile=`echo "$ac_compile" | $SED \
10719 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10721 -e 's:$: $lt_compiler_flag:'`
10722 (eval echo "\"\$as_me:10722: $lt_compile\"" >&5)
10723 (eval "$lt_compile" 2>out/conftest.err)
10725 cat out/conftest.err >&5
10726 echo "$as_me:10726: \$? = $ac_status" >&5
10727 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10729 # The compiler can only warn and ignore the option if not recognized
10730 # So say no if there are warnings
10731 if test ! -s out/conftest.err; then
10732 lt_cv_prog_compiler_c_o_CXX=yes
10737 # SGI C++ compiler will create directory out/ii_files/ for
10738 # template instantiation
10739 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10740 $rm out/* && rmdir out
10746 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10747 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10750 hard_links="nottested"
10751 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10752 # do not overwrite the value of need_locks provided by the user
10753 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10754 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10759 ln conftest.a conftest.b 2>&5 || hard_links=no
10760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10761 echo "$as_me:$LINENO: result: $hard_links" >&5
10762 echo "${ECHO_T}$hard_links" >&6
10763 if test "$hard_links" = no; then
10764 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10765 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10772 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10773 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10775 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10778 # If we're using GNU nm, then we don't want the "-C" option.
10779 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10780 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10781 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10783 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10787 export_symbols_cmds_CXX="$ltdll_cmds"
10790 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10793 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10797 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10798 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10799 test "$ld_shlibs_CXX" = no && can_build_shared=no
10801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10802 if test "$GCC" = yes; then
10803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10807 # Do we need to explicitly link libc?
10809 case "x$archive_cmds_need_lc_CXX" in
10811 # Assume -lc should be added
10812 archive_cmds_need_lc_CXX=yes
10814 if test "$enable_shared" = yes && test "$GCC" = yes; then
10815 case $archive_cmds_CXX in
10817 # FIXME: we may have to deal with multi-command sequences.
10820 # Test whether the compiler implicitly links with -lc since on some
10821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10822 # to ld, don't add -lc before -lgcc.
10823 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10824 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10829 (eval $ac_compile) 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } 2>conftest.err; then
10835 libobjs=conftest.$ac_objext
10837 wl=$lt_prog_compiler_wl_CXX
10843 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10844 allow_undefined_flag_CXX=
10845 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10846 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }
10851 archive_cmds_need_lc_CXX=no
10853 archive_cmds_need_lc_CXX=yes
10855 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10857 cat conftest.err 1>&5
10860 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10861 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10868 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10869 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10870 library_names_spec=
10871 libname_spec='lib$name'
10875 postuninstall_cmds=
10879 shlibpath_overrides_runpath=unknown
10881 dynamic_linker="$host_os ld.so"
10882 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10883 if test "$GCC" = yes; then
10884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10885 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10886 # if the path contains ";" then we assume it to be the separator
10887 # otherwise default to the standard path separator (i.e. ":") - it is
10888 # assumed that no part of a normal pathname contains ";" but that should
10889 # okay in the real world where ";" in dirpaths is itself problematic.
10890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10897 need_lib_prefix=unknown
10898 hardcode_into_libs=no
10900 # when you set need_version to no, make sure it does not cause -set_version
10901 # flags to be left without arguments
10902 need_version=unknown
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10908 shlibpath_var=LIBPATH
10910 # AIX 3 has no versioning support, so we append a major version to the name.
10911 soname_spec='${libname}${release}${shared_ext}$major'
10918 hardcode_into_libs=yes
10919 if test "$host_cpu" = ia64; then
10920 # AIX 5 supports IA64
10921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10922 shlibpath_var=LD_LIBRARY_PATH
10924 # With GCC up to 2.95.x, collect2 would create an import file
10925 # for dependence libraries. The import file would start with
10926 # the line `#! .'. This would cause the generated library to
10927 # depend on `.', always an invalid library. This was fixed in
10928 # development snapshots of GCC prior to 3.0.
10930 aix4 | aix4.[01] | aix4.[01].*)
10931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10933 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10936 can_build_shared=no
10940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10941 # soname into executable. Probably we can add versioning support to
10942 # collect2, so additional links can be useful in future.
10943 if test "$aix_use_runtimelinking" = yes; then
10944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10945 # instead of lib<name>.a to let people know that these are not
10946 # typical AIX shared libraries.
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 # We preserve .a as extension for shared libraries through AIX4.2
10950 # and later when we are not doing run time linking.
10951 library_names_spec='${libname}${release}.a $libname.a'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10954 shlibpath_var=LIBPATH
10959 library_names_spec='$libname.ixlibrary $libname.a'
10960 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10961 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'
10965 library_names_spec='${libname}${shared_ext}'
10966 dynamic_linker="$host_os ld.so"
10967 shlibpath_var=LIBRARY_PATH
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 soname_spec='${libname}${release}${shared_ext}$major'
10975 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10978 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10979 # the default ld.so.conf also contains /usr/contrib/lib and
10980 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10981 # libtool to hard-code these into programs
10984 cygwin* | mingw* | pw32*)
10985 version_type=windows
10990 case $GCC,$host_os in
10991 yes,cygwin* | yes,mingw* | yes,pw32*)
10992 library_names_spec='$libname.dll.a'
10993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10994 postinstall_cmds='base_file=`basename \${file}`~
10995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10996 dldir=$destdir/`dirname \$dlpath`~
10997 test -d \$dldir || mkdir -p \$dldir~
10998 $install_prog $dir/$dlname \$dldir/$dlname'
10999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11000 dlpath=$dir/\$dldll~
11002 shlibpath_overrides_runpath=yes
11006 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11007 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11008 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11011 # MinGW DLLs use traditional 'lib' prefix
11012 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11013 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11014 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11015 # It is most probably a Windows format PATH printed by
11016 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11017 # path with ; separators, and with drive letters. We can handle the
11018 # drive letters (cygwin fileutils understands them), so leave them,
11019 # especially as we might pass files found there to a mingw objdump,
11020 # which wouldn't understand a cygwinified path. Ahh.
11021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11027 # pw32 DLLs use 'pw' prefix rather than 'lib'
11028 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11034 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11036 supports_anon_versioning=no
11037 case `$LD -v 2>/dev/null` in
11038 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11039 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11040 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11041 *\ 2.11.*) ;; # other 2.11 versions
11042 *) supports_anon_versioning=yes ;;
11044 if test $supports_anon_versioning = yes; then
11045 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11046 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11047 $echo "local: *; };" >> $output_objdir/$libname.ver~
11048 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11050 $archive_expsym_cmds="$archive_cmds"
11058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11061 dynamic_linker='Win32 ld.exe'
11062 # FIXME: first we should search . and the directory the executable is in
11066 darwin* | rhapsody*)
11067 dynamic_linker="$host_os dyld"
11068 version_type=darwin
11071 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11072 soname_spec='${libname}${release}${major}$shared_ext'
11073 shlibpath_overrides_runpath=yes
11074 shlibpath_var=DYLD_LIBRARY_PATH
11075 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11076 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11077 if test "$GCC" = yes; then
11078 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11080 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11090 soname_spec='${libname}${release}${shared_ext}$major'
11091 shlibpath_var=LD_LIBRARY_PATH
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=no
11106 hardcode_into_libs=yes
11107 dynamic_linker='GNU ld.so'
11111 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11112 version_type=freebsd-$objformat
11113 case $version_type in
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11124 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=yes
11129 freebsd3.01* | freebsdelf3.01*)
11130 shlibpath_overrides_runpath=yes
11131 hardcode_into_libs=yes
11134 shlibpath_overrides_runpath=no
11135 hardcode_into_libs=yes
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 hardcode_into_libs=yes
11150 hpux9* | hpux10* | hpux11*)
11151 # Give a soname corresponding to the major version so that dld.sl refuses to
11152 # link against other versions.
11156 case "$host_cpu" in
11159 hardcode_into_libs=yes
11160 dynamic_linker="$host_os dld.so"
11161 shlibpath_var=LD_LIBRARY_PATH
11162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 if test "X$HPUX_IA64_MODE" = X32; then
11166 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11168 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11170 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11174 hardcode_into_libs=yes
11175 dynamic_linker="$host_os dld.sl"
11176 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179 soname_spec='${libname}${release}${shared_ext}$major'
11180 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11185 dynamic_linker="$host_os dld.sl"
11186 shlibpath_var=SHLIB_PATH
11187 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189 soname_spec='${libname}${release}${shared_ext}$major'
11192 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11193 postinstall_cmds='chmod 555 $lib'
11196 irix5* | irix6* | nonstopux*)
11198 nonstopux*) version_type=nonstopux ;;
11200 if test "$lt_cv_prog_gnu_ld" = yes; then
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11211 irix5* | nonstopux*)
11212 libsuff= shlibsuff=
11215 case $LD in # libtool.m4 will add one of these switches to LD
11216 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11217 libsuff= shlibsuff= libmagic=32-bit;;
11218 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11219 libsuff=32 shlibsuff=N32 libmagic=N32;;
11220 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11221 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11222 *) libsuff= shlibsuff= libmagic=never-match;;
11226 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11227 shlibpath_overrides_runpath=no
11228 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11229 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11230 hardcode_into_libs=yes
11233 # No shared lib support for Linux oldld, aout, or coff.
11234 linux*oldld* | linux*aout* | linux*coff*)
11238 # This must be Linux ELF.
11243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11244 soname_spec='${libname}${release}${shared_ext}$major'
11245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11246 shlibpath_var=LD_LIBRARY_PATH
11247 shlibpath_overrides_runpath=no
11248 # This implies no fast_install, which is unacceptable.
11249 # Some rework will be needed to allow for fast_install
11250 # before this can be enabled.
11251 hardcode_into_libs=yes
11253 # Append ld.so.conf contents to the search path
11254 if test -f /etc/ld.so.conf; then
11255 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11256 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11259 case $host_cpu:$lt_cv_cc_64bit_output in
11260 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
11261 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
11262 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
11266 # We used to test for /lib/ld.so.1 and disable shared libraries on
11267 # powerpc, because MkLinux only supported shared libraries with the
11268 # GNU dynamic linker. Since this was broken with cross compilers,
11269 # most powerpc-linux boxes support dynamic linking these days and
11270 # people can always --disable-shared, the test was removed, and we
11271 # assume the GNU/Linux dynamic linker is in use.
11272 dynamic_linker='GNU/Linux ld.so'
11274 # Find out which ABI we are using (multilib Linux x86_64 hack).
11276 case "$host_cpu" in
11278 echo '#line 11278 "configure"' > conftest.$ac_ext
11279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11280 (eval $ac_compile) 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; then
11284 case `/usr/bin/file conftest.$ac_objext` in
11295 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11296 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 shlibpath_var=LD_LIBRARY_PATH
11306 shlibpath_overrides_runpath=no
11307 hardcode_into_libs=yes
11308 dynamic_linker='GNU ld.so'
11315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11318 dynamic_linker='NetBSD (a.out) ld.so'
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11321 soname_spec='${libname}${release}${shared_ext}$major'
11322 dynamic_linker='NetBSD ld.elf_so'
11324 shlibpath_var=LD_LIBRARY_PATH
11325 shlibpath_overrides_runpath=yes
11326 hardcode_into_libs=yes
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332 shlibpath_var=LD_LIBRARY_PATH
11333 shlibpath_overrides_runpath=yes
11340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341 soname_spec='${libname}${release}${shared_ext}$major'
11342 shlibpath_var=LD_LIBRARY_PATH
11343 shlibpath_overrides_runpath=yes
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11352 shlibpath_var=LD_LIBRARY_PATH
11353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11355 openbsd2.[89] | openbsd2.[89].*)
11356 shlibpath_overrides_runpath=no
11359 shlibpath_overrides_runpath=yes
11363 shlibpath_overrides_runpath=yes
11368 libname_spec='$name'
11371 library_names_spec='$libname${shared_ext} $libname.a'
11372 dynamic_linker='OS/2 ld.exe'
11373 shlibpath_var=LIBPATH
11376 osf3* | osf4* | osf5*)
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 shlibpath_var=LD_LIBRARY_PATH
11383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11391 shlibpath_var=LD_LIBRARY_PATH
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 shlibpath_var=LD_LIBRARY_PATH
11401 shlibpath_overrides_runpath=yes
11402 hardcode_into_libs=yes
11403 # ldd complains unless libraries are executable
11404 postinstall_cmds='chmod +x $lib'
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11410 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11411 shlibpath_var=LD_LIBRARY_PATH
11412 shlibpath_overrides_runpath=yes
11413 if test "$with_gnu_ld" = yes; then
11419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422 soname_spec='${libname}${release}${shared_ext}$major'
11423 shlibpath_var=LD_LIBRARY_PATH
11424 case $host_vendor in
11426 shlibpath_overrides_runpath=no
11428 export_dynamic_flag_spec='${wl}-Blargedynsym'
11429 runpath_var=LD_RUN_PATH
11437 shlibpath_overrides_runpath=no
11438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11444 if test -d /usr/nec ;then
11446 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11447 soname_spec='$libname${shared_ext}.$major'
11448 shlibpath_var=LD_LIBRARY_PATH
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455 soname_spec='${libname}${release}${shared_ext}$major'
11456 shlibpath_var=LD_LIBRARY_PATH
11463 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11464 echo "${ECHO_T}$dynamic_linker" >&6
11465 test "$dynamic_linker" = no && can_build_shared=no
11467 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11468 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11469 hardcode_action_CXX=
11470 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11471 test -n "$runpath_var CXX" || \
11472 test "X$hardcode_automatic_CXX"="Xyes" ; then
11474 # We can hardcode non-existant directories.
11475 if test "$hardcode_direct_CXX" != no &&
11476 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11477 # have to relink, otherwise we might link with an installed library
11478 # when we should be linking with a yet-to-be-installed one
11479 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11480 test "$hardcode_minus_L_CXX" != no; then
11481 # Linking always hardcodes the temporary library directory.
11482 hardcode_action_CXX=relink
11484 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11485 hardcode_action_CXX=immediate
11488 # We cannot hardcode anything, or else we can only hardcode existing
11490 hardcode_action_CXX=unsupported
11492 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11493 echo "${ECHO_T}$hardcode_action_CXX" >&6
11495 if test "$hardcode_action_CXX" = relink; then
11496 # Fast installation is not supported
11497 enable_fast_install=no
11498 elif test "$shlibpath_overrides_runpath" = yes ||
11499 test "$enable_shared" = no; then
11500 # Fast installation is not necessary
11501 enable_fast_install=needless
11506 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11507 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11508 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11509 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11510 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11511 echo "$as_me:$LINENO: result: yes" >&5
11512 echo "${ECHO_T}yes" >&6
11514 # FIXME - insert some real tests, host_os isn't really good enough
11517 if test -n "$STRIP" ; then
11518 striplib="$STRIP -x"
11519 echo "$as_me:$LINENO: result: yes" >&5
11520 echo "${ECHO_T}yes" >&6
11522 echo "$as_me:$LINENO: result: no" >&5
11523 echo "${ECHO_T}no" >&6
11527 echo "$as_me:$LINENO: result: no" >&5
11528 echo "${ECHO_T}no" >&6
11533 if test "x$enable_dlopen" != xyes; then
11534 enable_dlopen=unknown
11535 enable_dlopen_self=unknown
11536 enable_dlopen_self_static=unknown
11543 lt_cv_dlopen="load_add_on"
11545 lt_cv_dlopen_self=yes
11549 lt_cv_dlopen="LoadLibrary"
11554 lt_cv_dlopen="dlopen"
11559 # if libdl is installed we need to link against it
11560 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11561 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11562 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 ac_check_lib_save_LIBS=$LIBS
11567 cat >conftest.$ac_ext <<_ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11574 /* Override any gcc2 internal prototype to avoid an error. */
11578 /* We use char because int might match the return type of a gcc2
11579 builtin and then its argument prototype would still apply. */
11589 rm -f conftest.$ac_objext conftest$ac_exeext
11590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11591 (eval $ac_link) 2>conftest.er1
11593 grep -v '^ *+' conftest.er1 >conftest.err
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -z "$ac_cxx_werror_flag"
11599 || test ! -s conftest.err'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; } &&
11605 { ac_try='test -s conftest$ac_exeext'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; }; then
11611 ac_cv_lib_dl_dlopen=yes
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ac_cv_lib_dl_dlopen=no
11618 rm -f conftest.err conftest.$ac_objext \
11619 conftest$ac_exeext conftest.$ac_ext
11620 LIBS=$ac_check_lib_save_LIBS
11622 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11623 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11624 if test $ac_cv_lib_dl_dlopen = yes; then
11625 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11628 lt_cv_dlopen="dyld"
11630 lt_cv_dlopen_self=yes
11637 echo "$as_me:$LINENO: checking for shl_load" >&5
11638 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11639 if test "${ac_cv_func_shl_load+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 cat >conftest.$ac_ext <<_ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11650 #define shl_load innocuous_shl_load
11652 /* System header to define __stub macros and hopefully few prototypes,
11653 which can conflict with char shl_load (); below.
11654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11655 <limits.h> exists even on freestanding compilers. */
11658 # include <limits.h>
11660 # include <assert.h>
11665 /* Override any gcc2 internal prototype to avoid an error. */
11670 /* We use char because int might match the return type of a gcc2
11671 builtin and then its argument prototype would still apply. */
11673 /* The GNU C library defines this for functions which it implements
11674 to always fail with ENOSYS. Some functions are actually named
11675 something starting with __ and the normal name is an alias. */
11676 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11679 char (*f) () = shl_load;
11688 return f != shl_load;
11693 rm -f conftest.$ac_objext conftest$ac_exeext
11694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11695 (eval $ac_link) 2>conftest.er1
11697 grep -v '^ *+' conftest.er1 >conftest.err
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } &&
11702 { ac_try='test -z "$ac_cxx_werror_flag"
11703 || test ! -s conftest.err'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; } &&
11709 { ac_try='test -s conftest$ac_exeext'
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }; then
11715 ac_cv_func_shl_load=yes
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11720 ac_cv_func_shl_load=no
11722 rm -f conftest.err conftest.$ac_objext \
11723 conftest$ac_exeext conftest.$ac_ext
11725 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11726 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11727 if test $ac_cv_func_shl_load = yes; then
11728 lt_cv_dlopen="shl_load"
11730 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11731 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11732 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 ac_check_lib_save_LIBS=$LIBS
11737 cat >conftest.$ac_ext <<_ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11744 /* Override any gcc2 internal prototype to avoid an error. */
11748 /* We use char because int might match the return type of a gcc2
11749 builtin and then its argument prototype would still apply. */
11759 rm -f conftest.$ac_objext conftest$ac_exeext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11761 (eval $ac_link) 2>conftest.er1
11763 grep -v '^ *+' conftest.er1 >conftest.err
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } &&
11768 { ac_try='test -z "$ac_cxx_werror_flag"
11769 || test ! -s conftest.err'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; } &&
11775 { ac_try='test -s conftest$ac_exeext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_cv_lib_dld_shl_load=yes
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786 ac_cv_lib_dld_shl_load=no
11788 rm -f conftest.err conftest.$ac_objext \
11789 conftest$ac_exeext conftest.$ac_ext
11790 LIBS=$ac_check_lib_save_LIBS
11792 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11793 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11794 if test $ac_cv_lib_dld_shl_load = yes; then
11795 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11797 echo "$as_me:$LINENO: checking for dlopen" >&5
11798 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11799 if test "${ac_cv_func_dlopen+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 cat >conftest.$ac_ext <<_ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11810 #define dlopen innocuous_dlopen
11812 /* System header to define __stub macros and hopefully few prototypes,
11813 which can conflict with char dlopen (); below.
11814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11815 <limits.h> exists even on freestanding compilers. */
11818 # include <limits.h>
11820 # include <assert.h>
11825 /* Override any gcc2 internal prototype to avoid an error. */
11830 /* We use char because int might match the return type of a gcc2
11831 builtin and then its argument prototype would still apply. */
11833 /* The GNU C library defines this for functions which it implements
11834 to always fail with ENOSYS. Some functions are actually named
11835 something starting with __ and the normal name is an alias. */
11836 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11839 char (*f) () = dlopen;
11848 return f != dlopen;
11853 rm -f conftest.$ac_objext conftest$ac_exeext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855 (eval $ac_link) 2>conftest.er1
11857 grep -v '^ *+' conftest.er1 >conftest.err
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_cxx_werror_flag"
11863 || test ! -s conftest.err'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; } &&
11869 { ac_try='test -s conftest$ac_exeext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 ac_cv_func_dlopen=yes
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 ac_cv_func_dlopen=no
11882 rm -f conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11885 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11886 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11887 if test $ac_cv_func_dlopen = yes; then
11888 lt_cv_dlopen="dlopen"
11890 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11891 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11892 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 ac_check_lib_save_LIBS=$LIBS
11897 cat >conftest.$ac_ext <<_ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11904 /* Override any gcc2 internal prototype to avoid an error. */
11908 /* We use char because int might match the return type of a gcc2
11909 builtin and then its argument prototype would still apply. */
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921 (eval $ac_link) 2>conftest.er1
11923 grep -v '^ *+' conftest.er1 >conftest.err
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
11928 { ac_try='test -z "$ac_cxx_werror_flag"
11929 || test ! -s conftest.err'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; } &&
11935 { ac_try='test -s conftest$ac_exeext'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; }; then
11941 ac_cv_lib_dl_dlopen=yes
11943 echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11946 ac_cv_lib_dl_dlopen=no
11948 rm -f conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext conftest.$ac_ext
11950 LIBS=$ac_check_lib_save_LIBS
11952 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11953 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11954 if test $ac_cv_lib_dl_dlopen = yes; then
11955 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11957 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11958 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11959 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 ac_check_lib_save_LIBS=$LIBS
11963 LIBS="-lsvld $LIBS"
11964 cat >conftest.$ac_ext <<_ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11971 /* Override any gcc2 internal prototype to avoid an error. */
11975 /* We use char because int might match the return type of a gcc2
11976 builtin and then its argument prototype would still apply. */
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11988 (eval $ac_link) 2>conftest.er1
11990 grep -v '^ *+' conftest.er1 >conftest.err
11992 cat conftest.err >&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
11995 { ac_try='test -z "$ac_cxx_werror_flag"
11996 || test ! -s conftest.err'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest$ac_exeext'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 ac_cv_lib_svld_dlopen=yes
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12013 ac_cv_lib_svld_dlopen=no
12015 rm -f conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12019 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12020 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12021 if test $ac_cv_lib_svld_dlopen = yes; then
12022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12024 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12025 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12026 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 ac_check_lib_save_LIBS=$LIBS
12031 cat >conftest.$ac_ext <<_ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12038 /* Override any gcc2 internal prototype to avoid an error. */
12042 /* We use char because int might match the return type of a gcc2
12043 builtin and then its argument prototype would still apply. */
12053 rm -f conftest.$ac_objext conftest$ac_exeext
12054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12055 (eval $ac_link) 2>conftest.er1
12057 grep -v '^ *+' conftest.er1 >conftest.err
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
12062 { ac_try='test -z "$ac_cxx_werror_flag"
12063 || test ! -s conftest.err'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; } &&
12069 { ac_try='test -s conftest$ac_exeext'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
12075 ac_cv_lib_dld_dld_link=yes
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12080 ac_cv_lib_dld_dld_link=no
12082 rm -f conftest.err conftest.$ac_objext \
12083 conftest$ac_exeext conftest.$ac_ext
12084 LIBS=$ac_check_lib_save_LIBS
12086 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12087 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12088 if test $ac_cv_lib_dld_dld_link = yes; then
12089 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12110 if test "x$lt_cv_dlopen" != xno; then
12116 case $lt_cv_dlopen in
12118 save_CPPFLAGS="$CPPFLAGS"
12119 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12121 save_LDFLAGS="$LDFLAGS"
12122 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12125 LIBS="$lt_cv_dlopen_libs $LIBS"
12127 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12128 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12129 if test "${lt_cv_dlopen_self+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 if test "$cross_compiling" = yes; then :
12133 lt_cv_dlopen_self=cross
12135 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12136 lt_status=$lt_dlunknown
12137 cat > conftest.$ac_ext <<EOF
12138 #line 12138 "configure"
12139 #include "confdefs.h"
12148 # define LT_DLGLOBAL RTLD_GLOBAL
12151 # define LT_DLGLOBAL DL_GLOBAL
12153 # define LT_DLGLOBAL 0
12157 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12158 find out it does not work in some platform. */
12159 #ifndef LT_DLLAZY_OR_NOW
12161 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12164 # define LT_DLLAZY_OR_NOW DL_LAZY
12167 # define LT_DLLAZY_OR_NOW RTLD_NOW
12170 # define LT_DLLAZY_OR_NOW DL_NOW
12172 # define LT_DLLAZY_OR_NOW 0
12180 extern "C" void exit (int);
12183 void fnord() { int i=42;}
12186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12187 int status = $lt_dlunknown;
12191 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12192 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12193 /* dlclose (self); */
12199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12200 (eval $ac_link) 2>&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12204 (./conftest; exit; ) 2>/dev/null
12206 case x$lt_status in
12207 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12208 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12209 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12212 # compilation failed
12213 lt_cv_dlopen_self=no
12220 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12221 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12223 if test "x$lt_cv_dlopen_self" = xyes; then
12224 LDFLAGS="$LDFLAGS $link_static_flag"
12225 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12226 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12227 if test "${lt_cv_dlopen_self_static+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 if test "$cross_compiling" = yes; then :
12231 lt_cv_dlopen_self_static=cross
12233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12234 lt_status=$lt_dlunknown
12235 cat > conftest.$ac_ext <<EOF
12236 #line 12236 "configure"
12237 #include "confdefs.h"
12246 # define LT_DLGLOBAL RTLD_GLOBAL
12249 # define LT_DLGLOBAL DL_GLOBAL
12251 # define LT_DLGLOBAL 0
12255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12256 find out it does not work in some platform. */
12257 #ifndef LT_DLLAZY_OR_NOW
12259 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12262 # define LT_DLLAZY_OR_NOW DL_LAZY
12265 # define LT_DLLAZY_OR_NOW RTLD_NOW
12268 # define LT_DLLAZY_OR_NOW DL_NOW
12270 # define LT_DLLAZY_OR_NOW 0
12278 extern "C" void exit (int);
12281 void fnord() { int i=42;}
12284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12285 int status = $lt_dlunknown;
12289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12290 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12291 /* dlclose (self); */
12297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12298 (eval $ac_link) 2>&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12302 (./conftest; exit; ) 2>/dev/null
12304 case x$lt_status in
12305 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12306 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12307 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12310 # compilation failed
12311 lt_cv_dlopen_self_static=no
12318 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12319 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12322 CPPFLAGS="$save_CPPFLAGS"
12323 LDFLAGS="$save_LDFLAGS"
12328 case $lt_cv_dlopen_self in
12329 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12330 *) enable_dlopen_self=unknown ;;
12333 case $lt_cv_dlopen_self_static in
12334 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12335 *) enable_dlopen_self_static=unknown ;;
12340 # The else clause should only fire when bootstrapping the
12341 # libtool distribution, otherwise you forgot to ship ltmain.sh
12342 # with your package, and you will get complaints that there are
12343 # no rules to generate ltmain.sh.
12344 if test -f "$ltmain"; then
12345 # See if we are running on zsh, and set the options which allow our commands through
12346 # without removal of \ escapes.
12347 if test -n "${ZSH_VERSION+set}" ; then
12348 setopt NO_GLOB_SUBST
12350 # Now quote all the things that may contain metacharacters while being
12351 # careful not to overquote the AC_SUBSTed values. We take copies of the
12352 # variables and quote the copies for generation of the libtool script.
12353 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12355 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12356 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12357 deplibs_check_method reload_flag reload_cmds need_locks \
12358 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12359 lt_cv_sys_global_symbol_to_c_name_address \
12360 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12361 old_postinstall_cmds old_postuninstall_cmds \
12365 lt_prog_compiler_wl_CXX \
12366 lt_prog_compiler_pic_CXX \
12367 lt_prog_compiler_static_CXX \
12368 lt_prog_compiler_no_builtin_flag_CXX \
12369 export_dynamic_flag_spec_CXX \
12370 thread_safe_flag_spec_CXX \
12371 whole_archive_flag_spec_CXX \
12372 enable_shared_with_static_runtimes_CXX \
12373 old_archive_cmds_CXX \
12374 old_archive_from_new_cmds_CXX \
12375 predep_objects_CXX \
12376 postdep_objects_CXX \
12379 compiler_lib_search_path_CXX \
12381 archive_expsym_cmds_CXX \
12382 postinstall_cmds_CXX \
12383 postuninstall_cmds_CXX \
12384 old_archive_from_expsyms_cmds_CXX \
12385 allow_undefined_flag_CXX \
12386 no_undefined_flag_CXX \
12387 export_symbols_cmds_CXX \
12388 hardcode_libdir_flag_spec_CXX \
12389 hardcode_libdir_flag_spec_ld_CXX \
12390 hardcode_libdir_separator_CXX \
12391 hardcode_automatic_CXX \
12393 module_expsym_cmds_CXX \
12394 lt_cv_prog_compiler_c_o_CXX \
12395 exclude_expsyms_CXX \
12396 include_expsyms_CXX; do
12399 old_archive_cmds_CXX | \
12400 old_archive_from_new_cmds_CXX | \
12401 archive_cmds_CXX | \
12402 archive_expsym_cmds_CXX | \
12403 module_cmds_CXX | \
12404 module_expsym_cmds_CXX | \
12405 old_archive_from_expsyms_cmds_CXX | \
12406 export_symbols_cmds_CXX | \
12407 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12408 postinstall_cmds | postuninstall_cmds | \
12409 old_postinstall_cmds | old_postuninstall_cmds | \
12410 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12411 # Double-quote double-evaled strings.
12412 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12415 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12421 *'\$0 --fallback-echo"')
12422 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12428 cat <<__EOF__ >> "$cfgfile"
12429 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12433 # Shell to use when invoking shell scripts.
12436 # Whether or not to build shared libraries.
12437 build_libtool_libs=$enable_shared
12439 # Whether or not to build static libraries.
12440 build_old_libs=$enable_static
12442 # Whether or not to add -lc for building shared libraries.
12443 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12445 # Whether or not to disallow shared libs when runtime libs are static
12446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12448 # Whether or not to optimize for fast installation.
12449 fast_install=$enable_fast_install
12452 host_alias=$host_alias
12455 # An echo program that does not interpret backslashes.
12460 AR_FLAGS=$lt_AR_FLAGS
12465 # A language-specific compiler.
12466 CC=$lt_compiler_CXX
12468 # Is the compiler the GNU C compiler?
12474 # The linker used to build libraries.
12477 # Whether we need hard or soft links.
12480 # A BSD-compatible nm program.
12483 # A symbol stripping program
12486 # Used to examine libraries when file_magic_cmd begins "file"
12487 MAGIC_CMD=$MAGIC_CMD
12489 # Used on cygwin: DLL creation program.
12492 # Used on cygwin: object dumper.
12495 # Used on cygwin: assembler.
12498 # The name of the directory that contains temporary libtool files.
12501 # How to create reloadable object files.
12502 reload_flag=$lt_reload_flag
12503 reload_cmds=$lt_reload_cmds
12505 # How to pass a linker flag through the compiler.
12506 wl=$lt_lt_prog_compiler_wl_CXX
12508 # Object file suffix (normally "o").
12509 objext="$ac_objext"
12511 # Old archive suffix (normally "a").
12514 # Shared library suffix (normally ".so").
12517 # Executable file suffix (normally "").
12520 # Additional compiler flags for building library objects.
12521 pic_flag=$lt_lt_prog_compiler_pic_CXX
12524 # What is the maximum length of a command?
12525 max_cmd_len=$lt_cv_sys_max_cmd_len
12527 # Does compiler simultaneously support -c and -o options?
12528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12530 # Must we lock files when doing compilation ?
12531 need_locks=$lt_need_locks
12533 # Do we need the lib prefix for modules?
12534 need_lib_prefix=$need_lib_prefix
12536 # Do we need a version for libraries?
12537 need_version=$need_version
12539 # Whether dlopen is supported.
12540 dlopen_support=$enable_dlopen
12542 # Whether dlopen of programs is supported.
12543 dlopen_self=$enable_dlopen_self
12545 # Whether dlopen of statically linked programs is supported.
12546 dlopen_self_static=$enable_dlopen_self_static
12548 # Compiler flag to prevent dynamic linking.
12549 link_static_flag=$lt_lt_prog_compiler_static_CXX
12551 # Compiler flag to turn off builtin functions.
12552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12554 # Compiler flag to allow reflexive dlopens.
12555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12557 # Compiler flag to generate shared objects directly from archives.
12558 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12560 # Compiler flag to generate thread-safe objects.
12561 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12563 # Library versioning type.
12564 version_type=$version_type
12566 # Format of library name prefix.
12567 libname_spec=$lt_libname_spec
12569 # List of archive names. First name is the real one, the rest are links.
12570 # The last name is the one that the linker finds with -lNAME.
12571 library_names_spec=$lt_library_names_spec
12573 # The coded name of the library, if different from the real name.
12574 soname_spec=$lt_soname_spec
12576 # Commands used to build and install an old-style archive.
12578 old_archive_cmds=$lt_old_archive_cmds_CXX
12579 old_postinstall_cmds=$lt_old_postinstall_cmds
12580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12582 # Create an old-style archive from a shared archive.
12583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12585 # Create a temporary old-style archive to link instead of a shared archive.
12586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12588 # Commands used to build and install a shared archive.
12589 archive_cmds=$lt_archive_cmds_CXX
12590 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12591 postinstall_cmds=$lt_postinstall_cmds
12592 postuninstall_cmds=$lt_postuninstall_cmds
12594 # Commands used to build a loadable module (assumed same as above if empty)
12595 module_cmds=$lt_module_cmds_CXX
12596 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12598 # Commands to strip libraries.
12599 old_striplib=$lt_old_striplib
12600 striplib=$lt_striplib
12602 # Dependencies to place before the objects being linked to create a
12604 predep_objects=$lt_predep_objects_CXX
12606 # Dependencies to place after the objects being linked to create a
12608 postdep_objects=$lt_postdep_objects_CXX
12610 # Dependencies to place before the objects being linked to create a
12612 predeps=$lt_predeps_CXX
12614 # Dependencies to place after the objects being linked to create a
12616 postdeps=$lt_postdeps_CXX
12618 # The library search path used internally by the compiler when linking
12619 # a shared library.
12620 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12622 # Method to check whether dependent libraries are shared objects.
12623 deplibs_check_method=$lt_deplibs_check_method
12625 # Command to use when deplibs_check_method == file_magic.
12626 file_magic_cmd=$lt_file_magic_cmd
12628 # Flag that allows shared libraries with undefined symbols to be built.
12629 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12631 # Flag that forces no undefined symbols.
12632 no_undefined_flag=$lt_no_undefined_flag_CXX
12634 # Commands used to finish a libtool library installation in a directory.
12635 finish_cmds=$lt_finish_cmds
12637 # Same as above, but a single script fragment to be evaled but not shown.
12638 finish_eval=$lt_finish_eval
12640 # Take the output of nm and produce a listing of raw symbols and C names.
12641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12643 # Transform the output of nm in a proper C declaration
12644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12646 # Transform the output of nm in a C name address pair
12647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12649 # This is the shared library runtime path variable.
12650 runpath_var=$runpath_var
12652 # This is the shared library path variable.
12653 shlibpath_var=$shlibpath_var
12655 # Is shlibpath searched before the hard-coded library search path?
12656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12658 # How to hardcode a shared library path into an executable.
12659 hardcode_action=$hardcode_action_CXX
12661 # Whether we should hardcode library paths into libraries.
12662 hardcode_into_libs=$hardcode_into_libs
12664 # Flag to hardcode \$libdir into a binary during linking.
12665 # This must work even if \$libdir does not exist.
12666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12668 # If ld is used when linking, flag to hardcode \$libdir into
12669 # a binary during linking. This must work even if \$libdir does
12671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12673 # Whether we need a single -rpath flag with a separated argument.
12674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12677 # resulting binary.
12678 hardcode_direct=$hardcode_direct_CXX
12680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12681 # resulting binary.
12682 hardcode_minus_L=$hardcode_minus_L_CXX
12684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12685 # the resulting binary.
12686 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12688 # Set to yes if building a shared library automatically hardcodes DIR into the library
12689 # and all subsequent libraries and executables linked against it.
12690 hardcode_automatic=$hardcode_automatic_CXX
12692 # Variables whose values should be saved in libtool wrapper scripts and
12693 # restored at relink time.
12694 variables_saved_for_relink="$variables_saved_for_relink"
12696 # Whether libtool must link a program against all its dependency libraries.
12697 link_all_deplibs=$link_all_deplibs_CXX
12699 # Compile-time system search path for libraries
12700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12702 # Run-time system search path for libraries
12703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12705 # Fix the shell variable \$srcfile for the compiler.
12706 fix_srcfile_path="$fix_srcfile_path_CXX"
12708 # Set to yes if exported symbols are required.
12709 always_export_symbols=$always_export_symbols_CXX
12711 # The commands to list exported symbols.
12712 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12714 # The commands to extract the exported symbol list from a shared archive.
12715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12717 # Symbols that should not be listed in the preloaded symbols.
12718 exclude_expsyms=$lt_exclude_expsyms_CXX
12720 # Symbols that must always be exported.
12721 include_expsyms=$lt_include_expsyms_CXX
12723 # ### END LIBTOOL TAG CONFIG: $tagname
12729 # If there is no Makefile yet, we rely on a make rule to execute
12730 # `config.status --recheck' to rerun these tests and create the
12731 # libtool script then.
12732 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12733 if test -f "$ltmain_in"; then
12734 test -f Makefile && make "$ltmain"
12740 ac_cpp='$CPP $CPPFLAGS'
12741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12749 with_gnu_ldcxx=$with_gnu_ld
12750 with_gnu_ld=$lt_save_with_gnu_ld
12751 lt_cv_path_LDCXX=$lt_cv_path_LD
12752 lt_cv_path_LD=$lt_save_path_LD
12753 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12754 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12762 if test -n "$F77" && test "X$F77" != "Xno"; then
12765 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12766 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12770 archive_cmds_need_lc_F77=no
12771 allow_undefined_flag_F77=
12772 always_export_symbols_F77=no
12773 archive_expsym_cmds_F77=
12774 export_dynamic_flag_spec_F77=
12775 hardcode_direct_F77=no
12776 hardcode_libdir_flag_spec_F77=
12777 hardcode_libdir_flag_spec_ld_F77=
12778 hardcode_libdir_separator_F77=
12779 hardcode_minus_L_F77=no
12780 hardcode_automatic_F77=no
12782 module_expsym_cmds_F77=
12783 link_all_deplibs_F77=unknown
12784 old_archive_cmds_F77=$old_archive_cmds
12785 no_undefined_flag_F77=
12786 whole_archive_flag_spec_F77=
12787 enable_shared_with_static_runtimes_F77=no
12789 # Source file extension for f77 test sources.
12792 # Object file extension for compiled f77 test sources.
12796 # Code to be used in simple compile tests
12797 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12799 # Code to be used in simple link tests
12800 lt_simple_link_test_code=" program t\n end\n"
12802 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12804 # If no C compiler was specified, use CC.
12807 # Allow CC to be a program name with arguments.
12811 # Allow CC to be a program name with arguments.
12816 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12818 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12819 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12820 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12821 echo "${ECHO_T}$can_build_shared" >&6
12823 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12824 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12825 test "$can_build_shared" = "no" && enable_shared=no
12827 # On AIX, shared libraries and static libraries use the same namespace, and
12828 # are all built from PIC.
12831 test "$enable_shared" = yes && enable_static=no
12832 if test -n "$RANLIB"; then
12833 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12834 postinstall_cmds='$RANLIB $lib'
12838 test "$enable_shared" = yes && enable_static=no
12841 echo "$as_me:$LINENO: result: $enable_shared" >&5
12842 echo "${ECHO_T}$enable_shared" >&6
12844 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12845 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12846 # Make sure either enable_shared or enable_static is yes.
12847 test "$enable_shared" = yes || enable_static=yes
12848 echo "$as_me:$LINENO: result: $enable_static" >&5
12849 echo "${ECHO_T}$enable_static" >&6
12851 test "$ld_shlibs_F77" = no && can_build_shared=no
12856 lt_prog_compiler_wl_F77=
12857 lt_prog_compiler_pic_F77=
12858 lt_prog_compiler_static_F77=
12860 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12861 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12863 if test "$GCC" = yes; then
12864 lt_prog_compiler_wl_F77='-Wl,'
12865 lt_prog_compiler_static_F77='-static'
12869 # All AIX code is PIC.
12870 if test "$host_cpu" = ia64; then
12871 # AIX 5 now supports IA64 processor
12872 lt_prog_compiler_static_F77='-Bstatic'
12877 # FIXME: we need at least 68020 code to build shared libraries, but
12878 # adding the `-m68020' flag to GCC prevents building anything better,
12880 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12883 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12884 # PIC is the default for these OSes.
12887 mingw* | pw32* | os2*)
12888 # This hack is so that the source file can tell whether it is being
12889 # built for inclusion in a dll (and should export symbols for example).
12890 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12893 darwin* | rhapsody*)
12894 # PIC is the default on this platform
12895 # Common symbols not allowed in MH_DYLIB files
12896 lt_prog_compiler_pic_F77='-fno-common'
12900 # Just because we use GCC doesn't mean we suddenly get shared libraries
12901 # on systems that don't support them.
12902 lt_prog_compiler_can_build_shared_F77=no
12907 if test -d /usr/nec; then
12908 lt_prog_compiler_pic_F77=-Kconform_pic
12913 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12914 # not for PA HP-UX.
12915 case "$host_cpu" in
12920 lt_prog_compiler_pic_F77='-fPIC'
12926 lt_prog_compiler_pic_F77='-fPIC'
12930 # PORTME Check for flag to pass linker flags through the system compiler.
12933 lt_prog_compiler_wl_F77='-Wl,'
12934 if test "$host_cpu" = ia64; then
12935 # AIX 5 now supports IA64 processor
12936 lt_prog_compiler_static_F77='-Bstatic'
12938 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12942 mingw* | pw32* | os2*)
12943 # This hack is so that the source file can tell whether it is being
12944 # built for inclusion in a dll (and should export symbols for example).
12945 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12948 hpux9* | hpux10* | hpux11*)
12949 lt_prog_compiler_wl_F77='-Wl,'
12950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12951 # not for PA HP-UX.
12952 case "$host_cpu" in
12957 lt_prog_compiler_pic_F77='+Z'
12960 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12961 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12964 irix5* | irix6* | nonstopux*)
12965 lt_prog_compiler_wl_F77='-Wl,'
12966 # PIC (with -KPIC) is the default.
12967 lt_prog_compiler_static_F77='-non_shared'
12971 lt_prog_compiler_pic_F77='-KPIC'
12972 lt_prog_compiler_static_F77='-Bstatic'
12978 lt_prog_compiler_wl_F77='-Wl,'
12979 lt_prog_compiler_pic_F77='-KPIC'
12980 lt_prog_compiler_static_F77='-static'
12983 lt_prog_compiler_wl_F77='-Wl,'
12984 # All Alpha code is PIC.
12985 lt_prog_compiler_static_F77='-non_shared'
12990 osf3* | osf4* | osf5*)
12991 lt_prog_compiler_wl_F77='-Wl,'
12992 # All OSF/1 code is PIC.
12993 lt_prog_compiler_static_F77='-non_shared'
12997 lt_prog_compiler_pic_F77='-Kpic'
12998 lt_prog_compiler_static_F77='-dn'
13002 lt_prog_compiler_wl_F77='-Wl,'
13003 lt_prog_compiler_pic_F77='-KPIC'
13004 lt_prog_compiler_static_F77='-Bstatic'
13008 lt_prog_compiler_wl_F77='-Qoption ld '
13009 lt_prog_compiler_pic_F77='-PIC'
13010 lt_prog_compiler_static_F77='-Bstatic'
13013 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13014 lt_prog_compiler_wl_F77='-Wl,'
13015 lt_prog_compiler_pic_F77='-KPIC'
13016 lt_prog_compiler_static_F77='-Bstatic'
13020 if test -d /usr/nec ;then
13021 lt_prog_compiler_pic_F77='-Kconform_pic'
13022 lt_prog_compiler_static_F77='-Bstatic'
13027 lt_prog_compiler_pic_F77='-pic'
13028 lt_prog_compiler_static_F77='-Bstatic'
13032 lt_prog_compiler_can_build_shared_F77=no
13037 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13038 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13041 # Check to make sure the PIC flag actually works.
13043 if test -n "$lt_prog_compiler_pic_F77"; then
13045 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13046 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13047 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 lt_prog_compiler_pic_works_F77=no
13051 ac_outfile=conftest.$ac_objext
13052 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13053 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13054 # Insert the option either (1) after the last *FLAGS variable, or
13055 # (2) before a word containing "conftest.", or (3) at the end.
13056 # Note that $ac_compile itself does not contain backslashes and begins
13057 # with a dollar sign (not a hyphen), so the echo should work correctly.
13058 # The option is referenced via a variable to avoid confusing sed.
13059 lt_compile=`echo "$ac_compile" | $SED \
13060 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13062 -e 's:$: $lt_compiler_flag:'`
13063 (eval echo "\"\$as_me:13063: $lt_compile\"" >&5)
13064 (eval "$lt_compile" 2>conftest.err)
13066 cat conftest.err >&5
13067 echo "$as_me:13067: \$? = $ac_status" >&5
13068 if (exit $ac_status) && test -s "$ac_outfile"; then
13069 # The compiler can only warn and ignore the option if not recognized
13070 # So say no if there are warnings
13071 if test ! -s conftest.err; then
13072 lt_prog_compiler_pic_works_F77=yes
13078 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13079 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13081 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13082 case $lt_prog_compiler_pic_F77 in
13084 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13087 lt_prog_compiler_pic_F77=
13088 lt_prog_compiler_can_build_shared_F77=no
13093 # For platforms which do not support PIC, -DPIC is meaningless:
13095 lt_prog_compiler_pic_F77=
13098 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13102 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13103 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13104 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 lt_cv_prog_compiler_c_o_F77=no
13108 $rm -r conftest 2>/dev/null
13112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13114 lt_compiler_flag="-o out/conftest2.$ac_objext"
13115 # Insert the option either (1) after the last *FLAGS variable, or
13116 # (2) before a word containing "conftest.", or (3) at the end.
13117 # Note that $ac_compile itself does not contain backslashes and begins
13118 # with a dollar sign (not a hyphen), so the echo should work correctly.
13119 lt_compile=`echo "$ac_compile" | $SED \
13120 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13122 -e 's:$: $lt_compiler_flag:'`
13123 (eval echo "\"\$as_me:13123: $lt_compile\"" >&5)
13124 (eval "$lt_compile" 2>out/conftest.err)
13126 cat out/conftest.err >&5
13127 echo "$as_me:13127: \$? = $ac_status" >&5
13128 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13130 # The compiler can only warn and ignore the option if not recognized
13131 # So say no if there are warnings
13132 if test ! -s out/conftest.err; then
13133 lt_cv_prog_compiler_c_o_F77=yes
13138 # SGI C++ compiler will create directory out/ii_files/ for
13139 # template instantiation
13140 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13141 $rm out/* && rmdir out
13147 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13148 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13151 hard_links="nottested"
13152 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13153 # do not overwrite the value of need_locks provided by the user
13154 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13155 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13158 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13160 ln conftest.a conftest.b 2>&5 || hard_links=no
13161 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13162 echo "$as_me:$LINENO: result: $hard_links" >&5
13163 echo "${ECHO_T}$hard_links" >&6
13164 if test "$hard_links" = no; then
13165 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13166 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13173 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13174 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13177 allow_undefined_flag_F77=
13178 enable_shared_with_static_runtimes_F77=no
13180 archive_expsym_cmds_F77=
13181 old_archive_From_new_cmds_F77=
13182 old_archive_from_expsyms_cmds_F77=
13183 export_dynamic_flag_spec_F77=
13184 whole_archive_flag_spec_F77=
13185 thread_safe_flag_spec_F77=
13186 hardcode_libdir_flag_spec_F77=
13187 hardcode_libdir_flag_spec_ld_F77=
13188 hardcode_libdir_separator_F77=
13189 hardcode_direct_F77=no
13190 hardcode_minus_L_F77=no
13191 hardcode_shlibpath_var_F77=unsupported
13192 link_all_deplibs_F77=unknown
13193 hardcode_automatic_F77=no
13195 module_expsym_cmds_F77=
13196 always_export_symbols_F77=no
13197 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13198 # include_expsyms should be a list of space-separated symbols to be *always*
13199 # included in the symbol list
13200 include_expsyms_F77=
13201 # exclude_expsyms can be an extended regexp of symbols to exclude
13202 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13203 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13204 # as well as any symbol that contains `d'.
13205 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13206 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13207 # platforms (ab)use it in PIC code, but their linkers get confused if
13208 # the symbol is explicitly referenced. Since portable code cannot
13209 # rely on this symbol name, it's probably fine to never include it in
13210 # preloaded symbol tables.
13211 extract_expsyms_cmds=
13214 cygwin* | mingw* | pw32*)
13215 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13216 # When not using gcc, we currently assume that we are using
13217 # Microsoft Visual C++.
13218 if test "$GCC" != yes; then
13228 if test "$with_gnu_ld" = yes; then
13229 # If archive_cmds runs LD, not CC, wlarc should be empty
13232 # See if GNU ld supports shared libraries.
13234 aix3* | aix4* | aix5*)
13235 # On AIX/PPC, the GNU linker is very broken
13236 if test "$host_cpu" != ia64; then
13240 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13241 *** to be unable to reliably create shared libraries on AIX.
13242 *** Therefore, libtool is disabling shared libraries support. If you
13243 *** really care for shared libraries, you may want to modify your PATH
13244 *** so that a non-GNU linker is found, and then restart.
13251 archive_cmds_F77='$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)'
13252 hardcode_libdir_flag_spec_F77='-L$libdir'
13253 hardcode_minus_L_F77=yes
13255 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13256 # that the semantics of dynamic libraries on AmigaOS, at least up
13257 # to version 4, is to share data among multiple programs linked
13258 # with the same dynamic library. Since this doesn't match the
13259 # behavior of shared libraries on other platforms, we can't use
13265 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13266 allow_undefined_flag_F77=unsupported
13267 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13268 # support --undefined. This deserves some investigation. FIXME
13269 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13275 cygwin* | mingw* | pw32*)
13276 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13277 # as there is no search path for DLLs.
13278 hardcode_libdir_flag_spec_F77='-L$libdir'
13279 allow_undefined_flag_F77=unsupported
13280 always_export_symbols_F77=no
13281 enable_shared_with_static_runtimes_F77=yes
13282 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13284 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13285 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13286 # If the export-symbols file already is a .def file (1st line
13287 # is EXPORTS), use it as is; otherwise, prepend...
13288 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13289 cp $export_symbols $output_objdir/$soname.def;
13291 echo EXPORTS > $output_objdir/$soname.def;
13292 cat $export_symbols >> $output_objdir/$soname.def;
13294 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13302 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13305 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13306 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13311 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13315 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13316 *** create shared libraries on Solaris systems. Therefore, libtool
13317 *** is disabling shared libraries support. We urge you to upgrade GNU
13318 *** binutils to release 2.9.1 or newer. Another option is to modify
13319 *** your PATH or compiler configuration so that the native linker is
13320 *** used, and then restart.
13323 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13324 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13325 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13332 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13334 hardcode_direct_F77=yes
13335 hardcode_shlibpath_var_F77=no
13339 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13340 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341 archive_cmds_F77="$tmp_archive_cmds"
13342 supports_anon_versioning=no
13343 case `$LD -v 2>/dev/null` in
13344 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13345 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13346 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13347 *\ 2.11.*) ;; # other 2.11 versions
13348 *) supports_anon_versioning=yes ;;
13350 if test $supports_anon_versioning = yes; then
13351 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13352 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13353 $echo "local: *; };" >> $output_objdir/$libname.ver~
13354 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13356 archive_expsym_cmds_F77="$tmp_archive_cmds"
13364 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13365 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13366 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13373 if test "$ld_shlibs_F77" = yes; then
13374 runpath_var=LD_RUN_PATH
13375 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13376 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13377 # ancient GNU ld didn't support --whole-archive et. al.
13378 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13379 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13381 whole_archive_flag_spec_F77=
13385 # PORTME fill in a description of your system's linker (not GNU ld)
13388 allow_undefined_flag_F77=unsupported
13389 always_export_symbols_F77=yes
13390 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13391 # Note: this linker hardcodes the directories in LIBPATH if there
13392 # are no directories specified by -L.
13393 hardcode_minus_L_F77=yes
13394 if test "$GCC" = yes && test -z "$link_static_flag"; then
13395 # Neither direct hardcoding nor static linking is supported with a
13397 hardcode_direct_F77=unsupported
13402 if test "$host_cpu" = ia64; then
13403 # On IA64, the linker does run time linking by default, so we don't
13404 # have to do anything special.
13405 aix_use_runtimelinking=no
13406 exp_sym_flag='-Bexport'
13409 # If we're using GNU nm, then we don't want the "-C" option.
13410 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13411 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13412 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13414 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13416 aix_use_runtimelinking=no
13418 # Test if we are trying to use run time linking or normal
13419 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13420 # need to do runtime linking.
13421 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13422 for ld_flag in $LDFLAGS; do
13423 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13424 aix_use_runtimelinking=yes
13430 exp_sym_flag='-bexport'
13431 no_entry_flag='-bnoentry'
13434 # When large executables or shared objects are built, AIX ld can
13435 # have problems creating the table of contents. If linking a library
13436 # or program results in "error TOC overflow" add -mminimal-toc to
13437 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13438 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13440 archive_cmds_F77=''
13441 hardcode_direct_F77=yes
13442 hardcode_libdir_separator_F77=':'
13443 link_all_deplibs_F77=yes
13445 if test "$GCC" = yes; then
13446 case $host_os in aix4.012|aix4.012.*)
13447 # We only want to do this on AIX 4.2 and lower, the check
13448 # below for broken collect2 doesn't work under 4.3+
13449 collect2name=`${CC} -print-prog-name=collect2`
13450 if test -f "$collect2name" && \
13451 strings "$collect2name" | grep resolve_lib_name >/dev/null
13453 # We have reworked collect2
13454 hardcode_direct_F77=yes
13456 # We have old collect2
13457 hardcode_direct_F77=unsupported
13458 # It fails to find uninstalled libraries when the uninstalled
13459 # path is not listed in the libpath. Setting hardcode_minus_L
13460 # to unsupported forces relinking
13461 hardcode_minus_L_F77=yes
13462 hardcode_libdir_flag_spec_F77='-L$libdir'
13463 hardcode_libdir_separator_F77=
13466 shared_flag='-shared'
13469 if test "$host_cpu" = ia64; then
13470 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13471 # chokes on -Wl,-G. The following line is correct:
13474 if test "$aix_use_runtimelinking" = yes; then
13475 shared_flag='${wl}-G'
13477 shared_flag='${wl}-bM:SRE'
13482 # It seems that -bexpall does not export symbols beginning with
13483 # underscore (_), so it is better to generate a list of symbols to export.
13484 always_export_symbols_F77=yes
13485 if test "$aix_use_runtimelinking" = yes; then
13486 # Warning - without using the other runtime loading flags (-brtl),
13487 # -berok will link without error, but may produce a broken library.
13488 allow_undefined_flag_F77='-berok'
13489 # Determine the default libpath from the value encoded in an empty executable.
13490 cat >conftest.$ac_ext <<_ACEOF
13495 rm -f conftest.$ac_objext conftest$ac_exeext
13496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13497 (eval $ac_link) 2>conftest.er1
13499 grep -v '^ *+' conftest.er1 >conftest.err
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
13504 { ac_try='test -z "$ac_f77_werror_flag"
13505 || test ! -s conftest.err'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; } &&
13511 { ac_try='test -s conftest$ac_exeext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13520 # Check for a 64-bit object if we didn't find anything.
13521 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13524 echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13528 rm -f conftest.err conftest.$ac_objext \
13529 conftest$ac_exeext conftest.$ac_ext
13530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13532 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13533 archive_expsym_cmds_F77="\$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"
13535 if test "$host_cpu" = ia64; then
13536 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13537 allow_undefined_flag_F77="-z nodefs"
13538 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13540 # Determine the default libpath from the value encoded in an empty executable.
13541 cat >conftest.$ac_ext <<_ACEOF
13546 rm -f conftest.$ac_objext conftest$ac_exeext
13547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13548 (eval $ac_link) 2>conftest.er1
13550 grep -v '^ *+' conftest.er1 >conftest.err
13552 cat conftest.err >&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try='test -z "$ac_f77_werror_flag"
13556 || test ! -s conftest.err'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; } &&
13562 { ac_try='test -s conftest$ac_exeext'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; }; then
13569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13571 # Check for a 64-bit object if we didn't find anything.
13572 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13579 rm -f conftest.err conftest.$ac_objext \
13580 conftest$ac_exeext conftest.$ac_ext
13581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13583 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13584 # Warning - without using the other run time loading flags,
13585 # -berok will link without error, but may produce a broken library.
13586 no_undefined_flag_F77=' ${wl}-bernotok'
13587 allow_undefined_flag_F77=' ${wl}-berok'
13588 # -bexpall does not export symbols beginning with underscore (_)
13589 always_export_symbols_F77=yes
13590 # Exported symbols can be pulled into shared objects from archives
13591 whole_archive_flag_spec_F77=' '
13592 archive_cmds_need_lc_F77=yes
13593 # This is similar to how AIX traditionally builds it's shared libraries.
13594 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13600 archive_cmds_F77='$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)'
13601 hardcode_libdir_flag_spec_F77='-L$libdir'
13602 hardcode_minus_L_F77=yes
13603 # see comment about different semantics on the GNU ld section
13608 export_dynamic_flag_spec_F77=-rdynamic
13611 cygwin* | mingw* | pw32*)
13612 # When not using gcc, we currently assume that we are using
13613 # Microsoft Visual C++.
13614 # hardcode_libdir_flag_spec is actually meaningless, as there is
13615 # no search path for DLLs.
13616 hardcode_libdir_flag_spec_F77=' '
13617 allow_undefined_flag_F77=unsupported
13618 # Tell ltmain to make .lib files, not .a files.
13620 # Tell ltmain to make .dll files, not .so files.
13622 # FIXME: Setting linknames here is a bad hack.
13623 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13624 # The linker will automatically build a .lib file if we build a DLL.
13625 old_archive_From_new_cmds_F77='true'
13626 # FIXME: Should let the user specify the lib program.
13627 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13628 fix_srcfile_path='`cygpath -w "$srcfile"`'
13629 enable_shared_with_static_runtimes_F77=yes
13632 darwin* | rhapsody*)
13633 if test "$GXX" = yes ; then
13634 archive_cmds_need_lc_F77=no
13636 rhapsody* | darwin1.[012])
13637 allow_undefined_flag_F77='-undefined suppress'
13640 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13641 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13643 case ${MACOSX_DEPLOYMENT_TARGET} in
13645 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13648 allow_undefined_flag_F77='-undefined dynamic_lookup'
13654 lt_int_apple_cc_single_mod=no
13655 output_verbose_link_cmd='echo'
13656 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13657 lt_int_apple_cc_single_mod=yes
13659 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13660 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13662 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13664 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13665 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13666 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13667 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13669 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13671 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13672 hardcode_direct_F77=no
13673 hardcode_automatic_F77=yes
13674 hardcode_shlibpath_var_F77=unsupported
13675 whole_archive_flag_spec_F77='-all_load $convenience'
13676 link_all_deplibs_F77=yes
13683 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13684 hardcode_libdir_flag_spec_F77='-L$libdir'
13685 hardcode_shlibpath_var_F77=no
13692 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13693 # support. Future versions do this automatically, but an explicit c++rt0.o
13694 # does not break anything, and helps significantly (at the cost of a little
13697 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13698 hardcode_libdir_flag_spec_F77='-R$libdir'
13699 hardcode_direct_F77=yes
13700 hardcode_shlibpath_var_F77=no
13703 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13705 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13706 hardcode_direct_F77=yes
13707 hardcode_minus_L_F77=yes
13708 hardcode_shlibpath_var_F77=no
13711 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13712 freebsd* | kfreebsd*-gnu)
13713 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13714 hardcode_libdir_flag_spec_F77='-R$libdir'
13715 hardcode_direct_F77=yes
13716 hardcode_shlibpath_var_F77=no
13720 if test "$GCC" = yes; then
13721 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13723 archive_cmds_F77='$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'
13725 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13726 hardcode_libdir_separator_F77=:
13727 hardcode_direct_F77=yes
13729 # hardcode_minus_L: Not really in the search PATH,
13730 # but as the default location of the library.
13731 hardcode_minus_L_F77=yes
13732 export_dynamic_flag_spec_F77='${wl}-E'
13736 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13737 case "$host_cpu" in
13739 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13742 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13746 case "$host_cpu" in
13748 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13751 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13755 if test "$with_gnu_ld" = no; then
13756 case "$host_cpu" in
13758 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13759 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13760 hardcode_libdir_separator_F77=:
13761 hardcode_direct_F77=no
13762 hardcode_shlibpath_var_F77=no
13765 hardcode_libdir_flag_spec_F77='-L$libdir'
13766 hardcode_direct_F77=no
13767 hardcode_shlibpath_var_F77=no
13769 # hardcode_minus_L: Not really in the search PATH,
13770 # but as the default location of the library.
13771 hardcode_minus_L_F77=yes
13774 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13775 hardcode_libdir_separator_F77=:
13776 hardcode_direct_F77=yes
13777 export_dynamic_flag_spec_F77='${wl}-E'
13779 # hardcode_minus_L: Not really in the search PATH,
13780 # but as the default location of the library.
13781 hardcode_minus_L_F77=yes
13787 irix5* | irix6* | nonstopux*)
13788 if test "$GCC" = yes; then
13789 archive_cmds_F77='$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'
13791 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13792 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13794 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13795 hardcode_libdir_separator_F77=:
13796 link_all_deplibs_F77=yes
13800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13801 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13803 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13805 hardcode_libdir_flag_spec_F77='-R$libdir'
13806 hardcode_direct_F77=yes
13807 hardcode_shlibpath_var_F77=no
13811 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13812 hardcode_direct_F77=yes
13813 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13814 hardcode_libdir_separator_F77=:
13815 hardcode_shlibpath_var_F77=no
13819 hardcode_direct_F77=yes
13820 hardcode_shlibpath_var_F77=no
13821 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13822 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13823 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13824 export_dynamic_flag_spec_F77='${wl}-E'
13827 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13828 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13829 hardcode_libdir_flag_spec_F77='-R$libdir'
13832 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13833 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13840 hardcode_libdir_flag_spec_F77='-L$libdir'
13841 hardcode_minus_L_F77=yes
13842 allow_undefined_flag_F77=unsupported
13843 archive_cmds_F77='$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'
13844 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13848 if test "$GCC" = yes; then
13849 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13850 archive_cmds_F77='$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'
13852 allow_undefined_flag_F77=' -expect_unresolved \*'
13853 archive_cmds_F77='$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'
13855 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13856 hardcode_libdir_separator_F77=:
13859 osf4* | osf5*) # as osf3* with the addition of -msym flag
13860 if test "$GCC" = yes; then
13861 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13862 archive_cmds_F77='$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'
13863 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13865 allow_undefined_flag_F77=' -expect_unresolved \*'
13866 archive_cmds_F77='$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'
13867 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13868 $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'
13870 # Both c and cxx compiler support -rpath directly
13871 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13873 hardcode_libdir_separator_F77=:
13877 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878 hardcode_shlibpath_var_F77=no
13879 export_dynamic_flag_spec_F77='${wl}-Bexport'
13880 runpath_var=LD_RUN_PATH
13881 hardcode_runpath_var=yes
13885 no_undefined_flag_F77=' -z text'
13886 if test "$GCC" = yes; then
13887 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13888 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13889 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13891 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13892 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13893 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13895 hardcode_libdir_flag_spec_F77='-R$libdir'
13896 hardcode_shlibpath_var_F77=no
13898 solaris2.[0-5] | solaris2.[0-5].*) ;;
13899 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13900 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13902 link_all_deplibs_F77=yes
13906 if test "x$host_vendor" = xsequent; then
13907 # Use $CC to link under sequent, because it throws in some extra .o
13908 # files that make .init and .fini sections work.
13909 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13911 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13913 hardcode_libdir_flag_spec_F77='-L$libdir'
13914 hardcode_direct_F77=yes
13915 hardcode_minus_L_F77=yes
13916 hardcode_shlibpath_var_F77=no
13920 case $host_vendor in
13922 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13923 hardcode_direct_F77=yes # is this really true???
13926 ## LD is ld it makes a PLAMLIB
13927 ## CC just makes a GrossModule.
13928 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13929 reload_cmds_F77='$CC -r -o $output$reload_objs'
13930 hardcode_direct_F77=no
13933 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13934 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13937 runpath_var='LD_RUN_PATH'
13938 hardcode_shlibpath_var_F77=no
13942 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13943 hardcode_shlibpath_var_F77=no
13944 export_dynamic_flag_spec_F77='-Bexport'
13948 if test -d /usr/nec; then
13949 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13950 hardcode_shlibpath_var_F77=no
13951 runpath_var=LD_RUN_PATH
13952 hardcode_runpath_var=yes
13958 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13959 hardcode_direct_F77=yes
13960 hardcode_minus_L_F77=no
13961 hardcode_shlibpath_var_F77=no
13962 hardcode_runpath_var=yes
13963 runpath_var=LD_RUN_PATH
13966 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13967 no_undefined_flag_F77='${wl}-z ${wl}text'
13968 if test "$GCC" = yes; then
13969 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13971 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13973 runpath_var='LD_RUN_PATH'
13974 hardcode_shlibpath_var_F77=no
13978 no_undefined_flag_F77=' -z text'
13979 # $CC -shared without GNU ld will not create a library from C++
13980 # object files and a static libstdc++, better avoid it by now
13981 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13982 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13983 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13984 hardcode_libdir_flag_spec_F77=
13985 hardcode_shlibpath_var_F77=no
13986 runpath_var='LD_RUN_PATH'
13990 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13991 hardcode_libdir_flag_spec_F77='-L$libdir'
13992 hardcode_shlibpath_var_F77=no
14001 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14002 echo "${ECHO_T}$ld_shlibs_F77" >&6
14003 test "$ld_shlibs_F77" = no && can_build_shared=no
14005 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14006 if test "$GCC" = yes; then
14007 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14011 # Do we need to explicitly link libc?
14013 case "x$archive_cmds_need_lc_F77" in
14015 # Assume -lc should be added
14016 archive_cmds_need_lc_F77=yes
14018 if test "$enable_shared" = yes && test "$GCC" = yes; then
14019 case $archive_cmds_F77 in
14021 # FIXME: we may have to deal with multi-command sequences.
14024 # Test whether the compiler implicitly links with -lc since on some
14025 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14026 # to ld, don't add -lc before -lgcc.
14027 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14028 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14030 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14033 (eval $ac_compile) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } 2>conftest.err; then
14039 libobjs=conftest.$ac_objext
14041 wl=$lt_prog_compiler_wl_F77
14047 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14048 allow_undefined_flag_F77=
14049 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14050 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }
14055 archive_cmds_need_lc_F77=no
14057 archive_cmds_need_lc_F77=yes
14059 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14061 cat conftest.err 1>&5
14064 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14065 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14072 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14073 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14074 library_names_spec=
14075 libname_spec='lib$name'
14079 postuninstall_cmds=
14083 shlibpath_overrides_runpath=unknown
14085 dynamic_linker="$host_os ld.so"
14086 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14087 if test "$GCC" = yes; then
14088 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14089 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14090 # if the path contains ";" then we assume it to be the separator
14091 # otherwise default to the standard path separator (i.e. ":") - it is
14092 # assumed that no part of a normal pathname contains ";" but that should
14093 # okay in the real world where ";" in dirpaths is itself problematic.
14094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14101 need_lib_prefix=unknown
14102 hardcode_into_libs=no
14104 # when you set need_version to no, make sure it does not cause -set_version
14105 # flags to be left without arguments
14106 need_version=unknown
14111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14112 shlibpath_var=LIBPATH
14114 # AIX 3 has no versioning support, so we append a major version to the name.
14115 soname_spec='${libname}${release}${shared_ext}$major'
14122 hardcode_into_libs=yes
14123 if test "$host_cpu" = ia64; then
14124 # AIX 5 supports IA64
14125 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14126 shlibpath_var=LD_LIBRARY_PATH
14128 # With GCC up to 2.95.x, collect2 would create an import file
14129 # for dependence libraries. The import file would start with
14130 # the line `#! .'. This would cause the generated library to
14131 # depend on `.', always an invalid library. This was fixed in
14132 # development snapshots of GCC prior to 3.0.
14134 aix4 | aix4.[01] | aix4.[01].*)
14135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14137 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14140 can_build_shared=no
14144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14145 # soname into executable. Probably we can add versioning support to
14146 # collect2, so additional links can be useful in future.
14147 if test "$aix_use_runtimelinking" = yes; then
14148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14149 # instead of lib<name>.a to let people know that these are not
14150 # typical AIX shared libraries.
14151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14153 # We preserve .a as extension for shared libraries through AIX4.2
14154 # and later when we are not doing run time linking.
14155 library_names_spec='${libname}${release}.a $libname.a'
14156 soname_spec='${libname}${release}${shared_ext}$major'
14158 shlibpath_var=LIBPATH
14163 library_names_spec='$libname.ixlibrary $libname.a'
14164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14165 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'
14169 library_names_spec='${libname}${shared_ext}'
14170 dynamic_linker="$host_os ld.so"
14171 shlibpath_var=LIBRARY_PATH
14177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14178 soname_spec='${libname}${release}${shared_ext}$major'
14179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14180 shlibpath_var=LD_LIBRARY_PATH
14181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14183 # the default ld.so.conf also contains /usr/contrib/lib and
14184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14185 # libtool to hard-code these into programs
14188 cygwin* | mingw* | pw32*)
14189 version_type=windows
14194 case $GCC,$host_os in
14195 yes,cygwin* | yes,mingw* | yes,pw32*)
14196 library_names_spec='$libname.dll.a'
14197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14198 postinstall_cmds='base_file=`basename \${file}`~
14199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14200 dldir=$destdir/`dirname \$dlpath`~
14201 test -d \$dldir || mkdir -p \$dldir~
14202 $install_prog $dir/$dlname \$dldir/$dlname'
14203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14204 dlpath=$dir/\$dldll~
14206 shlibpath_overrides_runpath=yes
14210 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14211 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14212 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14215 # MinGW DLLs use traditional 'lib' prefix
14216 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14217 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14218 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14219 # It is most probably a Windows format PATH printed by
14220 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14221 # path with ; separators, and with drive letters. We can handle the
14222 # drive letters (cygwin fileutils understands them), so leave them,
14223 # especially as we might pass files found there to a mingw objdump,
14224 # which wouldn't understand a cygwinified path. Ahh.
14225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14231 # pw32 DLLs use 'pw' prefix rather than 'lib'
14232 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14238 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14240 supports_anon_versioning=no
14241 case `$LD -v 2>/dev/null` in
14242 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14243 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14244 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14245 *\ 2.11.*) ;; # other 2.11 versions
14246 *) supports_anon_versioning=yes ;;
14248 if test $supports_anon_versioning = yes; then
14249 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14250 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14251 $echo "local: *; };" >> $output_objdir/$libname.ver~
14252 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14254 $archive_expsym_cmds="$archive_cmds"
14262 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14265 dynamic_linker='Win32 ld.exe'
14266 # FIXME: first we should search . and the directory the executable is in
14270 darwin* | rhapsody*)
14271 dynamic_linker="$host_os dyld"
14272 version_type=darwin
14275 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14276 soname_spec='${libname}${release}${major}$shared_ext'
14277 shlibpath_overrides_runpath=yes
14278 shlibpath_var=DYLD_LIBRARY_PATH
14279 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14280 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14281 if test "$GCC" = yes; then
14282 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14284 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14286 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14294 soname_spec='${libname}${release}${shared_ext}$major'
14295 shlibpath_var=LD_LIBRARY_PATH
14306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14307 soname_spec='${libname}${release}${shared_ext}$major'
14308 shlibpath_var=LD_LIBRARY_PATH
14309 shlibpath_overrides_runpath=no
14310 hardcode_into_libs=yes
14311 dynamic_linker='GNU ld.so'
14315 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14316 version_type=freebsd-$objformat
14317 case $version_type in
14319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14328 shlibpath_var=LD_LIBRARY_PATH
14331 shlibpath_overrides_runpath=yes
14333 freebsd3.01* | freebsdelf3.01*)
14334 shlibpath_overrides_runpath=yes
14335 hardcode_into_libs=yes
14338 shlibpath_overrides_runpath=no
14339 hardcode_into_libs=yes
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 shlibpath_var=LD_LIBRARY_PATH
14351 hardcode_into_libs=yes
14354 hpux9* | hpux10* | hpux11*)
14355 # Give a soname corresponding to the major version so that dld.sl refuses to
14356 # link against other versions.
14360 case "$host_cpu" in
14363 hardcode_into_libs=yes
14364 dynamic_linker="$host_os dld.so"
14365 shlibpath_var=LD_LIBRARY_PATH
14366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368 soname_spec='${libname}${release}${shared_ext}$major'
14369 if test "X$HPUX_IA64_MODE" = X32; then
14370 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14372 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14378 hardcode_into_libs=yes
14379 dynamic_linker="$host_os dld.sl"
14380 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14383 soname_spec='${libname}${release}${shared_ext}$major'
14384 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14389 dynamic_linker="$host_os dld.sl"
14390 shlibpath_var=SHLIB_PATH
14391 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14393 soname_spec='${libname}${release}${shared_ext}$major'
14396 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14397 postinstall_cmds='chmod 555 $lib'
14400 irix5* | irix6* | nonstopux*)
14402 nonstopux*) version_type=nonstopux ;;
14404 if test "$lt_cv_prog_gnu_ld" = yes; then
14412 soname_spec='${libname}${release}${shared_ext}$major'
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14415 irix5* | nonstopux*)
14416 libsuff= shlibsuff=
14419 case $LD in # libtool.m4 will add one of these switches to LD
14420 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14421 libsuff= shlibsuff= libmagic=32-bit;;
14422 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14423 libsuff=32 shlibsuff=N32 libmagic=N32;;
14424 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14425 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14426 *) libsuff= shlibsuff= libmagic=never-match;;
14430 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14431 shlibpath_overrides_runpath=no
14432 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14433 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14434 hardcode_into_libs=yes
14437 # No shared lib support for Linux oldld, aout, or coff.
14438 linux*oldld* | linux*aout* | linux*coff*)
14442 # This must be Linux ELF.
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448 soname_spec='${libname}${release}${shared_ext}$major'
14449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14450 shlibpath_var=LD_LIBRARY_PATH
14451 shlibpath_overrides_runpath=no
14452 # This implies no fast_install, which is unacceptable.
14453 # Some rework will be needed to allow for fast_install
14454 # before this can be enabled.
14455 hardcode_into_libs=yes
14457 # Append ld.so.conf contents to the search path
14458 if test -f /etc/ld.so.conf; then
14459 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14460 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14463 case $host_cpu:$lt_cv_cc_64bit_output in
14464 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
14465 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
14466 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
14470 # We used to test for /lib/ld.so.1 and disable shared libraries on
14471 # powerpc, because MkLinux only supported shared libraries with the
14472 # GNU dynamic linker. Since this was broken with cross compilers,
14473 # most powerpc-linux boxes support dynamic linking these days and
14474 # people can always --disable-shared, the test was removed, and we
14475 # assume the GNU/Linux dynamic linker is in use.
14476 dynamic_linker='GNU/Linux ld.so'
14478 # Find out which ABI we are using (multilib Linux x86_64 hack).
14480 case "$host_cpu" in
14482 echo '#line 14482 "configure"' > conftest.$ac_ext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14484 (eval $ac_compile) 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; then
14488 case `/usr/bin/file conftest.$ac_objext` in
14499 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14500 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14508 soname_spec='${libname}${release}${shared_ext}$major'
14509 shlibpath_var=LD_LIBRARY_PATH
14510 shlibpath_overrides_runpath=no
14511 hardcode_into_libs=yes
14512 dynamic_linker='GNU ld.so'
14519 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14522 dynamic_linker='NetBSD (a.out) ld.so'
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 dynamic_linker='NetBSD ld.elf_so'
14528 shlibpath_var=LD_LIBRARY_PATH
14529 shlibpath_overrides_runpath=yes
14530 hardcode_into_libs=yes
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14536 shlibpath_var=LD_LIBRARY_PATH
14537 shlibpath_overrides_runpath=yes
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 shlibpath_var=LD_LIBRARY_PATH
14547 shlibpath_overrides_runpath=yes
14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14556 shlibpath_var=LD_LIBRARY_PATH
14557 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14559 openbsd2.[89] | openbsd2.[89].*)
14560 shlibpath_overrides_runpath=no
14563 shlibpath_overrides_runpath=yes
14567 shlibpath_overrides_runpath=yes
14572 libname_spec='$name'
14575 library_names_spec='$libname${shared_ext} $libname.a'
14576 dynamic_linker='OS/2 ld.exe'
14577 shlibpath_var=LIBPATH
14580 osf3* | osf4* | osf5*)
14584 soname_spec='${libname}${release}${shared_ext}$major'
14585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586 shlibpath_var=LD_LIBRARY_PATH
14587 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14588 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14593 soname_spec='${libname}${release}${shared_ext}$major'
14594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14595 shlibpath_var=LD_LIBRARY_PATH
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14603 soname_spec='${libname}${release}${shared_ext}$major'
14604 shlibpath_var=LD_LIBRARY_PATH
14605 shlibpath_overrides_runpath=yes
14606 hardcode_into_libs=yes
14607 # ldd complains unless libraries are executable
14608 postinstall_cmds='chmod +x $lib'
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14614 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 shlibpath_overrides_runpath=yes
14617 if test "$with_gnu_ld" = yes; then
14623 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 soname_spec='${libname}${release}${shared_ext}$major'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 case $host_vendor in
14630 shlibpath_overrides_runpath=no
14632 export_dynamic_flag_spec='${wl}-Blargedynsym'
14633 runpath_var=LD_RUN_PATH
14641 shlibpath_overrides_runpath=no
14642 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14648 if test -d /usr/nec ;then
14650 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14651 soname_spec='$libname${shared_ext}.$major'
14652 shlibpath_var=LD_LIBRARY_PATH
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 shlibpath_var=LD_LIBRARY_PATH
14667 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14668 echo "${ECHO_T}$dynamic_linker" >&6
14669 test "$dynamic_linker" = no && can_build_shared=no
14671 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14672 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14673 hardcode_action_F77=
14674 if test -n "$hardcode_libdir_flag_spec_F77" || \
14675 test -n "$runpath_var F77" || \
14676 test "X$hardcode_automatic_F77"="Xyes" ; then
14678 # We can hardcode non-existant directories.
14679 if test "$hardcode_direct_F77" != no &&
14680 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14681 # have to relink, otherwise we might link with an installed library
14682 # when we should be linking with a yet-to-be-installed one
14683 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14684 test "$hardcode_minus_L_F77" != no; then
14685 # Linking always hardcodes the temporary library directory.
14686 hardcode_action_F77=relink
14688 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14689 hardcode_action_F77=immediate
14692 # We cannot hardcode anything, or else we can only hardcode existing
14694 hardcode_action_F77=unsupported
14696 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14697 echo "${ECHO_T}$hardcode_action_F77" >&6
14699 if test "$hardcode_action_F77" = relink; then
14700 # Fast installation is not supported
14701 enable_fast_install=no
14702 elif test "$shlibpath_overrides_runpath" = yes ||
14703 test "$enable_shared" = no; then
14704 # Fast installation is not necessary
14705 enable_fast_install=needless
14710 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14711 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14712 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14713 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14714 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14715 echo "$as_me:$LINENO: result: yes" >&5
14716 echo "${ECHO_T}yes" >&6
14718 # FIXME - insert some real tests, host_os isn't really good enough
14721 if test -n "$STRIP" ; then
14722 striplib="$STRIP -x"
14723 echo "$as_me:$LINENO: result: yes" >&5
14724 echo "${ECHO_T}yes" >&6
14726 echo "$as_me:$LINENO: result: no" >&5
14727 echo "${ECHO_T}no" >&6
14731 echo "$as_me:$LINENO: result: no" >&5
14732 echo "${ECHO_T}no" >&6
14739 # The else clause should only fire when bootstrapping the
14740 # libtool distribution, otherwise you forgot to ship ltmain.sh
14741 # with your package, and you will get complaints that there are
14742 # no rules to generate ltmain.sh.
14743 if test -f "$ltmain"; then
14744 # See if we are running on zsh, and set the options which allow our commands through
14745 # without removal of \ escapes.
14746 if test -n "${ZSH_VERSION+set}" ; then
14747 setopt NO_GLOB_SUBST
14749 # Now quote all the things that may contain metacharacters while being
14750 # careful not to overquote the AC_SUBSTed values. We take copies of the
14751 # variables and quote the copies for generation of the libtool script.
14752 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14754 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14755 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14756 deplibs_check_method reload_flag reload_cmds need_locks \
14757 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14758 lt_cv_sys_global_symbol_to_c_name_address \
14759 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14760 old_postinstall_cmds old_postuninstall_cmds \
14764 lt_prog_compiler_wl_F77 \
14765 lt_prog_compiler_pic_F77 \
14766 lt_prog_compiler_static_F77 \
14767 lt_prog_compiler_no_builtin_flag_F77 \
14768 export_dynamic_flag_spec_F77 \
14769 thread_safe_flag_spec_F77 \
14770 whole_archive_flag_spec_F77 \
14771 enable_shared_with_static_runtimes_F77 \
14772 old_archive_cmds_F77 \
14773 old_archive_from_new_cmds_F77 \
14774 predep_objects_F77 \
14775 postdep_objects_F77 \
14778 compiler_lib_search_path_F77 \
14780 archive_expsym_cmds_F77 \
14781 postinstall_cmds_F77 \
14782 postuninstall_cmds_F77 \
14783 old_archive_from_expsyms_cmds_F77 \
14784 allow_undefined_flag_F77 \
14785 no_undefined_flag_F77 \
14786 export_symbols_cmds_F77 \
14787 hardcode_libdir_flag_spec_F77 \
14788 hardcode_libdir_flag_spec_ld_F77 \
14789 hardcode_libdir_separator_F77 \
14790 hardcode_automatic_F77 \
14792 module_expsym_cmds_F77 \
14793 lt_cv_prog_compiler_c_o_F77 \
14794 exclude_expsyms_F77 \
14795 include_expsyms_F77; do
14798 old_archive_cmds_F77 | \
14799 old_archive_from_new_cmds_F77 | \
14800 archive_cmds_F77 | \
14801 archive_expsym_cmds_F77 | \
14802 module_cmds_F77 | \
14803 module_expsym_cmds_F77 | \
14804 old_archive_from_expsyms_cmds_F77 | \
14805 export_symbols_cmds_F77 | \
14806 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14807 postinstall_cmds | postuninstall_cmds | \
14808 old_postinstall_cmds | old_postuninstall_cmds | \
14809 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14810 # Double-quote double-evaled strings.
14811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14820 *'\$0 --fallback-echo"')
14821 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14827 cat <<__EOF__ >> "$cfgfile"
14828 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14830 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14832 # Shell to use when invoking shell scripts.
14835 # Whether or not to build shared libraries.
14836 build_libtool_libs=$enable_shared
14838 # Whether or not to build static libraries.
14839 build_old_libs=$enable_static
14841 # Whether or not to add -lc for building shared libraries.
14842 build_libtool_need_lc=$archive_cmds_need_lc_F77
14844 # Whether or not to disallow shared libs when runtime libs are static
14845 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14847 # Whether or not to optimize for fast installation.
14848 fast_install=$enable_fast_install
14851 host_alias=$host_alias
14854 # An echo program that does not interpret backslashes.
14859 AR_FLAGS=$lt_AR_FLAGS
14864 # A language-specific compiler.
14865 CC=$lt_compiler_F77
14867 # Is the compiler the GNU C compiler?
14873 # The linker used to build libraries.
14876 # Whether we need hard or soft links.
14879 # A BSD-compatible nm program.
14882 # A symbol stripping program
14885 # Used to examine libraries when file_magic_cmd begins "file"
14886 MAGIC_CMD=$MAGIC_CMD
14888 # Used on cygwin: DLL creation program.
14891 # Used on cygwin: object dumper.
14894 # Used on cygwin: assembler.
14897 # The name of the directory that contains temporary libtool files.
14900 # How to create reloadable object files.
14901 reload_flag=$lt_reload_flag
14902 reload_cmds=$lt_reload_cmds
14904 # How to pass a linker flag through the compiler.
14905 wl=$lt_lt_prog_compiler_wl_F77
14907 # Object file suffix (normally "o").
14908 objext="$ac_objext"
14910 # Old archive suffix (normally "a").
14913 # Shared library suffix (normally ".so").
14916 # Executable file suffix (normally "").
14919 # Additional compiler flags for building library objects.
14920 pic_flag=$lt_lt_prog_compiler_pic_F77
14923 # What is the maximum length of a command?
14924 max_cmd_len=$lt_cv_sys_max_cmd_len
14926 # Does compiler simultaneously support -c and -o options?
14927 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14929 # Must we lock files when doing compilation ?
14930 need_locks=$lt_need_locks
14932 # Do we need the lib prefix for modules?
14933 need_lib_prefix=$need_lib_prefix
14935 # Do we need a version for libraries?
14936 need_version=$need_version
14938 # Whether dlopen is supported.
14939 dlopen_support=$enable_dlopen
14941 # Whether dlopen of programs is supported.
14942 dlopen_self=$enable_dlopen_self
14944 # Whether dlopen of statically linked programs is supported.
14945 dlopen_self_static=$enable_dlopen_self_static
14947 # Compiler flag to prevent dynamic linking.
14948 link_static_flag=$lt_lt_prog_compiler_static_F77
14950 # Compiler flag to turn off builtin functions.
14951 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14953 # Compiler flag to allow reflexive dlopens.
14954 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14956 # Compiler flag to generate shared objects directly from archives.
14957 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14959 # Compiler flag to generate thread-safe objects.
14960 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14962 # Library versioning type.
14963 version_type=$version_type
14965 # Format of library name prefix.
14966 libname_spec=$lt_libname_spec
14968 # List of archive names. First name is the real one, the rest are links.
14969 # The last name is the one that the linker finds with -lNAME.
14970 library_names_spec=$lt_library_names_spec
14972 # The coded name of the library, if different from the real name.
14973 soname_spec=$lt_soname_spec
14975 # Commands used to build and install an old-style archive.
14977 old_archive_cmds=$lt_old_archive_cmds_F77
14978 old_postinstall_cmds=$lt_old_postinstall_cmds
14979 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14981 # Create an old-style archive from a shared archive.
14982 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14984 # Create a temporary old-style archive to link instead of a shared archive.
14985 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14987 # Commands used to build and install a shared archive.
14988 archive_cmds=$lt_archive_cmds_F77
14989 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14990 postinstall_cmds=$lt_postinstall_cmds
14991 postuninstall_cmds=$lt_postuninstall_cmds
14993 # Commands used to build a loadable module (assumed same as above if empty)
14994 module_cmds=$lt_module_cmds_F77
14995 module_expsym_cmds=$lt_module_expsym_cmds_F77
14997 # Commands to strip libraries.
14998 old_striplib=$lt_old_striplib
14999 striplib=$lt_striplib
15001 # Dependencies to place before the objects being linked to create a
15003 predep_objects=$lt_predep_objects_F77
15005 # Dependencies to place after the objects being linked to create a
15007 postdep_objects=$lt_postdep_objects_F77
15009 # Dependencies to place before the objects being linked to create a
15011 predeps=$lt_predeps_F77
15013 # Dependencies to place after the objects being linked to create a
15015 postdeps=$lt_postdeps_F77
15017 # The library search path used internally by the compiler when linking
15018 # a shared library.
15019 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15021 # Method to check whether dependent libraries are shared objects.
15022 deplibs_check_method=$lt_deplibs_check_method
15024 # Command to use when deplibs_check_method == file_magic.
15025 file_magic_cmd=$lt_file_magic_cmd
15027 # Flag that allows shared libraries with undefined symbols to be built.
15028 allow_undefined_flag=$lt_allow_undefined_flag_F77
15030 # Flag that forces no undefined symbols.
15031 no_undefined_flag=$lt_no_undefined_flag_F77
15033 # Commands used to finish a libtool library installation in a directory.
15034 finish_cmds=$lt_finish_cmds
15036 # Same as above, but a single script fragment to be evaled but not shown.
15037 finish_eval=$lt_finish_eval
15039 # Take the output of nm and produce a listing of raw symbols and C names.
15040 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15042 # Transform the output of nm in a proper C declaration
15043 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15045 # Transform the output of nm in a C name address pair
15046 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15048 # This is the shared library runtime path variable.
15049 runpath_var=$runpath_var
15051 # This is the shared library path variable.
15052 shlibpath_var=$shlibpath_var
15054 # Is shlibpath searched before the hard-coded library search path?
15055 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15057 # How to hardcode a shared library path into an executable.
15058 hardcode_action=$hardcode_action_F77
15060 # Whether we should hardcode library paths into libraries.
15061 hardcode_into_libs=$hardcode_into_libs
15063 # Flag to hardcode \$libdir into a binary during linking.
15064 # This must work even if \$libdir does not exist.
15065 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15067 # If ld is used when linking, flag to hardcode \$libdir into
15068 # a binary during linking. This must work even if \$libdir does
15070 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15072 # Whether we need a single -rpath flag with a separated argument.
15073 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15075 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15076 # resulting binary.
15077 hardcode_direct=$hardcode_direct_F77
15079 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15080 # resulting binary.
15081 hardcode_minus_L=$hardcode_minus_L_F77
15083 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15084 # the resulting binary.
15085 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15087 # Set to yes if building a shared library automatically hardcodes DIR into the library
15088 # and all subsequent libraries and executables linked against it.
15089 hardcode_automatic=$hardcode_automatic_F77
15091 # Variables whose values should be saved in libtool wrapper scripts and
15092 # restored at relink time.
15093 variables_saved_for_relink="$variables_saved_for_relink"
15095 # Whether libtool must link a program against all its dependency libraries.
15096 link_all_deplibs=$link_all_deplibs_F77
15098 # Compile-time system search path for libraries
15099 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15101 # Run-time system search path for libraries
15102 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15104 # Fix the shell variable \$srcfile for the compiler.
15105 fix_srcfile_path="$fix_srcfile_path_F77"
15107 # Set to yes if exported symbols are required.
15108 always_export_symbols=$always_export_symbols_F77
15110 # The commands to list exported symbols.
15111 export_symbols_cmds=$lt_export_symbols_cmds_F77
15113 # The commands to extract the exported symbol list from a shared archive.
15114 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15116 # Symbols that should not be listed in the preloaded symbols.
15117 exclude_expsyms=$lt_exclude_expsyms_F77
15119 # Symbols that must always be exported.
15120 include_expsyms=$lt_include_expsyms_F77
15122 # ### END LIBTOOL TAG CONFIG: $tagname
15128 # If there is no Makefile yet, we rely on a make rule to execute
15129 # `config.status --recheck' to rerun these tests and create the
15130 # libtool script then.
15131 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15132 if test -f "$ltmain_in"; then
15133 test -f Makefile && make "$ltmain"
15139 ac_cpp='$CPP $CPPFLAGS'
15140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15152 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15156 # Source file extension for Java test sources.
15159 # Object file extension for compiled Java test sources.
15163 # Code to be used in simple compile tests
15164 lt_simple_compile_test_code="class foo {}\n"
15166 # Code to be used in simple link tests
15167 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15169 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15171 # If no C compiler was specified, use CC.
15174 # Allow CC to be a program name with arguments.
15178 # Allow CC to be a program name with arguments.
15184 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15185 archive_cmds_need_lc_GCJ=no
15188 lt_prog_compiler_no_builtin_flag_GCJ=
15190 if test "$GCC" = yes; then
15191 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15194 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15195 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15196 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15199 lt_cv_prog_compiler_rtti_exceptions=no
15200 ac_outfile=conftest.$ac_objext
15201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15202 lt_compiler_flag="-fno-rtti -fno-exceptions"
15203 # Insert the option either (1) after the last *FLAGS variable, or
15204 # (2) before a word containing "conftest.", or (3) at the end.
15205 # Note that $ac_compile itself does not contain backslashes and begins
15206 # with a dollar sign (not a hyphen), so the echo should work correctly.
15207 # The option is referenced via a variable to avoid confusing sed.
15208 lt_compile=`echo "$ac_compile" | $SED \
15209 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15211 -e 's:$: $lt_compiler_flag:'`
15212 (eval echo "\"\$as_me:15212: $lt_compile\"" >&5)
15213 (eval "$lt_compile" 2>conftest.err)
15215 cat conftest.err >&5
15216 echo "$as_me:15216: \$? = $ac_status" >&5
15217 if (exit $ac_status) && test -s "$ac_outfile"; then
15218 # The compiler can only warn and ignore the option if not recognized
15219 # So say no if there are warnings
15220 if test ! -s conftest.err; then
15221 lt_cv_prog_compiler_rtti_exceptions=yes
15227 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15228 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15230 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15231 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15238 lt_prog_compiler_wl_GCJ=
15239 lt_prog_compiler_pic_GCJ=
15240 lt_prog_compiler_static_GCJ=
15242 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15243 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15245 if test "$GCC" = yes; then
15246 lt_prog_compiler_wl_GCJ='-Wl,'
15247 lt_prog_compiler_static_GCJ='-static'
15251 # All AIX code is PIC.
15252 if test "$host_cpu" = ia64; then
15253 # AIX 5 now supports IA64 processor
15254 lt_prog_compiler_static_GCJ='-Bstatic'
15259 # FIXME: we need at least 68020 code to build shared libraries, but
15260 # adding the `-m68020' flag to GCC prevents building anything better,
15262 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15265 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15266 # PIC is the default for these OSes.
15269 mingw* | pw32* | os2*)
15270 # This hack is so that the source file can tell whether it is being
15271 # built for inclusion in a dll (and should export symbols for example).
15272 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15275 darwin* | rhapsody*)
15276 # PIC is the default on this platform
15277 # Common symbols not allowed in MH_DYLIB files
15278 lt_prog_compiler_pic_GCJ='-fno-common'
15282 # Just because we use GCC doesn't mean we suddenly get shared libraries
15283 # on systems that don't support them.
15284 lt_prog_compiler_can_build_shared_GCJ=no
15289 if test -d /usr/nec; then
15290 lt_prog_compiler_pic_GCJ=-Kconform_pic
15295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15296 # not for PA HP-UX.
15297 case "$host_cpu" in
15302 lt_prog_compiler_pic_GCJ='-fPIC'
15308 lt_prog_compiler_pic_GCJ='-fPIC'
15312 # PORTME Check for flag to pass linker flags through the system compiler.
15315 lt_prog_compiler_wl_GCJ='-Wl,'
15316 if test "$host_cpu" = ia64; then
15317 # AIX 5 now supports IA64 processor
15318 lt_prog_compiler_static_GCJ='-Bstatic'
15320 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15324 mingw* | pw32* | os2*)
15325 # This hack is so that the source file can tell whether it is being
15326 # built for inclusion in a dll (and should export symbols for example).
15327 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15330 hpux9* | hpux10* | hpux11*)
15331 lt_prog_compiler_wl_GCJ='-Wl,'
15332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15333 # not for PA HP-UX.
15334 case "$host_cpu" in
15339 lt_prog_compiler_pic_GCJ='+Z'
15342 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15343 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15346 irix5* | irix6* | nonstopux*)
15347 lt_prog_compiler_wl_GCJ='-Wl,'
15348 # PIC (with -KPIC) is the default.
15349 lt_prog_compiler_static_GCJ='-non_shared'
15353 lt_prog_compiler_pic_GCJ='-KPIC'
15354 lt_prog_compiler_static_GCJ='-Bstatic'
15360 lt_prog_compiler_wl_GCJ='-Wl,'
15361 lt_prog_compiler_pic_GCJ='-KPIC'
15362 lt_prog_compiler_static_GCJ='-static'
15365 lt_prog_compiler_wl_GCJ='-Wl,'
15366 # All Alpha code is PIC.
15367 lt_prog_compiler_static_GCJ='-non_shared'
15372 osf3* | osf4* | osf5*)
15373 lt_prog_compiler_wl_GCJ='-Wl,'
15374 # All OSF/1 code is PIC.
15375 lt_prog_compiler_static_GCJ='-non_shared'
15379 lt_prog_compiler_pic_GCJ='-Kpic'
15380 lt_prog_compiler_static_GCJ='-dn'
15384 lt_prog_compiler_wl_GCJ='-Wl,'
15385 lt_prog_compiler_pic_GCJ='-KPIC'
15386 lt_prog_compiler_static_GCJ='-Bstatic'
15390 lt_prog_compiler_wl_GCJ='-Qoption ld '
15391 lt_prog_compiler_pic_GCJ='-PIC'
15392 lt_prog_compiler_static_GCJ='-Bstatic'
15395 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15396 lt_prog_compiler_wl_GCJ='-Wl,'
15397 lt_prog_compiler_pic_GCJ='-KPIC'
15398 lt_prog_compiler_static_GCJ='-Bstatic'
15402 if test -d /usr/nec ;then
15403 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15404 lt_prog_compiler_static_GCJ='-Bstatic'
15409 lt_prog_compiler_pic_GCJ='-pic'
15410 lt_prog_compiler_static_GCJ='-Bstatic'
15414 lt_prog_compiler_can_build_shared_GCJ=no
15419 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15420 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15423 # Check to make sure the PIC flag actually works.
15425 if test -n "$lt_prog_compiler_pic_GCJ"; then
15427 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15428 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15429 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15432 lt_prog_compiler_pic_works_GCJ=no
15433 ac_outfile=conftest.$ac_objext
15434 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15435 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15436 # Insert the option either (1) after the last *FLAGS variable, or
15437 # (2) before a word containing "conftest.", or (3) at the end.
15438 # Note that $ac_compile itself does not contain backslashes and begins
15439 # with a dollar sign (not a hyphen), so the echo should work correctly.
15440 # The option is referenced via a variable to avoid confusing sed.
15441 lt_compile=`echo "$ac_compile" | $SED \
15442 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15444 -e 's:$: $lt_compiler_flag:'`
15445 (eval echo "\"\$as_me:15445: $lt_compile\"" >&5)
15446 (eval "$lt_compile" 2>conftest.err)
15448 cat conftest.err >&5
15449 echo "$as_me:15449: \$? = $ac_status" >&5
15450 if (exit $ac_status) && test -s "$ac_outfile"; then
15451 # The compiler can only warn and ignore the option if not recognized
15452 # So say no if there are warnings
15453 if test ! -s conftest.err; then
15454 lt_prog_compiler_pic_works_GCJ=yes
15460 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15461 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15463 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15464 case $lt_prog_compiler_pic_GCJ in
15466 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15469 lt_prog_compiler_pic_GCJ=
15470 lt_prog_compiler_can_build_shared_GCJ=no
15475 # For platforms which do not support PIC, -DPIC is meaningless:
15477 lt_prog_compiler_pic_GCJ=
15480 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15484 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15485 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15486 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 lt_cv_prog_compiler_c_o_GCJ=no
15490 $rm -r conftest 2>/dev/null
15494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15496 lt_compiler_flag="-o out/conftest2.$ac_objext"
15497 # Insert the option either (1) after the last *FLAGS variable, or
15498 # (2) before a word containing "conftest.", or (3) at the end.
15499 # Note that $ac_compile itself does not contain backslashes and begins
15500 # with a dollar sign (not a hyphen), so the echo should work correctly.
15501 lt_compile=`echo "$ac_compile" | $SED \
15502 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15504 -e 's:$: $lt_compiler_flag:'`
15505 (eval echo "\"\$as_me:15505: $lt_compile\"" >&5)
15506 (eval "$lt_compile" 2>out/conftest.err)
15508 cat out/conftest.err >&5
15509 echo "$as_me:15509: \$? = $ac_status" >&5
15510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15512 # The compiler can only warn and ignore the option if not recognized
15513 # So say no if there are warnings
15514 if test ! -s out/conftest.err; then
15515 lt_cv_prog_compiler_c_o_GCJ=yes
15520 # SGI C++ compiler will create directory out/ii_files/ for
15521 # template instantiation
15522 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15523 $rm out/* && rmdir out
15529 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15530 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15533 hard_links="nottested"
15534 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15535 # do not overwrite the value of need_locks provided by the user
15536 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15537 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15542 ln conftest.a conftest.b 2>&5 || hard_links=no
15543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15544 echo "$as_me:$LINENO: result: $hard_links" >&5
15545 echo "${ECHO_T}$hard_links" >&6
15546 if test "$hard_links" = no; then
15547 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15548 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15555 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15556 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15559 allow_undefined_flag_GCJ=
15560 enable_shared_with_static_runtimes_GCJ=no
15562 archive_expsym_cmds_GCJ=
15563 old_archive_From_new_cmds_GCJ=
15564 old_archive_from_expsyms_cmds_GCJ=
15565 export_dynamic_flag_spec_GCJ=
15566 whole_archive_flag_spec_GCJ=
15567 thread_safe_flag_spec_GCJ=
15568 hardcode_libdir_flag_spec_GCJ=
15569 hardcode_libdir_flag_spec_ld_GCJ=
15570 hardcode_libdir_separator_GCJ=
15571 hardcode_direct_GCJ=no
15572 hardcode_minus_L_GCJ=no
15573 hardcode_shlibpath_var_GCJ=unsupported
15574 link_all_deplibs_GCJ=unknown
15575 hardcode_automatic_GCJ=no
15577 module_expsym_cmds_GCJ=
15578 always_export_symbols_GCJ=no
15579 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15580 # include_expsyms should be a list of space-separated symbols to be *always*
15581 # included in the symbol list
15582 include_expsyms_GCJ=
15583 # exclude_expsyms can be an extended regexp of symbols to exclude
15584 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15585 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15586 # as well as any symbol that contains `d'.
15587 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15588 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15589 # platforms (ab)use it in PIC code, but their linkers get confused if
15590 # the symbol is explicitly referenced. Since portable code cannot
15591 # rely on this symbol name, it's probably fine to never include it in
15592 # preloaded symbol tables.
15593 extract_expsyms_cmds=
15596 cygwin* | mingw* | pw32*)
15597 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15598 # When not using gcc, we currently assume that we are using
15599 # Microsoft Visual C++.
15600 if test "$GCC" != yes; then
15610 if test "$with_gnu_ld" = yes; then
15611 # If archive_cmds runs LD, not CC, wlarc should be empty
15614 # See if GNU ld supports shared libraries.
15616 aix3* | aix4* | aix5*)
15617 # On AIX/PPC, the GNU linker is very broken
15618 if test "$host_cpu" != ia64; then
15622 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15623 *** to be unable to reliably create shared libraries on AIX.
15624 *** Therefore, libtool is disabling shared libraries support. If you
15625 *** really care for shared libraries, you may want to modify your PATH
15626 *** so that a non-GNU linker is found, and then restart.
15633 archive_cmds_GCJ='$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)'
15634 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15635 hardcode_minus_L_GCJ=yes
15637 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15638 # that the semantics of dynamic libraries on AmigaOS, at least up
15639 # to version 4, is to share data among multiple programs linked
15640 # with the same dynamic library. Since this doesn't match the
15641 # behavior of shared libraries on other platforms, we can't use
15647 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15648 allow_undefined_flag_GCJ=unsupported
15649 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15650 # support --undefined. This deserves some investigation. FIXME
15651 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15657 cygwin* | mingw* | pw32*)
15658 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15659 # as there is no search path for DLLs.
15660 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15661 allow_undefined_flag_GCJ=unsupported
15662 always_export_symbols_GCJ=no
15663 enable_shared_with_static_runtimes_GCJ=yes
15664 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15666 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15667 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15668 # If the export-symbols file already is a .def file (1st line
15669 # is EXPORTS), use it as is; otherwise, prepend...
15670 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15671 cp $export_symbols $output_objdir/$soname.def;
15673 echo EXPORTS > $output_objdir/$soname.def;
15674 cat $export_symbols >> $output_objdir/$soname.def;
15676 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15683 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15684 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15687 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15688 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15693 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15697 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15698 *** create shared libraries on Solaris systems. Therefore, libtool
15699 *** is disabling shared libraries support. We urge you to upgrade GNU
15700 *** binutils to release 2.9.1 or newer. Another option is to modify
15701 *** your PATH or compiler configuration so that the native linker is
15702 *** used, and then restart.
15705 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15706 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15707 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15714 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15716 hardcode_direct_GCJ=yes
15717 hardcode_shlibpath_var_GCJ=no
15721 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15722 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15723 archive_cmds_GCJ="$tmp_archive_cmds"
15724 supports_anon_versioning=no
15725 case `$LD -v 2>/dev/null` in
15726 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15727 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15728 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15729 *\ 2.11.*) ;; # other 2.11 versions
15730 *) supports_anon_versioning=yes ;;
15732 if test $supports_anon_versioning = yes; then
15733 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15734 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15735 $echo "local: *; };" >> $output_objdir/$libname.ver~
15736 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15738 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15746 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15747 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15748 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15755 if test "$ld_shlibs_GCJ" = yes; then
15756 runpath_var=LD_RUN_PATH
15757 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15758 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15759 # ancient GNU ld didn't support --whole-archive et. al.
15760 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15761 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15763 whole_archive_flag_spec_GCJ=
15767 # PORTME fill in a description of your system's linker (not GNU ld)
15770 allow_undefined_flag_GCJ=unsupported
15771 always_export_symbols_GCJ=yes
15772 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15773 # Note: this linker hardcodes the directories in LIBPATH if there
15774 # are no directories specified by -L.
15775 hardcode_minus_L_GCJ=yes
15776 if test "$GCC" = yes && test -z "$link_static_flag"; then
15777 # Neither direct hardcoding nor static linking is supported with a
15779 hardcode_direct_GCJ=unsupported
15784 if test "$host_cpu" = ia64; then
15785 # On IA64, the linker does run time linking by default, so we don't
15786 # have to do anything special.
15787 aix_use_runtimelinking=no
15788 exp_sym_flag='-Bexport'
15791 # If we're using GNU nm, then we don't want the "-C" option.
15792 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15793 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15794 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15796 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15798 aix_use_runtimelinking=no
15800 # Test if we are trying to use run time linking or normal
15801 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15802 # need to do runtime linking.
15803 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15804 for ld_flag in $LDFLAGS; do
15805 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15806 aix_use_runtimelinking=yes
15812 exp_sym_flag='-bexport'
15813 no_entry_flag='-bnoentry'
15816 # When large executables or shared objects are built, AIX ld can
15817 # have problems creating the table of contents. If linking a library
15818 # or program results in "error TOC overflow" add -mminimal-toc to
15819 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15820 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15822 archive_cmds_GCJ=''
15823 hardcode_direct_GCJ=yes
15824 hardcode_libdir_separator_GCJ=':'
15825 link_all_deplibs_GCJ=yes
15827 if test "$GCC" = yes; then
15828 case $host_os in aix4.012|aix4.012.*)
15829 # We only want to do this on AIX 4.2 and lower, the check
15830 # below for broken collect2 doesn't work under 4.3+
15831 collect2name=`${CC} -print-prog-name=collect2`
15832 if test -f "$collect2name" && \
15833 strings "$collect2name" | grep resolve_lib_name >/dev/null
15835 # We have reworked collect2
15836 hardcode_direct_GCJ=yes
15838 # We have old collect2
15839 hardcode_direct_GCJ=unsupported
15840 # It fails to find uninstalled libraries when the uninstalled
15841 # path is not listed in the libpath. Setting hardcode_minus_L
15842 # to unsupported forces relinking
15843 hardcode_minus_L_GCJ=yes
15844 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15845 hardcode_libdir_separator_GCJ=
15848 shared_flag='-shared'
15851 if test "$host_cpu" = ia64; then
15852 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15853 # chokes on -Wl,-G. The following line is correct:
15856 if test "$aix_use_runtimelinking" = yes; then
15857 shared_flag='${wl}-G'
15859 shared_flag='${wl}-bM:SRE'
15864 # It seems that -bexpall does not export symbols beginning with
15865 # underscore (_), so it is better to generate a list of symbols to export.
15866 always_export_symbols_GCJ=yes
15867 if test "$aix_use_runtimelinking" = yes; then
15868 # Warning - without using the other runtime loading flags (-brtl),
15869 # -berok will link without error, but may produce a broken library.
15870 allow_undefined_flag_GCJ='-berok'
15871 # Determine the default libpath from the value encoded in an empty executable.
15872 cat >conftest.$ac_ext <<_ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15887 rm -f conftest.$ac_objext conftest$ac_exeext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15889 (eval $ac_link) 2>conftest.er1
15891 grep -v '^ *+' conftest.er1 >conftest.err
15893 cat conftest.err >&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); } &&
15896 { ac_try='test -z "$ac_c_werror_flag"
15897 || test ! -s conftest.err'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; } &&
15903 { ac_try='test -s conftest$ac_exeext'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; }; then
15910 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15912 # Check for a 64-bit object if we didn't find anything.
15913 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15916 echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15920 rm -f conftest.err conftest.$ac_objext \
15921 conftest$ac_exeext conftest.$ac_ext
15922 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15924 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15925 archive_expsym_cmds_GCJ="\$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"
15927 if test "$host_cpu" = ia64; then
15928 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15929 allow_undefined_flag_GCJ="-z nodefs"
15930 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15932 # Determine the default libpath from the value encoded in an empty executable.
15933 cat >conftest.$ac_ext <<_ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h. */
15948 rm -f conftest.$ac_objext conftest$ac_exeext
15949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15950 (eval $ac_link) 2>conftest.er1
15952 grep -v '^ *+' conftest.er1 >conftest.err
15954 cat conftest.err >&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } &&
15957 { ac_try='test -z "$ac_c_werror_flag"
15958 || test ! -s conftest.err'
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; } &&
15964 { ac_try='test -s conftest$ac_exeext'
15965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966 (eval $ac_try) 2>&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; }; then
15971 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15973 # Check for a 64-bit object if we didn't find anything.
15974 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15977 echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15981 rm -f conftest.err conftest.$ac_objext \
15982 conftest$ac_exeext conftest.$ac_ext
15983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15985 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15986 # Warning - without using the other run time loading flags,
15987 # -berok will link without error, but may produce a broken library.
15988 no_undefined_flag_GCJ=' ${wl}-bernotok'
15989 allow_undefined_flag_GCJ=' ${wl}-berok'
15990 # -bexpall does not export symbols beginning with underscore (_)
15991 always_export_symbols_GCJ=yes
15992 # Exported symbols can be pulled into shared objects from archives
15993 whole_archive_flag_spec_GCJ=' '
15994 archive_cmds_need_lc_GCJ=yes
15995 # This is similar to how AIX traditionally builds it's shared libraries.
15996 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16002 archive_cmds_GCJ='$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)'
16003 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16004 hardcode_minus_L_GCJ=yes
16005 # see comment about different semantics on the GNU ld section
16010 export_dynamic_flag_spec_GCJ=-rdynamic
16013 cygwin* | mingw* | pw32*)
16014 # When not using gcc, we currently assume that we are using
16015 # Microsoft Visual C++.
16016 # hardcode_libdir_flag_spec is actually meaningless, as there is
16017 # no search path for DLLs.
16018 hardcode_libdir_flag_spec_GCJ=' '
16019 allow_undefined_flag_GCJ=unsupported
16020 # Tell ltmain to make .lib files, not .a files.
16022 # Tell ltmain to make .dll files, not .so files.
16024 # FIXME: Setting linknames here is a bad hack.
16025 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16026 # The linker will automatically build a .lib file if we build a DLL.
16027 old_archive_From_new_cmds_GCJ='true'
16028 # FIXME: Should let the user specify the lib program.
16029 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16030 fix_srcfile_path='`cygpath -w "$srcfile"`'
16031 enable_shared_with_static_runtimes_GCJ=yes
16034 darwin* | rhapsody*)
16035 if test "$GXX" = yes ; then
16036 archive_cmds_need_lc_GCJ=no
16038 rhapsody* | darwin1.[012])
16039 allow_undefined_flag_GCJ='-undefined suppress'
16042 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16043 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16045 case ${MACOSX_DEPLOYMENT_TARGET} in
16047 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16050 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16056 lt_int_apple_cc_single_mod=no
16057 output_verbose_link_cmd='echo'
16058 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16059 lt_int_apple_cc_single_mod=yes
16061 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16062 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16064 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16066 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16067 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16068 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16069 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16071 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16073 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16074 hardcode_direct_GCJ=no
16075 hardcode_automatic_GCJ=yes
16076 hardcode_shlibpath_var_GCJ=unsupported
16077 whole_archive_flag_spec_GCJ='-all_load $convenience'
16078 link_all_deplibs_GCJ=yes
16085 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16086 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16087 hardcode_shlibpath_var_GCJ=no
16094 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16095 # support. Future versions do this automatically, but an explicit c++rt0.o
16096 # does not break anything, and helps significantly (at the cost of a little
16099 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16100 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16101 hardcode_direct_GCJ=yes
16102 hardcode_shlibpath_var_GCJ=no
16105 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16107 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16108 hardcode_direct_GCJ=yes
16109 hardcode_minus_L_GCJ=yes
16110 hardcode_shlibpath_var_GCJ=no
16113 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16114 freebsd* | kfreebsd*-gnu)
16115 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16116 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16117 hardcode_direct_GCJ=yes
16118 hardcode_shlibpath_var_GCJ=no
16122 if test "$GCC" = yes; then
16123 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16125 archive_cmds_GCJ='$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'
16127 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16128 hardcode_libdir_separator_GCJ=:
16129 hardcode_direct_GCJ=yes
16131 # hardcode_minus_L: Not really in the search PATH,
16132 # but as the default location of the library.
16133 hardcode_minus_L_GCJ=yes
16134 export_dynamic_flag_spec_GCJ='${wl}-E'
16138 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16139 case "$host_cpu" in
16141 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16144 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16148 case "$host_cpu" in
16150 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16153 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16157 if test "$with_gnu_ld" = no; then
16158 case "$host_cpu" in
16160 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16161 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16162 hardcode_libdir_separator_GCJ=:
16163 hardcode_direct_GCJ=no
16164 hardcode_shlibpath_var_GCJ=no
16167 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16168 hardcode_direct_GCJ=no
16169 hardcode_shlibpath_var_GCJ=no
16171 # hardcode_minus_L: Not really in the search PATH,
16172 # but as the default location of the library.
16173 hardcode_minus_L_GCJ=yes
16176 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16177 hardcode_libdir_separator_GCJ=:
16178 hardcode_direct_GCJ=yes
16179 export_dynamic_flag_spec_GCJ='${wl}-E'
16181 # hardcode_minus_L: Not really in the search PATH,
16182 # but as the default location of the library.
16183 hardcode_minus_L_GCJ=yes
16189 irix5* | irix6* | nonstopux*)
16190 if test "$GCC" = yes; then
16191 archive_cmds_GCJ='$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'
16193 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16194 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16196 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16197 hardcode_libdir_separator_GCJ=:
16198 link_all_deplibs_GCJ=yes
16202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16203 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16205 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16207 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16208 hardcode_direct_GCJ=yes
16209 hardcode_shlibpath_var_GCJ=no
16213 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16214 hardcode_direct_GCJ=yes
16215 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16216 hardcode_libdir_separator_GCJ=:
16217 hardcode_shlibpath_var_GCJ=no
16221 hardcode_direct_GCJ=yes
16222 hardcode_shlibpath_var_GCJ=no
16223 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16224 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16225 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16226 export_dynamic_flag_spec_GCJ='${wl}-E'
16229 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16230 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16231 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16234 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16235 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16242 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16243 hardcode_minus_L_GCJ=yes
16244 allow_undefined_flag_GCJ=unsupported
16245 archive_cmds_GCJ='$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'
16246 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16250 if test "$GCC" = yes; then
16251 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16252 archive_cmds_GCJ='$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'
16254 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16255 archive_cmds_GCJ='$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'
16257 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16258 hardcode_libdir_separator_GCJ=:
16261 osf4* | osf5*) # as osf3* with the addition of -msym flag
16262 if test "$GCC" = yes; then
16263 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16264 archive_cmds_GCJ='$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'
16265 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16267 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16268 archive_cmds_GCJ='$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'
16269 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16270 $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'
16272 # Both c and cxx compiler support -rpath directly
16273 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16275 hardcode_libdir_separator_GCJ=:
16279 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16280 hardcode_shlibpath_var_GCJ=no
16281 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16282 runpath_var=LD_RUN_PATH
16283 hardcode_runpath_var=yes
16287 no_undefined_flag_GCJ=' -z text'
16288 if test "$GCC" = yes; then
16289 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16290 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16291 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16293 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16294 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16295 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16297 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16298 hardcode_shlibpath_var_GCJ=no
16300 solaris2.[0-5] | solaris2.[0-5].*) ;;
16301 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16302 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16304 link_all_deplibs_GCJ=yes
16308 if test "x$host_vendor" = xsequent; then
16309 # Use $CC to link under sequent, because it throws in some extra .o
16310 # files that make .init and .fini sections work.
16311 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16313 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16315 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16316 hardcode_direct_GCJ=yes
16317 hardcode_minus_L_GCJ=yes
16318 hardcode_shlibpath_var_GCJ=no
16322 case $host_vendor in
16324 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16325 hardcode_direct_GCJ=yes # is this really true???
16328 ## LD is ld it makes a PLAMLIB
16329 ## CC just makes a GrossModule.
16330 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16331 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16332 hardcode_direct_GCJ=no
16335 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16336 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16339 runpath_var='LD_RUN_PATH'
16340 hardcode_shlibpath_var_GCJ=no
16344 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16345 hardcode_shlibpath_var_GCJ=no
16346 export_dynamic_flag_spec_GCJ='-Bexport'
16350 if test -d /usr/nec; then
16351 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16352 hardcode_shlibpath_var_GCJ=no
16353 runpath_var=LD_RUN_PATH
16354 hardcode_runpath_var=yes
16360 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16361 hardcode_direct_GCJ=yes
16362 hardcode_minus_L_GCJ=no
16363 hardcode_shlibpath_var_GCJ=no
16364 hardcode_runpath_var=yes
16365 runpath_var=LD_RUN_PATH
16368 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16369 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16370 if test "$GCC" = yes; then
16371 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16373 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16375 runpath_var='LD_RUN_PATH'
16376 hardcode_shlibpath_var_GCJ=no
16380 no_undefined_flag_GCJ=' -z text'
16381 # $CC -shared without GNU ld will not create a library from C++
16382 # object files and a static libstdc++, better avoid it by now
16383 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16384 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16385 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16386 hardcode_libdir_flag_spec_GCJ=
16387 hardcode_shlibpath_var_GCJ=no
16388 runpath_var='LD_RUN_PATH'
16392 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16393 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16394 hardcode_shlibpath_var_GCJ=no
16403 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16404 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16405 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16407 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16408 if test "$GCC" = yes; then
16409 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16413 # Do we need to explicitly link libc?
16415 case "x$archive_cmds_need_lc_GCJ" in
16417 # Assume -lc should be added
16418 archive_cmds_need_lc_GCJ=yes
16420 if test "$enable_shared" = yes && test "$GCC" = yes; then
16421 case $archive_cmds_GCJ in
16423 # FIXME: we may have to deal with multi-command sequences.
16426 # Test whether the compiler implicitly links with -lc since on some
16427 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16428 # to ld, don't add -lc before -lgcc.
16429 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16430 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16432 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16435 (eval $ac_compile) 2>&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } 2>conftest.err; then
16441 libobjs=conftest.$ac_objext
16443 wl=$lt_prog_compiler_wl_GCJ
16449 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16450 allow_undefined_flag_GCJ=
16451 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16452 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }
16457 archive_cmds_need_lc_GCJ=no
16459 archive_cmds_need_lc_GCJ=yes
16461 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16463 cat conftest.err 1>&5
16466 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16467 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16474 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16475 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16476 library_names_spec=
16477 libname_spec='lib$name'
16481 postuninstall_cmds=
16485 shlibpath_overrides_runpath=unknown
16487 dynamic_linker="$host_os ld.so"
16488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16489 if test "$GCC" = yes; then
16490 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16491 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16492 # if the path contains ";" then we assume it to be the separator
16493 # otherwise default to the standard path separator (i.e. ":") - it is
16494 # assumed that no part of a normal pathname contains ";" but that should
16495 # okay in the real world where ";" in dirpaths is itself problematic.
16496 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16501 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16503 need_lib_prefix=unknown
16504 hardcode_into_libs=no
16506 # when you set need_version to no, make sure it does not cause -set_version
16507 # flags to be left without arguments
16508 need_version=unknown
16513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16514 shlibpath_var=LIBPATH
16516 # AIX 3 has no versioning support, so we append a major version to the name.
16517 soname_spec='${libname}${release}${shared_ext}$major'
16524 hardcode_into_libs=yes
16525 if test "$host_cpu" = ia64; then
16526 # AIX 5 supports IA64
16527 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16528 shlibpath_var=LD_LIBRARY_PATH
16530 # With GCC up to 2.95.x, collect2 would create an import file
16531 # for dependence libraries. The import file would start with
16532 # the line `#! .'. This would cause the generated library to
16533 # depend on `.', always an invalid library. This was fixed in
16534 # development snapshots of GCC prior to 3.0.
16536 aix4 | aix4.[01] | aix4.[01].*)
16537 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16539 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16542 can_build_shared=no
16546 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16547 # soname into executable. Probably we can add versioning support to
16548 # collect2, so additional links can be useful in future.
16549 if test "$aix_use_runtimelinking" = yes; then
16550 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16551 # instead of lib<name>.a to let people know that these are not
16552 # typical AIX shared libraries.
16553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555 # We preserve .a as extension for shared libraries through AIX4.2
16556 # and later when we are not doing run time linking.
16557 library_names_spec='${libname}${release}.a $libname.a'
16558 soname_spec='${libname}${release}${shared_ext}$major'
16560 shlibpath_var=LIBPATH
16565 library_names_spec='$libname.ixlibrary $libname.a'
16566 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16567 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'
16571 library_names_spec='${libname}${shared_ext}'
16572 dynamic_linker="$host_os ld.so"
16573 shlibpath_var=LIBRARY_PATH
16579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16580 soname_spec='${libname}${release}${shared_ext}$major'
16581 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16582 shlibpath_var=LD_LIBRARY_PATH
16583 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16584 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16585 # the default ld.so.conf also contains /usr/contrib/lib and
16586 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16587 # libtool to hard-code these into programs
16590 cygwin* | mingw* | pw32*)
16591 version_type=windows
16596 case $GCC,$host_os in
16597 yes,cygwin* | yes,mingw* | yes,pw32*)
16598 library_names_spec='$libname.dll.a'
16599 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16600 postinstall_cmds='base_file=`basename \${file}`~
16601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16602 dldir=$destdir/`dirname \$dlpath`~
16603 test -d \$dldir || mkdir -p \$dldir~
16604 $install_prog $dir/$dlname \$dldir/$dlname'
16605 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16606 dlpath=$dir/\$dldll~
16608 shlibpath_overrides_runpath=yes
16612 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16613 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16614 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16617 # MinGW DLLs use traditional 'lib' prefix
16618 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16619 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16620 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16621 # It is most probably a Windows format PATH printed by
16622 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16623 # path with ; separators, and with drive letters. We can handle the
16624 # drive letters (cygwin fileutils understands them), so leave them,
16625 # especially as we might pass files found there to a mingw objdump,
16626 # which wouldn't understand a cygwinified path. Ahh.
16627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16629 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16633 # pw32 DLLs use 'pw' prefix rather than 'lib'
16634 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16640 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16642 supports_anon_versioning=no
16643 case `$LD -v 2>/dev/null` in
16644 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16647 *\ 2.11.*) ;; # other 2.11 versions
16648 *) supports_anon_versioning=yes ;;
16650 if test $supports_anon_versioning = yes; then
16651 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
16652 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16653 $echo "local: *; };" >> $output_objdir/$libname.ver~
16654 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16656 $archive_expsym_cmds="$archive_cmds"
16664 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16667 dynamic_linker='Win32 ld.exe'
16668 # FIXME: first we should search . and the directory the executable is in
16672 darwin* | rhapsody*)
16673 dynamic_linker="$host_os dyld"
16674 version_type=darwin
16677 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16678 soname_spec='${libname}${release}${major}$shared_ext'
16679 shlibpath_overrides_runpath=yes
16680 shlibpath_var=DYLD_LIBRARY_PATH
16681 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16682 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16683 if test "$GCC" = yes; then
16684 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16686 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16688 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16696 soname_spec='${libname}${release}${shared_ext}$major'
16697 shlibpath_var=LD_LIBRARY_PATH
16708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16709 soname_spec='${libname}${release}${shared_ext}$major'
16710 shlibpath_var=LD_LIBRARY_PATH
16711 shlibpath_overrides_runpath=no
16712 hardcode_into_libs=yes
16713 dynamic_linker='GNU ld.so'
16717 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16718 version_type=freebsd-$objformat
16719 case $version_type in
16721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16730 shlibpath_var=LD_LIBRARY_PATH
16733 shlibpath_overrides_runpath=yes
16735 freebsd3.01* | freebsdelf3.01*)
16736 shlibpath_overrides_runpath=yes
16737 hardcode_into_libs=yes
16740 shlibpath_overrides_runpath=no
16741 hardcode_into_libs=yes
16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16751 soname_spec='${libname}${release}${shared_ext}$major'
16752 shlibpath_var=LD_LIBRARY_PATH
16753 hardcode_into_libs=yes
16756 hpux9* | hpux10* | hpux11*)
16757 # Give a soname corresponding to the major version so that dld.sl refuses to
16758 # link against other versions.
16762 case "$host_cpu" in
16765 hardcode_into_libs=yes
16766 dynamic_linker="$host_os dld.so"
16767 shlibpath_var=LD_LIBRARY_PATH
16768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16770 soname_spec='${libname}${release}${shared_ext}$major'
16771 if test "X$HPUX_IA64_MODE" = X32; then
16772 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16774 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16776 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16780 hardcode_into_libs=yes
16781 dynamic_linker="$host_os dld.sl"
16782 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785 soname_spec='${libname}${release}${shared_ext}$major'
16786 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16791 dynamic_linker="$host_os dld.sl"
16792 shlibpath_var=SHLIB_PATH
16793 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795 soname_spec='${libname}${release}${shared_ext}$major'
16798 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16799 postinstall_cmds='chmod 555 $lib'
16802 irix5* | irix6* | nonstopux*)
16804 nonstopux*) version_type=nonstopux ;;
16806 if test "$lt_cv_prog_gnu_ld" = yes; then
16814 soname_spec='${libname}${release}${shared_ext}$major'
16815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16817 irix5* | nonstopux*)
16818 libsuff= shlibsuff=
16821 case $LD in # libtool.m4 will add one of these switches to LD
16822 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16823 libsuff= shlibsuff= libmagic=32-bit;;
16824 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16825 libsuff=32 shlibsuff=N32 libmagic=N32;;
16826 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16827 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16828 *) libsuff= shlibsuff= libmagic=never-match;;
16832 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16833 shlibpath_overrides_runpath=no
16834 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16835 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16836 hardcode_into_libs=yes
16839 # No shared lib support for Linux oldld, aout, or coff.
16840 linux*oldld* | linux*aout* | linux*coff*)
16844 # This must be Linux ELF.
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16850 soname_spec='${libname}${release}${shared_ext}$major'
16851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16852 shlibpath_var=LD_LIBRARY_PATH
16853 shlibpath_overrides_runpath=no
16854 # This implies no fast_install, which is unacceptable.
16855 # Some rework will be needed to allow for fast_install
16856 # before this can be enabled.
16857 hardcode_into_libs=yes
16859 # Append ld.so.conf contents to the search path
16860 if test -f /etc/ld.so.conf; then
16861 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16862 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16865 case $host_cpu:$lt_cv_cc_64bit_output in
16866 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
16867 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
16868 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
16872 # We used to test for /lib/ld.so.1 and disable shared libraries on
16873 # powerpc, because MkLinux only supported shared libraries with the
16874 # GNU dynamic linker. Since this was broken with cross compilers,
16875 # most powerpc-linux boxes support dynamic linking these days and
16876 # people can always --disable-shared, the test was removed, and we
16877 # assume the GNU/Linux dynamic linker is in use.
16878 dynamic_linker='GNU/Linux ld.so'
16880 # Find out which ABI we are using (multilib Linux x86_64 hack).
16882 case "$host_cpu" in
16884 echo '#line 16884 "configure"' > conftest.$ac_ext
16885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16886 (eval $ac_compile) 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; then
16890 case `/usr/bin/file conftest.$ac_objext` in
16901 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16902 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16910 soname_spec='${libname}${release}${shared_ext}$major'
16911 shlibpath_var=LD_LIBRARY_PATH
16912 shlibpath_overrides_runpath=no
16913 hardcode_into_libs=yes
16914 dynamic_linker='GNU ld.so'
16921 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16924 dynamic_linker='NetBSD (a.out) ld.so'
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16927 soname_spec='${libname}${release}${shared_ext}$major'
16928 dynamic_linker='NetBSD ld.elf_so'
16930 shlibpath_var=LD_LIBRARY_PATH
16931 shlibpath_overrides_runpath=yes
16932 hardcode_into_libs=yes
16937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938 shlibpath_var=LD_LIBRARY_PATH
16939 shlibpath_overrides_runpath=yes
16946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16947 soname_spec='${libname}${release}${shared_ext}$major'
16948 shlibpath_var=LD_LIBRARY_PATH
16949 shlibpath_overrides_runpath=yes
16956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16958 shlibpath_var=LD_LIBRARY_PATH
16959 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16961 openbsd2.[89] | openbsd2.[89].*)
16962 shlibpath_overrides_runpath=no
16965 shlibpath_overrides_runpath=yes
16969 shlibpath_overrides_runpath=yes
16974 libname_spec='$name'
16977 library_names_spec='$libname${shared_ext} $libname.a'
16978 dynamic_linker='OS/2 ld.exe'
16979 shlibpath_var=LIBPATH
16982 osf3* | osf4* | osf5*)
16986 soname_spec='${libname}${release}${shared_ext}$major'
16987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988 shlibpath_var=LD_LIBRARY_PATH
16989 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16990 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16995 soname_spec='${libname}${release}${shared_ext}$major'
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16997 shlibpath_var=LD_LIBRARY_PATH
17004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005 soname_spec='${libname}${release}${shared_ext}$major'
17006 shlibpath_var=LD_LIBRARY_PATH
17007 shlibpath_overrides_runpath=yes
17008 hardcode_into_libs=yes
17009 # ldd complains unless libraries are executable
17010 postinstall_cmds='chmod +x $lib'
17015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17016 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17017 shlibpath_var=LD_LIBRARY_PATH
17018 shlibpath_overrides_runpath=yes
17019 if test "$with_gnu_ld" = yes; then
17025 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17028 soname_spec='${libname}${release}${shared_ext}$major'
17029 shlibpath_var=LD_LIBRARY_PATH
17030 case $host_vendor in
17032 shlibpath_overrides_runpath=no
17034 export_dynamic_flag_spec='${wl}-Blargedynsym'
17035 runpath_var=LD_RUN_PATH
17043 shlibpath_overrides_runpath=no
17044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17050 if test -d /usr/nec ;then
17052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17053 soname_spec='$libname${shared_ext}.$major'
17054 shlibpath_var=LD_LIBRARY_PATH
17060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17061 soname_spec='${libname}${release}${shared_ext}$major'
17062 shlibpath_var=LD_LIBRARY_PATH
17069 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17070 echo "${ECHO_T}$dynamic_linker" >&6
17071 test "$dynamic_linker" = no && can_build_shared=no
17073 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17074 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17075 hardcode_action_GCJ=
17076 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17077 test -n "$runpath_var GCJ" || \
17078 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17080 # We can hardcode non-existant directories.
17081 if test "$hardcode_direct_GCJ" != no &&
17082 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17083 # have to relink, otherwise we might link with an installed library
17084 # when we should be linking with a yet-to-be-installed one
17085 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17086 test "$hardcode_minus_L_GCJ" != no; then
17087 # Linking always hardcodes the temporary library directory.
17088 hardcode_action_GCJ=relink
17090 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17091 hardcode_action_GCJ=immediate
17094 # We cannot hardcode anything, or else we can only hardcode existing
17096 hardcode_action_GCJ=unsupported
17098 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17099 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17101 if test "$hardcode_action_GCJ" = relink; then
17102 # Fast installation is not supported
17103 enable_fast_install=no
17104 elif test "$shlibpath_overrides_runpath" = yes ||
17105 test "$enable_shared" = no; then
17106 # Fast installation is not necessary
17107 enable_fast_install=needless
17112 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17113 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17114 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17115 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17116 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17117 echo "$as_me:$LINENO: result: yes" >&5
17118 echo "${ECHO_T}yes" >&6
17120 # FIXME - insert some real tests, host_os isn't really good enough
17123 if test -n "$STRIP" ; then
17124 striplib="$STRIP -x"
17125 echo "$as_me:$LINENO: result: yes" >&5
17126 echo "${ECHO_T}yes" >&6
17128 echo "$as_me:$LINENO: result: no" >&5
17129 echo "${ECHO_T}no" >&6
17133 echo "$as_me:$LINENO: result: no" >&5
17134 echo "${ECHO_T}no" >&6
17139 if test "x$enable_dlopen" != xyes; then
17140 enable_dlopen=unknown
17141 enable_dlopen_self=unknown
17142 enable_dlopen_self_static=unknown
17149 lt_cv_dlopen="load_add_on"
17151 lt_cv_dlopen_self=yes
17155 lt_cv_dlopen="LoadLibrary"
17160 lt_cv_dlopen="dlopen"
17165 # if libdl is installed we need to link against it
17166 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17167 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17168 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17171 ac_check_lib_save_LIBS=$LIBS
17173 cat >conftest.$ac_ext <<_ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17180 /* Override any gcc2 internal prototype to avoid an error. */
17184 /* We use char because int might match the return type of a gcc2
17185 builtin and then its argument prototype would still apply. */
17195 rm -f conftest.$ac_objext conftest$ac_exeext
17196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17197 (eval $ac_link) 2>conftest.er1
17199 grep -v '^ *+' conftest.er1 >conftest.err
17201 cat conftest.err >&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); } &&
17204 { ac_try='test -z "$ac_c_werror_flag"
17205 || test ! -s conftest.err'
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; } &&
17211 { ac_try='test -s conftest$ac_exeext'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; }; then
17217 ac_cv_lib_dl_dlopen=yes
17219 echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17222 ac_cv_lib_dl_dlopen=no
17224 rm -f conftest.err conftest.$ac_objext \
17225 conftest$ac_exeext conftest.$ac_ext
17226 LIBS=$ac_check_lib_save_LIBS
17228 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17229 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17230 if test $ac_cv_lib_dl_dlopen = yes; then
17231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17234 lt_cv_dlopen="dyld"
17236 lt_cv_dlopen_self=yes
17243 echo "$as_me:$LINENO: checking for shl_load" >&5
17244 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17245 if test "${ac_cv_func_shl_load+set}" = set; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17248 cat >conftest.$ac_ext <<_ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17254 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17256 #define shl_load innocuous_shl_load
17258 /* System header to define __stub macros and hopefully few prototypes,
17259 which can conflict with char shl_load (); below.
17260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17261 <limits.h> exists even on freestanding compilers. */
17264 # include <limits.h>
17266 # include <assert.h>
17271 /* Override any gcc2 internal prototype to avoid an error. */
17276 /* We use char because int might match the return type of a gcc2
17277 builtin and then its argument prototype would still apply. */
17279 /* The GNU C library defines this for functions which it implements
17280 to always fail with ENOSYS. Some functions are actually named
17281 something starting with __ and the normal name is an alias. */
17282 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17285 char (*f) () = shl_load;
17294 return f != shl_load;
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17301 (eval $ac_link) 2>conftest.er1
17303 grep -v '^ *+' conftest.er1 >conftest.err
17305 cat conftest.err >&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
17308 { ac_try='test -z "$ac_c_werror_flag"
17309 || test ! -s conftest.err'
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; } &&
17315 { ac_try='test -s conftest$ac_exeext'
17316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317 (eval $ac_try) 2>&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; }; then
17321 ac_cv_func_shl_load=yes
17323 echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17326 ac_cv_func_shl_load=no
17328 rm -f conftest.err conftest.$ac_objext \
17329 conftest$ac_exeext conftest.$ac_ext
17331 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17332 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17333 if test $ac_cv_func_shl_load = yes; then
17334 lt_cv_dlopen="shl_load"
17336 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17337 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17338 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 ac_check_lib_save_LIBS=$LIBS
17343 cat >conftest.$ac_ext <<_ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17350 /* Override any gcc2 internal prototype to avoid an error. */
17354 /* We use char because int might match the return type of a gcc2
17355 builtin and then its argument prototype would still apply. */
17365 rm -f conftest.$ac_objext conftest$ac_exeext
17366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17367 (eval $ac_link) 2>conftest.er1
17369 grep -v '^ *+' conftest.er1 >conftest.err
17371 cat conftest.err >&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } &&
17374 { ac_try='test -z "$ac_c_werror_flag"
17375 || test ! -s conftest.err'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; } &&
17381 { ac_try='test -s conftest$ac_exeext'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
17387 ac_cv_lib_dld_shl_load=yes
17389 echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17392 ac_cv_lib_dld_shl_load=no
17394 rm -f conftest.err conftest.$ac_objext \
17395 conftest$ac_exeext conftest.$ac_ext
17396 LIBS=$ac_check_lib_save_LIBS
17398 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17399 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17400 if test $ac_cv_lib_dld_shl_load = yes; then
17401 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17403 echo "$as_me:$LINENO: checking for dlopen" >&5
17404 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17405 if test "${ac_cv_func_dlopen+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17408 cat >conftest.$ac_ext <<_ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17414 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17416 #define dlopen innocuous_dlopen
17418 /* System header to define __stub macros and hopefully few prototypes,
17419 which can conflict with char dlopen (); below.
17420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17421 <limits.h> exists even on freestanding compilers. */
17424 # include <limits.h>
17426 # include <assert.h>
17431 /* Override any gcc2 internal prototype to avoid an error. */
17436 /* We use char because int might match the return type of a gcc2
17437 builtin and then its argument prototype would still apply. */
17439 /* The GNU C library defines this for functions which it implements
17440 to always fail with ENOSYS. Some functions are actually named
17441 something starting with __ and the normal name is an alias. */
17442 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17445 char (*f) () = dlopen;
17454 return f != dlopen;
17459 rm -f conftest.$ac_objext conftest$ac_exeext
17460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17461 (eval $ac_link) 2>conftest.er1
17463 grep -v '^ *+' conftest.er1 >conftest.err
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
17468 { ac_try='test -z "$ac_c_werror_flag"
17469 || test ! -s conftest.err'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; } &&
17475 { ac_try='test -s conftest$ac_exeext'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17481 ac_cv_func_dlopen=yes
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17486 ac_cv_func_dlopen=no
17488 rm -f conftest.err conftest.$ac_objext \
17489 conftest$ac_exeext conftest.$ac_ext
17491 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17492 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17493 if test $ac_cv_func_dlopen = yes; then
17494 lt_cv_dlopen="dlopen"
17496 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17497 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17498 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 ac_check_lib_save_LIBS=$LIBS
17503 cat >conftest.$ac_ext <<_ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17510 /* Override any gcc2 internal prototype to avoid an error. */
17514 /* We use char because int might match the return type of a gcc2
17515 builtin and then its argument prototype would still apply. */
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527 (eval $ac_link) 2>conftest.er1
17529 grep -v '^ *+' conftest.er1 >conftest.err
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
17534 { ac_try='test -z "$ac_c_werror_flag"
17535 || test ! -s conftest.err'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; } &&
17541 { ac_try='test -s conftest$ac_exeext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 ac_cv_lib_dl_dlopen=yes
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17552 ac_cv_lib_dl_dlopen=no
17554 rm -f conftest.err conftest.$ac_objext \
17555 conftest$ac_exeext conftest.$ac_ext
17556 LIBS=$ac_check_lib_save_LIBS
17558 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17559 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17560 if test $ac_cv_lib_dl_dlopen = yes; then
17561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17563 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17564 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17565 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17568 ac_check_lib_save_LIBS=$LIBS
17569 LIBS="-lsvld $LIBS"
17570 cat >conftest.$ac_ext <<_ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17577 /* Override any gcc2 internal prototype to avoid an error. */
17581 /* We use char because int might match the return type of a gcc2
17582 builtin and then its argument prototype would still apply. */
17592 rm -f conftest.$ac_objext conftest$ac_exeext
17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594 (eval $ac_link) 2>conftest.er1
17596 grep -v '^ *+' conftest.er1 >conftest.err
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
17601 { ac_try='test -z "$ac_c_werror_flag"
17602 || test ! -s conftest.err'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try='test -s conftest$ac_exeext'
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 ac_cv_lib_svld_dlopen=yes
17616 echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17619 ac_cv_lib_svld_dlopen=no
17621 rm -f conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17623 LIBS=$ac_check_lib_save_LIBS
17625 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17626 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17627 if test $ac_cv_lib_svld_dlopen = yes; then
17628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17630 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17631 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17632 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
17635 ac_check_lib_save_LIBS=$LIBS
17637 cat >conftest.$ac_ext <<_ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17644 /* Override any gcc2 internal prototype to avoid an error. */
17648 /* We use char because int might match the return type of a gcc2
17649 builtin and then its argument prototype would still apply. */
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17661 (eval $ac_link) 2>conftest.er1
17663 grep -v '^ *+' conftest.er1 >conftest.err
17665 cat conftest.err >&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } &&
17668 { ac_try='test -z "$ac_c_werror_flag"
17669 || test ! -s conftest.err'
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; } &&
17675 { ac_try='test -s conftest$ac_exeext'
17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 ac_cv_lib_dld_dld_link=yes
17683 echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686 ac_cv_lib_dld_dld_link=no
17688 rm -f conftest.err conftest.$ac_objext \
17689 conftest$ac_exeext conftest.$ac_ext
17690 LIBS=$ac_check_lib_save_LIBS
17692 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17693 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17694 if test $ac_cv_lib_dld_dld_link = yes; then
17695 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17716 if test "x$lt_cv_dlopen" != xno; then
17722 case $lt_cv_dlopen in
17724 save_CPPFLAGS="$CPPFLAGS"
17725 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17727 save_LDFLAGS="$LDFLAGS"
17728 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17731 LIBS="$lt_cv_dlopen_libs $LIBS"
17733 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17734 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17735 if test "${lt_cv_dlopen_self+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17738 if test "$cross_compiling" = yes; then :
17739 lt_cv_dlopen_self=cross
17741 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17742 lt_status=$lt_dlunknown
17743 cat > conftest.$ac_ext <<EOF
17744 #line 17744 "configure"
17745 #include "confdefs.h"
17754 # define LT_DLGLOBAL RTLD_GLOBAL
17757 # define LT_DLGLOBAL DL_GLOBAL
17759 # define LT_DLGLOBAL 0
17763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17764 find out it does not work in some platform. */
17765 #ifndef LT_DLLAZY_OR_NOW
17767 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17770 # define LT_DLLAZY_OR_NOW DL_LAZY
17773 # define LT_DLLAZY_OR_NOW RTLD_NOW
17776 # define LT_DLLAZY_OR_NOW DL_NOW
17778 # define LT_DLLAZY_OR_NOW 0
17786 extern "C" void exit (int);
17789 void fnord() { int i=42;}
17792 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17793 int status = $lt_dlunknown;
17797 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17798 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17799 /* dlclose (self); */
17805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17806 (eval $ac_link) 2>&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17810 (./conftest; exit; ) 2>/dev/null
17812 case x$lt_status in
17813 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17814 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17815 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17818 # compilation failed
17819 lt_cv_dlopen_self=no
17826 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17827 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17829 if test "x$lt_cv_dlopen_self" = xyes; then
17830 LDFLAGS="$LDFLAGS $link_static_flag"
17831 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17832 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17833 if test "${lt_cv_dlopen_self_static+set}" = set; then
17834 echo $ECHO_N "(cached) $ECHO_C" >&6
17836 if test "$cross_compiling" = yes; then :
17837 lt_cv_dlopen_self_static=cross
17839 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17840 lt_status=$lt_dlunknown
17841 cat > conftest.$ac_ext <<EOF
17842 #line 17842 "configure"
17843 #include "confdefs.h"
17852 # define LT_DLGLOBAL RTLD_GLOBAL
17855 # define LT_DLGLOBAL DL_GLOBAL
17857 # define LT_DLGLOBAL 0
17861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17862 find out it does not work in some platform. */
17863 #ifndef LT_DLLAZY_OR_NOW
17865 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17868 # define LT_DLLAZY_OR_NOW DL_LAZY
17871 # define LT_DLLAZY_OR_NOW RTLD_NOW
17874 # define LT_DLLAZY_OR_NOW DL_NOW
17876 # define LT_DLLAZY_OR_NOW 0
17884 extern "C" void exit (int);
17887 void fnord() { int i=42;}
17890 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17891 int status = $lt_dlunknown;
17895 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17896 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17897 /* dlclose (self); */
17903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17904 (eval $ac_link) 2>&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17908 (./conftest; exit; ) 2>/dev/null
17910 case x$lt_status in
17911 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17912 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17913 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17916 # compilation failed
17917 lt_cv_dlopen_self_static=no
17924 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17925 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17928 CPPFLAGS="$save_CPPFLAGS"
17929 LDFLAGS="$save_LDFLAGS"
17934 case $lt_cv_dlopen_self in
17935 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17936 *) enable_dlopen_self=unknown ;;
17939 case $lt_cv_dlopen_self_static in
17940 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17941 *) enable_dlopen_self_static=unknown ;;
17946 # The else clause should only fire when bootstrapping the
17947 # libtool distribution, otherwise you forgot to ship ltmain.sh
17948 # with your package, and you will get complaints that there are
17949 # no rules to generate ltmain.sh.
17950 if test -f "$ltmain"; then
17951 # See if we are running on zsh, and set the options which allow our commands through
17952 # without removal of \ escapes.
17953 if test -n "${ZSH_VERSION+set}" ; then
17954 setopt NO_GLOB_SUBST
17956 # Now quote all the things that may contain metacharacters while being
17957 # careful not to overquote the AC_SUBSTed values. We take copies of the
17958 # variables and quote the copies for generation of the libtool script.
17959 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17961 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17962 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17963 deplibs_check_method reload_flag reload_cmds need_locks \
17964 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17965 lt_cv_sys_global_symbol_to_c_name_address \
17966 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17967 old_postinstall_cmds old_postuninstall_cmds \
17971 lt_prog_compiler_wl_GCJ \
17972 lt_prog_compiler_pic_GCJ \
17973 lt_prog_compiler_static_GCJ \
17974 lt_prog_compiler_no_builtin_flag_GCJ \
17975 export_dynamic_flag_spec_GCJ \
17976 thread_safe_flag_spec_GCJ \
17977 whole_archive_flag_spec_GCJ \
17978 enable_shared_with_static_runtimes_GCJ \
17979 old_archive_cmds_GCJ \
17980 old_archive_from_new_cmds_GCJ \
17981 predep_objects_GCJ \
17982 postdep_objects_GCJ \
17985 compiler_lib_search_path_GCJ \
17987 archive_expsym_cmds_GCJ \
17988 postinstall_cmds_GCJ \
17989 postuninstall_cmds_GCJ \
17990 old_archive_from_expsyms_cmds_GCJ \
17991 allow_undefined_flag_GCJ \
17992 no_undefined_flag_GCJ \
17993 export_symbols_cmds_GCJ \
17994 hardcode_libdir_flag_spec_GCJ \
17995 hardcode_libdir_flag_spec_ld_GCJ \
17996 hardcode_libdir_separator_GCJ \
17997 hardcode_automatic_GCJ \
17999 module_expsym_cmds_GCJ \
18000 lt_cv_prog_compiler_c_o_GCJ \
18001 exclude_expsyms_GCJ \
18002 include_expsyms_GCJ; do
18005 old_archive_cmds_GCJ | \
18006 old_archive_from_new_cmds_GCJ | \
18007 archive_cmds_GCJ | \
18008 archive_expsym_cmds_GCJ | \
18009 module_cmds_GCJ | \
18010 module_expsym_cmds_GCJ | \
18011 old_archive_from_expsyms_cmds_GCJ | \
18012 export_symbols_cmds_GCJ | \
18013 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18014 postinstall_cmds | postuninstall_cmds | \
18015 old_postinstall_cmds | old_postuninstall_cmds | \
18016 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18017 # Double-quote double-evaled strings.
18018 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18021 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18027 *'\$0 --fallback-echo"')
18028 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18034 cat <<__EOF__ >> "$cfgfile"
18035 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18037 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18039 # Shell to use when invoking shell scripts.
18042 # Whether or not to build shared libraries.
18043 build_libtool_libs=$enable_shared
18045 # Whether or not to build static libraries.
18046 build_old_libs=$enable_static
18048 # Whether or not to add -lc for building shared libraries.
18049 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18051 # Whether or not to disallow shared libs when runtime libs are static
18052 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18054 # Whether or not to optimize for fast installation.
18055 fast_install=$enable_fast_install
18058 host_alias=$host_alias
18061 # An echo program that does not interpret backslashes.
18066 AR_FLAGS=$lt_AR_FLAGS
18071 # A language-specific compiler.
18072 CC=$lt_compiler_GCJ
18074 # Is the compiler the GNU C compiler?
18080 # The linker used to build libraries.
18083 # Whether we need hard or soft links.
18086 # A BSD-compatible nm program.
18089 # A symbol stripping program
18092 # Used to examine libraries when file_magic_cmd begins "file"
18093 MAGIC_CMD=$MAGIC_CMD
18095 # Used on cygwin: DLL creation program.
18098 # Used on cygwin: object dumper.
18101 # Used on cygwin: assembler.
18104 # The name of the directory that contains temporary libtool files.
18107 # How to create reloadable object files.
18108 reload_flag=$lt_reload_flag
18109 reload_cmds=$lt_reload_cmds
18111 # How to pass a linker flag through the compiler.
18112 wl=$lt_lt_prog_compiler_wl_GCJ
18114 # Object file suffix (normally "o").
18115 objext="$ac_objext"
18117 # Old archive suffix (normally "a").
18120 # Shared library suffix (normally ".so").
18123 # Executable file suffix (normally "").
18126 # Additional compiler flags for building library objects.
18127 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18130 # What is the maximum length of a command?
18131 max_cmd_len=$lt_cv_sys_max_cmd_len
18133 # Does compiler simultaneously support -c and -o options?
18134 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18136 # Must we lock files when doing compilation ?
18137 need_locks=$lt_need_locks
18139 # Do we need the lib prefix for modules?
18140 need_lib_prefix=$need_lib_prefix
18142 # Do we need a version for libraries?
18143 need_version=$need_version
18145 # Whether dlopen is supported.
18146 dlopen_support=$enable_dlopen
18148 # Whether dlopen of programs is supported.
18149 dlopen_self=$enable_dlopen_self
18151 # Whether dlopen of statically linked programs is supported.
18152 dlopen_self_static=$enable_dlopen_self_static
18154 # Compiler flag to prevent dynamic linking.
18155 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18157 # Compiler flag to turn off builtin functions.
18158 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18160 # Compiler flag to allow reflexive dlopens.
18161 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18163 # Compiler flag to generate shared objects directly from archives.
18164 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18166 # Compiler flag to generate thread-safe objects.
18167 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18169 # Library versioning type.
18170 version_type=$version_type
18172 # Format of library name prefix.
18173 libname_spec=$lt_libname_spec
18175 # List of archive names. First name is the real one, the rest are links.
18176 # The last name is the one that the linker finds with -lNAME.
18177 library_names_spec=$lt_library_names_spec
18179 # The coded name of the library, if different from the real name.
18180 soname_spec=$lt_soname_spec
18182 # Commands used to build and install an old-style archive.
18184 old_archive_cmds=$lt_old_archive_cmds_GCJ
18185 old_postinstall_cmds=$lt_old_postinstall_cmds
18186 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18188 # Create an old-style archive from a shared archive.
18189 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18191 # Create a temporary old-style archive to link instead of a shared archive.
18192 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18194 # Commands used to build and install a shared archive.
18195 archive_cmds=$lt_archive_cmds_GCJ
18196 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18197 postinstall_cmds=$lt_postinstall_cmds
18198 postuninstall_cmds=$lt_postuninstall_cmds
18200 # Commands used to build a loadable module (assumed same as above if empty)
18201 module_cmds=$lt_module_cmds_GCJ
18202 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18204 # Commands to strip libraries.
18205 old_striplib=$lt_old_striplib
18206 striplib=$lt_striplib
18208 # Dependencies to place before the objects being linked to create a
18210 predep_objects=$lt_predep_objects_GCJ
18212 # Dependencies to place after the objects being linked to create a
18214 postdep_objects=$lt_postdep_objects_GCJ
18216 # Dependencies to place before the objects being linked to create a
18218 predeps=$lt_predeps_GCJ
18220 # Dependencies to place after the objects being linked to create a
18222 postdeps=$lt_postdeps_GCJ
18224 # The library search path used internally by the compiler when linking
18225 # a shared library.
18226 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18228 # Method to check whether dependent libraries are shared objects.
18229 deplibs_check_method=$lt_deplibs_check_method
18231 # Command to use when deplibs_check_method == file_magic.
18232 file_magic_cmd=$lt_file_magic_cmd
18234 # Flag that allows shared libraries with undefined symbols to be built.
18235 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18237 # Flag that forces no undefined symbols.
18238 no_undefined_flag=$lt_no_undefined_flag_GCJ
18240 # Commands used to finish a libtool library installation in a directory.
18241 finish_cmds=$lt_finish_cmds
18243 # Same as above, but a single script fragment to be evaled but not shown.
18244 finish_eval=$lt_finish_eval
18246 # Take the output of nm and produce a listing of raw symbols and C names.
18247 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18249 # Transform the output of nm in a proper C declaration
18250 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18252 # Transform the output of nm in a C name address pair
18253 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18255 # This is the shared library runtime path variable.
18256 runpath_var=$runpath_var
18258 # This is the shared library path variable.
18259 shlibpath_var=$shlibpath_var
18261 # Is shlibpath searched before the hard-coded library search path?
18262 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18264 # How to hardcode a shared library path into an executable.
18265 hardcode_action=$hardcode_action_GCJ
18267 # Whether we should hardcode library paths into libraries.
18268 hardcode_into_libs=$hardcode_into_libs
18270 # Flag to hardcode \$libdir into a binary during linking.
18271 # This must work even if \$libdir does not exist.
18272 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18274 # If ld is used when linking, flag to hardcode \$libdir into
18275 # a binary during linking. This must work even if \$libdir does
18277 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18279 # Whether we need a single -rpath flag with a separated argument.
18280 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18282 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18283 # resulting binary.
18284 hardcode_direct=$hardcode_direct_GCJ
18286 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18287 # resulting binary.
18288 hardcode_minus_L=$hardcode_minus_L_GCJ
18290 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18291 # the resulting binary.
18292 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18294 # Set to yes if building a shared library automatically hardcodes DIR into the library
18295 # and all subsequent libraries and executables linked against it.
18296 hardcode_automatic=$hardcode_automatic_GCJ
18298 # Variables whose values should be saved in libtool wrapper scripts and
18299 # restored at relink time.
18300 variables_saved_for_relink="$variables_saved_for_relink"
18302 # Whether libtool must link a program against all its dependency libraries.
18303 link_all_deplibs=$link_all_deplibs_GCJ
18305 # Compile-time system search path for libraries
18306 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18308 # Run-time system search path for libraries
18309 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18311 # Fix the shell variable \$srcfile for the compiler.
18312 fix_srcfile_path="$fix_srcfile_path_GCJ"
18314 # Set to yes if exported symbols are required.
18315 always_export_symbols=$always_export_symbols_GCJ
18317 # The commands to list exported symbols.
18318 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18320 # The commands to extract the exported symbol list from a shared archive.
18321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18323 # Symbols that should not be listed in the preloaded symbols.
18324 exclude_expsyms=$lt_exclude_expsyms_GCJ
18326 # Symbols that must always be exported.
18327 include_expsyms=$lt_include_expsyms_GCJ
18329 # ### END LIBTOOL TAG CONFIG: $tagname
18335 # If there is no Makefile yet, we rely on a make rule to execute
18336 # `config.status --recheck' to rerun these tests and create the
18337 # libtool script then.
18338 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18339 if test -f "$ltmain_in"; then
18340 test -f Makefile && make "$ltmain"
18346 ac_cpp='$CPP $CPPFLAGS'
18347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18362 # Source file extension for RC test sources.
18365 # Object file extension for compiled RC test sources.
18369 # Code to be used in simple compile tests
18370 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18372 # Code to be used in simple link tests
18373 lt_simple_link_test_code="$lt_simple_compile_test_code"
18375 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18377 # If no C compiler was specified, use CC.
18380 # Allow CC to be a program name with arguments.
18384 # Allow CC to be a program name with arguments.
18389 lt_cv_prog_compiler_c_o_RC=yes
18391 # The else clause should only fire when bootstrapping the
18392 # libtool distribution, otherwise you forgot to ship ltmain.sh
18393 # with your package, and you will get complaints that there are
18394 # no rules to generate ltmain.sh.
18395 if test -f "$ltmain"; then
18396 # See if we are running on zsh, and set the options which allow our commands through
18397 # without removal of \ escapes.
18398 if test -n "${ZSH_VERSION+set}" ; then
18399 setopt NO_GLOB_SUBST
18401 # Now quote all the things that may contain metacharacters while being
18402 # careful not to overquote the AC_SUBSTed values. We take copies of the
18403 # variables and quote the copies for generation of the libtool script.
18404 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18406 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18407 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18408 deplibs_check_method reload_flag reload_cmds need_locks \
18409 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18410 lt_cv_sys_global_symbol_to_c_name_address \
18411 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18412 old_postinstall_cmds old_postuninstall_cmds \
18416 lt_prog_compiler_wl_RC \
18417 lt_prog_compiler_pic_RC \
18418 lt_prog_compiler_static_RC \
18419 lt_prog_compiler_no_builtin_flag_RC \
18420 export_dynamic_flag_spec_RC \
18421 thread_safe_flag_spec_RC \
18422 whole_archive_flag_spec_RC \
18423 enable_shared_with_static_runtimes_RC \
18424 old_archive_cmds_RC \
18425 old_archive_from_new_cmds_RC \
18426 predep_objects_RC \
18427 postdep_objects_RC \
18430 compiler_lib_search_path_RC \
18432 archive_expsym_cmds_RC \
18433 postinstall_cmds_RC \
18434 postuninstall_cmds_RC \
18435 old_archive_from_expsyms_cmds_RC \
18436 allow_undefined_flag_RC \
18437 no_undefined_flag_RC \
18438 export_symbols_cmds_RC \
18439 hardcode_libdir_flag_spec_RC \
18440 hardcode_libdir_flag_spec_ld_RC \
18441 hardcode_libdir_separator_RC \
18442 hardcode_automatic_RC \
18444 module_expsym_cmds_RC \
18445 lt_cv_prog_compiler_c_o_RC \
18446 exclude_expsyms_RC \
18447 include_expsyms_RC; do
18450 old_archive_cmds_RC | \
18451 old_archive_from_new_cmds_RC | \
18452 archive_cmds_RC | \
18453 archive_expsym_cmds_RC | \
18455 module_expsym_cmds_RC | \
18456 old_archive_from_expsyms_cmds_RC | \
18457 export_symbols_cmds_RC | \
18458 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18459 postinstall_cmds | postuninstall_cmds | \
18460 old_postinstall_cmds | old_postuninstall_cmds | \
18461 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18462 # Double-quote double-evaled strings.
18463 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18466 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18472 *'\$0 --fallback-echo"')
18473 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18479 cat <<__EOF__ >> "$cfgfile"
18480 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18482 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18484 # Shell to use when invoking shell scripts.
18487 # Whether or not to build shared libraries.
18488 build_libtool_libs=$enable_shared
18490 # Whether or not to build static libraries.
18491 build_old_libs=$enable_static
18493 # Whether or not to add -lc for building shared libraries.
18494 build_libtool_need_lc=$archive_cmds_need_lc_RC
18496 # Whether or not to disallow shared libs when runtime libs are static
18497 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18499 # Whether or not to optimize for fast installation.
18500 fast_install=$enable_fast_install
18503 host_alias=$host_alias
18506 # An echo program that does not interpret backslashes.
18511 AR_FLAGS=$lt_AR_FLAGS
18516 # A language-specific compiler.
18519 # Is the compiler the GNU C compiler?
18525 # The linker used to build libraries.
18528 # Whether we need hard or soft links.
18531 # A BSD-compatible nm program.
18534 # A symbol stripping program
18537 # Used to examine libraries when file_magic_cmd begins "file"
18538 MAGIC_CMD=$MAGIC_CMD
18540 # Used on cygwin: DLL creation program.
18543 # Used on cygwin: object dumper.
18546 # Used on cygwin: assembler.
18549 # The name of the directory that contains temporary libtool files.
18552 # How to create reloadable object files.
18553 reload_flag=$lt_reload_flag
18554 reload_cmds=$lt_reload_cmds
18556 # How to pass a linker flag through the compiler.
18557 wl=$lt_lt_prog_compiler_wl_RC
18559 # Object file suffix (normally "o").
18560 objext="$ac_objext"
18562 # Old archive suffix (normally "a").
18565 # Shared library suffix (normally ".so").
18568 # Executable file suffix (normally "").
18571 # Additional compiler flags for building library objects.
18572 pic_flag=$lt_lt_prog_compiler_pic_RC
18575 # What is the maximum length of a command?
18576 max_cmd_len=$lt_cv_sys_max_cmd_len
18578 # Does compiler simultaneously support -c and -o options?
18579 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18581 # Must we lock files when doing compilation ?
18582 need_locks=$lt_need_locks
18584 # Do we need the lib prefix for modules?
18585 need_lib_prefix=$need_lib_prefix
18587 # Do we need a version for libraries?
18588 need_version=$need_version
18590 # Whether dlopen is supported.
18591 dlopen_support=$enable_dlopen
18593 # Whether dlopen of programs is supported.
18594 dlopen_self=$enable_dlopen_self
18596 # Whether dlopen of statically linked programs is supported.
18597 dlopen_self_static=$enable_dlopen_self_static
18599 # Compiler flag to prevent dynamic linking.
18600 link_static_flag=$lt_lt_prog_compiler_static_RC
18602 # Compiler flag to turn off builtin functions.
18603 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18605 # Compiler flag to allow reflexive dlopens.
18606 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18608 # Compiler flag to generate shared objects directly from archives.
18609 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18611 # Compiler flag to generate thread-safe objects.
18612 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18614 # Library versioning type.
18615 version_type=$version_type
18617 # Format of library name prefix.
18618 libname_spec=$lt_libname_spec
18620 # List of archive names. First name is the real one, the rest are links.
18621 # The last name is the one that the linker finds with -lNAME.
18622 library_names_spec=$lt_library_names_spec
18624 # The coded name of the library, if different from the real name.
18625 soname_spec=$lt_soname_spec
18627 # Commands used to build and install an old-style archive.
18629 old_archive_cmds=$lt_old_archive_cmds_RC
18630 old_postinstall_cmds=$lt_old_postinstall_cmds
18631 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18633 # Create an old-style archive from a shared archive.
18634 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18636 # Create a temporary old-style archive to link instead of a shared archive.
18637 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18639 # Commands used to build and install a shared archive.
18640 archive_cmds=$lt_archive_cmds_RC
18641 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18642 postinstall_cmds=$lt_postinstall_cmds
18643 postuninstall_cmds=$lt_postuninstall_cmds
18645 # Commands used to build a loadable module (assumed same as above if empty)
18646 module_cmds=$lt_module_cmds_RC
18647 module_expsym_cmds=$lt_module_expsym_cmds_RC
18649 # Commands to strip libraries.
18650 old_striplib=$lt_old_striplib
18651 striplib=$lt_striplib
18653 # Dependencies to place before the objects being linked to create a
18655 predep_objects=$lt_predep_objects_RC
18657 # Dependencies to place after the objects being linked to create a
18659 postdep_objects=$lt_postdep_objects_RC
18661 # Dependencies to place before the objects being linked to create a
18663 predeps=$lt_predeps_RC
18665 # Dependencies to place after the objects being linked to create a
18667 postdeps=$lt_postdeps_RC
18669 # The library search path used internally by the compiler when linking
18670 # a shared library.
18671 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18673 # Method to check whether dependent libraries are shared objects.
18674 deplibs_check_method=$lt_deplibs_check_method
18676 # Command to use when deplibs_check_method == file_magic.
18677 file_magic_cmd=$lt_file_magic_cmd
18679 # Flag that allows shared libraries with undefined symbols to be built.
18680 allow_undefined_flag=$lt_allow_undefined_flag_RC
18682 # Flag that forces no undefined symbols.
18683 no_undefined_flag=$lt_no_undefined_flag_RC
18685 # Commands used to finish a libtool library installation in a directory.
18686 finish_cmds=$lt_finish_cmds
18688 # Same as above, but a single script fragment to be evaled but not shown.
18689 finish_eval=$lt_finish_eval
18691 # Take the output of nm and produce a listing of raw symbols and C names.
18692 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18694 # Transform the output of nm in a proper C declaration
18695 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18697 # Transform the output of nm in a C name address pair
18698 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18700 # This is the shared library runtime path variable.
18701 runpath_var=$runpath_var
18703 # This is the shared library path variable.
18704 shlibpath_var=$shlibpath_var
18706 # Is shlibpath searched before the hard-coded library search path?
18707 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18709 # How to hardcode a shared library path into an executable.
18710 hardcode_action=$hardcode_action_RC
18712 # Whether we should hardcode library paths into libraries.
18713 hardcode_into_libs=$hardcode_into_libs
18715 # Flag to hardcode \$libdir into a binary during linking.
18716 # This must work even if \$libdir does not exist.
18717 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18719 # If ld is used when linking, flag to hardcode \$libdir into
18720 # a binary during linking. This must work even if \$libdir does
18722 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18724 # Whether we need a single -rpath flag with a separated argument.
18725 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18727 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18728 # resulting binary.
18729 hardcode_direct=$hardcode_direct_RC
18731 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18732 # resulting binary.
18733 hardcode_minus_L=$hardcode_minus_L_RC
18735 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18736 # the resulting binary.
18737 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18739 # Set to yes if building a shared library automatically hardcodes DIR into the library
18740 # and all subsequent libraries and executables linked against it.
18741 hardcode_automatic=$hardcode_automatic_RC
18743 # Variables whose values should be saved in libtool wrapper scripts and
18744 # restored at relink time.
18745 variables_saved_for_relink="$variables_saved_for_relink"
18747 # Whether libtool must link a program against all its dependency libraries.
18748 link_all_deplibs=$link_all_deplibs_RC
18750 # Compile-time system search path for libraries
18751 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18753 # Run-time system search path for libraries
18754 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18756 # Fix the shell variable \$srcfile for the compiler.
18757 fix_srcfile_path="$fix_srcfile_path_RC"
18759 # Set to yes if exported symbols are required.
18760 always_export_symbols=$always_export_symbols_RC
18762 # The commands to list exported symbols.
18763 export_symbols_cmds=$lt_export_symbols_cmds_RC
18765 # The commands to extract the exported symbol list from a shared archive.
18766 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18768 # Symbols that should not be listed in the preloaded symbols.
18769 exclude_expsyms=$lt_exclude_expsyms_RC
18771 # Symbols that must always be exported.
18772 include_expsyms=$lt_include_expsyms_RC
18774 # ### END LIBTOOL TAG CONFIG: $tagname
18780 # If there is no Makefile yet, we rely on a make rule to execute
18781 # `config.status --recheck' to rerun these tests and create the
18782 # libtool script then.
18783 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18784 if test -f "$ltmain_in"; then
18785 test -f Makefile && make "$ltmain"
18791 ac_cpp='$CPP $CPPFLAGS'
18792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18801 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18802 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18803 { (exit 1); exit 1; }; }
18807 # Append the new tag name to the list of available tags.
18808 if test -n "$tagname" ; then
18809 available_tags="$available_tags $tagname"
18815 # Now substitute the updated list of available tags.
18816 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18817 mv "${ofile}T" "$ofile"
18821 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18822 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18823 { (exit 1); exit 1; }; }
18828 if test ! -f "${ofile}"; then
18829 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18830 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18832 if test -z `grep -e 'shared_ext.*shrext' $ofile`; then
18833 # Make sure $shared_ext gets set to $shrext
18834 if sed -e 's/shared_ext/shrext/g' "$ofile" > "${ofile}T"; then
18835 mv "${ofile}T" "$ofile"
18839 { { echo "$as_me:$LINENO: error: unable to update shared_ext." >&5
18840 echo "$as_me: error: unable to update shared_ext." >&2;}
18841 { (exit 1); exit 1; }; }
18847 # This can be used to rebuild libtool when needed
18848 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18850 # Always use our own libtool.
18851 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18853 # Prevent multiple expansion
18874 for ac_prog in gzip uncompress compress
18876 # Extract the first word of "$ac_prog", so it can be a program name with args.
18877 set dummy $ac_prog; ac_word=$2
18878 echo "$as_me:$LINENO: checking for $ac_word" >&5
18879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18880 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18883 if test -n "$UNCOMPRESS"; then
18884 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
18886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18887 for as_dir in $PATH
18890 test -z "$as_dir" && as_dir=.
18891 for ac_exec_ext in '' $ac_executable_extensions; do
18892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18893 ac_cv_prog_UNCOMPRESS="$ac_prog"
18894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18902 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
18903 if test -n "$UNCOMPRESS"; then
18904 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
18905 echo "${ECHO_T}$UNCOMPRESS" >&6
18907 echo "$as_me:$LINENO: result: no" >&5
18908 echo "${ECHO_T}no" >&6
18911 test -n "$UNCOMPRESS" && break
18921 echo "$as_me:$LINENO: checking for target system" >&5
18922 echo $ECHO_N "checking for target system... $ECHO_C" >&6
18926 *cygwin* ) CYGWIN=yes;;
18927 *mingw* ) MINGW=yes;;
18931 if test "x$MINGW" = "xyes"; then
18932 #fix for the debian distribution of mingw
18933 if test -x "/usr/i586-mingw32msvc/bin/ar";then
18934 AR="/usr/i586-mingw32msvc/bin/ar"
18936 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
18937 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
18939 #fix for the gentoo distribution of mingw
18940 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
18941 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
18943 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
18944 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
18946 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
18947 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
18953 if test "x${CYGWIN}" = "xyes"; then
18954 cat >>confdefs.h <<_ACEOF
18958 echo "$as_me:$LINENO: result: cygwin" >&5
18959 echo "${ECHO_T}cygwin" >&6
18961 if test "x${MINGW}" = "xyes"; then
18962 cat >>confdefs.h <<_ACEOF
18967 cat >>confdefs.h <<_ACEOF
18971 LIBS="$LIBS -lws2_32"
18972 echo "$as_me:$LINENO: result: mingw" >&5
18973 echo "${ECHO_T}mingw" >&6
18977 cat >>confdefs.h <<_ACEOF
18981 echo "$as_me:$LINENO: result: " >&5
18982 echo "${ECHO_T}" >&6
18988 if test "x${MINGW}" != "xyes"; then
18990 cat >>confdefs.h <<_ACEOF
19001 # The following tries to make use of includes and libraries in
19002 # /usr/local, too. Notice: A -I/usr/local/include might break
19003 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
19004 # especially on systems which link /usr/local to /usr, so it has yet
19005 # to be seen how useful this is.
19006 if test -d /usr/local/lib; then
19007 LDFLAGS="$LDFLAGS -L/usr/local/lib"
19009 if test -d /usr/local/include; then
19010 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
19011 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
19014 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
19015 # if the user has a special prefix (like /opt), there might also be $prefix/lib
19016 # and $prefix/include, which should be included in our search paths for libraries
19018 LDFLAGS="$LDFLAGS -L${libdir}"
19019 CPPFLAGS="$CPPFLAGS -I${includedir}"
19020 # TODO- test whether gcc still works after this
19023 # this must be done after (I believe) AC_PROG_MAKE_SET
19024 if test "x$DEBUG" '!=' "x";then
19025 STRIP="@echo debug enabled, not stripping "
19031 echo "$as_me:$LINENO: checking for sin in -lm" >&5
19032 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
19033 if test "${ac_cv_lib_m_sin+set}" = set; then
19034 echo $ECHO_N "(cached) $ECHO_C" >&6
19036 ac_check_lib_save_LIBS=$LIBS
19038 cat >conftest.$ac_ext <<_ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19045 /* Override any gcc2 internal prototype to avoid an error. */
19049 /* We use char because int might match the return type of a gcc2
19050 builtin and then its argument prototype would still apply. */
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19062 (eval $ac_link) 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try='test -z "$ac_c_werror_flag"
19070 || test ! -s conftest.err'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try='test -s conftest$ac_exeext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_cv_lib_m_sin=yes
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19089 rm -f conftest.err conftest.$ac_objext \
19090 conftest$ac_exeext conftest.$ac_ext
19091 LIBS=$ac_check_lib_save_LIBS
19093 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19094 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
19095 if test $ac_cv_lib_m_sin = yes; then
19096 cat >>confdefs.h <<_ACEOF
19097 #define HAVE_LIBM 1
19103 echo "Error: Math library not found.";
19109 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19110 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19111 if test "${ac_cv_lib_z_deflate+set}" = set; then
19112 echo $ECHO_N "(cached) $ECHO_C" >&6
19114 ac_check_lib_save_LIBS=$LIBS
19116 cat >conftest.$ac_ext <<_ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h. */
19123 /* Override any gcc2 internal prototype to avoid an error. */
19127 /* We use char because int might match the return type of a gcc2
19128 builtin and then its argument prototype would still apply. */
19138 rm -f conftest.$ac_objext conftest$ac_exeext
19139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19140 (eval $ac_link) 2>conftest.er1
19142 grep -v '^ *+' conftest.er1 >conftest.err
19144 cat conftest.err >&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } &&
19147 { ac_try='test -z "$ac_c_werror_flag"
19148 || test ! -s conftest.err'
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; } &&
19154 { ac_try='test -s conftest$ac_exeext'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 ac_cv_lib_z_deflate=yes
19162 echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19165 ac_cv_lib_z_deflate=no
19167 rm -f conftest.err conftest.$ac_objext \
19168 conftest$ac_exeext conftest.$ac_ext
19169 LIBS=$ac_check_lib_save_LIBS
19171 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19172 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19173 if test $ac_cv_lib_z_deflate = yes; then
19174 cat >>confdefs.h <<_ACEOF
19175 #define HAVE_LIBZ 1
19185 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
19186 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
19187 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19190 ac_check_lib_save_LIBS=$LIBS
19191 LIBS="-ljpeg $LIBS"
19192 cat >conftest.$ac_ext <<_ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19199 /* Override any gcc2 internal prototype to avoid an error. */
19203 /* We use char because int might match the return type of a gcc2
19204 builtin and then its argument prototype would still apply. */
19205 char jpeg_write_raw_data ();
19209 jpeg_write_raw_data ();
19214 rm -f conftest.$ac_objext conftest$ac_exeext
19215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19216 (eval $ac_link) 2>conftest.er1
19218 grep -v '^ *+' conftest.er1 >conftest.err
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } &&
19223 { ac_try='test -z "$ac_c_werror_flag"
19224 || test ! -s conftest.err'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; } &&
19230 { ac_try='test -s conftest$ac_exeext'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; }; then
19236 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
19238 echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19241 ac_cv_lib_jpeg_jpeg_write_raw_data=no
19243 rm -f conftest.err conftest.$ac_objext \
19244 conftest$ac_exeext conftest.$ac_ext
19245 LIBS=$ac_check_lib_save_LIBS
19247 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
19248 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
19249 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
19250 cat >>confdefs.h <<_ACEOF
19251 #define HAVE_LIBJPEG 1
19254 LIBS="-ljpeg $LIBS"
19257 JPEGLIBMISSING=true
19261 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
19262 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
19263 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
19264 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 ac_check_lib_save_LIBS=$LIBS
19268 cat >conftest.$ac_ext <<_ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19275 /* Override any gcc2 internal prototype to avoid an error. */
19279 /* We use char because int might match the return type of a gcc2
19280 builtin and then its argument prototype would still apply. */
19281 char T1_LoadFont ();
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292 (eval $ac_link) 2>conftest.er1
19294 grep -v '^ *+' conftest.er1 >conftest.err
19296 cat conftest.err >&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } &&
19299 { ac_try='test -z "$ac_c_werror_flag"
19300 || test ! -s conftest.err'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; } &&
19306 { ac_try='test -s conftest$ac_exeext'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 ac_cv_lib_t1_T1_LoadFont=yes
19314 echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19317 ac_cv_lib_t1_T1_LoadFont=no
19319 rm -f conftest.err conftest.$ac_objext \
19320 conftest$ac_exeext conftest.$ac_ext
19321 LIBS=$ac_check_lib_save_LIBS
19323 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
19324 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
19325 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
19326 cat >>confdefs.h <<_ACEOF
19327 #define HAVE_LIBT1 1
19338 echo "$as_me:$LINENO: checking for byte order" >&5
19339 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
19340 if test "$cross_compiling" = yes; then
19343 cat >conftest.$ac_ext <<_ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19350 int main (int argc, char *argv[])
19357 rm -f conftest$ac_exeext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19359 (eval $ac_link) 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19370 echo "$as_me: program exited with status $ac_status" >&5
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 ( exit $ac_status )
19377 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19379 export CROSSCOMPILE
19381 if test "x${CROSSCOMPILE}" = "x1"; then
19382 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
19383 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
19384 echo "$as_me:$LINENO: checking target system type" >&5
19385 echo $ECHO_N "checking target system type... $ECHO_C" >&6
19386 if test "${ac_cv_target+set}" = set; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 ac_cv_target_alias=$target_alias
19390 test "x$ac_cv_target_alias" = "x" &&
19391 ac_cv_target_alias=$ac_cv_host_alias
19392 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
19393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
19394 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
19395 { (exit 1); exit 1; }; }
19398 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
19399 echo "${ECHO_T}$ac_cv_target" >&6
19400 target=$ac_cv_target
19401 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
19402 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
19403 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
19406 # The aliases save the names the user supplied, while $host etc.
19407 # will get canonicalized.
19408 test -n "$target_alias" &&
19409 test "$program_prefix$program_suffix$program_transform_name" = \
19411 program_prefix=${target_alias}-
19412 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
19413 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
19414 case "${target}" in
19418 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
19424 export LITTLEENDIAN
19425 if test "x${LITTLEENDIAN}" = "x1"; then
19426 echo "$as_me:$LINENO: result: little endian" >&5
19427 echo "${ECHO_T}little endian" >&6
19431 if test "x${BIGENDIAN}" = "x1"; then
19432 echo "$as_me:$LINENO: result: big endian" >&5
19433 echo "${ECHO_T}big endian" >&6
19436 export WORDS_BIGENDIAN
19437 cat >>confdefs.h <<_ACEOF
19438 #define WORDS_BIGENDIAN 1
19442 if test "x${BYTEORDERCHECKOK}" != "x1"; then
19443 echo "$as_me:$LINENO: result: unknown" >&5
19444 echo "${ECHO_T}unknown" >&6
19445 echo Byte order could not determined.
19451 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
19452 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
19453 if test "$cross_compiling" = yes; then
19456 cat >conftest.$ac_ext <<_ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h. */
19463 #include "stdlib.h"
19464 int main (int argc, char*argv[])
19466 return system("test `touch config.tmp2`");
19470 rm -f conftest$ac_exeext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472 (eval $ac_link) 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19483 echo "$as_me: program exited with status $ac_status" >&5
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19491 if test "x${OK}" = "xOK";then
19492 test -f config.tmp2 || OK=
19495 if test "x${CROSSCOMPILE}" = "x1";then
19498 if test "x${OK}" = "xOK";then
19500 echo "$as_me:$LINENO: result: yes" >&5
19501 echo "${ECHO_T}yes" >&6
19503 export SYSTEM_BACKTICKS
19504 cat >>confdefs.h <<_ACEOF
19505 #define SYSTEM_BACKTICKS 1
19509 echo "$as_me:$LINENO: result: no" >&5
19510 echo "${ECHO_T}no" >&6
19515 test "$program_prefix" != NONE &&
19516 program_transform_name="s,^,$program_prefix,;$program_transform_name"
19517 # Use a double $ so make ignores it.
19518 test "$program_suffix" != NONE &&
19519 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
19520 # Double any \ or $. echo might interpret backslashes.
19521 # By default was `s,x,x', remove it if useless.
19522 cat <<\_ACEOF >conftest.sed
19523 s/[\\$]/&&/g;s/;s,x,x,$//
19525 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
19529 ac_config_headers="$ac_config_headers config.h"
19536 ac_header_dirent=no
19537 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19538 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19539 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19540 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 cat >conftest.$ac_ext <<_ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19550 #include <sys/types.h>
19562 rm -f conftest.$ac_objext
19563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564 (eval $ac_compile) 2>conftest.er1
19566 grep -v '^ *+' conftest.er1 >conftest.err
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
19571 { ac_try='test -z "$ac_c_werror_flag"
19572 || test ! -s conftest.err'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; } &&
19578 { ac_try='test -s conftest.$ac_objext'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; }; then
19584 eval "$as_ac_Header=yes"
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 eval "$as_ac_Header=no"
19591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19596 cat >>confdefs.h <<_ACEOF
19597 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19600 ac_header_dirent=$ac_hdr; break
19604 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19605 if test $ac_header_dirent = dirent.h; then
19606 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19607 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19608 if test "${ac_cv_search_opendir+set}" = set; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19611 ac_func_search_save_LIBS=$LIBS
19612 ac_cv_search_opendir=no
19613 cat >conftest.$ac_ext <<_ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19620 /* Override any gcc2 internal prototype to avoid an error. */
19624 /* We use char because int might match the return type of a gcc2
19625 builtin and then its argument prototype would still apply. */
19635 rm -f conftest.$ac_objext conftest$ac_exeext
19636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19637 (eval $ac_link) 2>conftest.er1
19639 grep -v '^ *+' conftest.er1 >conftest.err
19641 cat conftest.err >&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } &&
19644 { ac_try='test -z "$ac_c_werror_flag"
19645 || test ! -s conftest.err'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; } &&
19651 { ac_try='test -s conftest$ac_exeext'
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; }; then
19657 ac_cv_search_opendir="none required"
19659 echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19663 rm -f conftest.err conftest.$ac_objext \
19664 conftest$ac_exeext conftest.$ac_ext
19665 if test "$ac_cv_search_opendir" = no; then
19666 for ac_lib in dir; do
19667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19668 cat >conftest.$ac_ext <<_ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19675 /* Override any gcc2 internal prototype to avoid an error. */
19679 /* We use char because int might match the return type of a gcc2
19680 builtin and then its argument prototype would still apply. */
19690 rm -f conftest.$ac_objext conftest$ac_exeext
19691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19692 (eval $ac_link) 2>conftest.er1
19694 grep -v '^ *+' conftest.er1 >conftest.err
19696 cat conftest.err >&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } &&
19699 { ac_try='test -z "$ac_c_werror_flag"
19700 || test ! -s conftest.err'
19701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702 (eval $ac_try) 2>&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; } &&
19706 { ac_try='test -s conftest$ac_exeext'
19707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708 (eval $ac_try) 2>&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; }; then
19712 ac_cv_search_opendir="-l$ac_lib"
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19719 rm -f conftest.err conftest.$ac_objext \
19720 conftest$ac_exeext conftest.$ac_ext
19723 LIBS=$ac_func_search_save_LIBS
19725 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19726 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19727 if test "$ac_cv_search_opendir" != no; then
19728 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19733 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19734 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19735 if test "${ac_cv_search_opendir+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19738 ac_func_search_save_LIBS=$LIBS
19739 ac_cv_search_opendir=no
19740 cat >conftest.$ac_ext <<_ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19747 /* Override any gcc2 internal prototype to avoid an error. */
19751 /* We use char because int might match the return type of a gcc2
19752 builtin and then its argument prototype would still apply. */
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19764 (eval $ac_link) 2>conftest.er1
19766 grep -v '^ *+' conftest.er1 >conftest.err
19768 cat conftest.err >&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
19771 { ac_try='test -z "$ac_c_werror_flag"
19772 || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest$ac_exeext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 ac_cv_search_opendir="none required"
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19790 rm -f conftest.err conftest.$ac_objext \
19791 conftest$ac_exeext conftest.$ac_ext
19792 if test "$ac_cv_search_opendir" = no; then
19793 for ac_lib in x; do
19794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19795 cat >conftest.$ac_ext <<_ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19802 /* Override any gcc2 internal prototype to avoid an error. */
19806 /* We use char because int might match the return type of a gcc2
19807 builtin and then its argument prototype would still apply. */
19817 rm -f conftest.$ac_objext conftest$ac_exeext
19818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19819 (eval $ac_link) 2>conftest.er1
19821 grep -v '^ *+' conftest.er1 >conftest.err
19823 cat conftest.err >&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } &&
19826 { ac_try='test -z "$ac_c_werror_flag"
19827 || test ! -s conftest.err'
19828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829 (eval $ac_try) 2>&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; } &&
19833 { ac_try='test -s conftest$ac_exeext'
19834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835 (eval $ac_try) 2>&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; }; then
19839 ac_cv_search_opendir="-l$ac_lib"
19842 echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19846 rm -f conftest.err conftest.$ac_objext \
19847 conftest$ac_exeext conftest.$ac_ext
19850 LIBS=$ac_func_search_save_LIBS
19852 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19853 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19854 if test "$ac_cv_search_opendir" != no; then
19855 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19861 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19862 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19863 if test "${ac_cv_header_stdc+set}" = set; then
19864 echo $ECHO_N "(cached) $ECHO_C" >&6
19866 cat >conftest.$ac_ext <<_ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 #include <stdlib.h>
19873 #include <stdarg.h>
19874 #include <string.h>
19885 rm -f conftest.$ac_objext
19886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19887 (eval $ac_compile) 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try='test -z "$ac_c_werror_flag"
19895 || test ! -s conftest.err'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; } &&
19901 { ac_try='test -s conftest.$ac_objext'
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 ac_cv_header_stdc=yes
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 ac_cv_header_stdc=no
19914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19916 if test $ac_cv_header_stdc = yes; then
19917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19918 cat >conftest.$ac_ext <<_ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h. */
19924 #include <string.h>
19927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19928 $EGREP "memchr" >/dev/null 2>&1; then
19931 ac_cv_header_stdc=no
19937 if test $ac_cv_header_stdc = yes; then
19938 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19939 cat >conftest.$ac_ext <<_ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19945 #include <stdlib.h>
19948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19949 $EGREP "free" >/dev/null 2>&1; then
19952 ac_cv_header_stdc=no
19958 if test $ac_cv_header_stdc = yes; then
19959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19960 if test "$cross_compiling" = yes; then
19963 cat >conftest.$ac_ext <<_ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19970 #if ((' ' & 0x0FF) == 0x020)
19971 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19972 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19974 # define ISLOWER(c) \
19975 (('a' <= (c) && (c) <= 'i') \
19976 || ('j' <= (c) && (c) <= 'r') \
19977 || ('s' <= (c) && (c) <= 'z'))
19978 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19981 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19986 for (i = 0; i < 256; i++)
19987 if (XOR (islower (i), ISLOWER (i))
19988 || toupper (i) != TOUPPER (i))
19993 rm -f conftest$ac_exeext
19994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19995 (eval $ac_link) 2>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20006 echo "$as_me: program exited with status $ac_status" >&5
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20010 ( exit $ac_status )
20011 ac_cv_header_stdc=no
20013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20017 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20018 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20019 if test $ac_cv_header_stdc = yes; then
20021 cat >>confdefs.h <<\_ACEOF
20022 #define STDC_HEADERS 1
20041 for ac_header in zlib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
20043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20045 echo "$as_me:$LINENO: checking for $ac_header" >&5
20046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20048 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20053 # Is the header compilable?
20054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20056 cat >conftest.$ac_ext <<_ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20062 $ac_includes_default
20063 #include <$ac_header>
20065 rm -f conftest.$ac_objext
20066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20067 (eval $ac_compile) 2>conftest.er1
20069 grep -v '^ *+' conftest.er1 >conftest.err
20071 cat conftest.err >&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); } &&
20074 { ac_try='test -z "$ac_c_werror_flag"
20075 || test ! -s conftest.err'
20076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077 (eval $ac_try) 2>&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; } &&
20081 { ac_try='test -s conftest.$ac_objext'
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; }; then
20087 ac_header_compiler=yes
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20092 ac_header_compiler=no
20094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20096 echo "${ECHO_T}$ac_header_compiler" >&6
20098 # Is the header present?
20099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20101 cat >conftest.$ac_ext <<_ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h. */
20107 #include <$ac_header>
20109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20112 grep -v '^ *+' conftest.er1 >conftest.err
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } >/dev/null; then
20117 if test -s conftest.err; then
20118 ac_cpp_err=$ac_c_preproc_warn_flag
20119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20126 if test -z "$ac_cpp_err"; then
20127 ac_header_preproc=yes
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20132 ac_header_preproc=no
20134 rm -f conftest.err conftest.$ac_ext
20135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20136 echo "${ECHO_T}$ac_header_preproc" >&6
20138 # So? What about this header?
20139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20145 ac_header_preproc=yes
20148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20162 ## ------------------------------------------ ##
20163 ## Report this to the AC_PACKAGE_NAME lists. ##
20164 ## ------------------------------------------ ##
20167 sed "s/^/$as_me: WARNING: /" >&2
20170 echo "$as_me:$LINENO: checking for $ac_header" >&5
20171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20175 eval "$as_ac_Header=\$ac_header_preproc"
20177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20182 cat >>confdefs.h <<_ACEOF
20183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20191 cat >>confdefs.h <<_ACEOF
20192 #define PACKAGE "$PACKAGE"
20195 cat >>confdefs.h <<_ACEOF
20196 #define VERSION "$VERSION"
20205 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20206 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20207 if test "${ac_cv_c_const+set}" = set; then
20208 echo $ECHO_N "(cached) $ECHO_C" >&6
20210 cat >conftest.$ac_ext <<_ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20220 /* FIXME: Include the comments suggested by Paul. */
20221 #ifndef __cplusplus
20222 /* Ultrix mips cc rejects this. */
20223 typedef int charset[2];
20225 /* SunOS 4.1.1 cc rejects this. */
20226 char const *const *ccp;
20228 /* NEC SVR4.0.2 mips cc rejects this. */
20229 struct point {int x, y;};
20230 static struct point const zero = {0,0};
20231 /* AIX XL C 1.02.0.0 rejects this.
20232 It does not let you subtract one const X* pointer from another in
20233 an arm of an if-expression whose if-part is not a constant
20235 const char *g = "string";
20236 ccp = &g + (g ? g-g : 0);
20237 /* HPUX 7.0 cc rejects these. */
20240 ccp = (char const *const *) p;
20241 { /* SCO 3.2v4 cc rejects this. */
20243 char const *s = 0 ? (char *) 0 : (char const *) 0;
20247 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20248 int x[] = {25, 17};
20249 const int *foo = &x[0];
20252 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20253 typedef const int *iptr;
20257 { /* AIX XL C 1.02.0.0 rejects this saying
20258 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20259 struct s { int j; const int *ap[3]; };
20260 struct s *b; b->j = 5;
20262 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20263 const int foo = 10;
20271 rm -f conftest.$ac_objext
20272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20273 (eval $ac_compile) 2>conftest.er1
20275 grep -v '^ *+' conftest.er1 >conftest.err
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } &&
20280 { ac_try='test -z "$ac_c_werror_flag"
20281 || test ! -s conftest.err'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; } &&
20287 { ac_try='test -s conftest.$ac_objext'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20302 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20303 echo "${ECHO_T}$ac_cv_c_const" >&6
20304 if test $ac_cv_c_const = no; then
20306 cat >>confdefs.h <<\_ACEOF
20312 echo "$as_me:$LINENO: checking for inline" >&5
20313 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20314 if test "${ac_cv_c_inline+set}" = set; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20318 for ac_kw in inline __inline__ __inline; do
20319 cat >conftest.$ac_ext <<_ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20325 #ifndef __cplusplus
20327 static $ac_kw foo_t static_foo () {return 0; }
20328 $ac_kw foo_t foo () {return 0; }
20332 rm -f conftest.$ac_objext
20333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20334 (eval $ac_compile) 2>conftest.er1
20336 grep -v '^ *+' conftest.er1 >conftest.err
20338 cat conftest.err >&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } &&
20341 { ac_try='test -z "$ac_c_werror_flag"
20342 || test ! -s conftest.err'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; } &&
20348 { ac_try='test -s conftest.$ac_objext'
20349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350 (eval $ac_try) 2>&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; }; then
20354 ac_cv_c_inline=$ac_kw; break
20356 echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20364 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20365 echo "${ECHO_T}$ac_cv_c_inline" >&6
20368 case $ac_cv_c_inline in
20371 case $ac_cv_c_inline in
20373 *) ac_val=$ac_cv_c_inline;;
20375 cat >>confdefs.h <<_ACEOF
20376 #ifndef __cplusplus
20377 #define inline $ac_val
20383 echo "$as_me:$LINENO: checking for off_t" >&5
20384 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20385 if test "${ac_cv_type_off_t+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 cat >conftest.$ac_ext <<_ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 $ac_includes_default
20400 if (sizeof (off_t))
20406 rm -f conftest.$ac_objext
20407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20408 (eval $ac_compile) 2>conftest.er1
20410 grep -v '^ *+' conftest.er1 >conftest.err
20412 cat conftest.err >&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } &&
20415 { ac_try='test -z "$ac_c_werror_flag"
20416 || test ! -s conftest.err'
20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; } &&
20422 { ac_try='test -s conftest.$ac_objext'
20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; }; then
20428 ac_cv_type_off_t=yes
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20433 ac_cv_type_off_t=no
20435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20437 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20438 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20439 if test $ac_cv_type_off_t = yes; then
20443 cat >>confdefs.h <<_ACEOF
20449 echo "$as_me:$LINENO: checking for size_t" >&5
20450 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20451 if test "${ac_cv_type_size_t+set}" = set; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
20454 cat >conftest.$ac_ext <<_ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 $ac_includes_default
20466 if (sizeof (size_t))
20472 rm -f conftest.$ac_objext
20473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20474 (eval $ac_compile) 2>conftest.er1
20476 grep -v '^ *+' conftest.er1 >conftest.err
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } &&
20481 { ac_try='test -z "$ac_c_werror_flag"
20482 || test ! -s conftest.err'
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; } &&
20488 { ac_try='test -s conftest.$ac_objext'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
20494 ac_cv_type_size_t=yes
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20499 ac_cv_type_size_t=no
20501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20503 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20504 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20505 if test $ac_cv_type_size_t = yes; then
20509 cat >>confdefs.h <<_ACEOF
20510 #define size_t unsigned
20515 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20516 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20517 if test "${ac_cv_struct_tm+set}" = set; then
20518 echo $ECHO_N "(cached) $ECHO_C" >&6
20520 cat >conftest.$ac_ext <<_ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20526 #include <sys/types.h>
20532 struct tm *tp; tp->tm_sec;
20537 rm -f conftest.$ac_objext
20538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20539 (eval $ac_compile) 2>conftest.er1
20541 grep -v '^ *+' conftest.er1 >conftest.err
20543 cat conftest.err >&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } &&
20546 { ac_try='test -z "$ac_c_werror_flag"
20547 || test ! -s conftest.err'
20548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20549 (eval $ac_try) 2>&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; } &&
20553 { ac_try='test -s conftest.$ac_objext'
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; }; then
20559 ac_cv_struct_tm=time.h
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20564 ac_cv_struct_tm=sys/time.h
20566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20568 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20569 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20570 if test $ac_cv_struct_tm = sys/time.h; then
20572 cat >>confdefs.h <<\_ACEOF
20573 #define TM_IN_SYS_TIME 1
20578 echo "$as_me:$LINENO: checking for boolean" >&5
20579 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
20580 if test "${ac_cv_type_boolean+set}" = set; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 cat >conftest.$ac_ext <<_ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20589 $ac_includes_default
20595 if (sizeof (boolean))
20601 rm -f conftest.$ac_objext
20602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20603 (eval $ac_compile) 2>conftest.er1
20605 grep -v '^ *+' conftest.er1 >conftest.err
20607 cat conftest.err >&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } &&
20610 { ac_try='test -z "$ac_c_werror_flag"
20611 || test ! -s conftest.err'
20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613 (eval $ac_try) 2>&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; } &&
20617 { ac_try='test -s conftest.$ac_objext'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 ac_cv_type_boolean=yes
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20628 ac_cv_type_boolean=no
20630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20632 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
20633 echo "${ECHO_T}$ac_cv_type_boolean" >&6
20634 if test $ac_cv_type_boolean = yes; then
20638 cat >>confdefs.h <<_ACEOF
20639 #define boolean int
20643 #needed for jpeglib
20655 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
20657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20658 echo "$as_me:$LINENO: checking for $ac_func" >&5
20659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20660 if eval "test \"\${$as_ac_var+set}\" = set"; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20663 cat >conftest.$ac_ext <<_ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h. */
20669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20671 #define $ac_func innocuous_$ac_func
20673 /* System header to define __stub macros and hopefully few prototypes,
20674 which can conflict with char $ac_func (); below.
20675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20676 <limits.h> exists even on freestanding compilers. */
20679 # include <limits.h>
20681 # include <assert.h>
20686 /* Override any gcc2 internal prototype to avoid an error. */
20691 /* We use char because int might match the return type of a gcc2
20692 builtin and then its argument prototype would still apply. */
20694 /* The GNU C library defines this for functions which it implements
20695 to always fail with ENOSYS. Some functions are actually named
20696 something starting with __ and the normal name is an alias. */
20697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20700 char (*f) () = $ac_func;
20709 return f != $ac_func;
20714 rm -f conftest.$ac_objext conftest$ac_exeext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20716 (eval $ac_link) 2>conftest.er1
20718 grep -v '^ *+' conftest.er1 >conftest.err
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } &&
20723 { ac_try='test -z "$ac_c_werror_flag"
20724 || test ! -s conftest.err'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; } &&
20730 { ac_try='test -s conftest$ac_exeext'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; }; then
20736 eval "$as_ac_var=yes"
20738 echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20741 eval "$as_ac_var=no"
20743 rm -f conftest.err conftest.$ac_objext \
20744 conftest$ac_exeext conftest.$ac_ext
20746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20748 if test `eval echo '${'$as_ac_var'}'` = yes; then
20749 cat >>confdefs.h <<_ACEOF
20750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20757 # ------------------------------------------------------------------
20760 for ac_prog in freetype-config
20762 # Extract the first word of "$ac_prog", so it can be a program name with args.
20763 set dummy $ac_prog; ac_word=$2
20764 echo "$as_me:$LINENO: checking for $ac_word" >&5
20765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20766 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20769 if test -n "$FREETYPE_CONFIG"; then
20770 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
20772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20773 for as_dir in $PATH
20776 test -z "$as_dir" && as_dir=.
20777 for ac_exec_ext in '' $ac_executable_extensions; do
20778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20779 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
20780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20788 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
20789 if test -n "$FREETYPE_CONFIG"; then
20790 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
20791 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
20793 echo "$as_me:$LINENO: result: no" >&5
20794 echo "${ECHO_T}no" >&6
20797 test -n "$FREETYPE_CONFIG" && break
20800 OLDCPPFLAGS="${CPPFLAGS}"
20802 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
20803 CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
20804 else if test -d /usr/include/freetype2; then
20805 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
20806 else if test -d /usr/local/include/freetype2; then
20807 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
20812 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
20813 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
20814 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
20815 echo $ECHO_N "(cached) $ECHO_C" >&6
20817 ac_check_lib_save_LIBS=$LIBS
20818 LIBS="-lfreetype $LIBS"
20819 cat >conftest.$ac_ext <<_ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20826 /* Override any gcc2 internal prototype to avoid an error. */
20830 /* We use char because int might match the return type of a gcc2
20831 builtin and then its argument prototype would still apply. */
20832 char FT_Init_FreeType ();
20836 FT_Init_FreeType ();
20841 rm -f conftest.$ac_objext conftest$ac_exeext
20842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20843 (eval $ac_link) 2>conftest.er1
20845 grep -v '^ *+' conftest.er1 >conftest.err
20847 cat conftest.err >&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } &&
20850 { ac_try='test -z "$ac_c_werror_flag"
20851 || test ! -s conftest.err'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; } &&
20857 { ac_try='test -s conftest$ac_exeext'
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; }; then
20863 ac_cv_lib_freetype_FT_Init_FreeType=yes
20865 echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20868 ac_cv_lib_freetype_FT_Init_FreeType=no
20870 rm -f conftest.err conftest.$ac_objext \
20871 conftest$ac_exeext conftest.$ac_ext
20872 LIBS=$ac_check_lib_save_LIBS
20874 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
20875 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
20876 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
20877 HAVE_LIB_FREETYPE=1
20881 for ac_header in freetype/freetype.h
20883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20885 echo "$as_me:$LINENO: checking for $ac_header" >&5
20886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20888 echo $ECHO_N "(cached) $ECHO_C" >&6
20890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20893 # Is the header compilable?
20894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20896 cat >conftest.$ac_ext <<_ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20902 $ac_includes_default
20903 #include <$ac_header>
20905 rm -f conftest.$ac_objext
20906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20907 (eval $ac_compile) 2>conftest.er1
20909 grep -v '^ *+' conftest.er1 >conftest.err
20911 cat conftest.err >&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } &&
20914 { ac_try='test -z "$ac_c_werror_flag"
20915 || test ! -s conftest.err'
20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917 (eval $ac_try) 2>&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; } &&
20921 { ac_try='test -s conftest.$ac_objext'
20922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923 (eval $ac_try) 2>&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; }; then
20927 ac_header_compiler=yes
20929 echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20932 ac_header_compiler=no
20934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20936 echo "${ECHO_T}$ac_header_compiler" >&6
20938 # Is the header present?
20939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20941 cat >conftest.$ac_ext <<_ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 #include <$ac_header>
20949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20952 grep -v '^ *+' conftest.er1 >conftest.err
20954 cat conftest.err >&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } >/dev/null; then
20957 if test -s conftest.err; then
20958 ac_cpp_err=$ac_c_preproc_warn_flag
20959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20966 if test -z "$ac_cpp_err"; then
20967 ac_header_preproc=yes
20969 echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20972 ac_header_preproc=no
20974 rm -f conftest.err conftest.$ac_ext
20975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20976 echo "${ECHO_T}$ac_header_preproc" >&6
20978 # So? What about this header?
20979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20985 ac_header_preproc=yes
20988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21002 ## ------------------------------------------ ##
21003 ## Report this to the AC_PACKAGE_NAME lists. ##
21004 ## ------------------------------------------ ##
21007 sed "s/^/$as_me: WARNING: /" >&2
21010 echo "$as_me:$LINENO: checking for $ac_header" >&5
21011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 eval "$as_ac_Header=\$ac_header_preproc"
21017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21022 cat >>confdefs.h <<_ACEOF
21023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21025 HAVE_FREETYPE_FREETYPE_H=1
21031 for ac_header in ft2build.h
21033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21035 echo "$as_me:$LINENO: checking for $ac_header" >&5
21036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21043 # Is the header compilable?
21044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 $ac_includes_default
21053 #include <$ac_header>
21055 rm -f conftest.$ac_objext
21056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21057 (eval $ac_compile) 2>conftest.er1
21059 grep -v '^ *+' conftest.er1 >conftest.err
21061 cat conftest.err >&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
21064 { ac_try='test -z "$ac_c_werror_flag"
21065 || test ! -s conftest.err'
21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067 (eval $ac_try) 2>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; } &&
21071 { ac_try='test -s conftest.$ac_objext'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; }; then
21077 ac_header_compiler=yes
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21082 ac_header_compiler=no
21084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21086 echo "${ECHO_T}$ac_header_compiler" >&6
21088 # Is the header present?
21089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21091 cat >conftest.$ac_ext <<_ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 #include <$ac_header>
21099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21102 grep -v '^ *+' conftest.er1 >conftest.err
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } >/dev/null; then
21107 if test -s conftest.err; then
21108 ac_cpp_err=$ac_c_preproc_warn_flag
21109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21116 if test -z "$ac_cpp_err"; then
21117 ac_header_preproc=yes
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21122 ac_header_preproc=no
21124 rm -f conftest.err conftest.$ac_ext
21125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21126 echo "${ECHO_T}$ac_header_preproc" >&6
21128 # So? What about this header?
21129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21135 ac_header_preproc=yes
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21152 ## ------------------------------------------ ##
21153 ## Report this to the AC_PACKAGE_NAME lists. ##
21154 ## ------------------------------------------ ##
21157 sed "s/^/$as_me: WARNING: /" >&2
21160 echo "$as_me:$LINENO: checking for $ac_header" >&5
21161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21165 eval "$as_ac_Header=\$ac_header_preproc"
21167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21172 cat >>confdefs.h <<_ACEOF
21173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21181 if test "x${HAVE_LIB_FREETYPE}" '!=' "x";then
21182 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
21185 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
21190 if test "x${HAVE_FREETYPE}" = "x1"; then
21191 if test "x{$FREETYPE_CONFIG}" '!=' "x"; then
21192 LIBS="$LIBS "`freetype-config --libs`
21194 LIBS="$LIBS -lfreetype"
21197 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
21198 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
21201 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
21202 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
21204 cat > conftest.c << EOF
21205 $HAVE_FT2BUILD_H_DEFINE
21207 #ifdef HAVE_FT2BUILD_H
21208 #include <ft2build.h>
21209 #include FT_FREETYPE_H
21210 #include FT_GLYPH_H
21211 #include FT_SIZES_H
21212 #include FT_SFNT_NAMES_H
21213 #include FT_TRUETYPE_IDS_H
21214 #include FT_OUTLINE_H
21216 #include <freetype/freetype.h>
21217 #include <freetype/ftglyph.h>
21218 #include <freetype/ftsizes.h>
21219 #include <freetype/ftsnames.h>
21220 #include <freetype/ttnameid.h>
21221 #include <freetype/ftoutln.h>
21226 FT_Library ftlibrary;
21238 FT_Init_FreeType(&ftlibrary);
21239 FT_New_Face(ftlibrary, "filename", 0, &face);
21240 i = face->num_glyphs - 1;
21241 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
21242 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
21243 FT_Get_Postscript_Name(face);
21244 FT_Get_Char_Index(face, 33);
21245 FT_Get_First_Char(face, &i);
21246 FT_Get_Next_Char(face, 33, &i);
21247 if(FT_HAS_GLYPH_NAMES(face)) {
21248 FT_Get_Glyph_Name(face, 33, name, 127);
21250 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
21251 FT_Get_Glyph(face->glyph, &glyph);
21252 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
21253 FT_Done_Glyph(glyph);
21254 FT_Done_Face(face);
21255 FT_Done_FreeType(ftlibrary);
21260 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
21261 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21262 echo "$as_me:$LINENO: result: yes" >&5
21263 echo "${ECHO_T}yes" >&6
21264 cat >>confdefs.h <<_ACEOF
21265 #define HAVE_FREETYPE 1
21268 cat >>confdefs.h <<_ACEOF
21269 #define USE_FREETYPE 1
21273 echo "configure: failed program was:" >&5
21276 echo "$as_me:$LINENO: result: no" >&5
21277 echo "${ECHO_T}no" >&6
21282 # if the above didn't work out, reset all changes to the compiler variables.
21283 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
21284 CPPFLAGS=$OLDCPPFLAGS
21290 OLDCPPFLAGS="${CPPFLAGS}"
21293 if test -d /usr/include/fontconfig; then
21294 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
21297 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
21298 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
21299 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
21300 echo $ECHO_N "(cached) $ECHO_C" >&6
21302 ac_check_lib_save_LIBS=$LIBS
21303 LIBS="-lfontconfig $LIBS"
21304 cat >conftest.$ac_ext <<_ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21311 /* Override any gcc2 internal prototype to avoid an error. */
21315 /* We use char because int might match the return type of a gcc2
21316 builtin and then its argument prototype would still apply. */
21326 rm -f conftest.$ac_objext conftest$ac_exeext
21327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21328 (eval $ac_link) 2>conftest.er1
21330 grep -v '^ *+' conftest.er1 >conftest.err
21332 cat conftest.err >&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } &&
21335 { ac_try='test -z "$ac_c_werror_flag"
21336 || test ! -s conftest.err'
21337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338 (eval $ac_try) 2>&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); }; } &&
21342 { ac_try='test -s conftest$ac_exeext'
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; }; then
21348 ac_cv_lib_fontconfig_FcInit=yes
21350 echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21353 ac_cv_lib_fontconfig_FcInit=no
21355 rm -f conftest.err conftest.$ac_objext \
21356 conftest$ac_exeext conftest.$ac_ext
21357 LIBS=$ac_check_lib_save_LIBS
21359 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
21360 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
21361 if test $ac_cv_lib_fontconfig_FcInit = yes; then
21362 HAVE_LIB_FONTCONFIG=1
21366 for ac_header in fontconfig.h
21368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21370 echo "$as_me:$LINENO: checking for $ac_header" >&5
21371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21378 # Is the header compilable?
21379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21381 cat >conftest.$ac_ext <<_ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387 $ac_includes_default
21388 #include <$ac_header>
21390 rm -f conftest.$ac_objext
21391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21392 (eval $ac_compile) 2>conftest.er1
21394 grep -v '^ *+' conftest.er1 >conftest.err
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } &&
21399 { ac_try='test -z "$ac_c_werror_flag"
21400 || test ! -s conftest.err'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; } &&
21406 { ac_try='test -s conftest.$ac_objext'
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
21412 ac_header_compiler=yes
21414 echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21417 ac_header_compiler=no
21419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21421 echo "${ECHO_T}$ac_header_compiler" >&6
21423 # Is the header present?
21424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21426 cat >conftest.$ac_ext <<_ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 #include <$ac_header>
21434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21437 grep -v '^ *+' conftest.er1 >conftest.err
21439 cat conftest.err >&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } >/dev/null; then
21442 if test -s conftest.err; then
21443 ac_cpp_err=$ac_c_preproc_warn_flag
21444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21451 if test -z "$ac_cpp_err"; then
21452 ac_header_preproc=yes
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21457 ac_header_preproc=no
21459 rm -f conftest.err conftest.$ac_ext
21460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21461 echo "${ECHO_T}$ac_header_preproc" >&6
21463 # So? What about this header?
21464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21470 ac_header_preproc=yes
21473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21487 ## ------------------------------------------ ##
21488 ## Report this to the AC_PACKAGE_NAME lists. ##
21489 ## ------------------------------------------ ##
21492 sed "s/^/$as_me: WARNING: /" >&2
21495 echo "$as_me:$LINENO: checking for $ac_header" >&5
21496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21498 echo $ECHO_N "(cached) $ECHO_C" >&6
21500 eval "$as_ac_Header=\$ac_header_preproc"
21502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21507 cat >>confdefs.h <<_ACEOF
21508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21510 HAVE_FONTCONFIG_H=1
21516 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
21517 if test "x${HAVE_FONTCONFIG_H}" != "x";then
21522 if test "x${HAVE_FONTCONFIG}" = "x1"; then
21523 LIBS="$LIBS -lfontconfig"
21524 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
21525 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
21527 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
21528 #move freetype library to the end of libraries, otherwise fontconfig
21530 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
21533 cat > conftest.c << EOF
21534 #include <fontconfig.h>
21538 FcPattern *pattern, *match;
21542 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
21543 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
21544 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
21545 FcConfigSubstitute(0, pattern, FcMatchPattern);
21546 FcDefaultSubstitute(pattern);
21547 match = FcFontMatch(0, pattern, &result);
21548 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
21549 FcPatternPrint(pattern);
21550 FcPatternDestroy(pattern);
21551 FcPatternDestroy(match);
21556 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
21557 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21558 echo "$as_me:$LINENO: result: yes" >&5
21559 echo "${ECHO_T}yes" >&6
21560 cat >>confdefs.h <<_ACEOF
21561 #define HAVE_FONTCONFIG 1
21565 echo "configure: failed program was:" >&5
21568 echo "$as_me:$LINENO: result: no" >&5
21569 echo "${ECHO_T}no" >&6
21574 # if the above didn't work out, reset all changes to the compiler variables.
21575 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
21576 CPPFLAGS=$OLDCPPFLAGS
21581 # ------------------------------------------------------------------
21585 if test "x${DISABLE_LAME}" = "xtrue"; then
21586 echo "*" Disabling lame support...
21588 # old lame code at lib/lame
21589 if test -f lib/lame/Makefile.in; then
21590 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"
21591 lame_makefile="lib/lame/Makefile"
21592 CPPFLAGS="$CPPFLAGS -Ilame"
21593 cat >>confdefs.h <<_ACEOF
21594 #define HAVE_LAME 1
21598 if test -d /usr/include/lame; then
21599 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
21601 if test -d /usr/local/include/lame; then
21602 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
21606 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
21607 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
21608 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 ac_check_lib_save_LIBS=$LIBS
21612 LIBS="-lmp3lame $LIBS"
21613 cat >conftest.$ac_ext <<_ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h. */
21620 /* Override any gcc2 internal prototype to avoid an error. */
21624 /* We use char because int might match the return type of a gcc2
21625 builtin and then its argument prototype would still apply. */
21635 rm -f conftest.$ac_objext conftest$ac_exeext
21636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21637 (eval $ac_link) 2>conftest.er1
21639 grep -v '^ *+' conftest.er1 >conftest.err
21641 cat conftest.err >&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } &&
21644 { ac_try='test -z "$ac_c_werror_flag"
21645 || test ! -s conftest.err'
21646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647 (eval $ac_try) 2>&5
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); }; } &&
21651 { ac_try='test -s conftest$ac_exeext'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; }; then
21657 ac_cv_lib_mp3lame_lame_init=yes
21659 echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21662 ac_cv_lib_mp3lame_lame_init=no
21664 rm -f conftest.err conftest.$ac_objext \
21665 conftest$ac_exeext conftest.$ac_ext
21666 LIBS=$ac_check_lib_save_LIBS
21668 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
21669 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
21670 if test $ac_cv_lib_mp3lame_lame_init = yes; then
21671 cat >>confdefs.h <<_ACEOF
21672 #define HAVE_LIBMP3LAME 1
21675 LIBS="-lmp3lame $LIBS"
21682 for ac_header in lame.h
21684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21686 echo "$as_me:$LINENO: checking for $ac_header" >&5
21687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21689 echo $ECHO_N "(cached) $ECHO_C" >&6
21691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21694 # Is the header compilable?
21695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21697 cat >conftest.$ac_ext <<_ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 $ac_includes_default
21704 #include <$ac_header>
21706 rm -f conftest.$ac_objext
21707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21708 (eval $ac_compile) 2>conftest.er1
21710 grep -v '^ *+' conftest.er1 >conftest.err
21712 cat conftest.err >&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } &&
21715 { ac_try='test -z "$ac_c_werror_flag"
21716 || test ! -s conftest.err'
21717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718 (eval $ac_try) 2>&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); }; } &&
21722 { ac_try='test -s conftest.$ac_objext'
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; }; then
21728 ac_header_compiler=yes
21730 echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21733 ac_header_compiler=no
21735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21737 echo "${ECHO_T}$ac_header_compiler" >&6
21739 # Is the header present?
21740 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21742 cat >conftest.$ac_ext <<_ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21748 #include <$ac_header>
21750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21753 grep -v '^ *+' conftest.er1 >conftest.err
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } >/dev/null; then
21758 if test -s conftest.err; then
21759 ac_cpp_err=$ac_c_preproc_warn_flag
21760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21767 if test -z "$ac_cpp_err"; then
21768 ac_header_preproc=yes
21770 echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21773 ac_header_preproc=no
21775 rm -f conftest.err conftest.$ac_ext
21776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21777 echo "${ECHO_T}$ac_header_preproc" >&6
21779 # So? What about this header?
21780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21786 ac_header_preproc=yes
21789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21803 ## ------------------------------------------ ##
21804 ## Report this to the AC_PACKAGE_NAME lists. ##
21805 ## ------------------------------------------ ##
21808 sed "s/^/$as_me: WARNING: /" >&2
21811 echo "$as_me:$LINENO: checking for $ac_header" >&5
21812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
21816 eval "$as_ac_Header=\$ac_header_preproc"
21818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21823 cat >>confdefs.h <<_ACEOF
21824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21831 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
21832 cat >>confdefs.h <<_ACEOF
21833 #define HAVE_LAME 1
21841 # ------------------------------------------------------------------
21845 for ac_prog in avifile-config
21847 # Extract the first word of "$ac_prog", so it can be a program name with args.
21848 set dummy $ac_prog; ac_word=$2
21849 echo "$as_me:$LINENO: checking for $ac_word" >&5
21850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21851 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
21852 echo $ECHO_N "(cached) $ECHO_C" >&6
21854 if test -n "$AVIFILE_CONFIG"; then
21855 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
21857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21858 for as_dir in $PATH
21861 test -z "$as_dir" && as_dir=.
21862 for ac_exec_ext in '' $ac_executable_extensions; do
21863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21864 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
21865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21873 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
21874 if test -n "$AVIFILE_CONFIG"; then
21875 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
21876 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
21878 echo "$as_me:$LINENO: result: no" >&5
21879 echo "${ECHO_T}no" >&6
21882 test -n "$AVIFILE_CONFIG" && break
21886 if test "x$AVIFILE_CONFIG" '!=' "x";then
21887 OLDCPPFLAGS="$CPPFLAGS"
21888 #OLDLDFLAGS="$LDFLAGS"
21889 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
21890 #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
21893 for ac_header in avifile/version.h version.h
21895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21897 echo "$as_me:$LINENO: checking for $ac_header" >&5
21898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21900 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21905 # Is the header compilable?
21906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21908 cat >conftest.$ac_ext <<_ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h. */
21914 $ac_includes_default
21915 #include <$ac_header>
21917 rm -f conftest.$ac_objext
21918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21919 (eval $ac_compile) 2>conftest.er1
21921 grep -v '^ *+' conftest.er1 >conftest.err
21923 cat conftest.err >&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } &&
21926 { ac_try='test -z "$ac_c_werror_flag"
21927 || test ! -s conftest.err'
21928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929 (eval $ac_try) 2>&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); }; } &&
21933 { ac_try='test -s conftest.$ac_objext'
21934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935 (eval $ac_try) 2>&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); }; }; then
21939 ac_header_compiler=yes
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 ac_header_compiler=no
21946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21948 echo "${ECHO_T}$ac_header_compiler" >&6
21950 # Is the header present?
21951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21953 cat >conftest.$ac_ext <<_ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959 #include <$ac_header>
21961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21964 grep -v '^ *+' conftest.er1 >conftest.err
21966 cat conftest.err >&5
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); } >/dev/null; then
21969 if test -s conftest.err; then
21970 ac_cpp_err=$ac_c_preproc_warn_flag
21971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21978 if test -z "$ac_cpp_err"; then
21979 ac_header_preproc=yes
21981 echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21984 ac_header_preproc=no
21986 rm -f conftest.err conftest.$ac_ext
21987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21988 echo "${ECHO_T}$ac_header_preproc" >&6
21990 # So? What about this header?
21991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21997 ac_header_preproc=yes
22000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22014 ## ------------------------------------------ ##
22015 ## Report this to the AC_PACKAGE_NAME lists. ##
22016 ## ------------------------------------------ ##
22019 sed "s/^/$as_me: WARNING: /" >&2
22022 echo "$as_me:$LINENO: checking for $ac_header" >&5
22023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22025 echo $ECHO_N "(cached) $ECHO_C" >&6
22027 eval "$as_ac_Header=\$ac_header_preproc"
22029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22034 cat >>confdefs.h <<_ACEOF
22035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22042 #LDFLAGS="$OLDLDFLAGS"
22043 CPPFLAGS="$OLDCPPFLAGS"
22046 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
22047 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
22049 if test "x${ac_cv_header_version_h}" '=' "xyes";then
22050 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
22052 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
22053 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
22056 cat > conftest.cpp << EOF
22058 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
22059 // so we have to introduce them this way
22060 $HAVE_VERSION_H_DEFINE
22061 $HAVE_AVIFILE_VERSION_H_DEFINE
22063 #ifdef HAVE_VERSION_H
22064 #include <version.h>
22066 #ifdef HAVE_AVIFILE_VERSION_H
22067 #include <avifile/version.h>
22070 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
22071 #include <avifile.h>
22072 #include <aviplay.h>
22073 #include <fourcc.h>
22074 #include <creators.h>
22075 #include <StreamInfo.h>
22078 #include <avifile.h>
22079 #include <aviplay.h>
22080 #include <aviutil.h>
22081 #define Width width
22082 #define Height height
22089 IAviReadFile* player;
22090 IAviReadStream* astream;
22091 IAviReadStream* vstream;
22092 player = CreateIAviReadFile(0);
22093 astream = player->GetStream(0, AviStream::Audio);
22094 vstream = player->GetStream(0, AviStream::Video);
22095 vstream -> StartStreaming();
22096 astream -> StartStreaming();
22098 MainAVIHeader head;
22099 player->GetFileHeader(&head);
22100 head.dwMicroSecPerFrame;
22101 head.dwTotalFrames;
22105 head.dwMicroSecPerFrame;
22106 astream->GetEndPos(),
22107 astream->GetEndTime());
22108 player->StreamCount();
22110 StreamInfo*audioinfo;
22111 StreamInfo*videoinfo;
22112 audioinfo = astream->GetStreamInfo();
22113 videoinfo = vstream->GetStreamInfo();
22114 videoinfo->GetVideoWidth();
22115 videoinfo->GetVideoHeight();
22116 audioinfo->GetAudioSamplesPerSec();
22117 videoinfo->GetFps();
22119 CImage*img = vstream->GetFrame();
22126 astream->GetAudioFormatInfo(&wave,0);
22128 astream->ReadFrames(0,0,0,a,b);
22130 int main (int argc, char*argv)
22136 if test "x$AVIFILE_CONFIG" '!=' "x";then
22137 ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
22138 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
22139 echo "$as_me:$LINENO: result: yes" >&5
22140 echo "${ECHO_T}yes" >&6
22143 cat >>confdefs.h <<_ACEOF
22144 #define AVIFILE true
22148 echo "configure: failed program was:" >&5
22149 cat conftest.cpp >&5
22150 echo "$as_me:$LINENO: result: no" >&5
22151 echo "${ECHO_T}no" >&6
22154 echo "$as_me:$LINENO: result: no" >&5
22155 echo "${ECHO_T}no" >&6
22160 # ------------------------------------------------------------------
22162 if test "x${UNCOMPRESS}" = "xgzip"; then
22163 cat >>confdefs.h <<_ACEOF
22170 # ------------------------------------------------------------------
22173 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
22174 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
22175 # should we support python versions below 2.2?
22176 if test -f "/usr/lib/python2.2/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.2/Python.h";then
22179 if test -f "/usr/lib/python2.3/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.3/Python.h";then
22182 if test -f "/usr/lib/python2.4/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.4/Python.h";then
22186 if test "x$PY_VERSION" "!=" "x"; then
22187 echo "$as_me:$LINENO: result: python$PY_VERSION" >&5
22188 echo "${ECHO_T}python$PY_VERSION" >&6
22189 if test "x$PYTHON_LIB" = "x";then
22190 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
22192 if test "x$PYTHON_INCLUDES" = "x";then
22193 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
22195 export PYTHON_INCLUDES PYTHON_LIB
22198 echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
22199 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
22201 cat > conftest.c << EOF
22202 #include <Python.h>
22203 #include <Imaging.h>
22205 int main(int argn, char*argv)
22208 ret = Py_Main(argn, argv);
22209 int x; // check also for gcc 2.95.x incompatibilities
22213 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
22214 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22215 echo "$as_me:$LINENO: result: yes" >&5
22216 echo "${ECHO_T}yes" >&6
22219 echo "configure: failed program was:" >&5
22221 echo "$as_me:$LINENO: result: no" >&5
22222 echo "${ECHO_T}no" >&6
22226 echo "$as_me:$LINENO: result: nope" >&5
22227 echo "${ECHO_T}nope" >&6
22231 if test "x$PYTHON_OK" '!=' "xyes";then
22232 echo all install uninstall clean: > lib/python/Makefile
22233 # fail silently- the most users won't have any need for the
22234 # python interface anyway
22236 pythonrfxswf="lib/python/Makefile"
22239 # ------------------------------------------------------------------
22241 echo "$as_me:$LINENO: checking for missing libraries" >&5
22242 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
22244 if test "x$ZLIBMISSING" = "xtrue";then
22245 MISSINGLIBS="${MISSINGLIBS} zlib"
22246 DISABLEPNG2SWF=true;
22248 if test "x$JPEGLIBMISSING" = "xtrue";then
22249 MISSINGLIBS="${MISSINGLIBS} jpeglib"
22250 DISABLEPDF2SWF=true;
22251 DISABLEJPEG2SWF=true;
22253 if test "x$T1LIBMISSING" = "xtrue";then
22254 MISSINGLIBS="${MISSINGLIBS} t1lib"
22257 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
22258 DISABLEPDF2SWF=true;
22259 DISABLEJPEG2SWF=true;
22260 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
22262 if test "x$HAVE_FREETYPE" != "x1"; then
22263 DISABLEPDF2SWF=true;
22264 MISSINGLIBS="${MISSINGLIBS} freetype"
22266 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
22267 DISABLEPDF2SWF=true;
22268 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
22270 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
22271 DISABLEPNG2SWF=true;
22272 MISSINGLIBS="${MISSINGLIBS} zlib.h"
22274 if test "x${AVIFILE}" != "xtrue"; then
22275 MISSINGLIBS="${MISSINGLIBS} avifile"
22278 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
22279 echo "${ECHO_T}${MISSINGLIBS}" >&6
22281 # ------------------------------------------------------------------
22283 if test "x${MISSINGLIBS}" '!=' "x"; then
22284 echo "***************************************************"
22285 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
22288 avi2swf="avi2swf/Makefile"
22289 if test "x${AVIFILE}" != "xtrue"; then
22290 echo "* Disabling avi2swf tool..."
22291 echo all install uninstall clean: > avi2swf/Makefile
22295 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
22296 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
22297 echo "* Disabling pdf2swf tool..."
22298 rm -f pdf2swf/Makefile
22299 echo all install uninstall clean: > pdf2swf/Makefile
22300 pdf2swf_makefile=""
22303 if test "x${ZLIBMISSING}" = "xtrue"; then
22305 echo "* Warning! Without zlib, you will not be able to read"
22306 echo "* or write compressed Flash MX files!"
22309 JPEG2SWF='jpeg2swf$(E)'
22310 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
22311 echo "* Disabling jpeg2swf tool..."
22317 PNG2SWF='png2swf$(E)'
22318 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
22319 echo "* Disabling png2swf tool..."
22325 if test "x${MISSINGLIBS}" '!=' "x"; then
22326 echo "***************************************************"
22329 # ------------------------------------------------------------------
22331 if test -f "release.in"; then release_in="./release"; fi
22332 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
22334 ac_config_files="$ac_config_files ${FILES}"
22336 cat >confcache <<\_ACEOF
22337 # This file is a shell script that caches the results of configure
22338 # tests run on this system so they can be shared between configure
22339 # scripts and configure runs, see configure's option --config-cache.
22340 # It is not useful on other systems. If it contains results you don't
22341 # want to keep, you may remove or edit it.
22343 # config.status only pays attention to the cache file if you give it
22344 # the --recheck option to rerun configure.
22346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22348 # following values.
22352 # The following way of writing the cache mishandles newlines in values,
22353 # but we know of no workaround that is simple, portable, and efficient.
22354 # So, don't put newlines in cache variables' values.
22355 # Ultrix sh set writes to stderr and can't be redirected directly,
22356 # and sets the high bit in the cache file unless we assign to the vars.
22359 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22361 # `set' does not quote correctly, so add quotes (double-quote
22362 # substitution turns \\\\ into \\, and sed turns \\ into \).
22365 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22368 # `set' quotes correctly as required by POSIX, so do not add quotes.
22370 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22379 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22381 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22382 if test -w $cache_file; then
22383 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22384 cat confcache >$cache_file
22386 echo "not updating unwritable cache $cache_file"
22391 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22392 # Let make expand exec_prefix.
22393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22395 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22396 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22397 # trailing colons and then remove the whole line if VPATH becomes empty
22398 # (actually we leave an empty line to preserve line numbers).
22399 if test "x$srcdir" = x.; then
22400 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22401 s/:*\$(srcdir):*/:/;
22402 s/:*\${srcdir}:*/:/;
22404 s/^\([^=]*=[ ]*\):*/\1/;
22410 DEFS=-DHAVE_CONFIG_H
22414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22415 # 1. Remove the extension, and $U if already installed.
22416 ac_i=`echo "$ac_i" |
22417 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22419 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22420 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22422 LIBOBJS=$ac_libobjs
22424 LTLIBOBJS=$ac_ltlibobjs
22428 : ${CONFIG_STATUS=./config.status}
22429 ac_clean_files_save=$ac_clean_files
22430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22431 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22432 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22433 cat >$CONFIG_STATUS <<_ACEOF
22435 # Generated by $as_me.
22436 # Run this file to recreate the current configuration.
22437 # Compiler output produced by configure, useful for debugging
22438 # configure, is in config.log if it exists.
22441 ac_cs_recheck=false
22443 SHELL=\${CONFIG_SHELL-$SHELL}
22446 cat >>$CONFIG_STATUS <<\_ACEOF
22447 ## --------------------- ##
22448 ## M4sh Initialization. ##
22449 ## --------------------- ##
22451 # Be Bourne compatible
22452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22455 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22456 # is contrary to our usage. Disable this feature.
22457 alias -g '${1+"$@"}'='"$@"'
22458 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22461 DUALCASE=1; export DUALCASE # for MKS sh
22463 # Support unset when possible.
22464 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22471 # Work around bugs in pre-3.0 UWIN ksh.
22472 $as_unset ENV MAIL MAILPATH
22479 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22480 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22481 LC_TELEPHONE LC_TIME
22483 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22484 eval $as_var=C; export $as_var
22490 # Required to use basename.
22491 if expr a : '\(a\)' >/dev/null 2>&1; then
22497 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22498 as_basename=basename
22504 # Name of the executable.
22505 as_me=`$as_basename "$0" ||
22506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22507 X"$0" : 'X\(//\)$' \| \
22508 X"$0" : 'X\(/\)$' \| \
22509 . : '\(.\)' 2>/dev/null ||
22511 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22512 /^X\/\(\/\/\)$/{ s//\1/; q; }
22513 /^X\/\(\/\).*/{ s//\1/; q; }
22517 # PATH needs CR, and LINENO needs CR and PATH.
22518 # Avoid depending upon Character Ranges.
22519 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22520 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22521 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22522 as_cr_digits='0123456789'
22523 as_cr_alnum=$as_cr_Letters$as_cr_digits
22525 # The user is always right.
22526 if test "${PATH_SEPARATOR+set}" != set; then
22527 echo "#! /bin/sh" >conf$$.sh
22528 echo "exit 0" >>conf$$.sh
22530 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22539 as_lineno_1=$LINENO
22540 as_lineno_2=$LINENO
22541 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22542 test "x$as_lineno_1" != "x$as_lineno_2" &&
22543 test "x$as_lineno_3" = "x$as_lineno_2" || {
22544 # Find who we are. Look in the path if we contain no path at all
22547 *[\\/]* ) as_myself=$0 ;;
22548 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22549 for as_dir in $PATH
22552 test -z "$as_dir" && as_dir=.
22553 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22558 # We did not find ourselves, most probably we were run as `sh COMMAND'
22559 # in which case we are not to be found in the path.
22560 if test "x$as_myself" = x; then
22563 if test ! -f "$as_myself"; then
22564 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22565 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22566 { (exit 1); exit 1; }; }
22568 case $CONFIG_SHELL in
22570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22571 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22574 test -z "$as_dir" && as_dir=.
22575 for as_base in sh bash ksh sh5; do
22578 if ("$as_dir/$as_base" -c '
22579 as_lineno_1=$LINENO
22580 as_lineno_2=$LINENO
22581 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22582 test "x$as_lineno_1" != "x$as_lineno_2" &&
22583 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22584 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22585 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22586 CONFIG_SHELL=$as_dir/$as_base
22587 export CONFIG_SHELL
22588 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22596 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22597 # uniformly replaced by the line number. The first 'sed' inserts a
22598 # line-number line before each line; the second 'sed' does the real
22599 # work. The second script uses 'N' to pair each line-number line
22600 # with the numbered line, and appends trailing '-' during
22601 # substitution so that $LINENO is not a special case at line end.
22602 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22603 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22604 sed '=' <$as_myself |
22609 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22612 s,^['$as_cr_digits']*\n,,
22613 ' >$as_me.lineno &&
22614 chmod +x $as_me.lineno ||
22615 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22616 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22617 { (exit 1); exit 1; }; }
22619 # Don't try to exec as it changes $[0], causing all sort of problems
22620 # (the dirname of $[0] is not the place where we might find the
22621 # original and so on. Autoconf is especially sensible to this).
22623 # Exit status is that of the last command.
22628 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22629 *c*,-n*) ECHO_N= ECHO_C='
22631 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22632 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22635 if expr a : '\(a\)' >/dev/null 2>&1; then
22641 rm -f conf$$ conf$$.exe conf$$.file
22643 if ln -s conf$$.file conf$$ 2>/dev/null; then
22644 # We could just check for DJGPP; but this test a) works b) is more generic
22645 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22646 if test -f conf$$.exe; then
22647 # Don't use ln at all; we don't have any links
22652 elif ln conf$$.file conf$$ 2>/dev/null; then
22657 rm -f conf$$ conf$$.exe conf$$.file
22659 if mkdir -p . 2>/dev/null; then
22662 test -d ./-p && rmdir ./-p
22666 as_executable_p="test -f"
22668 # Sed expression to map a string onto a valid CPP name.
22669 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22671 # Sed expression to map a string onto a valid variable name.
22672 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22676 # We need space, tab and new line, in precisely that order.
22686 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22687 # report actual input values of CONFIG_FILES etc. instead of their
22688 # values after options handling. Logging --version etc. is OK.
22692 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22693 ## Running $as_me. ##
22698 This file was extended by $as_me, which was
22699 generated by GNU Autoconf 2.59. Invocation command line was
22701 CONFIG_FILES = $CONFIG_FILES
22702 CONFIG_HEADERS = $CONFIG_HEADERS
22703 CONFIG_LINKS = $CONFIG_LINKS
22704 CONFIG_COMMANDS = $CONFIG_COMMANDS
22708 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22712 # Files that config.status was made for.
22713 if test -n "$ac_config_files"; then
22714 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22717 if test -n "$ac_config_headers"; then
22718 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22721 if test -n "$ac_config_links"; then
22722 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22725 if test -n "$ac_config_commands"; then
22726 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22729 cat >>$CONFIG_STATUS <<\_ACEOF
22732 \`$as_me' instantiates files from templates according to the
22733 current configuration.
22735 Usage: $0 [OPTIONS] [FILE]...
22737 -h, --help print this help, then exit
22738 -V, --version print version number, then exit
22739 -q, --quiet do not print progress messages
22740 -d, --debug don't remove temporary files
22741 --recheck update $as_me by reconfiguring in the same conditions
22742 --file=FILE[:TEMPLATE]
22743 instantiate the configuration file FILE
22744 --header=FILE[:TEMPLATE]
22745 instantiate the configuration header FILE
22747 Configuration files:
22750 Configuration headers:
22753 Report bugs to <bug-autoconf@gnu.org>."
22756 cat >>$CONFIG_STATUS <<_ACEOF
22759 configured by $0, generated by GNU Autoconf 2.59,
22760 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22762 Copyright (C) 2003 Free Software Foundation, Inc.
22763 This config.status script is free software; the Free Software Foundation
22764 gives unlimited permission to copy, distribute and modify it."
22769 cat >>$CONFIG_STATUS <<\_ACEOF
22770 # If no file are specified by the user, then we need to provide default
22771 # value. By we need to know if files were specified by the user.
22777 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22778 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22786 *) # This is not an option, so the user has probably given explicit
22789 ac_need_defaults=false;;
22793 # Handling of the options.
22795 cat >>$CONFIG_STATUS <<\_ACEOF
22796 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22798 --version | --vers* | -V )
22799 echo "$ac_cs_version"; exit 0 ;;
22801 # Conflict between --help and --header
22802 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22803 Try \`$0 --help' for more information." >&5
22804 echo "$as_me: error: ambiguous option: $1
22805 Try \`$0 --help' for more information." >&2;}
22806 { (exit 1); exit 1; }; };;
22807 --help | --hel | -h )
22808 echo "$ac_cs_usage"; exit 0 ;;
22809 --debug | --d* | -d )
22811 --file | --fil | --fi | --f )
22813 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22814 ac_need_defaults=false;;
22815 --header | --heade | --head | --hea )
22817 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22818 ac_need_defaults=false;;
22819 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22820 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22823 # This is an error.
22824 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22825 Try \`$0 --help' for more information." >&5
22826 echo "$as_me: error: unrecognized option: $1
22827 Try \`$0 --help' for more information." >&2;}
22828 { (exit 1); exit 1; }; } ;;
22830 *) ac_config_targets="$ac_config_targets $1" ;;
22836 ac_configure_extra_args=
22838 if $ac_cs_silent; then
22840 ac_configure_extra_args="$ac_configure_extra_args --silent"
22844 cat >>$CONFIG_STATUS <<_ACEOF
22845 if \$ac_cs_recheck; then
22846 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22847 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22856 cat >>$CONFIG_STATUS <<\_ACEOF
22857 for ac_config_target in $ac_config_targets
22859 case "$ac_config_target" in
22860 # Handling of arguments.
22861 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
22862 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22863 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22864 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22865 { (exit 1); exit 1; }; };;
22869 # If the user did not use the arguments to specify the items to instantiate,
22870 # then the envvar interface is used. Set only those that are not.
22871 # We use the long form for the default assignment because of an extremely
22872 # bizarre bug on SunOS 4.1.3.
22873 if $ac_need_defaults; then
22874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22878 # Have a temporary directory for convenience. Make it in the build tree
22879 # simply because there is no reason to put it here, and in addition,
22880 # creating and moving files from /tmp can sometimes cause problems.
22881 # Create a temporary directory, and hook for its removal unless debugging.
22884 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22885 trap '{ (exit 1); exit 1; }' 1 2 13 15
22888 # Create a (secure) tmp directory for tmp files.
22891 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22892 test -n "$tmp" && test -d "$tmp"
22895 tmp=./confstat$$-$RANDOM
22896 (umask 077 && mkdir $tmp)
22899 echo "$me: cannot create a temporary directory in ." >&2
22900 { (exit 1); exit 1; }
22905 cat >>$CONFIG_STATUS <<_ACEOF
22908 # CONFIG_FILES section.
22911 # No need to generate the scripts if there are no CONFIG_FILES.
22912 # This happens for instance when ./config.status config.h
22913 if test -n "\$CONFIG_FILES"; then
22914 # Protect against being on the right side of a sed subst in config.status.
22915 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22916 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22917 s,@SHELL@,$SHELL,;t t
22918 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22919 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22920 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22921 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22922 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22923 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22924 s,@exec_prefix@,$exec_prefix,;t t
22925 s,@prefix@,$prefix,;t t
22926 s,@program_transform_name@,$program_transform_name,;t t
22927 s,@bindir@,$bindir,;t t
22928 s,@sbindir@,$sbindir,;t t
22929 s,@libexecdir@,$libexecdir,;t t
22930 s,@datadir@,$datadir,;t t
22931 s,@sysconfdir@,$sysconfdir,;t t
22932 s,@sharedstatedir@,$sharedstatedir,;t t
22933 s,@localstatedir@,$localstatedir,;t t
22934 s,@libdir@,$libdir,;t t
22935 s,@includedir@,$includedir,;t t
22936 s,@oldincludedir@,$oldincludedir,;t t
22937 s,@infodir@,$infodir,;t t
22938 s,@mandir@,$mandir,;t t
22939 s,@build_alias@,$build_alias,;t t
22940 s,@host_alias@,$host_alias,;t t
22941 s,@target_alias@,$target_alias,;t t
22942 s,@DEFS@,$DEFS,;t t
22943 s,@ECHO_C@,$ECHO_C,;t t
22944 s,@ECHO_N@,$ECHO_N,;t t
22945 s,@ECHO_T@,$ECHO_T,;t t
22946 s,@LIBS@,$LIBS,;t t
22947 s,@build@,$build,;t t
22948 s,@build_cpu@,$build_cpu,;t t
22949 s,@build_vendor@,$build_vendor,;t t
22950 s,@build_os@,$build_os,;t t
22951 s,@host@,$host,;t t
22952 s,@host_cpu@,$host_cpu,;t t
22953 s,@host_vendor@,$host_vendor,;t t
22954 s,@host_os@,$host_os,;t t
22956 s,@CFLAGS@,$CFLAGS,;t t
22957 s,@LDFLAGS@,$LDFLAGS,;t t
22958 s,@CPPFLAGS@,$CPPFLAGS,;t t
22959 s,@ac_ct_CC@,$ac_ct_CC,;t t
22960 s,@EXEEXT@,$EXEEXT,;t t
22961 s,@OBJEXT@,$OBJEXT,;t t
22963 s,@CXXFLAGS@,$CXXFLAGS,;t t
22964 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22966 s,@RANLIB@,$RANLIB,;t t
22967 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22968 s,@SET_MAKE@,$SET_MAKE,;t t
22969 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22970 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22971 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22972 s,@LN_S@,$LN_S,;t t
22973 s,@EGREP@,$EGREP,;t t
22974 s,@ECHO@,$ECHO,;t t
22976 s,@ac_ct_AR@,$ac_ct_AR,;t t
22977 s,@STRIP@,$STRIP,;t t
22978 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22979 s,@CXXCPP@,$CXXCPP,;t t
22981 s,@FFLAGS@,$FFLAGS,;t t
22982 s,@ac_ct_F77@,$ac_ct_F77,;t t
22983 s,@LIBTOOL@,$LIBTOOL,;t t
22984 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
22985 s,@SLEXT@,$SLEXT,;t t
22986 s,@target@,$target,;t t
22987 s,@target_cpu@,$target_cpu,;t t
22988 s,@target_vendor@,$target_vendor,;t t
22989 s,@target_os@,$target_os,;t t
22990 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
22991 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
22992 s,@PACKAGE@,$PACKAGE,;t t
22993 s,@VERSION@,$VERSION,;t t
22994 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
22995 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
22996 s,@lame_objects@,$lame_objects,;t t
22997 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
22998 s,@USE_GZIP@,$USE_GZIP,;t t
22999 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
23000 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
23001 s,@JPEG2SWF@,$JPEG2SWF,;t t
23002 s,@PNG2SWF@,$PNG2SWF,;t t
23003 s,@LIBOBJS@,$LIBOBJS,;t t
23004 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23009 cat >>$CONFIG_STATUS <<\_ACEOF
23010 # Split the substitutions into bite-sized pieces for seds with
23011 # small command number limits, like on Digital OSF/1 and HP-UX.
23012 ac_max_sed_lines=48
23013 ac_sed_frag=1 # Number of current file.
23014 ac_beg=1 # First line for current file.
23015 ac_end=$ac_max_sed_lines # Line after last line for current file.
23018 while $ac_more_lines; do
23019 if test $ac_beg -gt 1; then
23020 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23022 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23024 if test ! -s $tmp/subs.frag; then
23025 ac_more_lines=false
23027 # The purpose of the label and of the branching condition is to
23028 # speed up the sed processing (if there are no `@' at all, there
23029 # is no need to browse any of the substitutions).
23030 # These are the two extra sed commands mentioned above.
23032 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23033 if test -z "$ac_sed_cmds"; then
23034 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23036 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23038 ac_sed_frag=`expr $ac_sed_frag + 1`
23040 ac_end=`expr $ac_end + $ac_max_sed_lines`
23043 if test -z "$ac_sed_cmds"; then
23046 fi # test -n "$CONFIG_FILES"
23049 cat >>$CONFIG_STATUS <<\_ACEOF
23050 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23051 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23053 - | *:- | *:-:* ) # input from stdin
23055 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23056 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23057 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23058 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23059 * ) ac_file_in=$ac_file.in ;;
23062 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23063 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23065 X"$ac_file" : 'X\(//\)[^/]' \| \
23066 X"$ac_file" : 'X\(//\)$' \| \
23067 X"$ac_file" : 'X\(/\)' \| \
23068 . : '\(.\)' 2>/dev/null ||
23070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23072 /^X\(\/\/\)$/{ s//\1/; q; }
23073 /^X\(\/\).*/{ s//\1/; q; }
23075 { if $as_mkdir_p; then
23080 while test ! -d "$as_dir"; do
23081 as_dirs="$as_dir $as_dirs"
23082 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23084 X"$as_dir" : 'X\(//\)[^/]' \| \
23085 X"$as_dir" : 'X\(//\)$' \| \
23086 X"$as_dir" : 'X\(/\)' \| \
23087 . : '\(.\)' 2>/dev/null ||
23089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23091 /^X\(\/\/\)$/{ s//\1/; q; }
23092 /^X\(\/\).*/{ s//\1/; q; }
23095 test ! -n "$as_dirs" || mkdir $as_dirs
23096 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23097 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23098 { (exit 1); exit 1; }; }; }
23102 if test "$ac_dir" != .; then
23103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23104 # A "../" for each directory in $ac_dir_suffix.
23105 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23107 ac_dir_suffix= ac_top_builddir=
23111 .) # No --srcdir option. We are building in place.
23113 if test -z "$ac_top_builddir"; then
23116 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23118 [\\/]* | ?:[\\/]* ) # Absolute path.
23119 ac_srcdir=$srcdir$ac_dir_suffix;
23120 ac_top_srcdir=$srcdir ;;
23121 *) # Relative path.
23122 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23123 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23126 # Do not use `cd foo && pwd` to compute absolute paths, because
23127 # the directories may not exist.
23129 .) ac_abs_builddir="$ac_dir";;
23132 .) ac_abs_builddir=`pwd`;;
23133 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23134 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23137 case $ac_abs_builddir in
23138 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23140 case ${ac_top_builddir}. in
23141 .) ac_abs_top_builddir=$ac_abs_builddir;;
23142 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23143 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23146 case $ac_abs_builddir in
23147 .) ac_abs_srcdir=$ac_srcdir;;
23150 .) ac_abs_srcdir=$ac_abs_builddir;;
23151 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23152 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23155 case $ac_abs_builddir in
23156 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23158 case $ac_top_srcdir in
23159 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23160 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23161 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23167 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23168 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23171 if test x"$ac_file" != x-; then
23172 { echo "$as_me:$LINENO: creating $ac_file" >&5
23173 echo "$as_me: creating $ac_file" >&6;}
23176 # Let's still pretend it is `configure' which instantiates (i.e., don't
23177 # use $as_me), people would be surprised to read:
23178 # /* config.h. Generated by config.status. */
23179 if test x"$ac_file" = x-; then
23182 configure_input="$ac_file. "
23184 configure_input=$configure_input"Generated from `echo $ac_file_in |
23185 sed 's,.*/,,'` by configure."
23187 # First look for the input files in the build tree, otherwise in the
23189 ac_file_inputs=`IFS=:
23190 for f in $ac_file_in; do
23192 -) echo $tmp/stdin ;;
23194 # Absolute (can't be DOS-style, as IFS=:)
23195 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23196 echo "$as_me: error: cannot find input file: $f" >&2;}
23197 { (exit 1); exit 1; }; }
23200 if test -f "$f"; then
23203 elif test -f "$srcdir/$f"; then
23208 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23209 echo "$as_me: error: cannot find input file: $f" >&2;}
23210 { (exit 1); exit 1; }; }
23213 done` || { (exit 1); exit 1; }
23215 cat >>$CONFIG_STATUS <<_ACEOF
23219 cat >>$CONFIG_STATUS <<\_ACEOF
23221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23222 s,@configure_input@,$configure_input,;t t
23223 s,@srcdir@,$ac_srcdir,;t t
23224 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23225 s,@top_srcdir@,$ac_top_srcdir,;t t
23226 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23227 s,@builddir@,$ac_builddir,;t t
23228 s,@abs_builddir@,$ac_abs_builddir,;t t
23229 s,@top_builddir@,$ac_top_builddir,;t t
23230 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23231 s,@INSTALL@,$ac_INSTALL,;t t
23232 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23234 if test x"$ac_file" != x-; then
23235 mv $tmp/out $ac_file
23243 cat >>$CONFIG_STATUS <<\_ACEOF
23246 # CONFIG_HEADER section.
23249 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23250 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23252 # ac_d sets the value in "#define NAME VALUE" lines.
23253 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23254 ac_dB='[ ].*$,\1#\2'
23257 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23258 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23259 ac_uB='$,\1#\2define\3'
23263 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23264 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23266 - | *:- | *:-:* ) # input from stdin
23268 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23269 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23270 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23271 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23272 * ) ac_file_in=$ac_file.in ;;
23275 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23276 echo "$as_me: creating $ac_file" >&6;}
23278 # First look for the input files in the build tree, otherwise in the
23280 ac_file_inputs=`IFS=:
23281 for f in $ac_file_in; do
23283 -) echo $tmp/stdin ;;
23285 # Absolute (can't be DOS-style, as IFS=:)
23286 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23287 echo "$as_me: error: cannot find input file: $f" >&2;}
23288 { (exit 1); exit 1; }; }
23289 # Do quote $f, to prevent DOS paths from being IFS'd.
23292 if test -f "$f"; then
23295 elif test -f "$srcdir/$f"; then
23300 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23301 echo "$as_me: error: cannot find input file: $f" >&2;}
23302 { (exit 1); exit 1; }; }
23305 done` || { (exit 1); exit 1; }
23306 # Remove the trailing spaces.
23307 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23311 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23312 # `conftest.undefs', that substitutes the proper values into
23313 # config.h.in to produce config.h. The first handles `#define'
23314 # templates, and the second `#undef' templates.
23315 # And first: Protect against being on the right side of a sed subst in
23316 # config.status. Protect against being in an unquoted here document
23317 # in config.status.
23318 rm -f conftest.defines conftest.undefs
23319 # Using a here document instead of a string reduces the quoting nightmare.
23320 # Putting comments in sed scripts is not portable.
23322 # `end' is used to avoid that the second main sed command (meant for
23323 # 0-ary CPP macros) applies to n-ary macro definitions.
23324 # See the Autoconf documentation for `clear'.
23325 cat >confdef2sed.sed <<\_ACEOF
23330 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23332 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23335 # If some macros were called several times there might be several times
23336 # the same #defines, which is useless. Nevertheless, we may not want to
23337 # sort them, since we want the *last* AC-DEFINE to be honored.
23338 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23339 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23340 rm -f confdef2sed.sed
23342 # This sed command replaces #undef with comments. This is necessary, for
23343 # example, in the case of _POSIX_SOURCE, which is predefined and required
23344 # on some systems where configure will not decide to define it.
23345 cat >>conftest.undefs <<\_ACEOF
23346 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23349 # Break up conftest.defines because some shells have a limit on the size
23350 # of here documents, and old seds have small limits too (100 cmds).
23351 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23352 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23353 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23354 echo ' :' >>$CONFIG_STATUS
23355 rm -f conftest.tail
23356 while grep . conftest.defines >/dev/null
23358 # Write a limited-size here document to $tmp/defines.sed.
23359 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23360 # Speed up: don't consider the non `#define' lines.
23361 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23362 # Work around the forget-to-reset-the-flag bug.
23363 echo 't clr' >>$CONFIG_STATUS
23364 echo ': clr' >>$CONFIG_STATUS
23365 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23367 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23369 mv $tmp/out $tmp/in
23371 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23372 rm -f conftest.defines
23373 mv conftest.tail conftest.defines
23375 rm -f conftest.defines
23376 echo ' fi # grep' >>$CONFIG_STATUS
23377 echo >>$CONFIG_STATUS
23379 # Break up conftest.undefs because some shells have a limit on the size
23380 # of here documents, and old seds have small limits too (100 cmds).
23381 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23382 rm -f conftest.tail
23383 while grep . conftest.undefs >/dev/null
23385 # Write a limited-size here document to $tmp/undefs.sed.
23386 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23387 # Speed up: don't consider the non `#undef'
23388 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23389 # Work around the forget-to-reset-the-flag bug.
23390 echo 't clr' >>$CONFIG_STATUS
23391 echo ': clr' >>$CONFIG_STATUS
23392 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23394 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23396 mv $tmp/out $tmp/in
23398 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23399 rm -f conftest.undefs
23400 mv conftest.tail conftest.undefs
23402 rm -f conftest.undefs
23404 cat >>$CONFIG_STATUS <<\_ACEOF
23405 # Let's still pretend it is `configure' which instantiates (i.e., don't
23406 # use $as_me), people would be surprised to read:
23407 # /* config.h. Generated by config.status. */
23408 if test x"$ac_file" = x-; then
23409 echo "/* Generated by configure. */" >$tmp/config.h
23411 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23413 cat $tmp/in >>$tmp/config.h
23415 if test x"$ac_file" != x-; then
23416 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23417 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23418 echo "$as_me: $ac_file is unchanged" >&6;}
23420 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23422 X"$ac_file" : 'X\(//\)[^/]' \| \
23423 X"$ac_file" : 'X\(//\)$' \| \
23424 X"$ac_file" : 'X\(/\)' \| \
23425 . : '\(.\)' 2>/dev/null ||
23427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23429 /^X\(\/\/\)$/{ s//\1/; q; }
23430 /^X\(\/\).*/{ s//\1/; q; }
23432 { if $as_mkdir_p; then
23437 while test ! -d "$as_dir"; do
23438 as_dirs="$as_dir $as_dirs"
23439 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23441 X"$as_dir" : 'X\(//\)[^/]' \| \
23442 X"$as_dir" : 'X\(//\)$' \| \
23443 X"$as_dir" : 'X\(/\)' \| \
23444 . : '\(.\)' 2>/dev/null ||
23446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23448 /^X\(\/\/\)$/{ s//\1/; q; }
23449 /^X\(\/\).*/{ s//\1/; q; }
23452 test ! -n "$as_dirs" || mkdir $as_dirs
23453 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23454 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23455 { (exit 1); exit 1; }; }; }
23458 mv $tmp/config.h $ac_file
23462 rm -f $tmp/config.h
23467 cat >>$CONFIG_STATUS <<\_ACEOF
23469 { (exit 0); exit 0; }
23471 chmod +x $CONFIG_STATUS
23472 ac_clean_files=$ac_clean_files_save
23475 # configure is writing to config.log, and then calls config.status.
23476 # config.status does its own redirection, appending to config.log.
23477 # Unfortunately, on DOS this fails, as config.log is still kept open
23478 # by configure, so config.status won't be able to write to it; its
23479 # output is simply discarded. So we exec the FD to /dev/null,
23480 # effectively closing config.log, so it can be properly (re)opened and
23481 # appended to by config.status. When coming back to configure, we
23482 # need to make the FD available again.
23483 if test "$no_create" != yes; then
23485 ac_config_status_args=
23486 test "$silent" = yes &&
23487 ac_config_status_args="$ac_config_status_args --quiet"
23489 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23491 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23492 # would make configure fail if this is the last instruction.
23493 $ac_cs_success || { (exit 1); exit 1; }