2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 if expr a : '\(a\)' >/dev/null 2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.file conf$$ 2>/dev/null; then
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
240 # Find the correct PATH separator. Usually this is `:', but
241 # DJGPP uses `;' like DOS.
242 if test "X${PATH_SEPARATOR+set}" != Xset; then
243 UNAME=${UNAME-`uname 2>/dev/null`}
245 *-DOS) lt_cv_sys_path_separator=';' ;;
246 *) lt_cv_sys_path_separator=':' ;;
248 PATH_SEPARATOR=$lt_cv_sys_path_separator
252 # Check that we are running under the correct shell.
253 SHELL=${CONFIG_SHELL-/bin/sh}
257 # Remove one level of quotation (which was required for Make).
258 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263 if test "X$1" = X--no-reexec; then
264 # Discard the --no-reexec flag, and continue.
266 elif test "X$1" = X--fallback-echo; then
267 # Avoid inline document here, it may be left over
269 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
270 # Yippee, $echo works!
273 # Restart under the correct shell.
274 exec $SHELL "$0" --no-reexec ${1+"$@"}
277 if test "X$1" = X--fallback-echo; then
278 # used as fallback echo
286 # The HP-UX ksh and POSIX shell print the target directory to stdout
288 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
290 if test -z "$ECHO"; then
291 if test "X${echo_test_string+set}" != Xset; then
292 # find a string as large as possible, as long as the shell can cope with it
293 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
294 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
295 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
296 echo_test_string="`eval $cmd`" &&
297 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
304 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
305 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
306 test "X$echo_testing_string" = "X$echo_test_string"; then
309 # The Solaris, AIX, and Digital Unix default echo programs unquote
310 # backslashes. This makes it impossible to quote backslashes using
311 # echo "$something" | sed 's/\\/\\\\/g'
313 # So, first we look for a working echo in the user's PATH.
315 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
316 for dir in $PATH /usr/ucb; do
317 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
318 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
319 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
320 test "X$echo_testing_string" = "X$echo_test_string"; then
327 if test "X$echo" = Xecho; then
328 # We didn't find a better echo, so look for alternatives.
329 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
330 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
331 test "X$echo_testing_string" = "X$echo_test_string"; then
332 # This shell has a builtin print -r that does the trick.
334 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
335 test "X$CONFIG_SHELL" != X/bin/ksh; then
336 # If we have ksh, try running configure again with it.
337 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
338 export ORIGINAL_CONFIG_SHELL
339 CONFIG_SHELL=/bin/ksh
341 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
346 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
350 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
351 test "X$echo_testing_string" = 'X\t' &&
352 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
353 test "X$echo_testing_string" = "X$echo_test_string"; then
354 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
356 SHELL="$CONFIG_SHELL"
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
360 test "X$echo_testing_string" = 'X\t' &&
361 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
362 test "X$echo_testing_string" = "X$echo_test_string"; then
363 echo="$CONFIG_SHELL $0 --fallback-echo"
365 # maybe with a smaller string...
368 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
369 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
376 if test "$prev" != 'sed 50q "$0"'; then
377 echo_test_string=`eval $prev`
378 export echo_test_string
379 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
381 # Oops. We lost completely, so just stick with echo.
390 # Copy echo and quote the copy suitably for passing to libtool from
391 # the Makefile, instead of quoting the original, which is used later.
393 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
394 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
429 ac_unique_file="ftconfig.in"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 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 version_info ft_version build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP XX_CFLAGS XX_ANSIFLAGS RMF RMDIR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP FTSYS_SRC LIBZ SYSTEM_ZLIB LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL LIBOBJS LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
930 # Report the --help message.
932 if test "$ac_init_help" = "long"; then
933 # Omit some internal or obsolete options to make the list less imposing.
934 # This message is too long to be a string in the A/UX 3.1 sh.
936 \`configure' configures this package to adapt to many kinds of systems.
938 Usage: $0 [OPTION]... [VAR=VALUE]...
940 To assign environment variables (e.g., CC, CFLAGS...), specify them as
941 VAR=VALUE. See below for descriptions of some of the useful variables.
943 Defaults for the options are specified in brackets.
946 -h, --help display this help and exit
947 --help=short display options specific to this package
948 --help=recursive display the short help of all the included packages
949 -V, --version display version information and exit
950 -q, --quiet, --silent do not print \`checking...' messages
951 --cache-file=FILE cache test results in FILE [disabled]
952 -C, --config-cache alias for \`--cache-file=config.cache'
953 -n, --no-create do not create output files
954 --srcdir=DIR find the sources in DIR [configure dir or \`..']
959 Installation directories:
960 --prefix=PREFIX install architecture-independent files in PREFIX
962 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
965 By default, \`make install' will install all the files in
966 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
967 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
968 for instance \`--prefix=\$HOME'.
970 For better control, use the options below.
972 Fine tuning of the installation directories:
973 --bindir=DIR user executables [EPREFIX/bin]
974 --sbindir=DIR system admin executables [EPREFIX/sbin]
975 --libexecdir=DIR program executables [EPREFIX/libexec]
976 --datadir=DIR read-only architecture-independent data [PREFIX/share]
977 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
978 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
979 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
980 --libdir=DIR object code libraries [EPREFIX/lib]
981 --includedir=DIR C header files [PREFIX/include]
982 --oldincludedir=DIR C header files for non-gcc [/usr/include]
983 --infodir=DIR info documentation [PREFIX/info]
984 --mandir=DIR man documentation [PREFIX/man]
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
996 if test -n "$ac_init_help"; then
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --enable-shared=PKGS build shared libraries default=yes
1004 --enable-static=PKGS build static libraries default=yes
1005 --enable-fast-install=PKGS optimize for fast installation default=yes
1006 --disable-libtool-lock avoid locking (might break parallel builds)
1009 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1010 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1011 --without-zlib use internal zlib instead of system-wide
1012 --with-gnu-ld assume the C compiler uses GNU ld default=no
1013 --with-pic try to use only PIC/non-PIC objects default=use both
1015 Some influential environment variables:
1016 CC C compiler command
1017 CFLAGS C compiler flags
1018 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1019 nonstandard directory <lib dir>
1020 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021 headers in a nonstandard directory <include dir>
1024 Use these variables to override the choices made by `configure' or to help
1025 it to find libraries and programs with nonstandard names/locations.
1030 if test "$ac_init_help" = "recursive"; then
1031 # If there are subdirs, report their specific --help.
1033 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1034 test -d $ac_dir || continue
1037 if test "$ac_dir" != .; then
1038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1039 # A "../" for each directory in $ac_dir_suffix.
1040 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1042 ac_dir_suffix= ac_top_builddir=
1046 .) # No --srcdir option. We are building in place.
1048 if test -z "$ac_top_builddir"; then
1051 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1053 [\\/]* | ?:[\\/]* ) # Absolute path.
1054 ac_srcdir=$srcdir$ac_dir_suffix;
1055 ac_top_srcdir=$srcdir ;;
1057 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1058 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1060 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1062 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1063 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1064 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1065 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1068 # Check for guested configure; otherwise get Cygnus style configure.
1069 if test -f $ac_srcdir/configure.gnu; then
1071 $SHELL $ac_srcdir/configure.gnu --help=recursive
1072 elif test -f $ac_srcdir/configure; then
1074 $SHELL $ac_srcdir/configure --help=recursive
1075 elif test -f $ac_srcdir/configure.ac ||
1076 test -f $ac_srcdir/configure.in; then
1078 $ac_configure --help
1080 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1086 test -n "$ac_init_help" && exit 0
1087 if $ac_init_version; then
1090 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1091 Free Software Foundation, Inc.
1092 This configure script is free software; the Free Software Foundation
1093 gives unlimited permission to copy, distribute and modify it.
1099 This file contains any messages produced by compilers while
1100 running configure, to aid debugging if configure makes a mistake.
1102 It was created by $as_me, which was
1103 generated by GNU Autoconf 2.54. Invocation command line was
1114 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1115 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1116 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1117 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1118 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1120 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1121 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1123 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1124 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1125 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1126 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1127 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1128 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1129 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1137 test -z "$as_dir" && as_dir=.
1138 echo "PATH: $as_dir"
1153 # Keep a trace of the command line.
1154 # Strip out --no-create and --no-recursion so they do not pile up.
1155 # Also quote any args containing shell meta-characters.
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162 | --no-cr | --no-c | -n ) continue ;;
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1167 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1169 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1170 # Get rid of the leading space.
1174 # When interrupted or exit'd, cleanup temporary files, and complete
1175 # config.log. We remove comments because anyway the quotes in there
1176 # would cause problems or look ugly.
1177 # WARNING: Be sure not to use single quotes in there, as some shells,
1178 # such as our DU 5.0 friend, will then `close' the trap.
1179 trap 'exit_status=$?
1180 # Save into config.log some information that might help in debugging.
1185 ## ---------------- ##
1186 ## Cache variables. ##
1187 ## ---------------- ##
1190 # The following way of writing the cache mishandles newlines in values,
1193 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1196 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1201 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1208 ## ----------------- ##
1209 ## Output variables. ##
1210 ## ----------------- ##
1213 for ac_var in $ac_subst_vars
1215 eval ac_val=$`echo $ac_var`
1216 echo "$ac_var='"'"'$ac_val'"'"'"
1220 if test -n "$ac_subst_files"; then
1227 for ac_var in $ac_subst_files
1229 eval ac_val=$`echo $ac_var`
1230 echo "$ac_var='"'"'$ac_val'"'"'"
1235 if test -s confdefs.h; then
1242 sed "/^$/d" confdefs.h | sort
1245 test "$ac_signal" != 0 &&
1246 echo "$as_me: caught signal $ac_signal"
1247 echo "$as_me: exit $exit_status"
1249 rm -f core core.* *.core &&
1250 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1253 for ac_signal in 1 2 13 15; do
1254 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1258 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1259 rm -rf conftest* confdefs.h
1260 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1263 # Predefined preprocessor variables.
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_NAME "$PACKAGE_NAME"
1270 cat >>confdefs.h <<_ACEOF
1271 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1275 cat >>confdefs.h <<_ACEOF
1276 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1280 cat >>confdefs.h <<_ACEOF
1281 #define PACKAGE_STRING "$PACKAGE_STRING"
1285 cat >>confdefs.h <<_ACEOF
1286 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1290 # Let the site file select an alternate cache file if it wants to.
1291 # Prefer explicitly selected file to automatically selected ones.
1292 if test -z "$CONFIG_SITE"; then
1293 if test "x$prefix" != xNONE; then
1294 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1296 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1299 for ac_site_file in $CONFIG_SITE; do
1300 if test -r "$ac_site_file"; then
1301 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1302 echo "$as_me: loading site script $ac_site_file" >&6;}
1303 sed 's/^/| /' "$ac_site_file" >&5
1308 if test -r "$cache_file"; then
1309 # Some versions of bash will fail to source /dev/null (special
1310 # files actually), so we avoid doing that.
1311 if test -f "$cache_file"; then
1312 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1313 echo "$as_me: loading cache $cache_file" >&6;}
1315 [\\/]* | ?:[\\/]* ) . $cache_file;;
1316 *) . ./$cache_file;;
1320 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1321 echo "$as_me: creating cache $cache_file" >&6;}
1325 # Check that the precious variables saved in the cache have kept the same
1327 ac_cache_corrupted=false
1328 for ac_var in `(set) 2>&1 |
1329 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1330 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1331 eval ac_new_set=\$ac_env_${ac_var}_set
1332 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1333 eval ac_new_val="\$ac_env_${ac_var}_value"
1334 case $ac_old_set,$ac_new_set in
1336 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1338 ac_cache_corrupted=: ;;
1340 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1341 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1342 ac_cache_corrupted=: ;;
1345 if test "x$ac_old_val" != "x$ac_new_val"; then
1346 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1347 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1348 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1349 echo "$as_me: former value: $ac_old_val" >&2;}
1350 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1351 echo "$as_me: current value: $ac_new_val" >&2;}
1352 ac_cache_corrupted=:
1355 # Pass precious variables to config.status.
1356 if test "$ac_new_set" = set; then
1358 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1359 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1360 *) ac_arg=$ac_var=$ac_new_val ;;
1362 case " $ac_configure_args " in
1363 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1364 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1368 if $ac_cache_corrupted; then
1369 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1370 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1371 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1372 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1373 { (exit 1); exit 1; }; }
1377 ac_cpp='$CPP $CPPFLAGS'
1378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402 ac_config_headers="$ac_config_headers ftconfig.h:ftconfig.in"
1405 version_info='9:3:3'
1407 ft_version=`echo $version_info | tr : .`
1411 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1412 if test -f $ac_dir/install-sh; then
1414 ac_install_sh="$ac_aux_dir/install-sh -c"
1416 elif test -f $ac_dir/install.sh; then
1418 ac_install_sh="$ac_aux_dir/install.sh -c"
1420 elif test -f $ac_dir/shtool; then
1422 ac_install_sh="$ac_aux_dir/shtool install -c"
1426 if test -z "$ac_aux_dir"; then
1427 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1428 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1429 { (exit 1); exit 1; }; }
1431 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1432 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1433 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1435 # Make sure we can run config.sub.
1436 $ac_config_sub sun4 >/dev/null 2>&1 ||
1437 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1438 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1439 { (exit 1); exit 1; }; }
1441 echo "$as_me:$LINENO: checking build system type" >&5
1442 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1443 if test "${ac_cv_build+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 ac_cv_build_alias=$build_alias
1447 test -z "$ac_cv_build_alias" &&
1448 ac_cv_build_alias=`$ac_config_guess`
1449 test -z "$ac_cv_build_alias" &&
1450 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1451 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1452 { (exit 1); exit 1; }; }
1453 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1454 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1455 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1456 { (exit 1); exit 1; }; }
1459 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1460 echo "${ECHO_T}$ac_cv_build" >&6
1462 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1463 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1464 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1467 echo "$as_me:$LINENO: checking host system type" >&5
1468 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1469 if test "${ac_cv_host+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 ac_cv_host_alias=$host_alias
1473 test -z "$ac_cv_host_alias" &&
1474 ac_cv_host_alias=$ac_cv_build_alias
1475 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1476 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1478 { (exit 1); exit 1; }; }
1481 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1482 echo "${ECHO_T}$ac_cv_host" >&6
1484 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1485 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1486 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1489 echo "$as_me:$LINENO: checking target system type" >&5
1490 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1491 if test "${ac_cv_target+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 ac_cv_target_alias=$target_alias
1495 test "x$ac_cv_target_alias" = "x" &&
1496 ac_cv_target_alias=$ac_cv_host_alias
1497 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1498 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1499 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1500 { (exit 1); exit 1; }; }
1503 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1504 echo "${ECHO_T}$ac_cv_target" >&6
1505 target=$ac_cv_target
1506 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1507 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1508 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1511 # The aliases save the names the user supplied, while $host etc.
1512 # will get canonicalized.
1513 test -n "$target_alias" &&
1514 test "$program_prefix$program_suffix$program_transform_name" = \
1516 program_prefix=${target_alias}-
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 if test -n "$CC"; then
1532 ac_cv_prog_CC="$CC" # Let the user override the test.
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 test -z "$as_dir" && as_dir=.
1539 for ac_exec_ext in '' $ac_executable_extensions; do
1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551 if test -n "$CC"; then
1552 echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1555 echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1560 if test -z "$ac_cv_prog_CC"; then
1562 # Extract the first word of "gcc", so it can be a program name with args.
1563 set dummy gcc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 if test -n "$ac_ct_CC"; then
1570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 ac_cv_prog_ac_ct_CC="gcc"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1602 if test -z "$CC"; then
1603 if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}cc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_CC="${ac_tool_prefix}cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 if test -n "$CC"; then
1632 echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1640 if test -z "$ac_cv_prog_CC"; then
1642 # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_ac_ct_CC="cc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1683 if test -z "$CC"; then
1684 # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1703 ac_prog_rejected=yes
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 if test $ac_prog_rejected = yes; then
1714 # We found a bogon in the path, so make sure we never use it.
1715 set dummy $ac_cv_prog_CC
1717 if test $# != 0; then
1718 # We chose a different compiler from the bogus one.
1719 # However, it has the same basename, so the bogon will be chosen
1720 # first if we set CC to just the basename; use the full file name.
1722 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1728 if test -n "$CC"; then
1729 echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1737 if test -z "$CC"; then
1738 if test -n "$ac_tool_prefix"; then
1741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1742 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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
1776 test -n "$CC" && break
1779 if test -z "$CC"; then
1783 # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 if test -n "$ac_ct_CC"; then
1791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 ac_cv_prog_ac_ct_CC="$ac_prog"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1818 test -n "$ac_ct_CC" && break
1827 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1828 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1829 { (exit 1); exit 1; }; }
1831 # Provide some information about the compiler.
1832 echo "$as_me:$LINENO:" \
1833 "checking for C compiler version" >&5
1834 ac_compiler=`set X $ac_compile; echo $2`
1835 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1836 (eval $ac_compiler --version </dev/null >&5) 2>&5
1838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839 (exit $ac_status); }
1840 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1841 (eval $ac_compiler -v </dev/null >&5) 2>&5
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); }
1845 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1846 (eval $ac_compiler -V </dev/null >&5) 2>&5
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }
1851 cat >conftest.$ac_ext <<_ACEOF
1852 #line $LINENO "configure"
1853 #include "confdefs.h"
1863 ac_clean_files_save=$ac_clean_files
1864 ac_clean_files="$ac_clean_files a.out a.exe"
1865 # Try to create an executable without -o first, disregard a.out.
1866 # It will help us diagnose broken compilers, and finding out an intuition
1868 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1869 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1870 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1872 (eval $ac_link_default) 2>&5
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; then
1876 # Find the output, starting from the most likely. This scheme is
1877 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1880 # Be careful to initialize this variable, since it used to be cached.
1881 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1883 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1884 test -f "$ac_file" || continue
1886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1887 a.out ) # We found the default executable, but exeext='' is most
1890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1891 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1898 echo "$as_me: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1900 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1901 check \`config.log' for details." >&5
1902 echo "$as_me: error: C compiler cannot create executables
1903 check \`config.log' for details." >&2;}
1904 { (exit 77); exit 77; }; }
1907 ac_exeext=$ac_cv_exeext
1908 echo "$as_me:$LINENO: result: $ac_file" >&5
1909 echo "${ECHO_T}$ac_file" >&6
1911 # Check the compiler produces executables we can run. If not, either
1912 # the compiler is broken, or we cross compile.
1913 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1914 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1915 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1916 # If not cross compiling, check that we can run a simple program.
1917 if test "$cross_compiling" != yes; then
1918 if { ac_try='./$ac_file'
1919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }; }; then
1926 if test "$cross_compiling" = maybe; then
1929 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1930 If you meant to cross compile, use \`--host'." >&5
1931 echo "$as_me: error: cannot run C compiled programs.
1932 If you meant to cross compile, use \`--host'." >&2;}
1933 { (exit 1); exit 1; }; }
1937 echo "$as_me:$LINENO: result: yes" >&5
1938 echo "${ECHO_T}yes" >&6
1940 rm -f a.out a.exe conftest$ac_cv_exeext
1941 ac_clean_files=$ac_clean_files_save
1942 # Check the compiler produces executables we can run. If not, either
1943 # the compiler is broken, or we cross compile.
1944 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1945 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1946 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1947 echo "${ECHO_T}$cross_compiling" >&6
1949 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1950 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1952 (eval $ac_link) 2>&5
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }; then
1956 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1957 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1958 # work properly (i.e., refer to `conftest.exe'), while it won't with
1960 for ac_file in conftest.exe conftest conftest.*; do
1961 test -f "$ac_file" || continue
1963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1964 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1971 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1972 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1973 { (exit 1); exit 1; }; }
1976 rm -f conftest$ac_cv_exeext
1977 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1978 echo "${ECHO_T}$ac_cv_exeext" >&6
1980 rm -f conftest.$ac_ext
1981 EXEEXT=$ac_cv_exeext
1983 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1984 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1985 if test "${ac_cv_objext+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 cat >conftest.$ac_ext <<_ACEOF
1989 #line $LINENO "configure"
1990 #include "confdefs.h"
2000 rm -f conftest.o conftest.obj
2001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2002 (eval $ac_compile) 2>&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; then
2006 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2009 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2014 echo "$as_me: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2016 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2017 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2018 { (exit 1); exit 1; }; }
2021 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2023 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2024 echo "${ECHO_T}$ac_cv_objext" >&6
2025 OBJEXT=$ac_cv_objext
2027 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2028 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2029 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 cat >conftest.$ac_ext <<_ACEOF
2033 #line $LINENO "configure"
2034 #include "confdefs.h"
2047 rm -f conftest.$ac_objext
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); } &&
2053 { ac_try='test -s conftest.$ac_objext'
2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; }; then
2061 echo "$as_me: failed program was:" >&5
2062 cat conftest.$ac_ext >&5
2065 rm -f conftest.$ac_objext conftest.$ac_ext
2066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2069 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2070 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2071 GCC=`test $ac_compiler_gnu = yes && echo yes`
2072 ac_test_CFLAGS=${CFLAGS+set}
2073 ac_save_CFLAGS=$CFLAGS
2075 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2077 if test "${ac_cv_prog_cc_g+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 cat >conftest.$ac_ext <<_ACEOF
2081 #line $LINENO "configure"
2082 #include "confdefs.h"
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094 (eval $ac_compile) 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try='test -s conftest.$ac_objext'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2106 echo "$as_me: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2110 rm -f conftest.$ac_objext conftest.$ac_ext
2112 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2113 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2114 if test "$ac_test_CFLAGS" = set; then
2115 CFLAGS=$ac_save_CFLAGS
2116 elif test $ac_cv_prog_cc_g = yes; then
2117 if test "$GCC" = yes; then
2123 if test "$GCC" = yes; then
2129 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2130 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2131 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 ac_cv_prog_cc_stdc=no
2136 cat >conftest.$ac_ext <<_ACEOF
2137 #line $LINENO "configure"
2138 #include "confdefs.h"
2141 #include <sys/types.h>
2142 #include <sys/stat.h>
2143 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2144 struct buf { int x; };
2145 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2146 static char *e (p, i)
2152 static char *f (char * (*g) (char **, int), char **p, ...)
2157 s = g (p, va_arg (v,int));
2161 int test (int i, double x);
2162 struct s1 {int (*f) (int a);};
2163 struct s2 {int (*f) (double a);};
2164 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2170 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2175 # Don't try gcc -ansi; that turns off useful extensions and
2176 # breaks some systems' header files.
2177 # AIX -qlanglvl=ansi
2178 # Ultrix and OSF/1 -std1
2179 # HP-UX 10.20 and later -Ae
2180 # HP-UX older versions -Aa -D_HPUX_SOURCE
2181 # SVR4 -Xc -D__EXTENSIONS__
2182 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2184 CC="$ac_save_CC $ac_arg"
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
2191 { ac_try='test -s conftest.$ac_objext'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; }; then
2197 ac_cv_prog_cc_stdc=$ac_arg
2200 echo "$as_me: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2203 rm -f conftest.$ac_objext
2205 rm -f conftest.$ac_ext conftest.$ac_objext
2210 case "x$ac_cv_prog_cc_stdc" in
2212 echo "$as_me:$LINENO: result: none needed" >&5
2213 echo "${ECHO_T}none needed" >&6 ;;
2215 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2216 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2217 CC="$CC $ac_cv_prog_cc_stdc" ;;
2220 # Some people use a C++ compiler to compile C. Since we use `exit',
2221 # in C++ we need to declare it. In case someone uses the same compiler
2222 # for both compiling C and C++ we need to have the C++ compiler decide
2223 # the declaration of exit, since it's the most demanding environment.
2224 cat >conftest.$ac_ext <<_ACEOF
2229 rm -f conftest.$ac_objext
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 for ac_declaration in \
2243 '#include <stdlib.h>' \
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2250 cat >conftest.$ac_ext <<_ACEOF
2251 #line $LINENO "configure"
2252 #include "confdefs.h"
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2277 echo "$as_me: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2281 rm -f conftest.$ac_objext conftest.$ac_ext
2282 cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2284 #include "confdefs.h"
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -s conftest.$ac_objext'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2308 echo "$as_me: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2311 rm -f conftest.$ac_objext conftest.$ac_ext
2314 if test -n "$ac_declaration"; then
2315 echo '#ifdef __cplusplus' >>confdefs.h
2316 echo $ac_declaration >>confdefs.h
2317 echo '#endif' >>confdefs.h
2321 echo "$as_me: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 rm -f conftest.$ac_objext conftest.$ac_ext
2326 ac_cpp='$CPP $CPPFLAGS'
2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2337 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2338 # On Suns, sometimes $CPP names a directory.
2339 if test -n "$CPP" && test -d "$CPP"; then
2342 if test -z "$CPP"; then
2343 if test "${ac_cv_prog_CPP+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 # Double quotes because CPP needs to be expanded
2347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2350 for ac_c_preproc_warn_flag in '' yes
2352 # Use a header file that comes with gcc, so configuring glibc
2353 # with a fresh cross-compiler works.
2354 # On the NeXT, cc -E runs the code through the compiler's parser,
2355 # not just through cpp. "Syntax error" is here to catch this case.
2356 cat >conftest.$ac_ext <<_ACEOF
2357 #line $LINENO "configure"
2358 #include "confdefs.h"
2362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2365 grep -v '^ *+' conftest.er1 >conftest.err
2367 cat conftest.err >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); } >/dev/null; then
2370 if test -s conftest.err; then
2371 ac_cpp_err=$ac_c_preproc_warn_flag
2378 if test -z "$ac_cpp_err"; then
2381 echo "$as_me: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2383 # Broken: fails on valid input.
2386 rm -f conftest.err conftest.$ac_ext
2388 # OK, works on sane cases. Now check whether non-existent headers
2389 # can be detected and how.
2390 cat >conftest.$ac_ext <<_ACEOF
2391 #line $LINENO "configure"
2392 #include "confdefs.h"
2393 #include <ac_nonexistent.h>
2395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2398 grep -v '^ *+' conftest.er1 >conftest.err
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } >/dev/null; then
2403 if test -s conftest.err; then
2404 ac_cpp_err=$ac_c_preproc_warn_flag
2411 if test -z "$ac_cpp_err"; then
2412 # Broken: success on invalid input.
2415 echo "$as_me: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2417 # Passes both tests.
2421 rm -f conftest.err conftest.$ac_ext
2424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2425 rm -f conftest.err conftest.$ac_ext
2426 if $ac_preproc_ok; then
2438 echo "$as_me:$LINENO: result: $CPP" >&5
2439 echo "${ECHO_T}$CPP" >&6
2441 for ac_c_preproc_warn_flag in '' yes
2443 # Use a header file that comes with gcc, so configuring glibc
2444 # with a fresh cross-compiler works.
2445 # On the NeXT, cc -E runs the code through the compiler's parser,
2446 # not just through cpp. "Syntax error" is here to catch this case.
2447 cat >conftest.$ac_ext <<_ACEOF
2448 #line $LINENO "configure"
2449 #include "confdefs.h"
2453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2456 grep -v '^ *+' conftest.er1 >conftest.err
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } >/dev/null; then
2461 if test -s conftest.err; then
2462 ac_cpp_err=$ac_c_preproc_warn_flag
2469 if test -z "$ac_cpp_err"; then
2472 echo "$as_me: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2474 # Broken: fails on valid input.
2477 rm -f conftest.err conftest.$ac_ext
2479 # OK, works on sane cases. Now check whether non-existent headers
2480 # can be detected and how.
2481 cat >conftest.$ac_ext <<_ACEOF
2482 #line $LINENO "configure"
2483 #include "confdefs.h"
2484 #include <ac_nonexistent.h>
2486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2489 grep -v '^ *+' conftest.er1 >conftest.err
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } >/dev/null; then
2494 if test -s conftest.err; then
2495 ac_cpp_err=$ac_c_preproc_warn_flag
2502 if test -z "$ac_cpp_err"; then
2503 # Broken: success on invalid input.
2506 echo "$as_me: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2508 # Passes both tests.
2512 rm -f conftest.err conftest.$ac_ext
2515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2516 rm -f conftest.err conftest.$ac_ext
2517 if $ac_preproc_ok; then
2520 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2521 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2522 { (exit 1); exit 1; }; }
2526 ac_cpp='$CPP $CPPFLAGS'
2527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532 if test "x$CC" = xgcc; then
2534 XX_ANSIFLAGS="-pedantic -ansi"
2539 XX_CFLAGS="-std1 -g3"
2551 # Extract the first word of "rm", so it can be a program name with args.
2552 set dummy rm; ac_word=$2
2553 echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2555 if test "${ac_cv_prog_RMF+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 if test -n "$RMF"; then
2559 ac_cv_prog_RMF="$RMF" # Let the user override the test.
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568 ac_cv_prog_RMF="rm -f"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 if test -n "$RMF"; then
2579 echo "$as_me:$LINENO: result: $RMF" >&5
2580 echo "${ECHO_T}$RMF" >&6
2582 echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6
2586 # Extract the first word of "rmdir", so it can be a program name with args.
2587 set dummy rmdir; ac_word=$2
2588 echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2590 if test "${ac_cv_prog_RMDIR+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 if test -n "$RMDIR"; then
2594 ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test.
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2603 ac_cv_prog_RMDIR="rmdir"
2604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 RMDIR=$ac_cv_prog_RMDIR
2613 if test -n "$RMDIR"; then
2614 echo "$as_me:$LINENO: result: $RMDIR" >&5
2615 echo "${ECHO_T}$RMDIR" >&6
2617 echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2622 # Find a good install program. We prefer a C program (faster),
2623 # so one script is as good as another. But avoid the broken or
2624 # incompatible versions:
2625 # SysV /etc/install, /usr/sbin/install
2626 # SunOS /usr/etc/install
2627 # IRIX /sbin/install
2629 # AmigaOS /C/install, which installs bootblocks on floppy discs
2630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2633 # ./install, which can be erroneously created by make from ./install.sh.
2634 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2635 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2636 if test -z "$INSTALL"; then
2637 if test "${ac_cv_path_install+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 test -z "$as_dir" && as_dir=.
2645 # Account for people who put trailing slashes in PATH elements.
2647 ./ | .// | /cC/* | \
2648 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2651 # OSF1 and SCO ODT 3.0 have their own names for install.
2652 # Don't use installbsd from OSF since it installs stuff as root
2654 for ac_prog in ginstall scoinst install; do
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2657 if test $ac_prog = install &&
2658 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2659 # AIX install. It has an incompatible calling convention.
2661 elif test $ac_prog = install &&
2662 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2663 # program-specific install script used by HP pwplus--don't use.
2666 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2678 if test "${ac_cv_path_install+set}" = set; then
2679 INSTALL=$ac_cv_path_install
2681 # As a last resort, use the slow shell script. We don't cache a
2682 # path for INSTALL within a source directory, because that will
2683 # break other packages using the cache if that directory is
2684 # removed, or if the path is relative.
2685 INSTALL=$ac_install_sh
2688 echo "$as_me:$LINENO: result: $INSTALL" >&5
2689 echo "${ECHO_T}$INSTALL" >&6
2691 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2692 # It thinks the first close brace ends the variable substitution.
2693 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2695 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2697 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2703 INSTALL="`pwd`/$INSTALL" ;;
2708 echo "$as_me:$LINENO: checking for egrep" >&5
2709 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2710 if test "${ac_cv_prog_egrep+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2714 then ac_cv_prog_egrep='grep -E'
2715 else ac_cv_prog_egrep='egrep'
2718 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2719 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2720 EGREP=$ac_cv_prog_egrep
2723 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2724 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2725 if test "${ac_cv_header_stdc+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 cat >conftest.$ac_ext <<_ACEOF
2729 #line $LINENO "configure"
2730 #include "confdefs.h"
2737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2740 grep -v '^ *+' conftest.er1 >conftest.err
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } >/dev/null; then
2745 if test -s conftest.err; then
2746 ac_cpp_err=$ac_c_preproc_warn_flag
2753 if test -z "$ac_cpp_err"; then
2754 ac_cv_header_stdc=yes
2756 echo "$as_me: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2758 ac_cv_header_stdc=no
2760 rm -f conftest.err conftest.$ac_ext
2762 if test $ac_cv_header_stdc = yes; then
2763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2764 cat >conftest.$ac_ext <<_ACEOF
2765 #line $LINENO "configure"
2766 #include "confdefs.h"
2770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2771 $EGREP "memchr" >/dev/null 2>&1; then
2774 ac_cv_header_stdc=no
2780 if test $ac_cv_header_stdc = yes; then
2781 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #line $LINENO "configure"
2784 #include "confdefs.h"
2788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2789 $EGREP "free" >/dev/null 2>&1; then
2792 ac_cv_header_stdc=no
2798 if test $ac_cv_header_stdc = yes; then
2799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2800 if test "$cross_compiling" = yes; then
2803 cat >conftest.$ac_ext <<_ACEOF
2804 #line $LINENO "configure"
2805 #include "confdefs.h"
2807 #if ((' ' & 0x0FF) == 0x020)
2808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2811 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2812 || ('j' <= (c) && (c) <= 'r') \
2813 || ('s' <= (c) && (c) <= 'z'))
2814 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2817 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2822 for (i = 0; i < 256; i++)
2823 if (XOR (islower (i), ISLOWER (i))
2824 || toupper (i) != TOUPPER (i))
2829 rm -f conftest$ac_exeext
2830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2831 (eval $ac_link) 2>&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2842 echo "$as_me: program exited with status $ac_status" >&5
2843 echo "$as_me: failed program was:" >&5
2844 cat conftest.$ac_ext >&5
2846 ac_cv_header_stdc=no
2848 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2852 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2853 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2854 if test $ac_cv_header_stdc = yes; then
2856 cat >>confdefs.h <<\_ACEOF
2857 #define STDC_HEADERS 1
2862 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2872 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2873 inttypes.h stdint.h unistd.h
2875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2876 echo "$as_me:$LINENO: checking for $ac_header" >&5
2877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2883 #include "confdefs.h"
2884 $ac_includes_default
2886 #include <$ac_header>
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 eval "$as_ac_Header=yes"
2902 echo "$as_me: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2904 eval "$as_ac_Header=no"
2906 rm -f conftest.$ac_objext conftest.$ac_ext
2908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2911 cat >>confdefs.h <<_ACEOF
2912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2922 for ac_header in fcntl.h unistd.h
2924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2926 echo "$as_me:$LINENO: checking for $ac_header" >&5
2927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2934 # Is the header compilable?
2935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2937 cat >conftest.$ac_ext <<_ACEOF
2938 #line $LINENO "configure"
2939 #include "confdefs.h"
2940 $ac_includes_default
2941 #include <$ac_header>
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945 (eval $ac_compile) 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2955 ac_header_compiler=yes
2957 echo "$as_me: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2959 ac_header_compiler=no
2961 rm -f conftest.$ac_objext conftest.$ac_ext
2962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2963 echo "${ECHO_T}$ac_header_compiler" >&6
2965 # Is the header present?
2966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2968 cat >conftest.$ac_ext <<_ACEOF
2969 #line $LINENO "configure"
2970 #include "confdefs.h"
2971 #include <$ac_header>
2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976 grep -v '^ *+' conftest.er1 >conftest.err
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } >/dev/null; then
2981 if test -s conftest.err; then
2982 ac_cpp_err=$ac_c_preproc_warn_flag
2989 if test -z "$ac_cpp_err"; then
2990 ac_header_preproc=yes
2992 echo "$as_me: failed program was:" >&5
2993 cat conftest.$ac_ext >&5
2994 ac_header_preproc=no
2996 rm -f conftest.err conftest.$ac_ext
2997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2998 echo "${ECHO_T}$ac_header_preproc" >&6
3000 # So? What about this header?
3001 case $ac_header_compiler:$ac_header_preproc in
3003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3015 echo "$as_me:$LINENO: checking for $ac_header" >&5
3016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 eval "$as_ac_Header=$ac_header_preproc"
3022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3027 cat >>confdefs.h <<_ACEOF
3028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3036 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3037 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3038 if test "${ac_cv_c_const+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 cat >conftest.$ac_ext <<_ACEOF
3042 #line $LINENO "configure"
3043 #include "confdefs.h"
3048 /* FIXME: Include the comments suggested by Paul. */
3050 /* Ultrix mips cc rejects this. */
3051 typedef int charset[2];
3053 /* SunOS 4.1.1 cc rejects this. */
3054 char const *const *ccp;
3056 /* NEC SVR4.0.2 mips cc rejects this. */
3057 struct point {int x, y;};
3058 static struct point const zero = {0,0};
3059 /* AIX XL C 1.02.0.0 rejects this.
3060 It does not let you subtract one const X* pointer from another in
3061 an arm of an if-expression whose if-part is not a constant
3063 const char *g = "string";
3064 ccp = &g + (g ? g-g : 0);
3065 /* HPUX 7.0 cc rejects these. */
3068 ccp = (char const *const *) p;
3069 { /* SCO 3.2v4 cc rejects this. */
3071 char const *s = 0 ? (char *) 0 : (char const *) 0;
3075 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3077 const int *foo = &x[0];
3080 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3081 typedef const int *iptr;
3085 { /* AIX XL C 1.02.0.0 rejects this saying
3086 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3087 struct s { int j; const int *ap[3]; };
3088 struct s *b; b->j = 5;
3090 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3113 echo "$as_me: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3117 rm -f conftest.$ac_objext conftest.$ac_ext
3119 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3120 echo "${ECHO_T}$ac_cv_c_const" >&6
3121 if test $ac_cv_c_const = no; then
3123 cat >>confdefs.h <<\_ACEOF
3129 echo "$as_me:$LINENO: checking for int" >&5
3130 echo $ECHO_N "checking for int... $ECHO_C" >&6
3131 if test "${ac_cv_type_int+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 cat >conftest.$ac_ext <<_ACEOF
3135 #line $LINENO "configure"
3136 #include "confdefs.h"
3137 $ac_includes_default
3149 rm -f conftest.$ac_objext
3150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3151 (eval $ac_compile) 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3163 echo "$as_me: failed program was:" >&5
3164 cat conftest.$ac_ext >&5
3167 rm -f conftest.$ac_objext conftest.$ac_ext
3169 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3170 echo "${ECHO_T}$ac_cv_type_int" >&6
3172 echo "$as_me:$LINENO: checking size of int" >&5
3173 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3174 if test "${ac_cv_sizeof_int+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 if test "$ac_cv_type_int" = yes; then
3178 # The cast to unsigned long works around a bug in the HP C Compiler
3179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3181 # This bug is HP SR number 8606223364.
3182 if test "$cross_compiling" = yes; then
3183 # Depending upon the size, compute the lo and hi bounds.
3184 cat >conftest.$ac_ext <<_ACEOF
3185 #line $LINENO "configure"
3186 #include "confdefs.h"
3187 $ac_includes_default
3191 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3212 cat >conftest.$ac_ext <<_ACEOF
3213 #line $LINENO "configure"
3214 #include "confdefs.h"
3215 $ac_includes_default
3219 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3226 rm -f conftest.$ac_objext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228 (eval $ac_compile) 2>&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } &&
3232 { ac_try='test -s conftest.$ac_objext'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; }; then
3238 ac_hi=$ac_mid; break
3240 echo "$as_me: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 ac_lo=`expr $ac_mid + 1`
3243 if test $ac_lo -le $ac_mid; then
3247 ac_mid=`expr 2 '*' $ac_mid + 1`
3249 rm -f conftest.$ac_objext conftest.$ac_ext
3252 echo "$as_me: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3254 cat >conftest.$ac_ext <<_ACEOF
3255 #line $LINENO "configure"
3256 #include "confdefs.h"
3257 $ac_includes_default
3261 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3268 rm -f conftest.$ac_objext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270 (eval $ac_compile) 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3282 cat >conftest.$ac_ext <<_ACEOF
3283 #line $LINENO "configure"
3284 #include "confdefs.h"
3285 $ac_includes_default
3289 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3296 rm -f conftest.$ac_objext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3298 (eval $ac_compile) 2>&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } &&
3302 { ac_try='test -s conftest.$ac_objext'
3303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; }; then
3308 ac_lo=$ac_mid; break
3310 echo "$as_me: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3312 ac_hi=`expr '(' $ac_mid ')' - 1`
3313 if test $ac_mid -le $ac_hi; then
3317 ac_mid=`expr 2 '*' $ac_mid`
3319 rm -f conftest.$ac_objext conftest.$ac_ext
3322 echo "$as_me: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3326 rm -f conftest.$ac_objext conftest.$ac_ext
3328 rm -f conftest.$ac_objext conftest.$ac_ext
3329 # Binary search between lo and hi bounds.
3330 while test "x$ac_lo" != "x$ac_hi"; do
3331 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3332 cat >conftest.$ac_ext <<_ACEOF
3333 #line $LINENO "configure"
3334 #include "confdefs.h"
3335 $ac_includes_default
3339 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348 (eval $ac_compile) 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3360 echo "$as_me: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3362 ac_lo=`expr '(' $ac_mid ')' + 1`
3364 rm -f conftest.$ac_objext conftest.$ac_ext
3367 ?*) ac_cv_sizeof_int=$ac_lo;;
3368 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
3369 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
3370 { (exit 1); exit 1; }; } ;;
3373 if test "$cross_compiling" = yes; then
3374 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
3375 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3376 { (exit 1); exit 1; }; }
3378 cat >conftest.$ac_ext <<_ACEOF
3379 #line $LINENO "configure"
3380 #include "confdefs.h"
3381 $ac_includes_default
3382 long longval () { return (long) (sizeof (int)); }
3383 unsigned long ulongval () { return (long) (sizeof (int)); }
3390 FILE *f = fopen ("conftest.val", "w");
3393 if (((long) (sizeof (int))) < 0)
3395 long i = longval ();
3396 if (i != ((long) (sizeof (int))))
3398 fprintf (f, "%ld\n", i);
3402 unsigned long i = ulongval ();
3403 if (i != ((long) (sizeof (int))))
3405 fprintf (f, "%lu\n", i);
3407 exit (ferror (f) || fclose (f) != 0);
3413 rm -f conftest$ac_exeext
3414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3415 (eval $ac_link) 2>&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); }; }; then
3424 ac_cv_sizeof_int=`cat conftest.val`
3426 echo "$as_me: program exited with status $ac_status" >&5
3427 echo "$as_me: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3430 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
3431 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
3432 { (exit 1); exit 1; }; }
3434 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3442 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3443 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3444 cat >>confdefs.h <<_ACEOF
3445 #define SIZEOF_INT $ac_cv_sizeof_int
3449 echo "$as_me:$LINENO: checking for long" >&5
3450 echo $ECHO_N "checking for long... $ECHO_C" >&6
3451 if test "${ac_cv_type_long+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 cat >conftest.$ac_ext <<_ACEOF
3455 #line $LINENO "configure"
3456 #include "confdefs.h"
3457 $ac_includes_default
3469 rm -f conftest.$ac_objext
3470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3471 (eval $ac_compile) 2>&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
3475 { ac_try='test -s conftest.$ac_objext'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3483 echo "$as_me: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3487 rm -f conftest.$ac_objext conftest.$ac_ext
3489 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
3490 echo "${ECHO_T}$ac_cv_type_long" >&6
3492 echo "$as_me:$LINENO: checking size of long" >&5
3493 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3494 if test "${ac_cv_sizeof_long+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 if test "$ac_cv_type_long" = yes; then
3498 # The cast to unsigned long works around a bug in the HP C Compiler
3499 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3500 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3501 # This bug is HP SR number 8606223364.
3502 if test "$cross_compiling" = yes; then
3503 # Depending upon the size, compute the lo and hi bounds.
3504 cat >conftest.$ac_ext <<_ACEOF
3505 #line $LINENO "configure"
3506 #include "confdefs.h"
3507 $ac_includes_default
3511 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
3518 rm -f conftest.$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3532 cat >conftest.$ac_ext <<_ACEOF
3533 #line $LINENO "configure"
3534 #include "confdefs.h"
3535 $ac_includes_default
3539 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3546 rm -f conftest.$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } &&
3552 { ac_try='test -s conftest.$ac_objext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3558 ac_hi=$ac_mid; break
3560 echo "$as_me: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3562 ac_lo=`expr $ac_mid + 1`
3563 if test $ac_lo -le $ac_mid; then
3567 ac_mid=`expr 2 '*' $ac_mid + 1`
3569 rm -f conftest.$ac_objext conftest.$ac_ext
3572 echo "$as_me: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3574 cat >conftest.$ac_ext <<_ACEOF
3575 #line $LINENO "configure"
3576 #include "confdefs.h"
3577 $ac_includes_default
3581 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
3588 rm -f conftest.$ac_objext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590 (eval $ac_compile) 2>&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } &&
3594 { ac_try='test -s conftest.$ac_objext'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; }; then
3602 cat >conftest.$ac_ext <<_ACEOF
3603 #line $LINENO "configure"
3604 #include "confdefs.h"
3605 $ac_includes_default
3609 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618 (eval $ac_compile) 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -s conftest.$ac_objext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_lo=$ac_mid; break
3630 echo "$as_me: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3632 ac_hi=`expr '(' $ac_mid ')' - 1`
3633 if test $ac_mid -le $ac_hi; then
3637 ac_mid=`expr 2 '*' $ac_mid`
3639 rm -f conftest.$ac_objext conftest.$ac_ext
3642 echo "$as_me: failed program was:" >&5
3643 cat conftest.$ac_ext >&5
3646 rm -f conftest.$ac_objext conftest.$ac_ext
3648 rm -f conftest.$ac_objext conftest.$ac_ext
3649 # Binary search between lo and hi bounds.
3650 while test "x$ac_lo" != "x$ac_hi"; do
3651 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3652 cat >conftest.$ac_ext <<_ACEOF
3653 #line $LINENO "configure"
3654 #include "confdefs.h"
3655 $ac_includes_default
3659 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } &&
3672 { ac_try='test -s conftest.$ac_objext'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3680 echo "$as_me: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3682 ac_lo=`expr '(' $ac_mid ')' + 1`
3684 rm -f conftest.$ac_objext conftest.$ac_ext
3687 ?*) ac_cv_sizeof_long=$ac_lo;;
3688 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
3689 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
3690 { (exit 1); exit 1; }; } ;;
3693 if test "$cross_compiling" = yes; then
3694 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
3695 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3696 { (exit 1); exit 1; }; }
3698 cat >conftest.$ac_ext <<_ACEOF
3699 #line $LINENO "configure"
3700 #include "confdefs.h"
3701 $ac_includes_default
3702 long longval () { return (long) (sizeof (long)); }
3703 unsigned long ulongval () { return (long) (sizeof (long)); }
3710 FILE *f = fopen ("conftest.val", "w");
3713 if (((long) (sizeof (long))) < 0)
3715 long i = longval ();
3716 if (i != ((long) (sizeof (long))))
3718 fprintf (f, "%ld\n", i);
3722 unsigned long i = ulongval ();
3723 if (i != ((long) (sizeof (long))))
3725 fprintf (f, "%lu\n", i);
3727 exit (ferror (f) || fclose (f) != 0);
3733 rm -f conftest$ac_exeext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3735 (eval $ac_link) 2>&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 ac_cv_sizeof_long=`cat conftest.val`
3746 echo "$as_me: program exited with status $ac_status" >&5
3747 echo "$as_me: failed program was:" >&5
3748 cat conftest.$ac_ext >&5
3750 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
3751 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
3752 { (exit 1); exit 1; }; }
3754 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3762 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3763 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3764 cat >>confdefs.h <<_ACEOF
3765 #define SIZEOF_LONG $ac_cv_sizeof_long
3773 for ac_header in stdlib.h unistd.h
3775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3777 echo "$as_me:$LINENO: checking for $ac_header" >&5
3778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3785 # Is the header compilable?
3786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3788 cat >conftest.$ac_ext <<_ACEOF
3789 #line $LINENO "configure"
3790 #include "confdefs.h"
3791 $ac_includes_default
3792 #include <$ac_header>
3794 rm -f conftest.$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796 (eval $ac_compile) 2>&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 ac_header_compiler=yes
3808 echo "$as_me: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3810 ac_header_compiler=no
3812 rm -f conftest.$ac_objext conftest.$ac_ext
3813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3814 echo "${ECHO_T}$ac_header_compiler" >&6
3816 # Is the header present?
3817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3819 cat >conftest.$ac_ext <<_ACEOF
3820 #line $LINENO "configure"
3821 #include "confdefs.h"
3822 #include <$ac_header>
3824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3827 grep -v '^ *+' conftest.er1 >conftest.err
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } >/dev/null; then
3832 if test -s conftest.err; then
3833 ac_cpp_err=$ac_c_preproc_warn_flag
3840 if test -z "$ac_cpp_err"; then
3841 ac_header_preproc=yes
3843 echo "$as_me: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3845 ac_header_preproc=no
3847 rm -f conftest.err conftest.$ac_ext
3848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3849 echo "${ECHO_T}$ac_header_preproc" >&6
3851 # So? What about this header?
3852 case $ac_header_compiler:$ac_header_preproc in
3854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3866 echo "$as_me:$LINENO: checking for $ac_header" >&5
3867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 eval "$as_ac_Header=$ac_header_preproc"
3873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3878 cat >>confdefs.h <<_ACEOF
3879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3887 for ac_func in getpagesize
3889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3890 echo "$as_me:$LINENO: checking for $ac_func" >&5
3891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3892 if eval "test \"\${$as_ac_var+set}\" = set"; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 cat >conftest.$ac_ext <<_ACEOF
3896 #line $LINENO "configure"
3897 #include "confdefs.h"
3898 /* System header to define __stub macros and hopefully few prototypes,
3899 which can conflict with char $ac_func (); below. */
3901 /* Override any gcc2 internal prototype to avoid an error. */
3905 /* We use char because int might match the return type of a gcc2
3906 builtin and then its argument prototype would still apply. */
3913 /* The GNU C library defines this for functions which it implements
3914 to always fail with ENOSYS. Some functions are actually named
3915 something starting with __ and the normal name is an alias. */
3916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3926 rm -f conftest.$ac_objext conftest$ac_exeext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928 (eval $ac_link) 2>&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -s conftest$ac_exeext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 eval "$as_ac_var=yes"
3940 echo "$as_me: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3942 eval "$as_ac_var=no"
3944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3948 if test `eval echo '${'$as_ac_var'}'` = yes; then
3949 cat >>confdefs.h <<_ACEOF
3950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3956 echo "$as_me:$LINENO: checking for working mmap" >&5
3957 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3958 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if test "$cross_compiling" = yes; then
3962 ac_cv_func_mmap_fixed_mapped=no
3964 cat >conftest.$ac_ext <<_ACEOF
3965 #line $LINENO "configure"
3966 #include "confdefs.h"
3967 $ac_includes_default
3968 /* malloc might have been renamed as rpl_malloc. */
3971 /* Thanks to Mike Haertel and Jim Avera for this test.
3972 Here is a matrix of mmap possibilities:
3973 mmap private not fixed
3974 mmap private fixed at somewhere currently unmapped
3975 mmap private fixed at somewhere already mapped
3976 mmap shared not fixed
3977 mmap shared fixed at somewhere currently unmapped
3978 mmap shared fixed at somewhere already mapped
3979 For private mappings, we should verify that changes cannot be read()
3980 back from the file, nor mmap's back from the file at a different
3981 address. (There have been systems where private was not correctly
3982 implemented like the infamous i386 svr4.0, and systems where the
3983 VM page cache was not coherent with the file system buffer cache
3984 like early versions of FreeBSD and possibly contemporary NetBSD.)
3985 For shared mappings, we should conversely verify that changes get
3986 propagated back to all the places they're supposed to be.
3988 Grep wants private fixed already mapped.
3989 The main things grep needs to know about mmap are:
3990 * does it exist and is it safe to write into the mmap'd area
3991 * how to use it (BSD variants) */
3994 #include <sys/mman.h>
3996 #if !STDC_HEADERS && !HAVE_STDLIB_H
4000 /* This mess was copied from the GNU getpagesize.h. */
4001 #if !HAVE_GETPAGESIZE
4002 /* Assume that all systems that can run configure have sys/param.h. */
4003 # if !HAVE_SYS_PARAM_H
4004 # define HAVE_SYS_PARAM_H 1
4007 # ifdef _SC_PAGESIZE
4008 # define getpagesize() sysconf(_SC_PAGESIZE)
4009 # else /* no _SC_PAGESIZE */
4010 # if HAVE_SYS_PARAM_H
4011 # include <sys/param.h>
4012 # ifdef EXEC_PAGESIZE
4013 # define getpagesize() EXEC_PAGESIZE
4014 # else /* no EXEC_PAGESIZE */
4016 # define getpagesize() NBPG * CLSIZE
4019 # endif /* no CLSIZE */
4020 # else /* no NBPG */
4022 # define getpagesize() NBPC
4023 # else /* no NBPC */
4025 # define getpagesize() PAGESIZE
4026 # endif /* PAGESIZE */
4027 # endif /* no NBPC */
4028 # endif /* no NBPG */
4029 # endif /* no EXEC_PAGESIZE */
4030 # else /* no HAVE_SYS_PARAM_H */
4031 # define getpagesize() 8192 /* punt totally */
4032 # endif /* no HAVE_SYS_PARAM_H */
4033 # endif /* no _SC_PAGESIZE */
4035 #endif /* no HAVE_GETPAGESIZE */
4040 char *data, *data2, *data3;
4044 pagesize = getpagesize ();
4046 /* First, make a file with some known garbage in it. */
4047 data = (char *) malloc (pagesize);
4050 for (i = 0; i < pagesize; ++i)
4051 *(data + i) = rand ();
4053 fd = creat ("conftest.mmap", 0600);
4056 if (write (fd, data, pagesize) != pagesize)
4060 /* Next, try to mmap the file at a fixed address which already has
4061 something else allocated at it. If we can, also make sure that
4062 we see the same garbage. */
4063 fd = open ("conftest.mmap", O_RDWR);
4066 data2 = (char *) malloc (2 * pagesize);
4069 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4070 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4071 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4073 for (i = 0; i < pagesize; ++i)
4074 if (*(data + i) != *(data2 + i))
4077 /* Finally, make sure that changes to the mapped area do not
4078 percolate back to the file as seen by read(). (This is a bug on
4079 some variants of i386 svr4.0.) */
4080 for (i = 0; i < pagesize; ++i)
4081 *(data2 + i) = *(data2 + i) + 1;
4082 data3 = (char *) malloc (pagesize);
4085 if (read (fd, data3, pagesize) != pagesize)
4087 for (i = 0; i < pagesize; ++i)
4088 if (*(data + i) != *(data3 + i))
4094 rm -f conftest$ac_exeext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4096 (eval $ac_link) 2>&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_cv_func_mmap_fixed_mapped=yes
4107 echo "$as_me: program exited with status $ac_status" >&5
4108 echo "$as_me: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4111 ac_cv_func_mmap_fixed_mapped=no
4113 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4116 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4117 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4118 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4120 cat >>confdefs.h <<\_ACEOF
4127 if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
4128 FTSYS_SRC='$(BASE_)ftsystem.c'
4130 FTSYS_SRC='$(BUILD)/ftsystem.c'
4132 echo "$as_me:$LINENO: checking whether munmap must be declared" >&5
4133 echo $ECHO_N "checking whether munmap must be declared... $ECHO_C" >&6
4134 if test "${ft_cv_munmap_decl+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 cat >conftest.$ac_ext <<_ACEOF
4138 #line $LINENO "configure"
4139 #include "confdefs.h"
4141 #ifdef HAVE_UNISTD_H
4144 #include <sys/mman.h>
4148 char *(*pfn) = (char *(*))munmap
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 ft_cv_munmap_decl=no
4167 echo "$as_me: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 ft_cv_munmap_decl=yes
4171 rm -f conftest.$ac_objext conftest.$ac_ext
4174 echo "$as_me:$LINENO: result: $ft_cv_munmap_decl" >&5
4175 echo "${ECHO_T}$ft_cv_munmap_decl" >&6
4176 if test $ft_cv_munmap_decl = yes; then
4178 cat >>confdefs.h <<\_ACEOF
4179 #define NEED_MUNMAP_DECL
4183 echo "$as_me:$LINENO: checking for munmap's first parameter type" >&5
4184 echo $ECHO_N "checking for munmap's first parameter type... $ECHO_C" >&6
4185 cat >conftest.$ac_ext <<_ACEOF
4186 #line $LINENO "configure"
4187 #include "confdefs.h"
4190 #include <sys/mman.h>
4191 int munmap(void *, size_t);
4200 rm -f conftest.$ac_objext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4202 (eval $ac_compile) 2>&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } &&
4206 { ac_try='test -s conftest.$ac_objext'
4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
4212 echo "$as_me:$LINENO: result: void *" >&5
4213 echo "${ECHO_T}void *" >&6;
4214 cat >>confdefs.h <<\_ACEOF
4215 #define MUNMAP_USES_VOIDP
4219 echo "$as_me: failed program was:" >&5
4220 cat conftest.$ac_ext >&5
4221 echo "$as_me:$LINENO: result: char *" >&5
4222 echo "${ECHO_T}char *" >&6
4224 rm -f conftest.$ac_objext conftest.$ac_ext
4231 for ac_func in memcpy memmove
4233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4234 echo "$as_me:$LINENO: checking for $ac_func" >&5
4235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4236 if eval "test \"\${$as_ac_var+set}\" = set"; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 cat >conftest.$ac_ext <<_ACEOF
4240 #line $LINENO "configure"
4241 #include "confdefs.h"
4242 /* System header to define __stub macros and hopefully few prototypes,
4243 which can conflict with char $ac_func (); below. */
4245 /* Override any gcc2 internal prototype to avoid an error. */
4249 /* We use char because int might match the return type of a gcc2
4250 builtin and then its argument prototype would still apply. */
4257 /* The GNU C library defines this for functions which it implements
4258 to always fail with ENOSYS. Some functions are actually named
4259 something starting with __ and the normal name is an alias. */
4260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4270 rm -f conftest.$ac_objext conftest$ac_exeext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4272 (eval $ac_link) 2>&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -s conftest$ac_exeext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 eval "$as_ac_var=yes"
4284 echo "$as_me: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4286 eval "$as_ac_var=no"
4288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4292 if test `eval echo '${'$as_ac_var'}'` = yes; then
4293 cat >>confdefs.h <<_ACEOF
4294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4303 # Check whether --with-zlib or --without-zlib was given.
4304 if test "${with_zlib+set}" = set; then
4305 withval="$with_zlib"
4308 if test x$with_zlib != xno && test -z "$LIBZ"; then
4309 echo "$as_me:$LINENO: checking for gzsetparams in -lz" >&5
4310 echo $ECHO_N "checking for gzsetparams in -lz... $ECHO_C" >&6
4311 if test "${ac_cv_lib_z_gzsetparams+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 ac_check_lib_save_LIBS=$LIBS
4316 cat >conftest.$ac_ext <<_ACEOF
4317 #line $LINENO "configure"
4318 #include "confdefs.h"
4320 /* Override any gcc2 internal prototype to avoid an error. */
4324 /* We use char because int might match the return type of a gcc2
4325 builtin and then its argument prototype would still apply. */
4326 char gzsetparams ();
4335 rm -f conftest.$ac_objext conftest$ac_exeext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4337 (eval $ac_link) 2>&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } &&
4341 { ac_try='test -s conftest$ac_exeext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_lib_z_gzsetparams=yes
4349 echo "$as_me: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4351 ac_cv_lib_z_gzsetparams=no
4353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4354 LIBS=$ac_check_lib_save_LIBS
4356 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzsetparams" >&5
4357 echo "${ECHO_T}$ac_cv_lib_z_gzsetparams" >&6
4358 if test $ac_cv_lib_z_gzsetparams = yes; then
4359 if test "${ac_cv_header_zlib_h+set}" = set; then
4360 echo "$as_me:$LINENO: checking for zlib.h" >&5
4361 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
4362 if test "${ac_cv_header_zlib_h+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
4366 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
4368 # Is the header compilable?
4369 echo "$as_me:$LINENO: checking zlib.h usability" >&5
4370 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4372 #line $LINENO "configure"
4373 #include "confdefs.h"
4374 $ac_includes_default
4377 rm -f conftest.$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -s conftest.$ac_objext'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; }; then
4389 ac_header_compiler=yes
4391 echo "$as_me: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 ac_header_compiler=no
4395 rm -f conftest.$ac_objext conftest.$ac_ext
4396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4397 echo "${ECHO_T}$ac_header_compiler" >&6
4399 # Is the header present?
4400 echo "$as_me:$LINENO: checking zlib.h presence" >&5
4401 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
4402 cat >conftest.$ac_ext <<_ACEOF
4403 #line $LINENO "configure"
4404 #include "confdefs.h"
4407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4410 grep -v '^ *+' conftest.er1 >conftest.err
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } >/dev/null; then
4415 if test -s conftest.err; then
4416 ac_cpp_err=$ac_c_preproc_warn_flag
4423 if test -z "$ac_cpp_err"; then
4424 ac_header_preproc=yes
4426 echo "$as_me: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4428 ac_header_preproc=no
4430 rm -f conftest.err conftest.$ac_ext
4431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4432 echo "${ECHO_T}$ac_header_preproc" >&6
4434 # So? What about this header?
4435 case $ac_header_compiler:$ac_header_preproc in
4437 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
4438 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
4440 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
4442 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
4443 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
4444 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
4445 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
4446 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
4447 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
4449 echo "$as_me:$LINENO: checking for zlib.h" >&5
4450 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
4451 if test "${ac_cv_header_zlib_h+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 ac_cv_header_zlib_h=$ac_header_preproc
4456 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
4457 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
4460 if test $ac_cv_header_zlib_h = yes; then
4468 if test x$with_zlib != xno && test -n "$LIBZ"; then
4469 CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB"
4470 LDFLAGS="$LDFLAGS $LIBZ"
4480 # Check whether --enable-shared or --disable-shared was given.
4481 if test "${enable_shared+set}" = set; then
4482 enableval="$enable_shared"
4483 p=${PACKAGE-default}
4485 yes) enable_shared=yes ;;
4486 no) enable_shared=no ;;
4489 # Look at the argument we got. We use all the common list separators.
4490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4491 for pkg in $enableval; do
4492 if test "X$pkg" = "X$p"; then
4502 # Check whether --enable-static or --disable-static was given.
4503 if test "${enable_static+set}" = set; then
4504 enableval="$enable_static"
4505 p=${PACKAGE-default}
4507 yes) enable_static=yes ;;
4508 no) enable_static=no ;;
4511 # Look at the argument we got. We use all the common list separators.
4512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4513 for pkg in $enableval; do
4514 if test "X$pkg" = "X$p"; then
4524 # Check whether --enable-fast-install or --disable-fast-install was given.
4525 if test "${enable_fast_install+set}" = set; then
4526 enableval="$enable_fast_install"
4527 p=${PACKAGE-default}
4529 yes) enable_fast_install=yes ;;
4530 no) enable_fast_install=no ;;
4532 enable_fast_install=no
4533 # Look at the argument we got. We use all the common list separators.
4534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4535 for pkg in $enableval; do
4536 if test "X$pkg" = "X$p"; then
4537 enable_fast_install=yes
4544 enable_fast_install=yes
4546 # Find the correct PATH separator. Usually this is `:', but
4547 # DJGPP uses `;' like DOS.
4548 if test "X${PATH_SEPARATOR+set}" != Xset; then
4549 UNAME=${UNAME-`uname 2>/dev/null`}
4551 *-DOS) lt_cv_sys_path_separator=';' ;;
4552 *) lt_cv_sys_path_separator=':' ;;
4554 PATH_SEPARATOR=$lt_cv_sys_path_separator
4558 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4559 if test "${with_gnu_ld+set}" = set; then
4560 withval="$with_gnu_ld"
4561 test "$withval" = no || with_gnu_ld=yes
4566 if test "$GCC" = yes; then
4567 # Check if gcc -print-prog-name=ld gives a path.
4568 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4569 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4572 # gcc leaves a trailing carriage return which upsets mingw
4573 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4575 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4578 # Accept absolute paths.
4579 [\\/]* | [A-Za-z]:[\\/]*)
4580 re_direlt='/[^/][^/]*/\.\./'
4581 # Canonicalize the path of ld
4582 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4583 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4584 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4586 test -z "$LD" && LD="$ac_prog"
4589 # If it fails, then pretend we aren't using GCC.
4593 # If it is relative, then search for the first ld in PATH.
4597 elif test "$with_gnu_ld" = yes; then
4598 echo "$as_me:$LINENO: checking for GNU ld" >&5
4599 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4601 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4602 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4604 if test "${lt_cv_path_LD+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 if test -z "$LD"; then
4608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4609 for ac_dir in $PATH; do
4610 test -z "$ac_dir" && ac_dir=.
4611 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4612 lt_cv_path_LD="$ac_dir/$ac_prog"
4613 # Check to see if the program is GNU ld. I'd rather use --version,
4614 # but apparently some GNU ld's only accept -v.
4615 # Break only if it was the GNU/non-GNU ld that we prefer.
4616 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4617 test "$with_gnu_ld" != no && break
4619 test "$with_gnu_ld" != yes && break
4625 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4630 if test -n "$LD"; then
4631 echo "$as_me:$LINENO: result: $LD" >&5
4632 echo "${ECHO_T}$LD" >&6
4634 echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4637 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4638 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4639 { (exit 1); exit 1; }; }
4640 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4641 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4642 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4646 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4647 lt_cv_prog_gnu_ld=yes
4649 lt_cv_prog_gnu_ld=no
4652 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4653 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4654 with_gnu_ld=$lt_cv_prog_gnu_ld
4657 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4658 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4659 if test "${lt_cv_ld_reload_flag+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 lt_cv_ld_reload_flag='-r'
4664 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4665 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4666 reload_flag=$lt_cv_ld_reload_flag
4667 test -n "$reload_flag" && reload_flag=" $reload_flag"
4669 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4670 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4671 if test "${lt_cv_path_NM+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 if test -n "$NM"; then
4675 # Let the user override the test.
4678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4679 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4680 test -z "$ac_dir" && ac_dir=.
4681 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4682 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4683 # Check to see if the nm accepts a BSD-compat flag.
4684 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4685 # nm: unknown option "B" ignored
4686 # Tru64's nm complains that /dev/null is an invalid object file
4687 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4688 lt_cv_path_NM="$tmp_nm -B"
4690 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4691 lt_cv_path_NM="$tmp_nm -p"
4694 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4695 continue # so that we can try to find one that supports BSD flags
4700 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4705 echo "$as_me:$LINENO: result: $NM" >&5
4706 echo "${ECHO_T}$NM" >&6
4708 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4709 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4710 if test "${lt_cv_path_SED+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 # Loop through the user's path and test for sed and gsed.
4714 # Then use that list of sed's as ones to test for truncation.
4715 as_executable_p="test -f"
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir=.
4721 for ac_prog in sed gsed; do
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4724 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4730 # Create a temporary directory, and hook for its removal unless debugging.
4733 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4734 trap '{ (exit 1); exit 1; }' 1 2 13 15
4737 # Create a (secure) tmp directory for tmp files.
4740 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4741 test -n "$tmp" && test -d "$tmp"
4744 tmp=$TMPDIR/sed$$-$RANDOM
4745 (umask 077 && mkdir $tmp)
4748 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4749 { (exit 1); exit 1; }
4753 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4754 # along with /bin/sed that truncates output.
4755 for _sed in $_sed_list /usr/xpg4/bin/sed; do
4756 test ! -f ${_sed} && break
4757 cat /dev/null > "$tmp/sed.in"
4759 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4760 # Check for GNU sed and select it if it is found.
4761 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4762 lt_cv_path_SED=${_sed}
4766 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4767 mv "$tmp/sed.tmp" "$tmp/sed.in"
4768 cp "$tmp/sed.in" "$tmp/sed.nl"
4769 echo >>"$tmp/sed.nl"
4770 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4771 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4772 # 40000 chars as input seems more than enough
4773 test $_count -gt 10 && break
4774 _count=`expr $_count + 1`
4775 if test $_count -gt $_max; then
4777 lt_cv_path_SED=$_sed
4785 if test "X$SED" != "X"; then
4790 echo "$as_me:$LINENO: result: $SED" >&5
4791 echo "${ECHO_T}$SED" >&6
4793 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4794 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4796 if test "$LN_S" = "ln -s"; then
4797 echo "$as_me:$LINENO: result: yes" >&5
4798 echo "${ECHO_T}yes" >&6
4800 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4801 echo "${ECHO_T}no, using $LN_S" >&6
4804 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4805 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4806 if test "${lt_cv_deplibs_check_method+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 lt_cv_file_magic_cmd='$MAGIC_CMD'
4810 lt_cv_file_magic_test_file=
4811 lt_cv_deplibs_check_method='unknown'
4812 # Need to set the preceding variable on all platforms that support
4813 # interlibrary dependencies.
4814 # 'none' -- dependencies not supported.
4815 # `unknown' -- same as none, but documents that we really don't know.
4816 # 'pass_all' -- all dependencies passed with no checks.
4817 # 'test_compile' -- check by making test program.
4818 # 'file_magic [[regex]]' -- check by looking for files in library path
4819 # which responds to the $file_magic_cmd with a given egrep regex.
4820 # If you have `file' or equivalent on your system and you're not sure
4821 # whether `pass_all' will *always* work, you probably want this one.
4825 lt_cv_deplibs_check_method=pass_all
4829 lt_cv_deplibs_check_method=pass_all
4833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4834 lt_cv_file_magic_cmd='/usr/bin/file -L'
4835 lt_cv_file_magic_test_file=/shlib/libc.so
4838 cygwin* | mingw* | pw32*)
4839 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4840 lt_cv_file_magic_cmd='$OBJDUMP -f'
4843 darwin* | rhapsody*)
4844 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4845 lt_cv_file_magic_cmd='/usr/bin/file -L'
4847 rhapsody* | darwin1.[012])
4848 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4851 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4857 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4860 # Not sure whether the presence of OpenBSD here was a mistake.
4861 # Let's accept both of them until this is cleared up.
4862 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4863 lt_cv_file_magic_cmd=/usr/bin/file
4864 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4868 lt_cv_deplibs_check_method=pass_all
4873 lt_cv_deplibs_check_method=pass_all
4877 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4878 lt_cv_file_magic_cmd=/usr/bin/file
4879 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4882 irix5* | irix6* | nonstopux*)
4884 irix5* | nonstopux*)
4885 # this will be overridden with pass_all, but let us keep it just in case
4886 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4890 *-32|*"-32 ") libmagic=32-bit;;
4891 *-n32|*"-n32 ") libmagic=N32;;
4892 *-64|*"-64 ") libmagic=64-bit;;
4893 *) libmagic=never-match;;
4895 # this will be overridden with pass_all, but let us keep it just in case
4896 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4899 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4900 lt_cv_deplibs_check_method=pass_all
4903 # This must be Linux ELF.
4906 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
4907 lt_cv_deplibs_check_method=pass_all ;;
4909 # glibc up to 2.1.1 does not perform some relocations on ARM
4910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4912 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4916 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4917 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4919 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4925 lt_cv_file_magic_cmd=/usr/bin/file
4926 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4930 lt_cv_file_magic_cmd=/usr/bin/file
4931 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4932 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4935 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4939 osf3* | osf4* | osf5*)
4940 # this will be overridden with pass_all, but let us keep it just in case
4941 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4942 lt_cv_file_magic_test_file=/shlib/libc.so
4943 lt_cv_deplibs_check_method=pass_all
4947 lt_cv_deplibs_check_method=pass_all
4951 lt_cv_deplibs_check_method=pass_all
4952 lt_cv_file_magic_test_file=/lib/libc.so
4955 sysv5uw[78]* | sysv4*uw2*)
4956 lt_cv_deplibs_check_method=pass_all
4959 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4960 case $host_vendor in
4962 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]'
4963 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4966 lt_cv_deplibs_check_method=pass_all
4969 lt_cv_file_magic_cmd='/bin/file'
4970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4973 lt_cv_file_magic_cmd='/bin/file'
4974 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4975 lt_cv_file_magic_test_file=/lib/libc.so
4978 lt_cv_deplibs_check_method=pass_all
4985 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4986 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4987 file_magic_cmd=$lt_cv_file_magic_cmd
4988 deplibs_check_method=$lt_cv_deplibs_check_method
4996 # Check for command to grab the raw symbol name followed by C symbol from nm.
4997 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4998 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4999 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 # These are sane defaults that work on at least a few old systems.
5004 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5006 # Character class describing NM global symbol codes.
5007 symcode='[BCDEGRST]'
5009 # Regexp to match symbols that can be accessed directly from C.
5010 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5012 # Transform the above into a raw symbol and a C symbol.
5013 symxfrm='\1 \2\3 \3'
5015 # Transform an extracted symbol line into a proper C declaration
5016 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
5018 # Transform an extracted symbol line into symbol name and symbol address
5019 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5021 # Define system-specific variables.
5026 cygwin* | mingw* | pw32*)
5027 symcode='[ABCDGISTW]'
5029 hpux*) # Its linker distinguishes data from code symbols
5030 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5031 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5034 symcode='[BCDEGRST]'
5037 symcode='[BCDEGQRST]'
5047 # Handle CRLF in mingw tool chain
5051 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5055 # If we're using GNU nm, then use its standard symbol codes.
5056 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5057 symcode='[ABCDGISTW]'
5060 # Try without a prefix undercore, then with it.
5061 for ac_symprfx in "" "_"; do
5063 # Write the raw and C identifiers.
5064 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5066 # Check to see that the pipe works correctly.
5069 cat > conftest.$ac_ext <<EOF
5074 void nm_test_func(){}
5078 int main(){nm_test_var='a';nm_test_func();return(0);}
5081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5082 (eval $ac_compile) 2>&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; then
5086 # Now try to grab the symbols.
5088 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5089 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } && test -s "$nlist"; then
5093 # Try sorting and uniquifying the output.
5094 if sort "$nlist" | uniq > "$nlist"T; then
5095 mv -f "$nlist"T "$nlist"
5100 # Make sure that we snagged all the symbols we need.
5101 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5102 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5103 cat <<EOF > conftest.$ac_ext
5109 # Now generate the symbol file.
5110 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
5112 cat <<EOF >> conftest.$ac_ext
5113 #if defined (__STDC__) && __STDC__
5114 # define lt_ptr void *
5116 # define lt_ptr char *
5120 /* The mapping between symbol names and symbols. */
5125 lt_preloaded_symbols[] =
5128 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
5129 cat <<\EOF >> conftest.$ac_ext
5137 # Now try linking the two files.
5138 mv conftest.$ac_objext conftstm.$ac_objext
5140 save_CFLAGS="$CFLAGS"
5141 LIBS="conftstm.$ac_objext"
5142 CFLAGS="$CFLAGS$no_builtin_flag"
5143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5144 (eval $ac_link) 2>&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } && test -s conftest$ac_exeext; then
5151 CFLAGS="$save_CFLAGS"
5153 echo "cannot find nm_test_func in $nlist" >&5
5156 echo "cannot find nm_test_var in $nlist" >&5
5159 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5162 echo "$progname: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5165 rm -f conftest* conftst*
5167 # Do not use the global_symbol_pipe unless it works.
5168 if test "$pipe_works" = yes; then
5171 lt_cv_sys_global_symbol_pipe=
5177 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
5178 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5179 global_symbol_to_cdecl=
5180 global_symbol_to_c_name_address=
5182 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
5183 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
5185 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
5187 echo "$as_me:$LINENO: result: failed" >&5
5188 echo "${ECHO_T}failed" >&6
5190 echo "$as_me:$LINENO: result: ok" >&5
5191 echo "${ECHO_T}ok" >&6
5195 for ac_header in dlfcn.h
5197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5199 echo "$as_me:$LINENO: checking for $ac_header" >&5
5200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5207 # Is the header compilable?
5208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5210 cat >conftest.$ac_ext <<_ACEOF
5211 #line $LINENO "configure"
5212 #include "confdefs.h"
5213 $ac_includes_default
5214 #include <$ac_header>
5216 rm -f conftest.$ac_objext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218 (eval $ac_compile) 2>&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } &&
5222 { ac_try='test -s conftest.$ac_objext'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; }; then
5228 ac_header_compiler=yes
5230 echo "$as_me: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5232 ac_header_compiler=no
5234 rm -f conftest.$ac_objext conftest.$ac_ext
5235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5236 echo "${ECHO_T}$ac_header_compiler" >&6
5238 # Is the header present?
5239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5241 cat >conftest.$ac_ext <<_ACEOF
5242 #line $LINENO "configure"
5243 #include "confdefs.h"
5244 #include <$ac_header>
5246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5249 grep -v '^ *+' conftest.er1 >conftest.err
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } >/dev/null; then
5254 if test -s conftest.err; then
5255 ac_cpp_err=$ac_c_preproc_warn_flag
5262 if test -z "$ac_cpp_err"; then
5263 ac_header_preproc=yes
5265 echo "$as_me: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5267 ac_header_preproc=no
5269 rm -f conftest.err conftest.$ac_ext
5270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5271 echo "${ECHO_T}$ac_header_preproc" >&6
5273 # So? What about this header?
5274 case $ac_header_compiler:$ac_header_preproc in
5276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5288 echo "$as_me:$LINENO: checking for $ac_header" >&5
5289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 eval "$as_ac_Header=$ac_header_preproc"
5295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5300 cat >>confdefs.h <<_ACEOF
5301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5313 # Only perform the check for file, if the check method requires it
5314 case $deplibs_check_method in
5316 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5317 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5318 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5319 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5327 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5330 ac_save_MAGIC_CMD="$MAGIC_CMD"
5331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5332 ac_dummy="/usr/bin:$PATH"
5333 for ac_dir in $ac_dummy; do
5334 test -z "$ac_dir" && ac_dir=.
5335 if test -f $ac_dir/${ac_tool_prefix}file; then
5336 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5337 if test -n "$file_magic_test_file"; then
5338 case $deplibs_check_method in
5340 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5341 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5342 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5343 egrep "$file_magic_regex" > /dev/null; then
5348 *** Warning: the command libtool uses to detect shared libraries,
5349 *** $file_magic_cmd, produces output that libtool cannot recognize.
5350 *** The result is that libtool may fail to recognize shared libraries
5351 *** as such. This will affect the creation of libtool libraries that
5352 *** depend on shared libraries, but programs linked with such libtool
5353 *** libraries will work regardless of this problem. Nevertheless, you
5354 *** may want to report the problem to your system manager and/or to
5355 *** bug-libtool@gnu.org
5365 MAGIC_CMD="$ac_save_MAGIC_CMD"
5370 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5371 if test -n "$MAGIC_CMD"; then
5372 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5373 echo "${ECHO_T}$MAGIC_CMD" >&6
5375 echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5379 if test -z "$lt_cv_path_MAGIC_CMD"; then
5380 if test -n "$ac_tool_prefix"; then
5381 echo "$as_me:$LINENO: checking for file" >&5
5382 echo $ECHO_N "checking for file... $ECHO_C" >&6
5383 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5391 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5394 ac_save_MAGIC_CMD="$MAGIC_CMD"
5395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5396 ac_dummy="/usr/bin:$PATH"
5397 for ac_dir in $ac_dummy; do
5398 test -z "$ac_dir" && ac_dir=.
5399 if test -f $ac_dir/file; then
5400 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5401 if test -n "$file_magic_test_file"; then
5402 case $deplibs_check_method in
5404 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5405 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5406 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5407 egrep "$file_magic_regex" > /dev/null; then
5412 *** Warning: the command libtool uses to detect shared libraries,
5413 *** $file_magic_cmd, produces output that libtool cannot recognize.
5414 *** The result is that libtool may fail to recognize shared libraries
5415 *** as such. This will affect the creation of libtool libraries that
5416 *** depend on shared libraries, but programs linked with such libtool
5417 *** libraries will work regardless of this problem. Nevertheless, you
5418 *** may want to report the problem to your system manager and/or to
5419 *** bug-libtool@gnu.org
5429 MAGIC_CMD="$ac_save_MAGIC_CMD"
5434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5435 if test -n "$MAGIC_CMD"; then
5436 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5437 echo "${ECHO_T}$MAGIC_CMD" >&6
5439 echo "$as_me:$LINENO: result: no" >&5
5440 echo "${ECHO_T}no" >&6
5452 if test -n "$ac_tool_prefix"; then
5453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5454 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5455 echo "$as_me:$LINENO: checking for $ac_word" >&5
5456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5457 if test "${ac_cv_prog_RANLIB+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 if test -n "$RANLIB"; then
5461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 RANLIB=$ac_cv_prog_RANLIB
5480 if test -n "$RANLIB"; then
5481 echo "$as_me:$LINENO: result: $RANLIB" >&5
5482 echo "${ECHO_T}$RANLIB" >&6
5484 echo "$as_me:$LINENO: result: no" >&5
5485 echo "${ECHO_T}no" >&6
5489 if test -z "$ac_cv_prog_RANLIB"; then
5490 ac_ct_RANLIB=$RANLIB
5491 # Extract the first word of "ranlib", so it can be a program name with args.
5492 set dummy ranlib; ac_word=$2
5493 echo "$as_me:$LINENO: checking for $ac_word" >&5
5494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5495 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 if test -n "$ac_ct_RANLIB"; then
5499 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_ac_ct_RANLIB="ranlib"
5509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5518 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5519 if test -n "$ac_ct_RANLIB"; then
5520 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5521 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5523 echo "$as_me:$LINENO: result: no" >&5
5524 echo "${ECHO_T}no" >&6
5527 RANLIB=$ac_ct_RANLIB
5529 RANLIB="$ac_cv_prog_RANLIB"
5532 if test -n "$ac_tool_prefix"; then
5533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5534 set dummy ${ac_tool_prefix}strip; ac_word=$2
5535 echo "$as_me:$LINENO: checking for $ac_word" >&5
5536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5537 if test "${ac_cv_prog_STRIP+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 if test -n "$STRIP"; then
5541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 STRIP=$ac_cv_prog_STRIP
5560 if test -n "$STRIP"; then
5561 echo "$as_me:$LINENO: result: $STRIP" >&5
5562 echo "${ECHO_T}$STRIP" >&6
5564 echo "$as_me:$LINENO: result: no" >&5
5565 echo "${ECHO_T}no" >&6
5569 if test -z "$ac_cv_prog_STRIP"; then
5571 # Extract the first word of "strip", so it can be a program name with args.
5572 set dummy strip; ac_word=$2
5573 echo "$as_me:$LINENO: checking for $ac_word" >&5
5574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5575 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 if test -n "$ac_ct_STRIP"; then
5579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_ac_ct_STRIP="strip"
5589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5598 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5599 if test -n "$ac_ct_STRIP"; then
5600 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5601 echo "${ECHO_T}$ac_ct_STRIP" >&6
5603 echo "$as_me:$LINENO: result: no" >&5
5604 echo "${ECHO_T}no" >&6
5609 STRIP="$ac_cv_prog_STRIP"
5616 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5617 if test "${enable_libtool_lock+set}" = set; then
5618 enableval="$enable_libtool_lock"
5621 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5623 # Some flags need to be propagated to the compiler or linker for good
5627 # Find out which ABI we are using.
5628 echo '#line 5628 "configure"' > conftest.$ac_ext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630 (eval $ac_compile) 2>&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; then
5634 case `/usr/bin/file conftest.$ac_objext` in
5650 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5651 SAVE_CFLAGS="$CFLAGS"
5652 CFLAGS="$CFLAGS -belf"
5653 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5654 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5655 if test "${lt_cv_cc_needs_belf+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 ac_cpp='$CPP $CPPFLAGS'
5662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5666 cat >conftest.$ac_ext <<_ACEOF
5667 #line $LINENO "configure"
5668 #include "confdefs.h"
5678 rm -f conftest.$ac_objext conftest$ac_exeext
5679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5680 (eval $ac_link) 2>&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -s conftest$ac_exeext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 lt_cv_cc_needs_belf=yes
5692 echo "$as_me: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5694 lt_cv_cc_needs_belf=no
5696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5698 ac_cpp='$CPP $CPPFLAGS'
5699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5705 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5706 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5707 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5708 CFLAGS="$SAVE_CFLAGS"
5715 # Sed substitution that helps us do robust quoting. It backslashifies
5716 # metacharacters that are still active within double-quoted strings.
5717 Xsed='sed -e s/^X//'
5718 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5720 # Same as above, but do not quote variable references.
5721 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5723 # Sed substitution to delay expansion of an escaped shell variable in a
5724 # double_quote_subst'ed string.
5725 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5731 default_ofile=libtool
5732 can_build_shared=yes
5734 # All known linkers require a `.a' archive for static linking (except M$VC,
5735 # which needs '.lib').
5737 ltmain="$ac_aux_dir/ltmain.sh"
5738 ofile="$default_ofile"
5739 with_gnu_ld="$lt_cv_prog_gnu_ld"
5740 need_locks="$enable_libtool_lock"
5743 old_CFLAGS="$CFLAGS"
5745 # Set sane defaults for various variables
5746 test -z "$AR" && AR=ar
5747 test -z "$AR_FLAGS" && AR_FLAGS=cru
5748 test -z "$AS" && AS=as
5749 test -z "$CC" && CC=cc
5750 test -z "$DLLTOOL" && DLLTOOL=dlltool
5751 test -z "$LD" && LD=ld
5752 test -z "$LN_S" && LN_S="ln -s"
5753 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5754 test -z "$NM" && NM=nm
5755 test -z "$OBJDUMP" && OBJDUMP=objdump
5756 test -z "$RANLIB" && RANLIB=:
5757 test -z "$STRIP" && STRIP=:
5758 test -z "$ac_objext" && ac_objext=o
5760 if test x"$host" != x"$build"; then
5761 ac_tool_prefix=${host_alias}-
5766 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5769 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5774 # AIX sometimes has problems with the GCC collect2 program. For some
5775 # reason, if we set the COLLECT_NAMES environment variable, the problems
5776 # vanish in a puff of smoke.
5777 if test "X${COLLECT_NAMES+set}" != Xset; then
5779 export COLLECT_NAMES
5784 # Determine commands to create old-style static archives.
5785 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5786 old_postinstall_cmds='chmod 644 $oldlib'
5787 old_postuninstall_cmds=
5789 if test -n "$RANLIB"; then
5792 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5795 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5798 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5801 # Allow CC to be a program name with arguments.
5805 echo "$as_me:$LINENO: checking for objdir" >&5
5806 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5807 rm -f .libs 2>/dev/null
5808 mkdir .libs 2>/dev/null
5809 if test -d .libs; then
5812 # MS-DOS does not allow filenames that begin with a dot.
5815 rmdir .libs 2>/dev/null
5816 echo "$as_me:$LINENO: result: $objdir" >&5
5817 echo "${ECHO_T}$objdir" >&6
5821 # Check whether --with-pic or --without-pic was given.
5822 if test "${with_pic+set}" = set; then
5828 test -z "$pic_mode" && pic_mode=default
5830 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5831 # in isolation, and that seeing it set (from the cache) indicates that
5832 # the associated values are set (in the cache) correctly too.
5833 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5834 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5835 if test "${lt_cv_prog_cc_pic+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 lt_cv_prog_cc_shlib=
5841 lt_cv_prog_cc_static=
5842 lt_cv_prog_cc_no_builtin=
5843 lt_cv_prog_cc_can_build_shared=$can_build_shared
5845 if test "$GCC" = yes; then
5846 lt_cv_prog_cc_wl='-Wl,'
5847 lt_cv_prog_cc_static='-static'
5851 # Below there is a dirty hack to force normal static linking with -ldl
5852 # The problem is because libdl dynamically linked with both libc and
5853 # libC (AIX C++ library), which obviously doesn't included in libraries
5854 # list by gcc. This cause undefined symbols with -static flags.
5855 # This hack allows C programs to be linked with "-static -ldl", but
5856 # not sure about C++ programs.
5857 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5860 # FIXME: we need at least 68020 code to build shared libraries, but
5861 # adding the `-m68020' flag to GCC prevents building anything better,
5863 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5865 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5866 # PIC is the default for these OSes.
5868 darwin* | rhapsody*)
5869 # PIC is the default on this platform
5870 # Common symbols not allowed in MH_DYLIB files
5871 lt_cv_prog_cc_pic='-fno-common'
5873 cygwin* | mingw* | pw32* | os2*)
5874 # This hack is so that the source file can tell whether it is being
5875 # built for inclusion in a dll (and should export symbols for example).
5876 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5879 if test -d /usr/nec; then
5880 lt_cv_prog_cc_pic=-Kconform_pic
5884 lt_cv_prog_cc_pic='-fPIC'
5888 # PORTME Check for PIC flags for the system compiler.
5890 aix3* | aix4* | aix5*)
5891 lt_cv_prog_cc_wl='-Wl,'
5892 # All AIX code is PIC.
5893 if test "$host_cpu" = ia64; then
5894 # AIX 5 now supports IA64 processor
5895 lt_cv_prog_cc_static='-Bstatic'
5897 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5901 hpux9* | hpux10* | hpux11*)
5902 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5903 lt_cv_prog_cc_wl='-Wl,'
5904 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5905 lt_cv_prog_cc_pic='+Z'
5908 irix5* | irix6* | nonstopux*)
5909 lt_cv_prog_cc_wl='-Wl,'
5910 lt_cv_prog_cc_static='-non_shared'
5911 # PIC (with -KPIC) is the default.
5914 cygwin* | mingw* | pw32* | os2*)
5915 # This hack is so that the source file can tell whether it is being
5916 # built for inclusion in a dll (and should export symbols for example).
5917 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5921 lt_cv_prog_cc_pic='-KPIC'
5922 lt_cv_prog_cc_static='-Bstatic'
5925 osf3* | osf4* | osf5*)
5926 # All OSF/1 code is PIC.
5927 lt_cv_prog_cc_wl='-Wl,'
5928 lt_cv_prog_cc_static='-non_shared'
5932 lt_cv_prog_cc_pic='-Kpic'
5933 lt_cv_prog_cc_static='-dn'
5934 lt_cv_prog_cc_shlib='-belf'
5938 lt_cv_prog_cc_pic='-KPIC'
5939 lt_cv_prog_cc_static='-Bstatic'
5940 lt_cv_prog_cc_wl='-Wl,'
5944 lt_cv_prog_cc_pic='-PIC'
5945 lt_cv_prog_cc_static='-Bstatic'
5946 lt_cv_prog_cc_wl='-Qoption ld '
5949 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5950 lt_cv_prog_cc_pic='-KPIC'
5951 lt_cv_prog_cc_static='-Bstatic'
5952 lt_cv_prog_cc_wl='-Wl,'
5956 lt_cv_prog_cc_pic='-pic'
5957 lt_cv_prog_cc_static='-Bstatic'
5961 if test -d /usr/nec ;then
5962 lt_cv_prog_cc_pic='-Kconform_pic'
5963 lt_cv_prog_cc_static='-Bstatic'
5968 lt_cv_prog_cc_can_build_shared=no
5975 if test -z "$lt_cv_prog_cc_pic"; then
5976 echo "$as_me:$LINENO: result: none" >&5
5977 echo "${ECHO_T}none" >&6
5979 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5980 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5982 # Check to make sure the pic_flag actually works.
5983 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5984 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5985 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 save_CFLAGS="$CFLAGS"
5989 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5990 cat >conftest.$ac_ext <<_ACEOF
5991 #line $LINENO "configure"
5992 #include "confdefs.h"
6002 rm -f conftest.$ac_objext
6003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6004 (eval $ac_compile) 2>&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try='test -s conftest.$ac_objext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6015 hpux9* | hpux10* | hpux11*)
6016 # On HP-UX, both CC and GCC only warn that PIC is supported... then
6017 # they create non-PIC objects. So, if there were any warnings, we
6018 # assume that PIC is not supported.
6019 if test -s conftest.err; then
6020 lt_cv_prog_cc_pic_works=no
6022 lt_cv_prog_cc_pic_works=yes
6026 lt_cv_prog_cc_pic_works=yes
6031 echo "$as_me: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6033 lt_cv_prog_cc_pic_works=no
6036 rm -f conftest.$ac_objext conftest.$ac_ext
6037 CFLAGS="$save_CFLAGS"
6042 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6044 lt_cv_prog_cc_can_build_shared=no
6046 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6049 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6050 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
6053 # Check for any special shared library compilation flags.
6054 if test -n "$lt_cv_prog_cc_shlib"; then
6055 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6056 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6057 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
6059 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6060 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6061 lt_cv_prog_cc_can_build_shared=no
6065 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6066 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
6067 if test "${lt_cv_prog_cc_static_works+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 lt_cv_prog_cc_static_works=no
6071 save_LDFLAGS="$LDFLAGS"
6072 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6073 cat >conftest.$ac_ext <<_ACEOF
6074 #line $LINENO "configure"
6075 #include "confdefs.h"
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087 (eval $ac_link) 2>&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -s conftest$ac_exeext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 lt_cv_prog_cc_static_works=yes
6099 echo "$as_me: failed program was:" >&5
6100 cat conftest.$ac_ext >&5
6102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6103 LDFLAGS="$save_LDFLAGS"
6108 # Belt *and* braces to stop my trousers falling down:
6109 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
6110 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
6111 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
6113 pic_flag="$lt_cv_prog_cc_pic"
6114 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
6115 wl="$lt_cv_prog_cc_wl"
6116 link_static_flag="$lt_cv_prog_cc_static"
6117 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
6118 can_build_shared="$lt_cv_prog_cc_can_build_shared"
6121 # Check to see if options -o and -c are simultaneously supported by compiler
6122 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6123 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6124 if test "${lt_cv_compiler_c_o+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 $rm -r conftest 2>/dev/null
6131 echo "int some_variable = 0;" > conftest.$ac_ext
6133 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6134 # that will create temporary files in the current directory regardless of
6135 # the output directory. Thus, making CWD read-only will cause this test
6136 # to fail, enabling locking or at least warning the user not to do parallel
6139 save_CFLAGS="$CFLAGS"
6140 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6142 if { (eval echo configure:6142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6143 # The compiler can only warn and ignore the option if not recognized
6144 # So say no if there are warnings
6145 if test -s out/conftest.err; then
6146 lt_cv_compiler_c_o=no
6148 lt_cv_compiler_c_o=yes
6151 # Append any errors to the config.log.
6152 cat out/conftest.err 1>&5
6153 lt_cv_compiler_c_o=no
6155 CFLAGS="$save_CFLAGS"
6161 $rm -r conftest 2>/dev/null
6165 compiler_c_o=$lt_cv_compiler_c_o
6166 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6167 echo "${ECHO_T}$compiler_c_o" >&6
6169 if test x"$compiler_c_o" = x"yes"; then
6170 # Check to see if we can write to a .lo
6171 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6172 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
6173 if test "${lt_cv_compiler_o_lo+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 lt_cv_compiler_o_lo=no
6178 save_CFLAGS="$CFLAGS"
6179 CFLAGS="$CFLAGS -c -o conftest.lo"
6180 save_objext="$ac_objext"
6182 cat >conftest.$ac_ext <<_ACEOF
6183 #line $LINENO "configure"
6184 #include "confdefs.h"
6189 int some_variable = 0;
6194 rm -f conftest.$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 # The compiler can only warn and ignore the option if not recognized
6207 # So say no if there are warnings
6208 if test -s conftest.err; then
6209 lt_cv_compiler_o_lo=no
6211 lt_cv_compiler_o_lo=yes
6215 echo "$as_me: failed program was:" >&5
6216 cat conftest.$ac_ext >&5
6218 rm -f conftest.$ac_objext conftest.$ac_ext
6219 ac_objext="$save_objext"
6220 CFLAGS="$save_CFLAGS"
6224 compiler_o_lo=$lt_cv_compiler_o_lo
6225 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6226 echo "${ECHO_T}$compiler_o_lo" >&6
6231 # Check to see if we can do hard links to lock some files if needed
6232 hard_links="nottested"
6233 if test "$compiler_c_o" = no && test "$need_locks" != no; then
6234 # do not overwrite the value of need_locks provided by the user
6235 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6236 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6239 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6241 ln conftest.a conftest.b 2>&5 || hard_links=no
6242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6243 echo "$as_me:$LINENO: result: $hard_links" >&5
6244 echo "${ECHO_T}$hard_links" >&6
6245 if test "$hard_links" = no; then
6246 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6247 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6254 if test "$GCC" = yes; then
6255 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6256 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6257 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6258 echo "int some_variable = 0;" > conftest.$ac_ext
6259 save_CFLAGS="$CFLAGS"
6260 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6261 compiler_rtti_exceptions=no
6262 cat >conftest.$ac_ext <<_ACEOF
6263 #line $LINENO "configure"
6264 #include "confdefs.h"
6269 int some_variable = 0;
6274 rm -f conftest.$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -s conftest.$ac_objext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 # The compiler can only warn and ignore the option if not recognized
6287 # So say no if there are warnings
6288 if test -s conftest.err; then
6289 compiler_rtti_exceptions=no
6291 compiler_rtti_exceptions=yes
6295 echo "$as_me: failed program was:" >&5
6296 cat conftest.$ac_ext >&5
6298 rm -f conftest.$ac_objext conftest.$ac_ext
6299 CFLAGS="$save_CFLAGS"
6300 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6301 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6303 if test "$compiler_rtti_exceptions" = "yes"; then
6304 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6306 no_builtin_flag=' -fno-builtin'
6310 # See if the linker supports building shared libraries.
6311 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6312 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6314 allow_undefined_flag=
6316 need_lib_prefix=unknown
6317 need_version=unknown
6318 # when you set need_version to no, make sure it does not cause -set_version
6319 # flags to be left without arguments
6321 archive_expsym_cmds=
6322 old_archive_from_new_cmds=
6323 old_archive_from_expsyms_cmds=
6324 export_dynamic_flag_spec=
6325 whole_archive_flag_spec=
6326 thread_safe_flag_spec=
6327 hardcode_into_libs=no
6328 hardcode_libdir_flag_spec=
6329 hardcode_libdir_separator=
6332 hardcode_shlibpath_var=unsupported
6334 link_all_deplibs=unknown
6335 always_export_symbols=no
6336 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6337 # include_expsyms should be a list of space-separated symbols to be *always*
6338 # included in the symbol list
6340 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6341 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6342 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6343 # as well as any symbol that contains `d'.
6344 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6345 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6346 # platforms (ab)use it in PIC code, but their linkers get confused if
6347 # the symbol is explicitly referenced. Since portable code cannot
6348 # rely on this symbol name, it's probably fine to never include it in
6349 # preloaded symbol tables.
6350 extract_expsyms_cmds=
6353 cygwin* | mingw* | pw32*)
6354 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6355 # When not using gcc, we currently assume that we are using
6356 # Microsoft Visual C++.
6357 if test "$GCC" != yes; then
6367 if test "$with_gnu_ld" = yes; then
6368 # If archive_cmds runs LD, not CC, wlarc should be empty
6371 # See if GNU ld supports shared libraries.
6373 aix3* | aix4* | aix5*)
6374 # On AIX, the GNU linker is very broken
6375 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6379 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6380 *** to be unable to reliably create shared libraries on AIX.
6381 *** Therefore, libtool is disabling shared libraries support. If you
6382 *** really care for shared libraries, you may want to modify your PATH
6383 *** so that a non-GNU linker is found, and then restart.
6389 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)'
6390 hardcode_libdir_flag_spec='-L$libdir'
6391 hardcode_minus_L=yes
6393 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6394 # that the semantics of dynamic libraries on AmigaOS, at least up
6395 # to version 4, is to share data among multiple programs linked
6396 # with the same dynamic library. Since this doesn't match the
6397 # behavior of shared libraries on other platforms, we can use
6403 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6404 allow_undefined_flag=unsupported
6405 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6406 # support --undefined. This deserves some investigation. FIXME
6407 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6413 cygwin* | mingw* | pw32*)
6414 # hardcode_libdir_flag_spec is actually meaningless, as there is
6415 # no search path for DLLs.
6416 hardcode_libdir_flag_spec='-L$libdir'
6417 allow_undefined_flag=unsupported
6418 always_export_symbols=yes
6420 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6421 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6422 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6423 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6424 else $CC -o impgen impgen.c ; fi)~
6425 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6427 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6429 # cygwin and mingw dlls have different entry points and sets of symbols
6431 # FIXME: what about values for MSVC?
6432 dll_entry=__cygwin_dll_entry@12
6433 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6437 dll_entry=_DllMainCRTStartup@12
6438 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6442 # mingw and cygwin differ, and it's simplest to just exclude the union
6443 # of the two symbol sets.
6444 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6446 # recent cygwin and mingw systems supply a stub DllMain which the user
6447 # can override, but on older systems we have to supply one (in ltdll.c)
6448 if test "x$lt_cv_need_dllmain" = "xyes"; then
6449 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6450 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6451 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6457 # Extract the symbol export list from an `--export-all' def file,
6458 # then regenerate the def file from the symbol export list, so that
6459 # the compiled dll only exports the symbol export list.
6460 # Be careful not to strip the DATA tag left be newer dlltools.
6461 export_symbols_cmds="$ltdll_cmds"'
6462 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6463 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6465 # If the export-symbols file already is a .def file (1st line
6466 # is EXPORTS), use it as is.
6467 # If DATA tags from a recent dlltool are present, honour them!
6468 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6469 cp $export_symbols $output_objdir/$soname-def;
6471 echo EXPORTS > $output_objdir/$soname-def;
6473 cat $export_symbols | while read symbol; do
6476 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6477 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6478 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6480 _lt_hint=`expr 1 + \$_lt_hint`;
6484 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6485 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6486 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6487 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6488 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6493 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6496 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6497 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6502 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6506 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6507 *** create shared libraries on Solaris systems. Therefore, libtool
6508 *** is disabling shared libraries support. We urge you to upgrade GNU
6509 *** binutils to release 2.9.1 or newer. Another option is to modify
6510 *** your PATH or compiler configuration so that the native linker is
6511 *** used, and then restart.
6514 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6516 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6523 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6526 hardcode_shlibpath_var=no
6530 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6532 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6539 if test "$ld_shlibs" = yes; then
6540 runpath_var=LD_RUN_PATH
6541 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6542 export_dynamic_flag_spec='${wl}--export-dynamic'
6544 cygwin* | mingw* | pw32*)
6545 # dlltool doesn't understand --whole-archive et. al.
6546 whole_archive_flag_spec=
6549 # ancient GNU ld didn't support --whole-archive et. al.
6550 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6551 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6553 whole_archive_flag_spec=
6559 # PORTME fill in a description of your system's linker (not GNU ld)
6562 allow_undefined_flag=unsupported
6563 always_export_symbols=yes
6564 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'
6565 # Note: this linker hardcodes the directories in LIBPATH if there
6566 # are no directories specified by -L.
6567 hardcode_minus_L=yes
6568 if test "$GCC" = yes && test -z "$link_static_flag"; then
6569 # Neither direct hardcoding nor static linking is supported with a
6571 hardcode_direct=unsupported
6576 if test "$host_cpu" = ia64; then
6577 # On IA64, the linker does run time linking by default, so we don't
6578 # have to do anything special.
6579 aix_use_runtimelinking=no
6580 exp_sym_flag='-Bexport'
6583 aix_use_runtimelinking=no
6585 # Test if we are trying to use run time linking or normal
6586 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6587 # need to do runtime linking.
6588 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6589 for ld_flag in $LDFLAGS; do
6592 aix_use_runtimelinking=yes
6599 exp_sym_flag='-bexport'
6600 no_entry_flag='-bnoentry'
6603 # When large executables or shared objects are built, AIX ld can
6604 # have problems creating the table of contents. If linking a library
6605 # or program results in "error TOC overflow" add -mminimal-toc to
6606 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6607 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6611 hardcode_libdir_separator=':'
6612 if test "$GCC" = yes; then
6613 case $host_os in aix4.[012]|aix4.[012].*)
6614 collect2name=`${CC} -print-prog-name=collect2`
6615 if test -f "$collect2name" && \
6616 strings "$collect2name" | grep resolve_lib_name >/dev/null
6618 # We have reworked collect2
6621 # We have old collect2
6622 hardcode_direct=unsupported
6623 # It fails to find uninstalled libraries when the uninstalled
6624 # path is not listed in the libpath. Setting hardcode_minus_L
6625 # to unsupported forces relinking
6626 hardcode_minus_L=yes
6627 hardcode_libdir_flag_spec='-L$libdir'
6628 hardcode_libdir_separator=
6632 shared_flag='-shared'
6635 if test "$host_cpu" = ia64; then
6636 shared_flag='${wl}-G'
6638 if test "$aix_use_runtimelinking" = yes; then
6639 shared_flag='${wl}-G'
6641 shared_flag='${wl}-bM:SRE'
6646 # It seems that -bexpall can do strange things, so it is better to
6647 # generate a list of symbols to export.
6648 always_export_symbols=yes
6649 if test "$aix_use_runtimelinking" = yes; then
6650 # Warning - without using the other runtime loading flags (-brtl),
6651 # -berok will link without error, but may produce a broken library.
6652 allow_undefined_flag='-berok'
6653 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6654 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"
6656 if test "$host_cpu" = ia64; then
6657 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6658 allow_undefined_flag="-z nodefs"
6659 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6661 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6662 # Warning - without using the other run time loading flags,
6663 # -berok will link without error, but may produce a broken library.
6664 allow_undefined_flag='${wl}-berok'
6665 # This is a bit strange, but is similar to how AIX traditionally builds
6666 # it's shared libraries.
6667 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6673 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)'
6674 hardcode_libdir_flag_spec='-L$libdir'
6675 hardcode_minus_L=yes
6676 # see comment about different semantics on the GNU ld section
6680 cygwin* | mingw* | pw32*)
6681 # When not using gcc, we currently assume that we are using
6682 # Microsoft Visual C++.
6683 # hardcode_libdir_flag_spec is actually meaningless, as there is
6684 # no search path for DLLs.
6685 hardcode_libdir_flag_spec=' '
6686 allow_undefined_flag=unsupported
6687 # Tell ltmain to make .lib files, not .a files.
6689 # FIXME: Setting linknames here is a bad hack.
6690 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6691 # The linker will automatically build a .lib file if we build a DLL.
6692 old_archive_from_new_cmds='true'
6693 # FIXME: Should let the user specify the lib program.
6694 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6695 fix_srcfile_path='`cygpath -w "$srcfile"`'
6698 darwin* | rhapsody*)
6700 rhapsody* | darwin1.[012])
6701 allow_undefined_flag='-undefined suppress'
6704 allow_undefined_flag='-flat_namespace -undefined suppress'
6707 # FIXME: Relying on posixy $() will cause problems for
6708 # cross-compilation, but unfortunately the echo tests do not
6709 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6710 # `"' quotes if we put them in here... so don't!
6711 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6712 # We need to add '_' to the symbols in $export_symbols first
6713 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6715 hardcode_shlibpath_var=no
6716 whole_archive_flag_spec='-all_load $convenience'
6723 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6724 # support. Future versions do this automatically, but an explicit c++rt0.o
6725 # does not break anything, and helps significantly (at the cost of a little
6728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6729 hardcode_libdir_flag_spec='-R$libdir'
6731 hardcode_shlibpath_var=no
6734 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6738 hardcode_minus_L=yes
6739 hardcode_shlibpath_var=no
6742 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6744 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6745 hardcode_libdir_flag_spec='-R$libdir'
6747 hardcode_shlibpath_var=no
6750 hpux9* | hpux10* | hpux11*)
6752 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6753 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6755 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6756 hardcode_libdir_separator=:
6758 hardcode_minus_L=yes # Not in the search PATH, but as the default
6759 # location of the library.
6760 export_dynamic_flag_spec='${wl}-E'
6763 irix5* | irix6* | nonstopux*)
6764 if test "$GCC" = yes; then
6765 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'
6766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6768 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'
6769 hardcode_libdir_flag_spec='-rpath $libdir'
6771 hardcode_libdir_separator=:
6772 link_all_deplibs=yes
6776 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6779 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6781 hardcode_libdir_flag_spec='-R$libdir'
6783 hardcode_shlibpath_var=no
6787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6790 hardcode_libdir_separator=:
6791 hardcode_shlibpath_var=no
6796 hardcode_shlibpath_var=no
6797 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6798 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6799 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6800 export_dynamic_flag_spec='${wl}-E'
6803 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6805 hardcode_libdir_flag_spec='-R$libdir'
6808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6809 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6816 hardcode_libdir_flag_spec='-L$libdir'
6817 hardcode_minus_L=yes
6818 allow_undefined_flag=unsupported
6819 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'
6820 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6824 if test "$GCC" = yes; then
6825 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6826 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'
6828 allow_undefined_flag=' -expect_unresolved \*'
6829 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'
6831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6832 hardcode_libdir_separator=:
6835 osf4* | osf5*) # as osf3* with the addition of -msym flag
6836 if test "$GCC" = yes; then
6837 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6838 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'
6839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6841 allow_undefined_flag=' -expect_unresolved \*'
6842 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'
6843 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6844 $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'
6846 #Both c and cxx compiler support -rpath directly
6847 hardcode_libdir_flag_spec='-rpath $libdir'
6849 hardcode_libdir_separator=:
6853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6854 hardcode_shlibpath_var=no
6855 runpath_var=LD_RUN_PATH
6856 hardcode_runpath_var=yes
6857 export_dynamic_flag_spec='${wl}-Bexport'
6861 # gcc --version < 3.0 without binutils cannot create self contained
6862 # shared libraries reliably, requiring libgcc.a to resolve some of
6863 # the object symbols generated in some cases. Libraries that use
6864 # assert need libgcc.a to resolve __eprintf, for example. Linking
6865 # a copy of libgcc.a into every shared library to guarantee resolving
6866 # such symbols causes other problems: According to Tim Van Holder
6867 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6868 # (to the application) exception stack for one thing.
6869 no_undefined_flag=' -z defs'
6870 if test "$GCC" = yes; then
6871 case `$CC --version 2>/dev/null` in
6875 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6876 *** create self contained shared libraries on Solaris systems, without
6877 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6878 *** -no-undefined support, which will at least allow you to build shared
6879 *** libraries. However, you may find that when you link such libraries
6880 *** into an application without using GCC, you have to manually add
6881 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6882 *** upgrade to a newer version of GCC. Another option is to rebuild your
6883 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6890 # $CC -shared without GNU ld will not create a library from C++
6891 # object files and a static libstdc++, better avoid it by now
6892 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6893 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6894 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6895 hardcode_libdir_flag_spec='-R$libdir'
6896 hardcode_shlibpath_var=no
6898 solaris2.[0-5] | solaris2.[0-5].*) ;;
6899 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6900 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6902 link_all_deplibs=yes
6906 if test "x$host_vendor" = xsequent; then
6907 # Use $CC to link under sequent, because it throws in some extra .o
6908 # files that make .init and .fini sections work.
6909 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6911 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6913 hardcode_libdir_flag_spec='-L$libdir'
6915 hardcode_minus_L=yes
6916 hardcode_shlibpath_var=no
6920 case $host_vendor in
6922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6923 hardcode_direct=yes # is this really true???
6926 ## LD is ld it makes a PLAMLIB
6927 ## CC just makes a GrossModule.
6928 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6929 reload_cmds='$CC -r -o $output$reload_objs'
6933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6934 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6937 runpath_var='LD_RUN_PATH'
6938 hardcode_shlibpath_var=no
6942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6943 hardcode_shlibpath_var=no
6944 export_dynamic_flag_spec='-Bexport'
6948 no_undefined_flag=' -z text'
6949 # $CC -shared without GNU ld will not create a library from C++
6950 # object files and a static libstdc++, better avoid it by now
6951 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6952 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6953 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6954 hardcode_libdir_flag_spec=
6955 hardcode_shlibpath_var=no
6956 runpath_var='LD_RUN_PATH'
6960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6961 hardcode_libdir_flag_spec='-L$libdir'
6962 hardcode_shlibpath_var=no
6966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967 hardcode_libdir_flag_spec='-L$libdir'
6968 hardcode_shlibpath_var=no
6972 if test -d /usr/nec; then
6973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974 hardcode_shlibpath_var=no
6975 runpath_var=LD_RUN_PATH
6976 hardcode_runpath_var=yes
6982 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6985 hardcode_shlibpath_var=no
6986 hardcode_runpath_var=yes
6987 runpath_var=LD_RUN_PATH
6990 sysv5uw7* | unixware7*)
6991 no_undefined_flag='${wl}-z ${wl}text'
6992 if test "$GCC" = yes; then
6993 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6995 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6997 runpath_var='LD_RUN_PATH'
6998 hardcode_shlibpath_var=no
7006 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7007 echo "${ECHO_T}$ld_shlibs" >&6
7008 test "$ld_shlibs" = no && can_build_shared=no
7010 # Check hardcoding attributes.
7011 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7012 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7014 if test -n "$hardcode_libdir_flag_spec" || \
7015 test -n "$runpath_var"; then
7017 # We can hardcode non-existant directories.
7018 if test "$hardcode_direct" != no &&
7019 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7020 # have to relink, otherwise we might link with an installed library
7021 # when we should be linking with a yet-to-be-installed one
7022 ## test "$hardcode_shlibpath_var" != no &&
7023 test "$hardcode_minus_L" != no; then
7024 # Linking always hardcodes the temporary library directory.
7025 hardcode_action=relink
7027 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7028 hardcode_action=immediate
7031 # We cannot hardcode anything, or else we can only hardcode existing
7033 hardcode_action=unsupported
7035 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7036 echo "${ECHO_T}$hardcode_action" >&6
7040 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7041 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7042 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7043 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7044 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7045 echo "$as_me:$LINENO: result: yes" >&5
7046 echo "${ECHO_T}yes" >&6
7048 echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6
7052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7053 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7055 # PORTME Fill in your ld.so characteristics
7056 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7057 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7059 libname_spec='lib$name'
7066 shlibpath_overrides_runpath=unknown
7068 dynamic_linker="$host_os ld.so"
7069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7070 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7075 library_names_spec='${libname}${release}.so$versuffix $libname.a'
7076 shlibpath_var=LIBPATH
7078 # AIX has no versioning support, so we append a major version to the name.
7079 soname_spec='${libname}${release}.so$major'
7086 hardcode_into_libs=yes
7087 if test "$host_cpu" = ia64; then
7088 # AIX 5 supports IA64
7089 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7090 shlibpath_var=LD_LIBRARY_PATH
7092 # With GCC up to 2.95.x, collect2 would create an import file
7093 # for dependence libraries. The import file would start with
7094 # the line `#! .'. This would cause the generated library to
7095 # depend on `.', always an invalid library. This was fixed in
7096 # development snapshots of GCC prior to 3.0.
7098 aix4 | aix4.[01] | aix4.[01].*)
7099 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7101 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7108 # AIX (on Power*) has no versioning support, so currently we can
7109 # not hardcode correct soname into executable. Probably we can
7110 # add versioning support to collect2, so additional links can
7111 # be useful in future.
7112 if test "$aix_use_runtimelinking" = yes; then
7113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7114 # instead of lib<name>.a to let people know that these are not
7115 # typical AIX shared libraries.
7116 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7118 # We preserve .a as extension for shared libraries through AIX4.2
7119 # and later when we are not doing run time linking.
7120 library_names_spec='${libname}${release}.a $libname.a'
7121 soname_spec='${libname}${release}.so$major'
7123 shlibpath_var=LIBPATH
7125 hardcode_into_libs=yes
7129 library_names_spec='$libname.ixlibrary $libname.a'
7130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7131 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'
7135 library_names_spec='${libname}.so'
7136 dynamic_linker="$host_os ld.so"
7137 shlibpath_var=LIBRARY_PATH
7143 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7144 soname_spec='${libname}${release}.so$major'
7145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7146 shlibpath_var=LD_LIBRARY_PATH
7147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7149 export_dynamic_flag_spec=-rdynamic
7150 # the default ld.so.conf also contains /usr/contrib/lib and
7151 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7152 # libtool to hard-code these into programs
7155 cygwin* | mingw* | pw32*)
7156 version_type=windows
7159 case $GCC,$host_os in
7161 library_names_spec='$libname.dll.a'
7162 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7163 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7164 dldir=$destdir/`dirname \$dlpath`~
7165 test -d \$dldir || mkdir -p \$dldir~
7166 $install_prog .libs/$dlname \$dldir/$dlname'
7167 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7168 dlpath=$dir/\$dldll~
7172 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7173 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
7176 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7179 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7182 dynamic_linker='Win32 ld.exe'
7183 # FIXME: first we should search . and the directory the executable is in
7187 darwin* | rhapsody*)
7188 dynamic_linker="$host_os dyld"
7192 # FIXME: Relying on posixy $() will cause problems for
7193 # cross-compilation, but unfortunately the echo tests do not
7194 # yet detect zsh echo's removal of \ escapes.
7195 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7196 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7197 shlibpath_overrides_runpath=yes
7198 shlibpath_var=DYLD_LIBRARY_PATH
7206 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7207 version_type=freebsd-$objformat
7208 case $version_type in
7210 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7215 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7219 shlibpath_var=LD_LIBRARY_PATH
7222 shlibpath_overrides_runpath=yes
7225 shlibpath_overrides_runpath=no
7226 hardcode_into_libs=yes
7235 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7236 soname_spec='${libname}${release}.so$major'
7237 shlibpath_var=LD_LIBRARY_PATH
7238 hardcode_into_libs=yes
7241 hpux9* | hpux10* | hpux11*)
7242 # Give a soname corresponding to the major version so that dld.sl refuses to
7243 # link against other versions.
7244 dynamic_linker="$host_os dld.sl"
7248 shlibpath_var=SHLIB_PATH
7249 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7250 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7251 soname_spec='${libname}${release}.sl$major'
7252 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7253 postinstall_cmds='chmod 555 $lib'
7256 irix5* | irix6* | nonstopux*)
7258 nonstopux*) version_type=nonstopux ;;
7259 *) version_type=irix ;;
7263 soname_spec='${libname}${release}.so$major'
7264 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7266 irix5* | nonstopux*)
7270 case $LD in # libtool.m4 will add one of these switches to LD
7271 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7272 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7273 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7274 *) libsuff= shlibsuff= libmagic=never-match;;
7278 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7279 shlibpath_overrides_runpath=no
7280 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7281 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7284 # No shared lib support for Linux oldld, aout, or coff.
7285 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7289 # This must be Linux ELF.
7294 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7295 soname_spec='${libname}${release}.so$major'
7296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7297 shlibpath_var=LD_LIBRARY_PATH
7298 shlibpath_overrides_runpath=no
7299 # This implies no fast_install, which is unacceptable.
7300 # Some rework will be needed to allow for fast_install
7301 # before this can be enabled.
7302 hardcode_into_libs=yes
7304 # We used to test for /lib/ld.so.1 and disable shared libraries on
7305 # powerpc, because MkLinux only supported shared libraries with the
7306 # GNU dynamic linker. Since this was broken with cross compilers,
7307 # most powerpc-linux boxes support dynamic linking these days and
7308 # people can always --disable-shared, the test was removed, and we
7309 # assume the GNU/Linux dynamic linker is in use.
7310 dynamic_linker='GNU/Linux ld.so'
7317 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7318 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7320 dynamic_linker='NetBSD (a.out) ld.so'
7322 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7323 soname_spec='${libname}${release}.so$major'
7324 dynamic_linker='NetBSD ld.elf_so'
7326 shlibpath_var=LD_LIBRARY_PATH
7327 shlibpath_overrides_runpath=yes
7328 hardcode_into_libs=yes
7333 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7334 shlibpath_var=LD_LIBRARY_PATH
7335 shlibpath_overrides_runpath=yes
7342 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7344 openbsd2.[89] | openbsd2.[89].*)
7345 shlibpath_overrides_runpath=no
7348 shlibpath_overrides_runpath=yes
7352 shlibpath_overrides_runpath=yes
7354 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7356 shlibpath_var=LD_LIBRARY_PATH
7360 libname_spec='$name'
7362 library_names_spec='$libname.dll $libname.a'
7363 dynamic_linker='OS/2 ld.exe'
7364 shlibpath_var=LIBPATH
7367 osf3* | osf4* | osf5*)
7370 soname_spec='${libname}${release}.so$major'
7371 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7372 shlibpath_var=LD_LIBRARY_PATH
7373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7375 hardcode_into_libs=yes
7380 soname_spec='${libname}${release}.so$major'
7381 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7382 shlibpath_var=LD_LIBRARY_PATH
7389 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7390 soname_spec='${libname}${release}.so$major'
7391 shlibpath_var=LD_LIBRARY_PATH
7392 shlibpath_overrides_runpath=yes
7393 hardcode_into_libs=yes
7394 # ldd complains unless libraries are executable
7395 postinstall_cmds='chmod +x $lib'
7400 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7401 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7402 shlibpath_var=LD_LIBRARY_PATH
7403 shlibpath_overrides_runpath=yes
7404 if test "$with_gnu_ld" = yes; then
7410 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7412 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7413 soname_spec='${libname}${release}.so$major'
7414 shlibpath_var=LD_LIBRARY_PATH
7415 case $host_vendor in
7417 shlibpath_overrides_runpath=no
7419 export_dynamic_flag_spec='${wl}-Blargedynsym'
7420 runpath_var=LD_RUN_PATH
7428 shlibpath_overrides_runpath=no
7429 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7436 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7437 soname_spec='${libname}${release}.so$major'
7438 shlibpath_var=LD_LIBRARY_PATH
7445 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7446 soname_spec='${libname}${release}.so$major'
7447 shlibpath_var=LD_LIBRARY_PATH
7451 if test -d /usr/nec ;then
7453 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7454 soname_spec='$libname.so.$major'
7455 shlibpath_var=LD_LIBRARY_PATH
7463 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7464 echo "${ECHO_T}$dynamic_linker" >&6
7465 test "$dynamic_linker" = no && can_build_shared=no
7467 # Report the final consequences.
7468 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7469 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7470 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7471 echo "${ECHO_T}$can_build_shared" >&6
7473 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7474 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7475 test "$can_build_shared" = "no" && enable_shared=no
7477 # On AIX, shared libraries and static libraries use the same namespace, and
7478 # are all built from PIC.
7481 test "$enable_shared" = yes && enable_static=no
7482 if test -n "$RANLIB"; then
7483 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7484 postinstall_cmds='$RANLIB $lib'
7489 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7490 test "$enable_shared" = yes && enable_static=no
7494 echo "$as_me:$LINENO: result: $enable_shared" >&5
7495 echo "${ECHO_T}$enable_shared" >&6
7497 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7498 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7499 # Make sure either enable_shared or enable_static is yes.
7500 test "$enable_shared" = yes || enable_static=yes
7501 echo "$as_me:$LINENO: result: $enable_static" >&5
7502 echo "${ECHO_T}$enable_static" >&6
7504 if test "$hardcode_action" = relink; then
7505 # Fast installation is not supported
7506 enable_fast_install=no
7507 elif test "$shlibpath_overrides_runpath" = yes ||
7508 test "$enable_shared" = no; then
7509 # Fast installation is not necessary
7510 enable_fast_install=needless
7513 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7514 if test "$GCC" = yes; then
7515 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7518 if test "x$enable_dlopen" != xyes; then
7519 enable_dlopen=unknown
7520 enable_dlopen_self=unknown
7521 enable_dlopen_self_static=unknown
7528 lt_cv_dlopen="load_add_on"
7530 lt_cv_dlopen_self=yes
7533 cygwin* | mingw* | pw32*)
7534 lt_cv_dlopen="LoadLibrary"
7539 echo "$as_me:$LINENO: checking for shl_load" >&5
7540 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7541 if test "${ac_cv_func_shl_load+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 cat >conftest.$ac_ext <<_ACEOF
7545 #line $LINENO "configure"
7546 #include "confdefs.h"
7547 /* System header to define __stub macros and hopefully few prototypes,
7548 which can conflict with char shl_load (); below. */
7550 /* Override any gcc2 internal prototype to avoid an error. */
7554 /* We use char because int might match the return type of a gcc2
7555 builtin and then its argument prototype would still apply. */
7562 /* The GNU C library defines this for functions which it implements
7563 to always fail with ENOSYS. Some functions are actually named
7564 something starting with __ and the normal name is an alias. */
7565 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7577 (eval $ac_link) 2>&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try='test -s conftest$ac_exeext'
7582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }; }; then
7587 ac_cv_func_shl_load=yes
7589 echo "$as_me: failed program was:" >&5
7590 cat conftest.$ac_ext >&5
7591 ac_cv_func_shl_load=no
7593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7595 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7596 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7597 if test $ac_cv_func_shl_load = yes; then
7598 lt_cv_dlopen="shl_load"
7600 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7601 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7602 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 ac_check_lib_save_LIBS=$LIBS
7607 cat >conftest.$ac_ext <<_ACEOF
7608 #line $LINENO "configure"
7609 #include "confdefs.h"
7611 /* Override any gcc2 internal prototype to avoid an error. */
7615 /* We use char because int might match the return type of a gcc2
7616 builtin and then its argument prototype would still apply. */
7626 rm -f conftest.$ac_objext conftest$ac_exeext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7628 (eval $ac_link) 2>&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try='test -s conftest$ac_exeext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 ac_cv_lib_dld_shl_load=yes
7640 echo "$as_me: failed program was:" >&5
7641 cat conftest.$ac_ext >&5
7642 ac_cv_lib_dld_shl_load=no
7644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7645 LIBS=$ac_check_lib_save_LIBS
7647 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7648 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7649 if test $ac_cv_lib_dld_shl_load = yes; then
7650 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7652 echo "$as_me:$LINENO: checking for dlopen" >&5
7653 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7654 if test "${ac_cv_func_dlopen+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 cat >conftest.$ac_ext <<_ACEOF
7658 #line $LINENO "configure"
7659 #include "confdefs.h"
7660 /* System header to define __stub macros and hopefully few prototypes,
7661 which can conflict with char dlopen (); below. */
7663 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7675 /* The GNU C library defines this for functions which it implements
7676 to always fail with ENOSYS. Some functions are actually named
7677 something starting with __ and the normal name is an alias. */
7678 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7688 rm -f conftest.$ac_objext conftest$ac_exeext
7689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7690 (eval $ac_link) 2>&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
7694 { ac_try='test -s conftest$ac_exeext'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7700 ac_cv_func_dlopen=yes
7702 echo "$as_me: failed program was:" >&5
7703 cat conftest.$ac_ext >&5
7704 ac_cv_func_dlopen=no
7706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7708 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7709 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7710 if test $ac_cv_func_dlopen = yes; then
7711 lt_cv_dlopen="dlopen"
7713 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7714 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 ac_check_lib_save_LIBS=$LIBS
7720 cat >conftest.$ac_ext <<_ACEOF
7721 #line $LINENO "configure"
7722 #include "confdefs.h"
7724 /* Override any gcc2 internal prototype to avoid an error. */
7728 /* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */
7739 rm -f conftest.$ac_objext conftest$ac_exeext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741 (eval $ac_link) 2>&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } &&
7745 { ac_try='test -s conftest$ac_exeext'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; }; then
7751 ac_cv_lib_dl_dlopen=yes
7753 echo "$as_me: failed program was:" >&5
7754 cat conftest.$ac_ext >&5
7755 ac_cv_lib_dl_dlopen=no
7757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7758 LIBS=$ac_check_lib_save_LIBS
7760 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7761 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7762 if test $ac_cv_lib_dl_dlopen = yes; then
7763 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7765 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7766 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7767 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 ac_check_lib_save_LIBS=$LIBS
7772 cat >conftest.$ac_ext <<_ACEOF
7773 #line $LINENO "configure"
7774 #include "confdefs.h"
7776 /* Override any gcc2 internal prototype to avoid an error. */
7780 /* We use char because int might match the return type of a gcc2
7781 builtin and then its argument prototype would still apply. */
7791 rm -f conftest.$ac_objext conftest$ac_exeext
7792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7793 (eval $ac_link) 2>&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try='test -s conftest$ac_exeext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 ac_cv_lib_svld_dlopen=yes
7805 echo "$as_me: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7807 ac_cv_lib_svld_dlopen=no
7809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7810 LIBS=$ac_check_lib_save_LIBS
7812 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7813 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7814 if test $ac_cv_lib_svld_dlopen = yes; then
7815 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7817 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7818 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7819 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 ac_check_lib_save_LIBS=$LIBS
7824 cat >conftest.$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7826 #include "confdefs.h"
7828 /* Override any gcc2 internal prototype to avoid an error. */
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7843 rm -f conftest.$ac_objext conftest$ac_exeext
7844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7845 (eval $ac_link) 2>&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } &&
7849 { ac_try='test -s conftest$ac_exeext'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 ac_cv_lib_dld_dld_link=yes
7857 echo "$as_me: failed program was:" >&5
7858 cat conftest.$ac_ext >&5
7859 ac_cv_lib_dld_dld_link=no
7861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7862 LIBS=$ac_check_lib_save_LIBS
7864 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7865 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7866 if test $ac_cv_lib_dld_dld_link = yes; then
7867 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7888 if test "x$lt_cv_dlopen" != xno; then
7894 case $lt_cv_dlopen in
7896 save_CPPFLAGS="$CPPFLAGS"
7897 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7899 save_LDFLAGS="$LDFLAGS"
7900 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7903 LIBS="$lt_cv_dlopen_libs $LIBS"
7905 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7906 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7907 if test "${lt_cv_dlopen_self+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 if test "$cross_compiling" = yes; then :
7911 lt_cv_dlopen_self=cross
7913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7914 lt_status=$lt_dlunknown
7915 cat > conftest.$ac_ext <<EOF
7916 #line 7916 "configure"
7917 #include "confdefs.h"
7926 # define LT_DLGLOBAL RTLD_GLOBAL
7929 # define LT_DLGLOBAL DL_GLOBAL
7931 # define LT_DLGLOBAL 0
7935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7936 find out it does not work in some platform. */
7937 #ifndef LT_DLLAZY_OR_NOW
7939 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7942 # define LT_DLLAZY_OR_NOW DL_LAZY
7945 # define LT_DLLAZY_OR_NOW RTLD_NOW
7948 # define LT_DLLAZY_OR_NOW DL_NOW
7950 # define LT_DLLAZY_OR_NOW 0
7958 extern "C" void exit (int);
7961 void fnord() { int i=42;}
7964 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7965 int status = $lt_dlunknown;
7969 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7970 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7971 /* dlclose (self); */
7977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7978 (eval $ac_link) 2>&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7982 (./conftest; exit; ) 2>/dev/null
7985 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7986 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7987 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7990 # compilation failed
7991 lt_cv_dlopen_self=no
7998 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7999 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8001 if test "x$lt_cv_dlopen_self" = xyes; then
8002 LDFLAGS="$LDFLAGS $link_static_flag"
8003 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8004 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8005 if test "${lt_cv_dlopen_self_static+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 if test "$cross_compiling" = yes; then :
8009 lt_cv_dlopen_self_static=cross
8011 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8012 lt_status=$lt_dlunknown
8013 cat > conftest.$ac_ext <<EOF
8014 #line 8014 "configure"
8015 #include "confdefs.h"
8024 # define LT_DLGLOBAL RTLD_GLOBAL
8027 # define LT_DLGLOBAL DL_GLOBAL
8029 # define LT_DLGLOBAL 0
8033 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8034 find out it does not work in some platform. */
8035 #ifndef LT_DLLAZY_OR_NOW
8037 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8040 # define LT_DLLAZY_OR_NOW DL_LAZY
8043 # define LT_DLLAZY_OR_NOW RTLD_NOW
8046 # define LT_DLLAZY_OR_NOW DL_NOW
8048 # define LT_DLLAZY_OR_NOW 0
8056 extern "C" void exit (int);
8059 void fnord() { int i=42;}
8062 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8063 int status = $lt_dlunknown;
8067 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8068 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8069 /* dlclose (self); */
8075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8076 (eval $ac_link) 2>&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8080 (./conftest; exit; ) 2>/dev/null
8083 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8084 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8085 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8088 # compilation failed
8089 lt_cv_dlopen_self_static=no
8096 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8097 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8100 CPPFLAGS="$save_CPPFLAGS"
8101 LDFLAGS="$save_LDFLAGS"
8106 case $lt_cv_dlopen_self in
8107 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8108 *) enable_dlopen_self=unknown ;;
8111 case $lt_cv_dlopen_self_static in
8112 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8113 *) enable_dlopen_self_static=unknown ;;
8118 if test "$enable_shared" = yes && test "$GCC" = yes; then
8119 case $archive_cmds in
8121 # FIXME: we may have to deal with multi-command sequences.
8124 # Test whether the compiler implicitly links with -lc since on some
8125 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8126 # to ld, don't add -lc before -lgcc.
8127 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8128 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8129 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 echo 'static int dummy;' > conftest.$ac_ext
8135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8136 (eval $ac_compile) 2>&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; then
8142 libobjs=conftest.$ac_objext
8144 wl=$lt_cv_prog_cc_wl
8150 save_allow_undefined_flag=$allow_undefined_flag
8151 allow_undefined_flag=
8152 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8153 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }
8158 lt_cv_archive_cmds_need_lc=no
8160 lt_cv_archive_cmds_need_lc=yes
8162 allow_undefined_flag=$save_allow_undefined_flag
8164 cat conftest.err 1>&5
8168 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8169 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8173 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8175 # The second clause should only fire when bootstrapping the
8176 # libtool distribution, otherwise you forgot to ship ltmain.sh
8177 # with your package, and you will get complaints that there are
8178 # no rules to generate ltmain.sh.
8179 if test -f "$ltmain"; then
8182 # If there is no Makefile yet, we rely on a make rule to execute
8183 # `config.status --recheck' to rerun these tests and create the
8184 # libtool script then.
8185 test -f Makefile && make "$ltmain"
8188 if test -f "$ltmain"; then
8189 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8192 echo creating $ofile
8194 # Now quote all the things that may contain metacharacters while being
8195 # careful not to overquote the AC_SUBSTed values. We take copies of the
8196 # variables and quote the copies for generation of the libtool script.
8197 for var in echo old_CC old_CFLAGS SED \
8198 AR AR_FLAGS CC LD LN_S NM SHELL \
8199 reload_flag reload_cmds wl \
8200 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8201 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8202 library_names_spec soname_spec \
8203 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8204 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8205 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8206 old_striplib striplib file_magic_cmd export_symbols_cmds \
8207 deplibs_check_method allow_undefined_flag no_undefined_flag \
8208 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8209 global_symbol_to_c_name_address \
8210 hardcode_libdir_flag_spec hardcode_libdir_separator \
8211 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8212 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8215 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8216 old_postinstall_cmds | old_postuninstall_cmds | \
8217 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8218 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8219 postinstall_cmds | postuninstall_cmds | \
8220 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8221 # Double-quote double-evaled strings.
8222 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8225 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8230 cat <<__EOF__ > "${ofile}T"
8233 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8234 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8235 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8237 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8238 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8240 # This program is free software; you can redistribute it and/or modify
8241 # it under the terms of the GNU General Public License as published by
8242 # the Free Software Foundation; either version 2 of the License, or
8243 # (at your option) any later version.
8245 # This program is distributed in the hope that it will be useful, but
8246 # WITHOUT ANY WARRANTY; without even the implied warranty of
8247 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8248 # General Public License for more details.
8250 # You should have received a copy of the GNU General Public License
8251 # along with this program; if not, write to the Free Software
8252 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8254 # As a special exception to the GNU General Public License, if you
8255 # distribute this file as part of a program that contains a
8256 # configuration script generated by Autoconf, you may include it under
8257 # the same distribution terms that you use for the rest of that program.
8259 # A sed that does not truncate output.
8262 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8263 Xsed="${SED} -e s/^X//"
8265 # The HP-UX ksh and POSIX shell print the target directory to stdout
8267 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8269 # ### BEGIN LIBTOOL CONFIG
8271 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8273 # Shell to use when invoking shell scripts.
8276 # Whether or not to build shared libraries.
8277 build_libtool_libs=$enable_shared
8279 # Whether or not to build static libraries.
8280 build_old_libs=$enable_static
8282 # Whether or not to add -lc for building shared libraries.
8283 build_libtool_need_lc=$need_lc
8285 # Whether or not to optimize for fast installation.
8286 fast_install=$enable_fast_install
8289 host_alias=$host_alias
8292 # An echo program that does not interpret backslashes.
8297 AR_FLAGS=$lt_AR_FLAGS
8299 # The default C compiler.
8302 # Is the compiler the GNU C compiler?
8305 # The linker used to build libraries.
8308 # Whether we need hard or soft links.
8311 # A BSD-compatible nm program.
8314 # A symbol stripping program
8317 # Used to examine libraries when file_magic_cmd begins "file"
8318 MAGIC_CMD=$MAGIC_CMD
8320 # Used on cygwin: DLL creation program.
8323 # Used on cygwin: object dumper.
8326 # Used on cygwin: assembler.
8329 # The name of the directory that contains temporary libtool files.
8332 # How to create reloadable object files.
8333 reload_flag=$lt_reload_flag
8334 reload_cmds=$lt_reload_cmds
8336 # How to pass a linker flag through the compiler.
8339 # Object file suffix (normally "o").
8342 # Old archive suffix (normally "a").
8345 # Executable file suffix (normally "").
8348 # Additional compiler flags for building library objects.
8349 pic_flag=$lt_pic_flag
8352 # Does compiler simultaneously support -c and -o options?
8353 compiler_c_o=$lt_compiler_c_o
8355 # Can we write directly to a .lo ?
8356 compiler_o_lo=$lt_compiler_o_lo
8358 # Must we lock files when doing compilation ?
8359 need_locks=$lt_need_locks
8361 # Do we need the lib prefix for modules?
8362 need_lib_prefix=$need_lib_prefix
8364 # Do we need a version for libraries?
8365 need_version=$need_version
8367 # Whether dlopen is supported.
8368 dlopen_support=$enable_dlopen
8370 # Whether dlopen of programs is supported.
8371 dlopen_self=$enable_dlopen_self
8373 # Whether dlopen of statically linked programs is supported.
8374 dlopen_self_static=$enable_dlopen_self_static
8376 # Compiler flag to prevent dynamic linking.
8377 link_static_flag=$lt_link_static_flag
8379 # Compiler flag to turn off builtin functions.
8380 no_builtin_flag=$lt_no_builtin_flag
8382 # Compiler flag to allow reflexive dlopens.
8383 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8385 # Compiler flag to generate shared objects directly from archives.
8386 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8388 # Compiler flag to generate thread-safe objects.
8389 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8391 # Library versioning type.
8392 version_type=$version_type
8394 # Format of library name prefix.
8395 libname_spec=$lt_libname_spec
8397 # List of archive names. First name is the real one, the rest are links.
8398 # The last name is the one that the linker finds with -lNAME.
8399 library_names_spec=$lt_library_names_spec
8401 # The coded name of the library, if different from the real name.
8402 soname_spec=$lt_soname_spec
8404 # Commands used to build and install an old-style archive.
8406 old_archive_cmds=$lt_old_archive_cmds
8407 old_postinstall_cmds=$lt_old_postinstall_cmds
8408 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8410 # Create an old-style archive from a shared archive.
8411 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8413 # Create a temporary old-style archive to link instead of a shared archive.
8414 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8416 # Commands used to build and install a shared archive.
8417 archive_cmds=$lt_archive_cmds
8418 archive_expsym_cmds=$lt_archive_expsym_cmds
8419 postinstall_cmds=$lt_postinstall_cmds
8420 postuninstall_cmds=$lt_postuninstall_cmds
8422 # Commands to strip libraries.
8423 old_striplib=$lt_old_striplib
8424 striplib=$lt_striplib
8426 # Method to check whether dependent libraries are shared objects.
8427 deplibs_check_method=$lt_deplibs_check_method
8429 # Command to use when deplibs_check_method == file_magic.
8430 file_magic_cmd=$lt_file_magic_cmd
8432 # Flag that allows shared libraries with undefined symbols to be built.
8433 allow_undefined_flag=$lt_allow_undefined_flag
8435 # Flag that forces no undefined symbols.
8436 no_undefined_flag=$lt_no_undefined_flag
8438 # Commands used to finish a libtool library installation in a directory.
8439 finish_cmds=$lt_finish_cmds
8441 # Same as above, but a single script fragment to be evaled but not shown.
8442 finish_eval=$lt_finish_eval
8444 # Take the output of nm and produce a listing of raw symbols and C names.
8445 global_symbol_pipe=$lt_global_symbol_pipe
8447 # Transform the output of nm in a proper C declaration
8448 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8450 # Transform the output of nm in a C name address pair
8451 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8453 # This is the shared library runtime path variable.
8454 runpath_var=$runpath_var
8456 # This is the shared library path variable.
8457 shlibpath_var=$shlibpath_var
8459 # Is shlibpath searched before the hard-coded library search path?
8460 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8462 # How to hardcode a shared library path into an executable.
8463 hardcode_action=$hardcode_action
8465 # Whether we should hardcode library paths into libraries.
8466 hardcode_into_libs=$hardcode_into_libs
8468 # Flag to hardcode \$libdir into a binary during linking.
8469 # This must work even if \$libdir does not exist.
8470 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8472 # Whether we need a single -rpath flag with a separated argument.
8473 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8475 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8477 hardcode_direct=$hardcode_direct
8479 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8481 hardcode_minus_L=$hardcode_minus_L
8483 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8484 # the resulting binary.
8485 hardcode_shlibpath_var=$hardcode_shlibpath_var
8487 # Variables whose values should be saved in libtool wrapper scripts and
8488 # restored at relink time.
8489 variables_saved_for_relink="$variables_saved_for_relink"
8491 # Whether libtool must link a program against all its dependency libraries.
8492 link_all_deplibs=$link_all_deplibs
8494 # Compile-time system search path for libraries
8495 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8497 # Run-time system search path for libraries
8498 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8500 # Fix the shell variable \$srcfile for the compiler.
8501 fix_srcfile_path="$fix_srcfile_path"
8503 # Set to yes if exported symbols are required.
8504 always_export_symbols=$always_export_symbols
8506 # The commands to list exported symbols.
8507 export_symbols_cmds=$lt_export_symbols_cmds
8509 # The commands to extract the exported symbol list from a shared archive.
8510 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8512 # Symbols that should not be listed in the preloaded symbols.
8513 exclude_expsyms=$lt_exclude_expsyms
8515 # Symbols that must always be exported.
8516 include_expsyms=$lt_include_expsyms
8518 # ### END LIBTOOL CONFIG
8524 cat <<\EOF >> "${ofile}T"
8526 # AIX sometimes has problems with the GCC collect2 program. For some
8527 # reason, if we set the COLLECT_NAMES environment variable, the problems
8528 # vanish in a puff of smoke.
8529 if test "X${COLLECT_NAMES+set}" != Xset; then
8531 export COLLECT_NAMES
8538 cygwin* | mingw* | pw32* | os2*)
8539 cat <<'EOF' >> "${ofile}T"
8540 # This is a source program that is used to create dlls on Windows
8541 # Don't remove nor modify the starting and closing comments
8542 # /* ltdll.c starts here */
8543 # #define WIN32_LEAN_AND_MEAN
8544 # #include <windows.h>
8545 # #undef WIN32_LEAN_AND_MEAN
8546 # #include <stdio.h>
8548 # #ifndef __CYGWIN__
8549 # # ifdef __CYGWIN32__
8550 # # define __CYGWIN__ __CYGWIN32__
8554 # #ifdef __cplusplus
8557 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8558 # #ifdef __cplusplus
8563 # #include <cygwin/cygwin_dll.h>
8564 # DECLARE_CYGWIN_DLL( DllMain );
8566 # HINSTANCE __hDllInstance_base;
8569 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8571 # __hDllInstance_base = hInst;
8574 # /* ltdll.c ends here */
8575 # This is a source program that is used to create import libraries
8576 # on Windows for dlls which lack them. Don't remove nor modify the
8577 # starting and closing comments
8578 # /* impgen.c starts here */
8579 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8581 # This file is part of GNU libtool.
8583 # This program is free software; you can redistribute it and/or modify
8584 # it under the terms of the GNU General Public License as published by
8585 # the Free Software Foundation; either version 2 of the License, or
8586 # (at your option) any later version.
8588 # This program is distributed in the hope that it will be useful,
8589 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8590 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8591 # GNU General Public License for more details.
8593 # You should have received a copy of the GNU General Public License
8594 # along with this program; if not, write to the Free Software
8595 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8598 # #include <stdio.h> /* for printf() */
8599 # #include <unistd.h> /* for open(), lseek(), read() */
8600 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8601 # #include <string.h> /* for strdup() */
8603 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8605 # #define O_BINARY 0
8608 # static unsigned int
8609 # pe_get16 (fd, offset)
8613 # unsigned char b[2];
8614 # lseek (fd, offset, SEEK_SET);
8616 # return b[0] + (b[1]<<8);
8619 # static unsigned int
8620 # pe_get32 (fd, offset)
8624 # unsigned char b[4];
8625 # lseek (fd, offset, SEEK_SET);
8627 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8630 # static unsigned int
8634 # unsigned char *b = ptr;
8635 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8644 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8645 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8646 # unsigned long name_rvas, nexp;
8647 # unsigned char *expdata, *erva;
8648 # char *filename, *dll_name;
8650 # filename = argv[1];
8652 # dll = open(filename, O_RDONLY|O_BINARY);
8656 # dll_name = filename;
8658 # for (i=0; filename[i]; i++)
8659 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8660 # dll_name = filename + i +1;
8662 # pe_header_offset = pe_get32 (dll, 0x3c);
8663 # opthdr_ofs = pe_header_offset + 4 + 20;
8664 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8666 # if (num_entries < 1) /* no exports */
8669 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8670 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8671 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8672 # secptr = (pe_header_offset + 4 + 20 +
8673 # pe_get16 (dll, pe_header_offset + 4 + 16));
8676 # for (i = 0; i < nsections; i++)
8679 # unsigned long secptr1 = secptr + 40 * i;
8680 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8681 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8682 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8683 # lseek(dll, secptr1, SEEK_SET);
8684 # read(dll, sname, 8);
8685 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8687 # expptr = fptr + (export_rva - vaddr);
8688 # if (export_rva + export_size > vaddr + vsize)
8689 # export_size = vsize - (export_rva - vaddr);
8694 # expdata = (unsigned char*)malloc(export_size);
8695 # lseek (dll, expptr, SEEK_SET);
8696 # read (dll, expdata, export_size);
8697 # erva = expdata - export_rva;
8699 # nexp = pe_as32 (expdata+24);
8700 # name_rvas = pe_as32 (expdata+32);
8702 # printf ("EXPORTS\n");
8703 # for (i = 0; i<nexp; i++)
8705 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8706 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8711 # /* impgen.c ends here */
8717 # We use sed instead of cat because bash on DJGPP gets confused if
8718 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8719 # text mode, it properly converts lines to CR/LF. This bash problem
8720 # is reportedly fixed, but why not run on old versions too?
8721 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8723 mv -f "${ofile}T" "$ofile" || \
8724 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8732 # This can be used to rebuild libtool when needed
8733 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8735 # Always use our own libtool.
8736 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8738 # Prevent multiple expansion
8742 ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in freetype-config"
8746 cat >confcache <<\_ACEOF
8747 # This file is a shell script that caches the results of configure
8748 # tests run on this system so they can be shared between configure
8749 # scripts and configure runs, see configure's option --config-cache.
8750 # It is not useful on other systems. If it contains results you don't
8751 # want to keep, you may remove or edit it.
8753 # config.status only pays attention to the cache file if you give it
8754 # the --recheck option to rerun configure.
8756 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8757 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8762 # The following way of writing the cache mishandles newlines in values,
8763 # but we know of no workaround that is simple, portable, and efficient.
8764 # So, don't put newlines in cache variables' values.
8765 # Ultrix sh set writes to stderr and can't be redirected directly,
8766 # and sets the high bit in the cache file unless we assign to the vars.
8769 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8771 # `set' does not quote correctly, so add quotes (double-quote
8772 # substitution turns \\\\ into \\, and sed turns \\ into \).
8775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8778 # `set' quotes correctly as required by POSIX, so do not add quotes.
8780 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8787 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8789 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8791 if cmp -s $cache_file confcache; then :; else
8792 if test -w $cache_file; then
8793 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8794 cat confcache >$cache_file
8796 echo "not updating unwritable cache $cache_file"
8801 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8802 # Let make expand exec_prefix.
8803 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8805 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8806 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8807 # trailing colons and then remove the whole line if VPATH becomes empty
8808 # (actually we leave an empty line to preserve line numbers).
8809 if test "x$srcdir" = x.; then
8810 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8811 s/:*\$(srcdir):*/:/;
8812 s/:*\${srcdir}:*/:/;
8814 s/^\([^=]*=[ ]*\):*/\1/;
8820 DEFS=-DHAVE_CONFIG_H
8824 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8825 # 1. Remove the extension, and $U if already installed.
8826 ac_i=`echo "$ac_i" |
8827 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8829 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8830 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8834 LTLIBOBJS=$ac_ltlibobjs
8838 : ${CONFIG_STATUS=./config.status}
8839 ac_clean_files_save=$ac_clean_files
8840 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8841 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8842 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8843 cat >$CONFIG_STATUS <<_ACEOF
8845 # Generated by $as_me.
8846 # Run this file to recreate the current configuration.
8847 # Compiler output produced by configure, useful for debugging
8848 # configure, is in config.log if it exists.
8851 SHELL=\${CONFIG_SHELL-$SHELL}
8854 cat >>$CONFIG_STATUS <<\_ACEOF
8855 ## --------------------- ##
8856 ## M4sh Initialization. ##
8857 ## --------------------- ##
8859 # Be Bourne compatible
8860 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8863 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8864 # is contrary to our usage. Disable this feature.
8865 alias -g '${1+"$@"}'='"$@"'
8866 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8870 # Support unset when possible.
8871 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8878 # Work around bugs in pre-3.0 UWIN ksh.
8879 $as_unset ENV MAIL MAILPATH
8885 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
8887 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8888 eval $as_var=C; export $as_var
8894 # Required to use basename.
8895 if expr a : '\(a\)' >/dev/null 2>&1; then
8901 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8902 as_basename=basename
8908 # Name of the executable.
8909 as_me=`$as_basename "$0" ||
8910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8911 X"$0" : 'X\(//\)$' \| \
8912 X"$0" : 'X\(/\)$' \| \
8913 . : '\(.\)' 2>/dev/null ||
8915 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8916 /^X\/\(\/\/\)$/{ s//\1/; q; }
8917 /^X\/\(\/\).*/{ s//\1/; q; }
8921 # PATH needs CR, and LINENO needs CR and PATH.
8922 # Avoid depending upon Character Ranges.
8923 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8924 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8925 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8926 as_cr_digits='0123456789'
8927 as_cr_alnum=$as_cr_Letters$as_cr_digits
8929 # The user is always right.
8930 if test "${PATH_SEPARATOR+set}" != set; then
8931 echo "#! /bin/sh" >conftest.sh
8932 echo "exit 0" >>conftest.sh
8933 chmod +x conftest.sh
8934 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
8945 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8946 test "x$as_lineno_1" != "x$as_lineno_2" &&
8947 test "x$as_lineno_3" = "x$as_lineno_2" || {
8948 # Find who we are. Look in the path if we contain no path at all
8951 *[\\/]* ) as_myself=$0 ;;
8952 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956 test -z "$as_dir" && as_dir=.
8957 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8962 # We did not find ourselves, most probably we were run as `sh COMMAND'
8963 # in which case we are not to be found in the path.
8964 if test "x$as_myself" = x; then
8967 if test ! -f "$as_myself"; then
8968 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8969 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8970 { (exit 1); exit 1; }; }
8972 case $CONFIG_SHELL in
8974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8978 test -z "$as_dir" && as_dir=.
8979 for as_base in sh bash ksh sh5; do
8982 if ("$as_dir/$as_base" -c '
8985 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8986 test "x$as_lineno_1" != "x$as_lineno_2" &&
8987 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8988 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8989 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8990 CONFIG_SHELL=$as_dir/$as_base
8992 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9000 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9001 # uniformly replaced by the line number. The first 'sed' inserts a
9002 # line-number line before each line; the second 'sed' does the real
9003 # work. The second script uses 'N' to pair each line-number line
9004 # with the numbered line, and appends trailing '-' during
9005 # substitution so that $LINENO is not a special case at line end.
9006 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9007 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9008 sed '=' <$as_myself |
9013 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9016 s,^['$as_cr_digits']*\n,,
9018 chmod +x $as_me.lineno ||
9019 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9020 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9021 { (exit 1); exit 1; }; }
9023 # Don't try to exec as it changes $[0], causing all sort of problems
9024 # (the dirname of $[0] is not the place where we might find the
9025 # original and so on. Autoconf is especially sensible to this).
9027 # Exit status is that of the last command.
9032 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9033 *c*,-n*) ECHO_N= ECHO_C='
9035 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9036 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9039 if expr a : '\(a\)' >/dev/null 2>&1; then
9045 rm -f conf$$ conf$$.exe conf$$.file
9047 if ln -s conf$$.file conf$$ 2>/dev/null; then
9048 # We could just check for DJGPP; but this test a) works b) is more generic
9049 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9050 if test -f conf$$.exe; then
9051 # Don't use ln at all; we don't have any links
9056 elif ln conf$$.file conf$$ 2>/dev/null; then
9061 rm -f conf$$ conf$$.exe conf$$.file
9063 if mkdir -p . 2>/dev/null; then
9069 as_executable_p="test -f"
9071 # Sed expression to map a string onto a valid CPP name.
9072 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9074 # Sed expression to map a string onto a valid variable name.
9075 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9079 # We need space, tab and new line, in precisely that order.
9089 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9090 # report actual input values of CONFIG_FILES etc. instead of their
9091 # values after options handling. Logging --version etc. is OK.
9095 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9096 ## Running $as_me. ##
9101 This file was extended by $as_me, which was
9102 generated by GNU Autoconf 2.54. Invocation command line was
9104 CONFIG_FILES = $CONFIG_FILES
9105 CONFIG_HEADERS = $CONFIG_HEADERS
9106 CONFIG_LINKS = $CONFIG_LINKS
9107 CONFIG_COMMANDS = $CONFIG_COMMANDS
9111 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9115 # Files that config.status was made for.
9116 if test -n "$ac_config_files"; then
9117 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9120 if test -n "$ac_config_headers"; then
9121 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9124 if test -n "$ac_config_links"; then
9125 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9128 if test -n "$ac_config_commands"; then
9129 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9132 cat >>$CONFIG_STATUS <<\_ACEOF
9135 \`$as_me' instantiates files from templates according to the
9136 current configuration.
9138 Usage: $0 [OPTIONS] [FILE]...
9140 -h, --help print this help, then exit
9141 -V, --version print version number, then exit
9142 -d, --debug don't remove temporary files
9143 --recheck update $as_me by reconfiguring in the same conditions
9144 --file=FILE[:TEMPLATE]
9145 instantiate the configuration file FILE
9146 --header=FILE[:TEMPLATE]
9147 instantiate the configuration header FILE
9149 Configuration files:
9152 Configuration headers:
9155 Report bugs to <bug-autoconf@gnu.org>."
9158 cat >>$CONFIG_STATUS <<_ACEOF
9161 configured by $0, generated by GNU Autoconf 2.54,
9162 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9164 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9165 Free Software Foundation, Inc.
9166 This config.status script is free software; the Free Software Foundation
9167 gives unlimited permission to copy, distribute and modify it."
9172 cat >>$CONFIG_STATUS <<\_ACEOF
9173 # If no file are specified by the user, then we need to provide default
9174 # value. By we need to know if files were specified by the user.
9180 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9181 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9189 *) # This is not an option, so the user has probably given explicit
9192 ac_need_defaults=false;;
9196 # Handling of the options.
9198 cat >>$CONFIG_STATUS <<_ACEOF
9199 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9200 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9201 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9203 cat >>$CONFIG_STATUS <<\_ACEOF
9204 --version | --vers* | -V )
9205 echo "$ac_cs_version"; exit 0 ;;
9207 # Conflict between --help and --header
9208 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9209 Try \`$0 --help' for more information." >&5
9210 echo "$as_me: error: ambiguous option: $1
9211 Try \`$0 --help' for more information." >&2;}
9212 { (exit 1); exit 1; }; };;
9213 --help | --hel | -h )
9214 echo "$ac_cs_usage"; exit 0 ;;
9215 --debug | --d* | -d )
9217 --file | --fil | --fi | --f )
9219 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9220 ac_need_defaults=false;;
9221 --header | --heade | --head | --hea )
9223 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9224 ac_need_defaults=false;;
9227 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9228 Try \`$0 --help' for more information." >&5
9229 echo "$as_me: error: unrecognized option: $1
9230 Try \`$0 --help' for more information." >&2;}
9231 { (exit 1); exit 1; }; } ;;
9233 *) ac_config_targets="$ac_config_targets $1" ;;
9245 cat >>$CONFIG_STATUS <<\_ACEOF
9246 for ac_config_target in $ac_config_targets
9248 case "$ac_config_target" in
9249 # Handling of arguments.
9250 "unix-cc.mk" ) CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
9251 "unix-def.mk" ) CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
9252 "freetype-config" ) CONFIG_FILES="$CONFIG_FILES freetype-config" ;;
9253 "ftconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h:ftconfig.in" ;;
9254 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9255 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9256 { (exit 1); exit 1; }; };;
9260 # If the user did not use the arguments to specify the items to instantiate,
9261 # then the envvar interface is used. Set only those that are not.
9262 # We use the long form for the default assignment because of an extremely
9263 # bizarre bug on SunOS 4.1.3.
9264 if $ac_need_defaults; then
9265 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9266 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9269 # Create a temporary directory, and hook for its removal unless debugging.
9272 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9273 trap '{ (exit 1); exit 1; }' 1 2 13 15
9276 # Create a (secure) tmp directory for tmp files.
9279 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9280 test -n "$tmp" && test -d "$tmp"
9283 tmp=$TMPDIR/cs$$-$RANDOM
9284 (umask 077 && mkdir $tmp)
9287 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9288 { (exit 1); exit 1; }
9293 cat >>$CONFIG_STATUS <<_ACEOF
9296 # CONFIG_FILES section.
9299 # No need to generate the scripts if there are no CONFIG_FILES.
9300 # This happens for instance when ./config.status config.h
9301 if test -n "\$CONFIG_FILES"; then
9302 # Protect against being on the right side of a sed subst in config.status.
9303 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9304 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9305 s,@SHELL@,$SHELL,;t t
9306 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9307 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9308 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9309 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9310 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9311 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9312 s,@exec_prefix@,$exec_prefix,;t t
9313 s,@prefix@,$prefix,;t t
9314 s,@program_transform_name@,$program_transform_name,;t t
9315 s,@bindir@,$bindir,;t t
9316 s,@sbindir@,$sbindir,;t t
9317 s,@libexecdir@,$libexecdir,;t t
9318 s,@datadir@,$datadir,;t t
9319 s,@sysconfdir@,$sysconfdir,;t t
9320 s,@sharedstatedir@,$sharedstatedir,;t t
9321 s,@localstatedir@,$localstatedir,;t t
9322 s,@libdir@,$libdir,;t t
9323 s,@includedir@,$includedir,;t t
9324 s,@oldincludedir@,$oldincludedir,;t t
9325 s,@infodir@,$infodir,;t t
9326 s,@mandir@,$mandir,;t t
9327 s,@build_alias@,$build_alias,;t t
9328 s,@host_alias@,$host_alias,;t t
9329 s,@target_alias@,$target_alias,;t t
9331 s,@ECHO_C@,$ECHO_C,;t t
9332 s,@ECHO_N@,$ECHO_N,;t t
9333 s,@ECHO_T@,$ECHO_T,;t t
9335 s,@version_info@,$version_info,;t t
9336 s,@ft_version@,$ft_version,;t t
9337 s,@build@,$build,;t t
9338 s,@build_cpu@,$build_cpu,;t t
9339 s,@build_vendor@,$build_vendor,;t t
9340 s,@build_os@,$build_os,;t t
9342 s,@host_cpu@,$host_cpu,;t t
9343 s,@host_vendor@,$host_vendor,;t t
9344 s,@host_os@,$host_os,;t t
9345 s,@target@,$target,;t t
9346 s,@target_cpu@,$target_cpu,;t t
9347 s,@target_vendor@,$target_vendor,;t t
9348 s,@target_os@,$target_os,;t t
9350 s,@CFLAGS@,$CFLAGS,;t t
9351 s,@LDFLAGS@,$LDFLAGS,;t t
9352 s,@CPPFLAGS@,$CPPFLAGS,;t t
9353 s,@ac_ct_CC@,$ac_ct_CC,;t t
9354 s,@EXEEXT@,$EXEEXT,;t t
9355 s,@OBJEXT@,$OBJEXT,;t t
9357 s,@XX_CFLAGS@,$XX_CFLAGS,;t t
9358 s,@XX_ANSIFLAGS@,$XX_ANSIFLAGS,;t t
9360 s,@RMDIR@,$RMDIR,;t t
9361 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9362 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9363 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9364 s,@EGREP@,$EGREP,;t t
9365 s,@FTSYS_SRC@,$FTSYS_SRC,;t t
9367 s,@SYSTEM_ZLIB@,$SYSTEM_ZLIB,;t t
9370 s,@RANLIB@,$RANLIB,;t t
9371 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9372 s,@STRIP@,$STRIP,;t t
9373 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9374 s,@LIBTOOL@,$LIBTOOL,;t t
9375 s,@LIBOBJS@,$LIBOBJS,;t t
9376 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9381 cat >>$CONFIG_STATUS <<\_ACEOF
9382 # Split the substitutions into bite-sized pieces for seds with
9383 # small command number limits, like on Digital OSF/1 and HP-UX.
9385 ac_sed_frag=1 # Number of current file.
9386 ac_beg=1 # First line for current file.
9387 ac_end=$ac_max_sed_lines # Line after last line for current file.
9390 while $ac_more_lines; do
9391 if test $ac_beg -gt 1; then
9392 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9394 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9396 if test ! -s $tmp/subs.frag; then
9399 # The purpose of the label and of the branching condition is to
9400 # speed up the sed processing (if there are no `@' at all, there
9401 # is no need to browse any of the substitutions).
9402 # These are the two extra sed commands mentioned above.
9404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9405 if test -z "$ac_sed_cmds"; then
9406 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9408 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9410 ac_sed_frag=`expr $ac_sed_frag + 1`
9412 ac_end=`expr $ac_end + $ac_max_sed_lines`
9415 if test -z "$ac_sed_cmds"; then
9418 fi # test -n "$CONFIG_FILES"
9421 cat >>$CONFIG_STATUS <<\_ACEOF
9422 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9423 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9425 - | *:- | *:-:* ) # input from stdin
9427 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9428 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9429 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9431 * ) ac_file_in=$ac_file.in ;;
9434 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9435 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9436 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9437 X"$ac_file" : 'X\(//\)[^/]' \| \
9438 X"$ac_file" : 'X\(//\)$' \| \
9439 X"$ac_file" : 'X\(/\)' \| \
9440 . : '\(.\)' 2>/dev/null ||
9442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9444 /^X\(\/\/\)$/{ s//\1/; q; }
9445 /^X\(\/\).*/{ s//\1/; q; }
9447 { if $as_mkdir_p; then
9452 while test ! -d "$as_dir"; do
9453 as_dirs="$as_dir $as_dirs"
9454 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9456 X"$as_dir" : 'X\(//\)[^/]' \| \
9457 X"$as_dir" : 'X\(//\)$' \| \
9458 X"$as_dir" : 'X\(/\)' \| \
9459 . : '\(.\)' 2>/dev/null ||
9461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9463 /^X\(\/\/\)$/{ s//\1/; q; }
9464 /^X\(\/\).*/{ s//\1/; q; }
9467 test ! -n "$as_dirs" || mkdir $as_dirs
9468 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9469 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9470 { (exit 1); exit 1; }; }; }
9474 if test "$ac_dir" != .; then
9475 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9476 # A "../" for each directory in $ac_dir_suffix.
9477 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9479 ac_dir_suffix= ac_top_builddir=
9483 .) # No --srcdir option. We are building in place.
9485 if test -z "$ac_top_builddir"; then
9488 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9490 [\\/]* | ?:[\\/]* ) # Absolute path.
9491 ac_srcdir=$srcdir$ac_dir_suffix;
9492 ac_top_srcdir=$srcdir ;;
9494 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9495 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9497 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9499 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9500 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9501 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9502 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9506 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9507 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9510 if test x"$ac_file" != x-; then
9511 { echo "$as_me:$LINENO: creating $ac_file" >&5
9512 echo "$as_me: creating $ac_file" >&6;}
9515 # Let's still pretend it is `configure' which instantiates (i.e., don't
9516 # use $as_me), people would be surprised to read:
9517 # /* config.h. Generated by config.status. */
9518 if test x"$ac_file" = x-; then
9521 configure_input="$ac_file. "
9523 configure_input=$configure_input"Generated from `echo $ac_file_in |
9524 sed 's,.*/,,'` by configure."
9526 # First look for the input files in the build tree, otherwise in the
9528 ac_file_inputs=`IFS=:
9529 for f in $ac_file_in; do
9531 -) echo $tmp/stdin ;;
9533 # Absolute (can't be DOS-style, as IFS=:)
9534 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9535 echo "$as_me: error: cannot find input file: $f" >&2;}
9536 { (exit 1); exit 1; }; }
9539 if test -f "$f"; then
9542 elif test -f "$srcdir/$f"; then
9547 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9548 echo "$as_me: error: cannot find input file: $f" >&2;}
9549 { (exit 1); exit 1; }; }
9552 done` || { (exit 1); exit 1; }
9554 cat >>$CONFIG_STATUS <<_ACEOF
9558 cat >>$CONFIG_STATUS <<\_ACEOF
9560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9561 s,@configure_input@,$configure_input,;t t
9562 s,@srcdir@,$ac_srcdir,;t t
9563 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9564 s,@top_srcdir@,$ac_top_srcdir,;t t
9565 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9566 s,@builddir@,$ac_builddir,;t t
9567 s,@abs_builddir@,$ac_abs_builddir,;t t
9568 s,@top_builddir@,$ac_top_builddir,;t t
9569 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9570 s,@INSTALL@,$ac_INSTALL,;t t
9571 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9573 if test x"$ac_file" != x-; then
9574 mv $tmp/out $ac_file
9582 cat >>$CONFIG_STATUS <<\_ACEOF
9585 # CONFIG_HEADER section.
9588 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9589 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9591 # ac_d sets the value in "#define NAME VALUE" lines.
9592 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9593 ac_dB='[ ].*$,\1#\2'
9596 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9597 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9598 ac_uB='$,\1#\2define\3'
9602 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9603 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9605 - | *:- | *:-:* ) # input from stdin
9607 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9608 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9609 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9610 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9611 * ) ac_file_in=$ac_file.in ;;
9614 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9615 echo "$as_me: creating $ac_file" >&6;}
9617 # First look for the input files in the build tree, otherwise in the
9619 ac_file_inputs=`IFS=:
9620 for f in $ac_file_in; do
9622 -) echo $tmp/stdin ;;
9624 # Absolute (can't be DOS-style, as IFS=:)
9625 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9626 echo "$as_me: error: cannot find input file: $f" >&2;}
9627 { (exit 1); exit 1; }; }
9630 if test -f "$f"; then
9633 elif test -f "$srcdir/$f"; then
9638 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9639 echo "$as_me: error: cannot find input file: $f" >&2;}
9640 { (exit 1); exit 1; }; }
9643 done` || { (exit 1); exit 1; }
9644 # Remove the trailing spaces.
9645 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9649 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9650 # `conftest.undefs', that substitutes the proper values into
9651 # config.h.in to produce config.h. The first handles `#define'
9652 # templates, and the second `#undef' templates.
9653 # And first: Protect against being on the right side of a sed subst in
9654 # config.status. Protect against being in an unquoted here document
9656 rm -f conftest.defines conftest.undefs
9657 # Using a here document instead of a string reduces the quoting nightmare.
9658 # Putting comments in sed scripts is not portable.
9660 # `end' is used to avoid that the second main sed command (meant for
9661 # 0-ary CPP macros) applies to n-ary macro definitions.
9662 # See the Autoconf documentation for `clear'.
9663 cat >confdef2sed.sed <<\_ACEOF
9668 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9670 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9673 # If some macros were called several times there might be several times
9674 # the same #defines, which is useless. Nevertheless, we may not want to
9675 # sort them, since we want the *last* AC-DEFINE to be honored.
9676 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9677 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9678 rm -f confdef2sed.sed
9680 # This sed command replaces #undef with comments. This is necessary, for
9681 # example, in the case of _POSIX_SOURCE, which is predefined and required
9682 # on some systems where configure will not decide to define it.
9683 cat >>conftest.undefs <<\_ACEOF
9684 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9687 # Break up conftest.defines because some shells have a limit on the size
9688 # of here documents, and old seds have small limits too (100 cmds).
9689 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9690 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9691 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9692 echo ' :' >>$CONFIG_STATUS
9694 while grep . conftest.defines >/dev/null
9696 # Write a limited-size here document to $tmp/defines.sed.
9697 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9698 # Speed up: don't consider the non `#define' lines.
9699 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9700 # Work around the forget-to-reset-the-flag bug.
9701 echo 't clr' >>$CONFIG_STATUS
9702 echo ': clr' >>$CONFIG_STATUS
9703 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9705 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9709 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9710 rm -f conftest.defines
9711 mv conftest.tail conftest.defines
9713 rm -f conftest.defines
9714 echo ' fi # grep' >>$CONFIG_STATUS
9715 echo >>$CONFIG_STATUS
9717 # Break up conftest.undefs because some shells have a limit on the size
9718 # of here documents, and old seds have small limits too (100 cmds).
9719 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9721 while grep . conftest.undefs >/dev/null
9723 # Write a limited-size here document to $tmp/undefs.sed.
9724 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9725 # Speed up: don't consider the non `#undef'
9726 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9727 # Work around the forget-to-reset-the-flag bug.
9728 echo 't clr' >>$CONFIG_STATUS
9729 echo ': clr' >>$CONFIG_STATUS
9730 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9732 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9736 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9737 rm -f conftest.undefs
9738 mv conftest.tail conftest.undefs
9740 rm -f conftest.undefs
9742 cat >>$CONFIG_STATUS <<\_ACEOF
9743 # Let's still pretend it is `configure' which instantiates (i.e., don't
9744 # use $as_me), people would be surprised to read:
9745 # /* config.h. Generated by config.status. */
9746 if test x"$ac_file" = x-; then
9747 echo "/* Generated by configure. */" >$tmp/config.h
9749 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9751 cat $tmp/in >>$tmp/config.h
9753 if test x"$ac_file" != x-; then
9754 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9755 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9756 echo "$as_me: $ac_file is unchanged" >&6;}
9758 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9760 X"$ac_file" : 'X\(//\)[^/]' \| \
9761 X"$ac_file" : 'X\(//\)$' \| \
9762 X"$ac_file" : 'X\(/\)' \| \
9763 . : '\(.\)' 2>/dev/null ||
9765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9767 /^X\(\/\/\)$/{ s//\1/; q; }
9768 /^X\(\/\).*/{ s//\1/; q; }
9770 { if $as_mkdir_p; then
9775 while test ! -d "$as_dir"; do
9776 as_dirs="$as_dir $as_dirs"
9777 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9779 X"$as_dir" : 'X\(//\)[^/]' \| \
9780 X"$as_dir" : 'X\(//\)$' \| \
9781 X"$as_dir" : 'X\(/\)' \| \
9782 . : '\(.\)' 2>/dev/null ||
9784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9786 /^X\(\/\/\)$/{ s//\1/; q; }
9787 /^X\(\/\).*/{ s//\1/; q; }
9790 test ! -n "$as_dirs" || mkdir $as_dirs
9791 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9792 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9793 { (exit 1); exit 1; }; }; }
9796 mv $tmp/config.h $ac_file
9805 cat >>$CONFIG_STATUS <<\_ACEOF
9807 { (exit 0); exit 0; }
9809 chmod +x $CONFIG_STATUS
9810 ac_clean_files=$ac_clean_files_save
9813 # configure is writing to config.log, and then calls config.status.
9814 # config.status does its own redirection, appending to config.log.
9815 # Unfortunately, on DOS this fails, as config.log is still kept open
9816 # by configure, so config.status won't be able to write to it; its
9817 # output is simply discarded. So we exec the FD to /dev/null,
9818 # effectively closing config.log, so it can be properly (re)opened and
9819 # appended to by config.status. When coming back to configure, we
9820 # need to make the FD available again.
9821 if test "$no_create" != yes; then
9824 $SHELL $CONFIG_STATUS || ac_cs_success=false
9826 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9827 # would make configure fail if this is the last instruction.
9828 $ac_cs_success || { (exit 1); exit 1; }