2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
243 # Find the correct PATH separator. Usually this is `:', but
244 # DJGPP uses `;' like DOS.
245 if test "X${PATH_SEPARATOR+set}" != Xset; then
246 UNAME=${UNAME-`uname 2>/dev/null`}
248 *-DOS) lt_cv_sys_path_separator=';' ;;
249 *) lt_cv_sys_path_separator=':' ;;
251 PATH_SEPARATOR=$lt_cv_sys_path_separator
255 # Check that we are running under the correct shell.
256 SHELL=${CONFIG_SHELL-/bin/sh}
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
266 if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
269 elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
272 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
280 if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
289 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293 if test -z "$ECHO"; then
294 if test "X${echo_test_string+set}" != Xset; then
295 # find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
307 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
316 # So, first we look for a working echo in the user's PATH.
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running configure again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
368 # maybe with a smaller string...
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384 # Oops. We lost completely, so just stick with echo.
393 # Copy echo and quote the copy suitably for passing to libtool from
394 # the Makefile, instead of quoting the original, which is used later.
396 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
432 ac_unique_file="examples/main.cpp"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
437 # include <sys/types.h>
440 # include <sys/stat.h>
451 # if !STDC_HEADERS && HAVE_MEMORY_H
457 # include <strings.h>
460 # include <inttypes.h>
470 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS LTLIBOBJS'
473 # Initialize some variables set by options.
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
485 program_transform_name=s,x,x,
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523 # Accept the important Cygnus configure options, so we can diagnose typos.
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
545 cache_file=config.cache ;;
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 datadir=$ac_optarg ;;
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573 eval "enable_$ac_feature='$ac_optarg'" ;;
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
588 -help | --help | --hel | --he | -h)
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
612 -libdir | --libdir | --libdi | --libd)
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639 # Obsolete; use --without-fp.
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 sbindir=$ac_optarg ;;
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 sharedstatedir=$ac_optarg ;;
716 -site | --site | --sit)
718 -site=* | --site=* | --sit=*)
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 -version | --version | --versio | --versi | --vers | -V)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755 eval "with_$ac_package='$ac_optarg'" ;;
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
767 # Obsolete; use --with-x.
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
819 eval ac_val=$`echo $ac_var`
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
831 eval ac_val=$`echo $ac_var`
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860 test "$silent" = yes && exec 6>/dev/null
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
880 if test ! -r $srcdir/$ac_unique_file; then
884 ac_srcdir_defaulted=no
886 if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CC_set=${CC+set}
929 ac_cv_env_CC_set=${CC+set}
930 ac_cv_env_CC_value=$CC
931 ac_env_CFLAGS_set=${CFLAGS+set}
932 ac_env_CFLAGS_value=$CFLAGS
933 ac_cv_env_CFLAGS_set=${CFLAGS+set}
934 ac_cv_env_CFLAGS_value=$CFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
941 # Report the --help message.
943 if test "$ac_init_help" = "long"; then
944 # Omit some internal or obsolete options to make the list less imposing.
945 # This message is too long to be a string in the A/UX 3.1 sh.
947 \`configure' configures this package to adapt to many kinds of systems.
949 Usage: $0 [OPTION]... [VAR=VALUE]...
951 To assign environment variables (e.g., CC, CFLAGS...), specify them as
952 VAR=VALUE. See below for descriptions of some of the useful variables.
954 Defaults for the options are specified in brackets.
957 -h, --help display this help and exit
958 --help=short display options specific to this package
959 --help=recursive display the short help of all the included packages
960 -V, --version display version information and exit
961 -q, --quiet, --silent do not print \`checking...' messages
962 --cache-file=FILE cache test results in FILE [disabled]
963 -C, --config-cache alias for \`--cache-file=config.cache'
964 -n, --no-create do not create output files
965 --srcdir=DIR find the sources in DIR [configure dir or \`..']
970 Installation directories:
971 --prefix=PREFIX install architecture-independent files in PREFIX
973 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
976 By default, \`make install' will install all the files in
977 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
978 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
979 for instance \`--prefix=\$HOME'.
981 For better control, use the options below.
983 Fine tuning of the installation directories:
984 --bindir=DIR user executables [EPREFIX/bin]
985 --sbindir=DIR system admin executables [EPREFIX/sbin]
986 --libexecdir=DIR program executables [EPREFIX/libexec]
987 --datadir=DIR read-only architecture-independent data [PREFIX/share]
988 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
989 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
990 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
991 --libdir=DIR object code libraries [EPREFIX/lib]
992 --includedir=DIR C header files [PREFIX/include]
993 --oldincludedir=DIR C header files for non-gcc [/usr/include]
994 --infodir=DIR info documentation [PREFIX/info]
995 --mandir=DIR man documentation [PREFIX/man]
1001 --program-prefix=PREFIX prepend PREFIX to installed program names
1002 --program-suffix=SUFFIX append SUFFIX to installed program names
1003 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1006 --build=BUILD configure for building on BUILD [guessed]
1007 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1011 if test -n "$ac_init_help"; then
1016 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1017 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1018 --disable-dependency-tracking Speeds up one-time builds
1019 --enable-dependency-tracking Do not reject slow dependency extractors
1020 --enable-shared=PKGS build shared libraries default=yes
1021 --enable-static=PKGS build static libraries default=yes
1022 --enable-fast-install=PKGS optimize for fast installation default=yes
1023 --disable-libtool-lock avoid locking (might break parallel builds)
1027 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1028 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1029 --with-gnu-ld assume the C compiler uses GNU ld default=no
1030 --with-pic try to use only PIC/non-PIC objects default=use both
1031 --with-libldap=DIR Path to the libldap library /usr/local/lib
1032 --with-ldap-includes=DIR Path to the libldap include files /usr/local/include
1034 Some influential environment variables:
1035 CXX C++ compiler command
1036 CXXFLAGS C++ compiler flags
1037 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1038 nonstandard directory <lib dir>
1039 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1040 headers in a nonstandard directory <include dir>
1041 CC C compiler command
1042 CFLAGS C compiler flags
1045 Use these variables to override the choices made by `configure' or to help
1046 it to find libraries and programs with nonstandard names/locations.
1051 if test "$ac_init_help" = "recursive"; then
1052 # If there are subdirs, report their specific --help.
1054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055 test -d $ac_dir || continue
1058 if test "$ac_dir" != .; then
1059 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060 # A "../" for each directory in $ac_dir_suffix.
1061 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063 ac_dir_suffix= ac_top_builddir=
1067 .) # No --srcdir option. We are building in place.
1069 if test -z "$ac_top_builddir"; then
1072 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074 [\\/]* | ?:[\\/]* ) # Absolute path.
1075 ac_srcdir=$srcdir$ac_dir_suffix;
1076 ac_top_srcdir=$srcdir ;;
1078 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1083 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1084 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1085 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1086 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1089 # Check for guested configure; otherwise get Cygnus style configure.
1090 if test -f $ac_srcdir/configure.gnu; then
1092 $SHELL $ac_srcdir/configure.gnu --help=recursive
1093 elif test -f $ac_srcdir/configure; then
1095 $SHELL $ac_srcdir/configure --help=recursive
1096 elif test -f $ac_srcdir/configure.ac ||
1097 test -f $ac_srcdir/configure.in; then
1099 $ac_configure --help
1101 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1107 test -n "$ac_init_help" && exit 0
1108 if $ac_init_version; then
1111 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1112 Free Software Foundation, Inc.
1113 This configure script is free software; the Free Software Foundation
1114 gives unlimited permission to copy, distribute and modify it.
1120 This file contains any messages produced by compilers while
1121 running configure, to aid debugging if configure makes a mistake.
1123 It was created by $as_me, which was
1124 generated by GNU Autoconf 2.57. Invocation command line was
1135 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1136 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1137 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1138 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1139 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1141 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1142 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1144 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1145 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1146 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1147 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1148 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1149 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1150 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1158 test -z "$as_dir" && as_dir=.
1159 echo "PATH: $as_dir"
1174 # Keep a trace of the command line.
1175 # Strip out --no-create and --no-recursion so they do not pile up.
1176 # Strip out --silent because we don't want to record it for future runs.
1177 # Also quote any args containing shell meta-characters.
1178 # Make two passes to allow for proper duplicate-argument suppression.
1183 ac_must_keep_next=false
1189 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1193 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1194 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1197 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1199 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1200 if test $ac_must_keep_next = true; then
1201 ac_must_keep_next=false # Got value, back to normal.
1204 *=* | --config-cache | -C | -disable-* | --disable-* \
1205 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1206 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1207 | -with-* | --with-* | -without-* | --without-* | --x)
1208 case "$ac_configure_args0 " in
1209 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1212 -* ) ac_must_keep_next=true ;;
1215 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1216 # Get rid of the leading space.
1222 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1223 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1225 # When interrupted or exit'd, cleanup temporary files, and complete
1226 # config.log. We remove comments because anyway the quotes in there
1227 # would cause problems or look ugly.
1228 # WARNING: Be sure not to use single quotes in there, as some shells,
1229 # such as our DU 5.0 friend, will then `close' the trap.
1230 trap 'exit_status=$?
1231 # Save into config.log some information that might help in debugging.
1236 ## ---------------- ##
1237 ## Cache variables. ##
1238 ## ---------------- ##
1241 # The following way of writing the cache mishandles newlines in values,
1244 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1247 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1252 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1259 ## ----------------- ##
1260 ## Output variables. ##
1261 ## ----------------- ##
1264 for ac_var in $ac_subst_vars
1266 eval ac_val=$`echo $ac_var`
1267 echo "$ac_var='"'"'$ac_val'"'"'"
1271 if test -n "$ac_subst_files"; then
1278 for ac_var in $ac_subst_files
1280 eval ac_val=$`echo $ac_var`
1281 echo "$ac_var='"'"'$ac_val'"'"'"
1286 if test -s confdefs.h; then
1293 sed "/^$/d" confdefs.h | sort
1296 test "$ac_signal" != 0 &&
1297 echo "$as_me: caught signal $ac_signal"
1298 echo "$as_me: exit $exit_status"
1300 rm -f core core.* *.core &&
1301 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1304 for ac_signal in 1 2 13 15; do
1305 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1310 rm -rf conftest* confdefs.h
1311 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1314 # Predefined preprocessor variables.
1316 cat >>confdefs.h <<_ACEOF
1317 #define PACKAGE_NAME "$PACKAGE_NAME"
1321 cat >>confdefs.h <<_ACEOF
1322 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1326 cat >>confdefs.h <<_ACEOF
1327 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1331 cat >>confdefs.h <<_ACEOF
1332 #define PACKAGE_STRING "$PACKAGE_STRING"
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1341 # Let the site file select an alternate cache file if it wants to.
1342 # Prefer explicitly selected file to automatically selected ones.
1343 if test -z "$CONFIG_SITE"; then
1344 if test "x$prefix" != xNONE; then
1345 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1347 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1350 for ac_site_file in $CONFIG_SITE; do
1351 if test -r "$ac_site_file"; then
1352 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1353 echo "$as_me: loading site script $ac_site_file" >&6;}
1354 sed 's/^/| /' "$ac_site_file" >&5
1359 if test -r "$cache_file"; then
1360 # Some versions of bash will fail to source /dev/null (special
1361 # files actually), so we avoid doing that.
1362 if test -f "$cache_file"; then
1363 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1364 echo "$as_me: loading cache $cache_file" >&6;}
1366 [\\/]* | ?:[\\/]* ) . $cache_file;;
1367 *) . ./$cache_file;;
1371 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1372 echo "$as_me: creating cache $cache_file" >&6;}
1376 # Check that the precious variables saved in the cache have kept the same
1378 ac_cache_corrupted=false
1379 for ac_var in `(set) 2>&1 |
1380 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1381 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1382 eval ac_new_set=\$ac_env_${ac_var}_set
1383 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1384 eval ac_new_val="\$ac_env_${ac_var}_value"
1385 case $ac_old_set,$ac_new_set in
1387 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1388 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1389 ac_cache_corrupted=: ;;
1391 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1392 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1393 ac_cache_corrupted=: ;;
1396 if test "x$ac_old_val" != "x$ac_new_val"; then
1397 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1398 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1399 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1400 echo "$as_me: former value: $ac_old_val" >&2;}
1401 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1402 echo "$as_me: current value: $ac_new_val" >&2;}
1403 ac_cache_corrupted=:
1406 # Pass precious variables to config.status.
1407 if test "$ac_new_set" = set; then
1409 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1410 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1411 *) ac_arg=$ac_var=$ac_new_val ;;
1413 case " $ac_configure_args " in
1414 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1415 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1419 if $ac_cache_corrupted; then
1420 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1421 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1422 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1423 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1424 { (exit 1); exit 1; }; }
1428 ac_cpp='$CPP $CPPFLAGS'
1429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1451 am__api_version="1.7"
1453 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1454 if test -f $ac_dir/install-sh; then
1456 ac_install_sh="$ac_aux_dir/install-sh -c"
1458 elif test -f $ac_dir/install.sh; then
1460 ac_install_sh="$ac_aux_dir/install.sh -c"
1462 elif test -f $ac_dir/shtool; then
1464 ac_install_sh="$ac_aux_dir/shtool install -c"
1468 if test -z "$ac_aux_dir"; then
1469 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1470 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1471 { (exit 1); exit 1; }; }
1473 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1474 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1475 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1477 # Find a good install program. We prefer a C program (faster),
1478 # so one script is as good as another. But avoid the broken or
1479 # incompatible versions:
1480 # SysV /etc/install, /usr/sbin/install
1481 # SunOS /usr/etc/install
1482 # IRIX /sbin/install
1484 # AmigaOS /C/install, which installs bootblocks on floppy discs
1485 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1486 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1487 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1488 # ./install, which can be erroneously created by make from ./install.sh.
1489 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1490 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1491 if test -z "$INSTALL"; then
1492 if test "${ac_cv_path_install+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499 test -z "$as_dir" && as_dir=.
1500 # Account for people who put trailing slashes in PATH elements.
1502 ./ | .// | /cC/* | \
1503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1506 # OSF1 and SCO ODT 3.0 have their own names for install.
1507 # Don't use installbsd from OSF since it installs stuff as root
1509 for ac_prog in ginstall scoinst install; do
1510 for ac_exec_ext in '' $ac_executable_extensions; do
1511 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1512 if test $ac_prog = install &&
1513 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1514 # AIX install. It has an incompatible calling convention.
1516 elif test $ac_prog = install &&
1517 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1518 # program-specific install script used by HP pwplus--don't use.
1521 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1533 if test "${ac_cv_path_install+set}" = set; then
1534 INSTALL=$ac_cv_path_install
1536 # As a last resort, use the slow shell script. We don't cache a
1537 # path for INSTALL within a source directory, because that will
1538 # break other packages using the cache if that directory is
1539 # removed, or if the path is relative.
1540 INSTALL=$ac_install_sh
1543 echo "$as_me:$LINENO: result: $INSTALL" >&5
1544 echo "${ECHO_T}$INSTALL" >&6
1546 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1547 # It thinks the first close brace ends the variable substitution.
1548 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1550 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1552 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1554 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1555 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1558 echo timestamp > conftest.file
1559 # Do `set' in a subshell so we don't clobber the current shell's
1560 # arguments. Must try -L first in case configure is actually a
1561 # symlink; some systems play weird games with the mod time of symlinks
1562 # (eg FreeBSD returns the mod time of the symlink's containing
1565 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1566 if test "$*" = "X"; then
1568 set X `ls -t $srcdir/configure conftest.file`
1571 if test "$*" != "X $srcdir/configure conftest.file" \
1572 && test "$*" != "X conftest.file $srcdir/configure"; then
1574 # If neither matched, then we have a broken ls. This can happen
1575 # if, for instance, CONFIG_SHELL is bash and it inherits a
1576 # broken ls alias from the environment. This has actually
1577 # happened. Such a system could not be considered "sane".
1578 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1579 alias in your environment" >&5
1580 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1581 alias in your environment" >&2;}
1582 { (exit 1); exit 1; }; }
1585 test "$2" = conftest.file
1591 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1592 Check your system clock" >&5
1593 echo "$as_me: error: newly created file is older than distributed files!
1594 Check your system clock" >&2;}
1595 { (exit 1); exit 1; }; }
1597 echo "$as_me:$LINENO: result: yes" >&5
1598 echo "${ECHO_T}yes" >&6
1599 test "$program_prefix" != NONE &&
1600 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1601 # Use a double $ so make ignores it.
1602 test "$program_suffix" != NONE &&
1603 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1604 # Double any \ or $. echo might interpret backslashes.
1605 # By default was `s,x,x', remove it if useless.
1606 cat <<\_ACEOF >conftest.sed
1607 s/[\\$]/&&/g;s/;s,x,x,$//
1609 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1613 # expand $ac_aux_dir to an absolute path
1614 am_aux_dir=`cd $ac_aux_dir && pwd`
1616 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1617 # Use eval to expand $SHELL
1618 if eval "$MISSING --run true"; then
1619 am_missing_run="$MISSING --run "
1622 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1623 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1626 for ac_prog in gawk mawk nawk awk
1628 # Extract the first word of "$ac_prog", so it can be a program name with args.
1629 set dummy $ac_prog; ac_word=$2
1630 echo "$as_me:$LINENO: checking for $ac_word" >&5
1631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632 if test "${ac_cv_prog_AWK+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 if test -n "$AWK"; then
1636 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 test -z "$as_dir" && as_dir=.
1643 for ac_exec_ext in '' $ac_executable_extensions; do
1644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645 ac_cv_prog_AWK="$ac_prog"
1646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 if test -n "$AWK"; then
1656 echo "$as_me:$LINENO: result: $AWK" >&5
1657 echo "${ECHO_T}$AWK" >&6
1659 echo "$as_me:$LINENO: result: no" >&5
1660 echo "${ECHO_T}no" >&6
1663 test -n "$AWK" && break
1666 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1667 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1668 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1669 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 cat >conftest.make <<\_ACEOF
1674 @echo 'ac_maketemp="$(MAKE)"'
1676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1677 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1678 if test -n "$ac_maketemp"; then
1679 eval ac_cv_prog_make_${ac_make}_set=yes
1681 eval ac_cv_prog_make_${ac_make}_set=no
1685 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1686 echo "$as_me:$LINENO: result: yes" >&5
1687 echo "${ECHO_T}yes" >&6
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1692 SET_MAKE="MAKE=${MAKE-make}"
1695 # test to see if srcdir already configured
1696 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1697 test -f $srcdir/config.status; then
1698 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1699 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1700 { (exit 1); exit 1; }; }
1703 # test whether we have cygpath
1704 if test -z "$CYGPATH_W"; then
1705 if (cygpath --version) >/dev/null 2>/dev/null; then
1706 CYGPATH_W='cygpath -w'
1713 # Define the identity of the package.
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE "$PACKAGE"
1723 cat >>confdefs.h <<_ACEOF
1724 #define VERSION "$VERSION"
1727 # Some tools Automake needs.
1729 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1732 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1735 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1738 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1741 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1744 AMTAR=${AMTAR-"${am_missing_run}tar"}
1746 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1748 # Installed binaries are usually stripped using `strip' when the user
1749 # run `make install-strip'. However `strip' might not be the right
1750 # tool to use in cross-compilation environments, therefore Automake
1751 # will honor the `STRIP' environment variable to overrule this program.
1752 if test "$cross_compiling" != no; then
1753 if test -n "$ac_tool_prefix"; then
1754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1755 set dummy ${ac_tool_prefix}strip; ac_word=$2
1756 echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758 if test "${ac_cv_prog_STRIP+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 if test -n "$STRIP"; then
1762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 test -z "$as_dir" && as_dir=.
1769 for ac_exec_ext in '' $ac_executable_extensions; do
1770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 STRIP=$ac_cv_prog_STRIP
1781 if test -n "$STRIP"; then
1782 echo "$as_me:$LINENO: result: $STRIP" >&5
1783 echo "${ECHO_T}$STRIP" >&6
1785 echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1790 if test -z "$ac_cv_prog_STRIP"; then
1792 # Extract the first word of "strip", so it can be a program name with args.
1793 set dummy strip; ac_word=$2
1794 echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 if test -n "$ac_ct_STRIP"; then
1800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 test -z "$as_dir" && as_dir=.
1807 for ac_exec_ext in '' $ac_executable_extensions; do
1808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809 ac_cv_prog_ac_ct_STRIP="strip"
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1816 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1820 if test -n "$ac_ct_STRIP"; then
1821 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1822 echo "${ECHO_T}$ac_ct_STRIP" >&6
1824 echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1830 STRIP="$ac_cv_prog_STRIP"
1834 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1836 # We need awk for the "check" target. The system "awk" is bad on
1841 ac_config_headers="$ac_config_headers src/config.h"
1845 # Find a good install program. We prefer a C program (faster),
1846 # so one script is as good as another. But avoid the broken or
1847 # incompatible versions:
1848 # SysV /etc/install, /usr/sbin/install
1849 # SunOS /usr/etc/install
1850 # IRIX /sbin/install
1852 # AmigaOS /C/install, which installs bootblocks on floppy discs
1853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1856 # ./install, which can be erroneously created by make from ./install.sh.
1857 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1858 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1859 if test -z "$INSTALL"; then
1860 if test "${ac_cv_path_install+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 test -z "$as_dir" && as_dir=.
1868 # Account for people who put trailing slashes in PATH elements.
1870 ./ | .// | /cC/* | \
1871 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1874 # OSF1 and SCO ODT 3.0 have their own names for install.
1875 # Don't use installbsd from OSF since it installs stuff as root
1877 for ac_prog in ginstall scoinst install; do
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1880 if test $ac_prog = install &&
1881 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1882 # AIX install. It has an incompatible calling convention.
1884 elif test $ac_prog = install &&
1885 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1886 # program-specific install script used by HP pwplus--don't use.
1889 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1901 if test "${ac_cv_path_install+set}" = set; then
1902 INSTALL=$ac_cv_path_install
1904 # As a last resort, use the slow shell script. We don't cache a
1905 # path for INSTALL within a source directory, because that will
1906 # break other packages using the cache if that directory is
1907 # removed, or if the path is relative.
1908 INSTALL=$ac_install_sh
1911 echo "$as_me:$LINENO: result: $INSTALL" >&5
1912 echo "${ECHO_T}$INSTALL" >&6
1914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1915 # It thinks the first close brace ends the variable substitution.
1916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1918 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1920 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1923 ac_cpp='$CXXCPP $CPPFLAGS'
1924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1927 if test -n "$ac_tool_prefix"; then
1928 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_CXX+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 if test -n "$CXX"; then
1938 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 if test -n "$CXX"; then
1958 echo "$as_me:$LINENO: result: $CXX" >&5
1959 echo "${ECHO_T}$CXX" >&6
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1965 test -n "$CXX" && break
1968 if test -z "$CXX"; then
1970 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1972 # Extract the first word of "$ac_prog", so it can be a program name with args.
1973 set dummy $ac_prog; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 if test -n "$ac_ct_CXX"; then
1980 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989 ac_cv_prog_ac_ct_CXX="$ac_prog"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1999 if test -n "$ac_ct_CXX"; then
2000 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2001 echo "${ECHO_T}$ac_ct_CXX" >&6
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2007 test -n "$ac_ct_CXX" && break
2009 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2015 # Provide some information about the compiler.
2016 echo "$as_me:$LINENO:" \
2017 "checking for C++ compiler version" >&5
2018 ac_compiler=`set X $ac_compile; echo $2`
2019 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2020 (eval $ac_compiler --version </dev/null >&5) 2>&5
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }
2024 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2025 (eval $ac_compiler -v </dev/null >&5) 2>&5
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }
2029 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2030 (eval $ac_compiler -V </dev/null >&5) 2>&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }
2035 cat >conftest.$ac_ext <<_ACEOF
2036 #line $LINENO "configure"
2039 cat confdefs.h >>conftest.$ac_ext
2040 cat >>conftest.$ac_ext <<_ACEOF
2041 /* end confdefs.h. */
2051 ac_clean_files_save=$ac_clean_files
2052 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2053 # Try to create an executable without -o first, disregard a.out.
2054 # It will help us diagnose broken compilers, and finding out an intuition
2056 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2057 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2058 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2059 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2060 (eval $ac_link_default) 2>&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; then
2064 # Find the output, starting from the most likely. This scheme is
2065 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2068 # Be careful to initialize this variable, since it used to be cached.
2069 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2071 # b.out is created by i960 compilers.
2072 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2074 test -f "$ac_file" || continue
2076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2079 # This is the source file.
2082 # We found the default executable, but exeext='' is most
2086 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2087 # FIXME: I believe we export ac_cv_exeext for Libtool,
2088 # but it would be cool to find out if it's true. Does anybody
2089 # maintain Libtool? --akim.
2097 echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2100 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2101 See \`config.log' for more details." >&5
2102 echo "$as_me: error: C++ compiler cannot create executables
2103 See \`config.log' for more details." >&2;}
2104 { (exit 77); exit 77; }; }
2107 ac_exeext=$ac_cv_exeext
2108 echo "$as_me:$LINENO: result: $ac_file" >&5
2109 echo "${ECHO_T}$ac_file" >&6
2111 # Check the compiler produces executables we can run. If not, either
2112 # the compiler is broken, or we cross compile.
2113 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2114 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2115 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2116 # If not cross compiling, check that we can run a simple program.
2117 if test "$cross_compiling" != yes; then
2118 if { ac_try='./$ac_file'
2119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; }; then
2126 if test "$cross_compiling" = maybe; then
2129 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2130 If you meant to cross compile, use \`--host'.
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: cannot run C++ compiled programs.
2133 If you meant to cross compile, use \`--host'.
2134 See \`config.log' for more details." >&2;}
2135 { (exit 1); exit 1; }; }
2139 echo "$as_me:$LINENO: result: yes" >&5
2140 echo "${ECHO_T}yes" >&6
2142 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2143 ac_clean_files=$ac_clean_files_save
2144 # Check the compiler produces executables we can run. If not, either
2145 # the compiler is broken, or we cross compile.
2146 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2147 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2148 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2149 echo "${ECHO_T}$cross_compiling" >&6
2151 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2152 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2154 (eval $ac_link) 2>&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; then
2158 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2159 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2160 # work properly (i.e., refer to `conftest.exe'), while it won't with
2162 for ac_file in conftest.exe conftest conftest.*; do
2163 test -f "$ac_file" || continue
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2166 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2176 See \`config.log' for more details." >&2;}
2177 { (exit 1); exit 1; }; }
2180 rm -f conftest$ac_cv_exeext
2181 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2182 echo "${ECHO_T}$ac_cv_exeext" >&6
2184 rm -f conftest.$ac_ext
2185 EXEEXT=$ac_cv_exeext
2187 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2188 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2189 if test "${ac_cv_objext+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 cat >conftest.$ac_ext <<_ACEOF
2193 #line $LINENO "configure"
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h. */
2208 rm -f conftest.o conftest.obj
2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; then
2214 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2225 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2228 See \`config.log' for more details." >&2;}
2229 { (exit 1); exit 1; }; }
2232 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2234 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2235 echo "${ECHO_T}$ac_cv_objext" >&6
2236 OBJEXT=$ac_cv_objext
2238 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2239 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2240 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 cat >conftest.$ac_ext <<_ACEOF
2244 #line $LINENO "configure"
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); } &&
2268 { ac_try='test -s conftest.$ac_objext'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; }; then
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2281 rm -f conftest.$ac_objext conftest.$ac_ext
2282 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2285 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2286 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2287 GXX=`test $ac_compiler_gnu = yes && echo yes`
2288 ac_test_CXXFLAGS=${CXXFLAGS+set}
2289 ac_save_CXXFLAGS=$CXXFLAGS
2291 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2292 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2293 if test "${ac_cv_prog_cxx_g+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 cat >conftest.$ac_ext <<_ACEOF
2297 #line $LINENO "configure"
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -s conftest.$ac_objext'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; }; then
2324 ac_cv_prog_cxx_g=yes
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2331 rm -f conftest.$ac_objext conftest.$ac_ext
2333 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2334 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2335 if test "$ac_test_CXXFLAGS" = set; then
2336 CXXFLAGS=$ac_save_CXXFLAGS
2337 elif test $ac_cv_prog_cxx_g = yes; then
2338 if test "$GXX" = yes; then
2344 if test "$GXX" = yes; then
2350 for ac_declaration in \
2352 '#include <stdlib.h>' \
2353 'extern "C" void std::exit (int) throw (); using std::exit;' \
2354 'extern "C" void std::exit (int); using std::exit;' \
2355 'extern "C" void exit (int) throw ();' \
2356 'extern "C" void exit (int);' \
2359 cat >conftest.$ac_ext <<_ACEOF
2360 #line $LINENO "configure"
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h. */
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try='test -s conftest.$ac_objext'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2395 rm -f conftest.$ac_objext conftest.$ac_ext
2396 cat >conftest.$ac_ext <<_ACEOF
2397 #line $LINENO "configure"
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2426 echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2430 rm -f conftest.$ac_objext conftest.$ac_ext
2433 if test -n "$ac_declaration"; then
2434 echo '#ifdef __cplusplus' >>confdefs.h
2435 echo $ac_declaration >>confdefs.h
2436 echo '#endif' >>confdefs.h
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444 rm -f .deps 2>/dev/null
2445 mkdir .deps 2>/dev/null
2446 if test -d .deps; then
2449 # MS-DOS does not allow filenames that begin with a dot.
2452 rmdir .deps 2>/dev/null
2455 ac_config_commands="$ac_config_commands depfiles"
2458 am_make=${MAKE-make}
2459 cat > confinc << 'END'
2463 # If we don't find an include directive, just comment out the code.
2464 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2465 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2469 # First try GNU make style include.
2470 echo "include confinc" > confmf
2471 # We grep out `Entering directory' and `Leaving directory'
2472 # messages which can occur if `w' ends up in MAKEFLAGS.
2473 # In particular we don't look at `^make:' because GNU make might
2474 # be invoked under some other name (usually "gmake"), in which
2475 # case it prints its new name instead of `make'.
2476 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2481 # Now try BSD make style include.
2482 if test "$am__include" = "#"; then
2483 echo '.include "confinc"' > confmf
2484 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2485 am__include=.include
2492 echo "$as_me:$LINENO: result: $_am_result" >&5
2493 echo "${ECHO_T}$_am_result" >&6
2494 rm -f confinc confmf
2496 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2497 if test "${enable_dependency_tracking+set}" = set; then
2498 enableval="$enable_dependency_tracking"
2501 if test "x$enable_dependency_tracking" != xno; then
2502 am_depcomp="$ac_aux_dir/depcomp"
2507 if test "x$enable_dependency_tracking" != xno; then
2518 depcc="$CXX" am_compiler_list=
2520 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2521 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2522 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2526 # We make a subdir and do the tests there. Otherwise we can end up
2527 # making bogus files that we don't know about and never remove. For
2528 # instance it was reported that on HP-UX the gcc test will end up
2529 # making a dummy file named `D' -- because `-MD' means `put the output
2532 # Copy depcomp to subdir because otherwise we won't find it if we're
2533 # using a relative directory.
2534 cp "$am_depcomp" conftest.dir
2537 am_cv_CXX_dependencies_compiler_type=none
2538 if test "$am_compiler_list" = ""; then
2539 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2541 for depmode in $am_compiler_list; do
2542 # We need to recreate these files for each test, as the compiler may
2543 # overwrite some of them when testing with obscure command lines.
2544 # This happens at least with the AIX C compiler.
2545 echo '#include "conftest.h"' > conftest.c
2546 echo 'int i;' > conftest.h
2547 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2551 # after this tag, mechanisms are not by side-effect, so they'll
2552 # only be used when explicitly requested
2553 if test "x$enable_dependency_tracking" = xyes; then
2561 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2562 # mode. It turns out that the SunPro C++ compiler does not properly
2563 # handle `-M -o', and we need to detect this.
2564 if depmode=$depmode \
2565 source=conftest.c object=conftest.o \
2566 depfile=conftest.Po tmpdepfile=conftest.TPo \
2567 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2568 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2569 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2570 am_cv_CXX_dependencies_compiler_type=$depmode
2578 am_cv_CXX_dependencies_compiler_type=none
2582 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2583 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2584 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2589 test "x$enable_dependency_tracking" != xno \
2590 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2591 am__fastdepCXX_TRUE=
2592 am__fastdepCXX_FALSE='#'
2594 am__fastdepCXX_TRUE='#'
2595 am__fastdepCXX_FALSE=
2599 # Check whether --enable-shared or --disable-shared was given.
2600 if test "${enable_shared+set}" = set; then
2601 enableval="$enable_shared"
2602 p=${PACKAGE-default}
2604 yes) enable_shared=yes ;;
2605 no) enable_shared=no ;;
2608 # Look at the argument we got. We use all the common list separators.
2609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2610 for pkg in $enableval; do
2611 if test "X$pkg" = "X$p"; then
2621 # Check whether --enable-static or --disable-static was given.
2622 if test "${enable_static+set}" = set; then
2623 enableval="$enable_static"
2624 p=${PACKAGE-default}
2626 yes) enable_static=yes ;;
2627 no) enable_static=no ;;
2630 # Look at the argument we got. We use all the common list separators.
2631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2632 for pkg in $enableval; do
2633 if test "X$pkg" = "X$p"; then
2643 # Check whether --enable-fast-install or --disable-fast-install was given.
2644 if test "${enable_fast_install+set}" = set; then
2645 enableval="$enable_fast_install"
2646 p=${PACKAGE-default}
2648 yes) enable_fast_install=yes ;;
2649 no) enable_fast_install=no ;;
2651 enable_fast_install=no
2652 # Look at the argument we got. We use all the common list separators.
2653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2654 for pkg in $enableval; do
2655 if test "X$pkg" = "X$p"; then
2656 enable_fast_install=yes
2663 enable_fast_install=yes
2665 # Make sure we can run config.sub.
2666 $ac_config_sub sun4 >/dev/null 2>&1 ||
2667 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2668 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2669 { (exit 1); exit 1; }; }
2671 echo "$as_me:$LINENO: checking build system type" >&5
2672 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2673 if test "${ac_cv_build+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 ac_cv_build_alias=$build_alias
2677 test -z "$ac_cv_build_alias" &&
2678 ac_cv_build_alias=`$ac_config_guess`
2679 test -z "$ac_cv_build_alias" &&
2680 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2681 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2682 { (exit 1); exit 1; }; }
2683 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2684 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2685 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2686 { (exit 1); exit 1; }; }
2689 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2690 echo "${ECHO_T}$ac_cv_build" >&6
2692 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2693 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2694 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2697 echo "$as_me:$LINENO: checking host system type" >&5
2698 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2699 if test "${ac_cv_host+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 ac_cv_host_alias=$host_alias
2703 test -z "$ac_cv_host_alias" &&
2704 ac_cv_host_alias=$ac_cv_build_alias
2705 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2706 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2707 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2708 { (exit 1); exit 1; }; }
2711 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2712 echo "${ECHO_T}$ac_cv_host" >&6
2714 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2715 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2716 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2727 echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2729 if test "${ac_cv_prog_CC+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 if test -n "$CC"; then
2753 echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6
2756 echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2761 if test -z "$ac_cv_prog_CC"; then
2763 # Extract the first word of "gcc", so it can be a program name with args.
2764 set dummy gcc; ac_word=$2
2765 echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 if test -n "$ac_ct_CC"; then
2771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 ac_cv_prog_ac_ct_CC="gcc"
2781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2790 if test -n "$ac_ct_CC"; then
2791 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2792 echo "${ECHO_T}$ac_ct_CC" >&6
2794 echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2803 if test -z "$CC"; then
2804 if test -n "$ac_tool_prefix"; then
2805 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2806 set dummy ${ac_tool_prefix}cc; ac_word=$2
2807 echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809 if test "${ac_cv_prog_CC+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 if test -n "$CC"; then
2813 ac_cv_prog_CC="$CC" # Let the user override the test.
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 ac_cv_prog_CC="${ac_tool_prefix}cc"
2823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 if test -n "$CC"; then
2833 echo "$as_me:$LINENO: result: $CC" >&5
2834 echo "${ECHO_T}$CC" >&6
2836 echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6
2841 if test -z "$ac_cv_prog_CC"; then
2843 # Extract the first word of "cc", so it can be a program name with args.
2844 set dummy cc; ac_word=$2
2845 echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 if test -n "$ac_ct_CC"; then
2851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_prog_ac_ct_CC="cc"
2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2870 if test -n "$ac_ct_CC"; then
2871 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2872 echo "${ECHO_T}$ac_ct_CC" >&6
2874 echo "$as_me:$LINENO: result: no" >&5
2875 echo "${ECHO_T}no" >&6
2884 if test -z "$CC"; then
2885 # Extract the first word of "cc", so it can be a program name with args.
2886 set dummy cc; ac_word=$2
2887 echo "$as_me:$LINENO: checking for $ac_word" >&5
2888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2889 if test "${ac_cv_prog_CC+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2904 ac_prog_rejected=yes
2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 if test $ac_prog_rejected = yes; then
2915 # We found a bogon in the path, so make sure we never use it.
2916 set dummy $ac_cv_prog_CC
2918 if test $# != 0; then
2919 # We chose a different compiler from the bogus one.
2920 # However, it has the same basename, so the bogon will be chosen
2921 # first if we set CC to just the basename; use the full file name.
2923 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2929 if test -n "$CC"; then
2930 echo "$as_me:$LINENO: result: $CC" >&5
2931 echo "${ECHO_T}$CC" >&6
2933 echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6
2938 if test -z "$CC"; then
2939 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2944 echo "$as_me:$LINENO: checking for $ac_word" >&5
2945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2946 if test "${ac_cv_prog_CC+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 if test -n "$CC"; then
2970 echo "$as_me:$LINENO: result: $CC" >&5
2971 echo "${ECHO_T}$CC" >&6
2973 echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6
2977 test -n "$CC" && break
2980 if test -z "$CC"; then
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 if test -n "$ac_ct_CC"; then
2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_ac_ct_CC="$ac_prog"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3011 if test -n "$ac_ct_CC"; then
3012 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3013 echo "${ECHO_T}$ac_ct_CC" >&6
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3019 test -n "$ac_ct_CC" && break
3028 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3029 See \`config.log' for more details." >&5
3030 echo "$as_me: error: no acceptable C compiler found in \$PATH
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3034 # Provide some information about the compiler.
3035 echo "$as_me:$LINENO:" \
3036 "checking for C compiler version" >&5
3037 ac_compiler=`set X $ac_compile; echo $2`
3038 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3039 (eval $ac_compiler --version </dev/null >&5) 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3044 (eval $ac_compiler -v </dev/null >&5) 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3048 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3049 (eval $ac_compiler -V </dev/null >&5) 2>&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }
3054 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3055 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3056 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 cat >conftest.$ac_ext <<_ACEOF
3060 #line $LINENO "configure"
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3078 rm -f conftest.$ac_objext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3080 (eval $ac_compile) 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3097 rm -f conftest.$ac_objext conftest.$ac_ext
3098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3101 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3102 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3103 GCC=`test $ac_compiler_gnu = yes && echo yes`
3104 ac_test_CFLAGS=${CFLAGS+set}
3105 ac_save_CFLAGS=$CFLAGS
3107 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3108 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3109 if test "${ac_cv_prog_cc_g+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 cat >conftest.$ac_ext <<_ACEOF
3113 #line $LINENO "configure"
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3128 rm -f conftest.$ac_objext
3129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3130 (eval $ac_compile) 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } &&
3134 { ac_try='test -s conftest.$ac_objext'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3147 rm -f conftest.$ac_objext conftest.$ac_ext
3149 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3150 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3151 if test "$ac_test_CFLAGS" = set; then
3152 CFLAGS=$ac_save_CFLAGS
3153 elif test $ac_cv_prog_cc_g = yes; then
3154 if test "$GCC" = yes; then
3160 if test "$GCC" = yes; then
3166 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3167 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3168 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 ac_cv_prog_cc_stdc=no
3173 cat >conftest.$ac_ext <<_ACEOF
3174 #line $LINENO "configure"
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3182 #include <sys/types.h>
3183 #include <sys/stat.h>
3184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3185 struct buf { int x; };
3186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3187 static char *e (p, i)
3193 static char *f (char * (*g) (char **, int), char **p, ...)
3198 s = g (p, va_arg (v,int));
3202 int test (int i, double x);
3203 struct s1 {int (*f) (int a);};
3204 struct s2 {int (*f) (double a);};
3205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3216 # Don't try gcc -ansi; that turns off useful extensions and
3217 # breaks some systems' header files.
3218 # AIX -qlanglvl=ansi
3219 # Ultrix and OSF/1 -std1
3220 # HP-UX 10.20 and later -Ae
3221 # HP-UX older versions -Aa -D_HPUX_SOURCE
3222 # SVR4 -Xc -D__EXTENSIONS__
3223 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3225 CC="$ac_save_CC $ac_arg"
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_cv_prog_cc_stdc=$ac_arg
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3245 rm -f conftest.$ac_objext
3247 rm -f conftest.$ac_ext conftest.$ac_objext
3252 case "x$ac_cv_prog_cc_stdc" in
3254 echo "$as_me:$LINENO: result: none needed" >&5
3255 echo "${ECHO_T}none needed" >&6 ;;
3257 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3258 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3259 CC="$CC $ac_cv_prog_cc_stdc" ;;
3262 # Some people use a C++ compiler to compile C. Since we use `exit',
3263 # in C++ we need to declare it. In case someone uses the same compiler
3264 # for both compiling C and C++ we need to have the C++ compiler decide
3265 # the declaration of exit, since it's the most demanding environment.
3266 cat >conftest.$ac_ext <<_ACEOF
3271 rm -f conftest.$ac_objext
3272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273 (eval $ac_compile) 2>&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } &&
3277 { ac_try='test -s conftest.$ac_objext'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
3283 for ac_declaration in \
3285 '#include <stdlib.h>' \
3286 'extern "C" void std::exit (int) throw (); using std::exit;' \
3287 'extern "C" void std::exit (int); using std::exit;' \
3288 'extern "C" void exit (int) throw ();' \
3289 'extern "C" void exit (int);' \
3292 cat >conftest.$ac_ext <<_ACEOF
3293 #line $LINENO "configure"
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3309 rm -f conftest.$ac_objext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3311 (eval $ac_compile) 2>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
3315 { ac_try='test -s conftest.$ac_objext'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3328 rm -f conftest.$ac_objext conftest.$ac_ext
3329 cat >conftest.$ac_ext <<_ACEOF
3330 #line $LINENO "configure"
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3345 rm -f conftest.$ac_objext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3363 rm -f conftest.$ac_objext conftest.$ac_ext
3366 if test -n "$ac_declaration"; then
3367 echo '#ifdef __cplusplus' >>confdefs.h
3368 echo $ac_declaration >>confdefs.h
3369 echo '#endif' >>confdefs.h
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3377 rm -f conftest.$ac_objext conftest.$ac_ext
3379 ac_cpp='$CPP $CPPFLAGS'
3380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384 depcc="$CC" am_compiler_list=
3386 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3387 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3388 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3392 # We make a subdir and do the tests there. Otherwise we can end up
3393 # making bogus files that we don't know about and never remove. For
3394 # instance it was reported that on HP-UX the gcc test will end up
3395 # making a dummy file named `D' -- because `-MD' means `put the output
3398 # Copy depcomp to subdir because otherwise we won't find it if we're
3399 # using a relative directory.
3400 cp "$am_depcomp" conftest.dir
3403 am_cv_CC_dependencies_compiler_type=none
3404 if test "$am_compiler_list" = ""; then
3405 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3407 for depmode in $am_compiler_list; do
3408 # We need to recreate these files for each test, as the compiler may
3409 # overwrite some of them when testing with obscure command lines.
3410 # This happens at least with the AIX C compiler.
3411 echo '#include "conftest.h"' > conftest.c
3412 echo 'int i;' > conftest.h
3413 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3417 # after this tag, mechanisms are not by side-effect, so they'll
3418 # only be used when explicitly requested
3419 if test "x$enable_dependency_tracking" = xyes; then
3427 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3428 # mode. It turns out that the SunPro C++ compiler does not properly
3429 # handle `-M -o', and we need to detect this.
3430 if depmode=$depmode \
3431 source=conftest.c object=conftest.o \
3432 depfile=conftest.Po tmpdepfile=conftest.TPo \
3433 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3434 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3435 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3436 am_cv_CC_dependencies_compiler_type=$depmode
3444 am_cv_CC_dependencies_compiler_type=none
3448 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3449 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3450 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3455 test "x$enable_dependency_tracking" != xno \
3456 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3458 am__fastdepCC_FALSE='#'
3460 am__fastdepCC_TRUE='#'
3461 am__fastdepCC_FALSE=
3465 # Find the correct PATH separator. Usually this is `:', but
3466 # DJGPP uses `;' like DOS.
3467 if test "X${PATH_SEPARATOR+set}" != Xset; then
3468 UNAME=${UNAME-`uname 2>/dev/null`}
3470 *-DOS) lt_cv_sys_path_separator=';' ;;
3471 *) lt_cv_sys_path_separator=':' ;;
3473 PATH_SEPARATOR=$lt_cv_sys_path_separator
3477 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3478 if test "${with_gnu_ld+set}" = set; then
3479 withval="$with_gnu_ld"
3480 test "$withval" = no || with_gnu_ld=yes
3485 if test "$GCC" = yes; then
3486 # Check if gcc -print-prog-name=ld gives a path.
3487 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3488 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3491 # gcc leaves a trailing carriage return which upsets mingw
3492 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3494 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3497 # Accept absolute paths.
3498 [\\/]* | [A-Za-z]:[\\/]*)
3499 re_direlt='/[^/][^/]*/\.\./'
3500 # Canonicalize the path of ld
3501 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3502 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3503 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3505 test -z "$LD" && LD="$ac_prog"
3508 # If it fails, then pretend we aren't using GCC.
3512 # If it is relative, then search for the first ld in PATH.
3516 elif test "$with_gnu_ld" = yes; then
3517 echo "$as_me:$LINENO: checking for GNU ld" >&5
3518 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3520 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3521 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3523 if test "${lt_cv_path_LD+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 if test -z "$LD"; then
3527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3528 for ac_dir in $PATH; do
3529 test -z "$ac_dir" && ac_dir=.
3530 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3531 lt_cv_path_LD="$ac_dir/$ac_prog"
3532 # Check to see if the program is GNU ld. I'd rather use --version,
3533 # but apparently some GNU ld's only accept -v.
3534 # Break only if it was the GNU/non-GNU ld that we prefer.
3535 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3536 test "$with_gnu_ld" != no && break
3538 test "$with_gnu_ld" != yes && break
3544 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3549 if test -n "$LD"; then
3550 echo "$as_me:$LINENO: result: $LD" >&5
3551 echo "${ECHO_T}$LD" >&6
3553 echo "$as_me:$LINENO: result: no" >&5
3554 echo "${ECHO_T}no" >&6
3556 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3557 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3558 { (exit 1); exit 1; }; }
3559 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3560 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3561 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3565 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3566 lt_cv_prog_gnu_ld=yes
3568 lt_cv_prog_gnu_ld=no
3571 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3572 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3573 with_gnu_ld=$lt_cv_prog_gnu_ld
3576 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3577 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3578 if test "${lt_cv_ld_reload_flag+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 lt_cv_ld_reload_flag='-r'
3583 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3584 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3585 reload_flag=$lt_cv_ld_reload_flag
3586 test -n "$reload_flag" && reload_flag=" $reload_flag"
3588 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3589 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3590 if test "${lt_cv_path_NM+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 if test -n "$NM"; then
3594 # Let the user override the test.
3597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3598 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3599 test -z "$ac_dir" && ac_dir=.
3600 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3601 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3602 # Check to see if the nm accepts a BSD-compat flag.
3603 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3604 # nm: unknown option "B" ignored
3605 # Tru64's nm complains that /dev/null is an invalid object file
3606 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3607 lt_cv_path_NM="$tmp_nm -B"
3609 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3610 lt_cv_path_NM="$tmp_nm -p"
3613 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3614 continue # so that we can try to find one that supports BSD flags
3619 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3624 echo "$as_me:$LINENO: result: $NM" >&5
3625 echo "${ECHO_T}$NM" >&6
3627 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3628 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3629 if test "${lt_cv_path_SED+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 # Loop through the user's path and test for sed and gsed.
3633 # Then use that list of sed's as ones to test for truncation.
3634 as_executable_p="test -f"
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 test -z "$as_dir" && as_dir=.
3640 for ac_prog in sed gsed; do
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3643 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3649 # Create a temporary directory, and hook for its removal unless debugging.
3652 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3653 trap '{ (exit 1); exit 1; }' 1 2 13 15
3656 # Create a (secure) tmp directory for tmp files.
3659 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3660 test -n "$tmp" && test -d "$tmp"
3663 tmp=$TMPDIR/sed$$-$RANDOM
3664 (umask 077 && mkdir $tmp)
3667 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3668 { (exit 1); exit 1; }
3672 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3673 # along with /bin/sed that truncates output.
3674 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3675 test ! -f ${_sed} && break
3676 cat /dev/null > "$tmp/sed.in"
3678 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3679 # Check for GNU sed and select it if it is found.
3680 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3681 lt_cv_path_SED=${_sed}
3685 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3686 mv "$tmp/sed.tmp" "$tmp/sed.in"
3687 cp "$tmp/sed.in" "$tmp/sed.nl"
3688 echo >>"$tmp/sed.nl"
3689 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3690 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3691 # 40000 chars as input seems more than enough
3692 test $_count -gt 10 && break
3693 _count=`expr $_count + 1`
3694 if test $_count -gt $_max; then
3696 lt_cv_path_SED=$_sed
3704 if test "X$SED" != "X"; then
3709 echo "$as_me:$LINENO: result: $SED" >&5
3710 echo "${ECHO_T}$SED" >&6
3712 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3713 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3715 if test "$LN_S" = "ln -s"; then
3716 echo "$as_me:$LINENO: result: yes" >&5
3717 echo "${ECHO_T}yes" >&6
3719 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3720 echo "${ECHO_T}no, using $LN_S" >&6
3723 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3724 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3725 if test "${lt_cv_deplibs_check_method+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 lt_cv_file_magic_cmd='$MAGIC_CMD'
3729 lt_cv_file_magic_test_file=
3730 lt_cv_deplibs_check_method='unknown'
3731 # Need to set the preceding variable on all platforms that support
3732 # interlibrary dependencies.
3733 # 'none' -- dependencies not supported.
3734 # `unknown' -- same as none, but documents that we really don't know.
3735 # 'pass_all' -- all dependencies passed with no checks.
3736 # 'test_compile' -- check by making test program.
3737 # 'file_magic [[regex]]' -- check by looking for files in library path
3738 # which responds to the $file_magic_cmd with a given egrep regex.
3739 # If you have `file' or equivalent on your system and you're not sure
3740 # whether `pass_all' will *always* work, you probably want this one.
3744 lt_cv_deplibs_check_method=pass_all
3748 lt_cv_deplibs_check_method=pass_all
3752 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3753 lt_cv_file_magic_cmd='/usr/bin/file -L'
3754 lt_cv_file_magic_test_file=/shlib/libc.so
3757 cygwin* | mingw* | pw32*)
3758 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3759 lt_cv_file_magic_cmd='$OBJDUMP -f'
3762 darwin* | rhapsody*)
3763 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3764 lt_cv_file_magic_cmd='/usr/bin/file -L'
3766 rhapsody* | darwin1.[012])
3767 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3770 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3776 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3779 # Not sure whether the presence of OpenBSD here was a mistake.
3780 # Let's accept both of them until this is cleared up.
3781 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3782 lt_cv_file_magic_cmd=/usr/bin/file
3783 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3787 lt_cv_deplibs_check_method=pass_all
3792 lt_cv_deplibs_check_method=pass_all
3796 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3797 lt_cv_file_magic_cmd=/usr/bin/file
3798 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3801 irix5* | irix6* | nonstopux*)
3803 irix5* | nonstopux*)
3804 # this will be overridden with pass_all, but let us keep it just in case
3805 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3809 *-32|*"-32 ") libmagic=32-bit;;
3810 *-n32|*"-n32 ") libmagic=N32;;
3811 *-64|*"-64 ") libmagic=64-bit;;
3812 *) libmagic=never-match;;
3814 # this will be overridden with pass_all, but let us keep it just in case
3815 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3818 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3819 lt_cv_deplibs_check_method=pass_all
3822 # This must be Linux ELF.
3825 alpha* | hppa* | i*86 | m68* | mips | mipsel | powerpc* | s390* | sparc* | ia64* | x86_64*)
3826 lt_cv_deplibs_check_method=pass_all ;;
3828 # glibc up to 2.1.1 does not perform some relocations on ARM
3829 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3831 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3835 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3836 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3838 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3844 lt_cv_file_magic_cmd=/usr/bin/file
3845 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3849 lt_cv_file_magic_cmd=/usr/bin/file
3850 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3851 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3852 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3854 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3858 osf3* | osf4* | osf5*)
3859 # this will be overridden with pass_all, but let us keep it just in case
3860 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3861 lt_cv_file_magic_test_file=/shlib/libc.so
3862 lt_cv_deplibs_check_method=pass_all
3866 lt_cv_deplibs_check_method=pass_all
3870 lt_cv_deplibs_check_method=pass_all
3871 lt_cv_file_magic_test_file=/lib/libc.so
3874 sysv5uw[78]* | sysv4*uw2*)
3875 lt_cv_deplibs_check_method=pass_all
3878 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3879 case $host_vendor in
3881 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]'
3882 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3885 lt_cv_deplibs_check_method=pass_all
3888 lt_cv_file_magic_cmd='/bin/file'
3889 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3892 lt_cv_file_magic_cmd='/bin/file'
3893 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3894 lt_cv_file_magic_test_file=/lib/libc.so
3897 lt_cv_deplibs_check_method=pass_all
3904 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3905 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3906 file_magic_cmd=$lt_cv_file_magic_cmd
3907 deplibs_check_method=$lt_cv_deplibs_check_method
3916 # Check for command to grab the raw symbol name followed by C symbol from nm.
3917 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3918 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3919 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 # These are sane defaults that work on at least a few old systems.
3924 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3926 # Character class describing NM global symbol codes.
3927 symcode='[BCDEGRST]'
3929 # Regexp to match symbols that can be accessed directly from C.
3930 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3932 # Transform the above into a raw symbol and a C symbol.
3933 symxfrm='\1 \2\3 \3'
3935 # Transform an extracted symbol line into a proper C declaration
3936 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3938 # Transform an extracted symbol line into symbol name and symbol address
3939 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'"
3941 # Define system-specific variables.
3946 cygwin* | mingw* | pw32*)
3947 symcode='[ABCDGISTW]'
3949 hpux*) # Its linker distinguishes data from code symbols
3950 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3951 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'"
3954 symcode='[BCDEGRST]'
3957 symcode='[BCDEGQRST]'
3967 # Handle CRLF in mingw tool chain
3971 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3975 # If we're using GNU nm, then use its standard symbol codes.
3976 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3977 symcode='[ABCDGISTW]'
3980 # Try without a prefix undercore, then with it.
3981 for ac_symprfx in "" "_"; do
3983 # Write the raw and C identifiers.
3984 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3986 # Check to see that the pipe works correctly.
3989 cat > conftest.$ac_ext <<EOF
3994 void nm_test_func(){}
3998 int main(){nm_test_var='a';nm_test_func();return(0);}
4001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4002 (eval $ac_compile) 2>&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; then
4006 # Now try to grab the symbols.
4008 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4009 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && test -s "$nlist"; then
4013 # Try sorting and uniquifying the output.
4014 if sort "$nlist" | uniq > "$nlist"T; then
4015 mv -f "$nlist"T "$nlist"
4020 # Make sure that we snagged all the symbols we need.
4021 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4022 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4023 cat <<EOF > conftest.$ac_ext
4029 # Now generate the symbol file.
4030 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4032 cat <<EOF >> conftest.$ac_ext
4033 #if defined (__STDC__) && __STDC__
4034 # define lt_ptr void *
4036 # define lt_ptr char *
4040 /* The mapping between symbol names and symbols. */
4045 lt_preloaded_symbols[] =
4048 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4049 cat <<\EOF >> conftest.$ac_ext
4057 # Now try linking the two files.
4058 mv conftest.$ac_objext conftstm.$ac_objext
4060 save_CFLAGS="$CFLAGS"
4061 LIBS="conftstm.$ac_objext"
4062 CFLAGS="$CFLAGS$no_builtin_flag"
4063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4064 (eval $ac_link) 2>&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } && test -s conftest$ac_exeext; then
4071 CFLAGS="$save_CFLAGS"
4073 echo "cannot find nm_test_func in $nlist" >&5
4076 echo "cannot find nm_test_var in $nlist" >&5
4079 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4082 echo "$progname: failed program was:" >&5
4083 cat conftest.$ac_ext >&5
4085 rm -f conftest* conftst*
4087 # Do not use the global_symbol_pipe unless it works.
4088 if test "$pipe_works" = yes; then
4091 lt_cv_sys_global_symbol_pipe=
4097 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4098 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4099 global_symbol_to_cdecl=
4100 global_symbol_to_c_name_address=
4102 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4103 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4105 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4107 echo "$as_me:$LINENO: result: failed" >&5
4108 echo "${ECHO_T}failed" >&6
4110 echo "$as_me:$LINENO: result: ok" >&5
4111 echo "${ECHO_T}ok" >&6
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4120 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4121 # On Suns, sometimes $CPP names a directory.
4122 if test -n "$CPP" && test -d "$CPP"; then
4125 if test -z "$CPP"; then
4126 if test "${ac_cv_prog_CPP+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 # Double quotes because CPP needs to be expanded
4130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4133 for ac_c_preproc_warn_flag in '' yes
4135 # Use a header file that comes with gcc, so configuring glibc
4136 # with a fresh cross-compiler works.
4137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 # <limits.h> exists even on freestanding compilers.
4139 # On the NeXT, cc -E runs the code through the compiler's parser,
4140 # not just through cpp. "Syntax error" is here to catch this case.
4141 cat >conftest.$ac_ext <<_ACEOF
4142 #line $LINENO "configure"
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4149 # include <limits.h>
4151 # include <assert.h>
4155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4158 grep -v '^ *+' conftest.er1 >conftest.err
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } >/dev/null; then
4163 if test -s conftest.err; then
4164 ac_cpp_err=$ac_c_preproc_warn_flag
4171 if test -z "$ac_cpp_err"; then
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4177 # Broken: fails on valid input.
4180 rm -f conftest.err conftest.$ac_ext
4182 # OK, works on sane cases. Now check whether non-existent headers
4183 # can be detected and how.
4184 cat >conftest.$ac_ext <<_ACEOF
4185 #line $LINENO "configure"
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4191 #include <ac_nonexistent.h>
4193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4196 grep -v '^ *+' conftest.er1 >conftest.err
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } >/dev/null; then
4201 if test -s conftest.err; then
4202 ac_cpp_err=$ac_c_preproc_warn_flag
4209 if test -z "$ac_cpp_err"; then
4210 # Broken: success on invalid input.
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 # Passes both tests.
4220 rm -f conftest.err conftest.$ac_ext
4223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224 rm -f conftest.err conftest.$ac_ext
4225 if $ac_preproc_ok; then
4237 echo "$as_me:$LINENO: result: $CPP" >&5
4238 echo "${ECHO_T}$CPP" >&6
4240 for ac_c_preproc_warn_flag in '' yes
4242 # Use a header file that comes with gcc, so configuring glibc
4243 # with a fresh cross-compiler works.
4244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4245 # <limits.h> exists even on freestanding compilers.
4246 # On the NeXT, cc -E runs the code through the compiler's parser,
4247 # not just through cpp. "Syntax error" is here to catch this case.
4248 cat >conftest.$ac_ext <<_ACEOF
4249 #line $LINENO "configure"
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4256 # include <limits.h>
4258 # include <assert.h>
4262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4265 grep -v '^ *+' conftest.er1 >conftest.err
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } >/dev/null; then
4270 if test -s conftest.err; then
4271 ac_cpp_err=$ac_c_preproc_warn_flag
4278 if test -z "$ac_cpp_err"; then
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 # Broken: fails on valid input.
4287 rm -f conftest.err conftest.$ac_ext
4289 # OK, works on sane cases. Now check whether non-existent headers
4290 # can be detected and how.
4291 cat >conftest.$ac_ext <<_ACEOF
4292 #line $LINENO "configure"
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 #include <ac_nonexistent.h>
4300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4303 grep -v '^ *+' conftest.er1 >conftest.err
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } >/dev/null; then
4308 if test -s conftest.err; then
4309 ac_cpp_err=$ac_c_preproc_warn_flag
4316 if test -z "$ac_cpp_err"; then
4317 # Broken: success on invalid input.
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4323 # Passes both tests.
4327 rm -f conftest.err conftest.$ac_ext
4330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4331 rm -f conftest.err conftest.$ac_ext
4332 if $ac_preproc_ok; then
4335 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4336 See \`config.log' for more details." >&5
4337 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4338 See \`config.log' for more details." >&2;}
4339 { (exit 1); exit 1; }; }
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349 echo "$as_me:$LINENO: checking for egrep" >&5
4350 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4351 if test "${ac_cv_prog_egrep+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4355 then ac_cv_prog_egrep='grep -E'
4356 else ac_cv_prog_egrep='egrep'
4359 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4360 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4361 EGREP=$ac_cv_prog_egrep
4364 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4366 if test "${ac_cv_header_stdc+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 cat >conftest.$ac_ext <<_ACEOF
4370 #line $LINENO "configure"
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4389 rm -f conftest.$ac_objext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try='test -s conftest.$ac_objext'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 ac_cv_header_stdc=yes
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 ac_cv_header_stdc=no
4408 rm -f conftest.$ac_objext conftest.$ac_ext
4410 if test $ac_cv_header_stdc = yes; then
4411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4412 cat >conftest.$ac_ext <<_ACEOF
4413 #line $LINENO "configure"
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "memchr" >/dev/null 2>&1; then
4426 ac_cv_header_stdc=no
4432 if test $ac_cv_header_stdc = yes; then
4433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4434 cat >conftest.$ac_ext <<_ACEOF
4435 #line $LINENO "configure"
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4445 $EGREP "free" >/dev/null 2>&1; then
4448 ac_cv_header_stdc=no
4454 if test $ac_cv_header_stdc = yes; then
4455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4456 if test "$cross_compiling" = yes; then
4459 cat >conftest.$ac_ext <<_ACEOF
4460 #line $LINENO "configure"
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4467 #if ((' ' & 0x0FF) == 0x020)
4468 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4469 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4471 # define ISLOWER(c) \
4472 (('a' <= (c) && (c) <= 'i') \
4473 || ('j' <= (c) && (c) <= 'r') \
4474 || ('s' <= (c) && (c) <= 'z'))
4475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4483 for (i = 0; i < 256; i++)
4484 if (XOR (islower (i), ISLOWER (i))
4485 || toupper (i) != TOUPPER (i))
4490 rm -f conftest$ac_exeext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4503 echo "$as_me: program exited with status $ac_status" >&5
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_cv_header_stdc=no
4510 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4514 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4515 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4516 if test $ac_cv_header_stdc = yes; then
4518 cat >>confdefs.h <<\_ACEOF
4519 #define STDC_HEADERS 1
4524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4534 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4535 inttypes.h stdint.h unistd.h
4537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4538 echo "$as_me:$LINENO: checking for $ac_header" >&5
4539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 cat >conftest.$ac_ext <<_ACEOF
4544 #line $LINENO "configure"
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 $ac_includes_default
4552 #include <$ac_header>
4554 rm -f conftest.$ac_objext
4555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556 (eval $ac_compile) 2>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try='test -s conftest.$ac_objext'
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; }; then
4566 eval "$as_ac_Header=yes"
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4571 eval "$as_ac_Header=no"
4573 rm -f conftest.$ac_objext conftest.$ac_ext
4575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4578 cat >>confdefs.h <<_ACEOF
4579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4588 for ac_header in dlfcn.h
4590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4592 echo "$as_me:$LINENO: checking for $ac_header" >&5
4593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4600 # Is the header compilable?
4601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4603 cat >conftest.$ac_ext <<_ACEOF
4604 #line $LINENO "configure"
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 $ac_includes_default
4611 #include <$ac_header>
4613 rm -f conftest.$ac_objext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try='test -s conftest.$ac_objext'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4625 ac_header_compiler=yes
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 ac_header_compiler=no
4632 rm -f conftest.$ac_objext conftest.$ac_ext
4633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4634 echo "${ECHO_T}$ac_header_compiler" >&6
4636 # Is the header present?
4637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4639 cat >conftest.$ac_ext <<_ACEOF
4640 #line $LINENO "configure"
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 #include <$ac_header>
4648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4651 grep -v '^ *+' conftest.er1 >conftest.err
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } >/dev/null; then
4656 if test -s conftest.err; then
4657 ac_cpp_err=$ac_c_preproc_warn_flag
4664 if test -z "$ac_cpp_err"; then
4665 ac_header_preproc=yes
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4670 ac_header_preproc=no
4672 rm -f conftest.err conftest.$ac_ext
4673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4674 echo "${ECHO_T}$ac_header_preproc" >&6
4676 # So? What about this header?
4677 case $ac_header_compiler:$ac_header_preproc in
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4685 ## ------------------------------------ ##
4686 ## Report this to bug-autoconf@gnu.org. ##
4687 ## ------------------------------------ ##
4690 sed "s/^/$as_me: WARNING: /" >&2
4693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4701 ## ------------------------------------ ##
4702 ## Report this to bug-autoconf@gnu.org. ##
4703 ## ------------------------------------ ##
4706 sed "s/^/$as_me: WARNING: /" >&2
4709 echo "$as_me:$LINENO: checking for $ac_header" >&5
4710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 eval "$as_ac_Header=$ac_header_preproc"
4716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4721 cat >>confdefs.h <<_ACEOF
4722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4734 # Only perform the check for file, if the check method requires it
4735 case $deplibs_check_method in
4737 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4738 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4739 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4740 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4748 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4751 ac_save_MAGIC_CMD="$MAGIC_CMD"
4752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4753 ac_dummy="/usr/bin:$PATH"
4754 for ac_dir in $ac_dummy; do
4755 test -z "$ac_dir" && ac_dir=.
4756 if test -f $ac_dir/${ac_tool_prefix}file; then
4757 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4758 if test -n "$file_magic_test_file"; then
4759 case $deplibs_check_method in
4761 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4762 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4763 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4764 egrep "$file_magic_regex" > /dev/null; then
4769 *** Warning: the command libtool uses to detect shared libraries,
4770 *** $file_magic_cmd, produces output that libtool cannot recognize.
4771 *** The result is that libtool may fail to recognize shared libraries
4772 *** as such. This will affect the creation of libtool libraries that
4773 *** depend on shared libraries, but programs linked with such libtool
4774 *** libraries will work regardless of this problem. Nevertheless, you
4775 *** may want to report the problem to your system manager and/or to
4776 *** bug-libtool@gnu.org
4786 MAGIC_CMD="$ac_save_MAGIC_CMD"
4791 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4792 if test -n "$MAGIC_CMD"; then
4793 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4794 echo "${ECHO_T}$MAGIC_CMD" >&6
4796 echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6
4800 if test -z "$lt_cv_path_MAGIC_CMD"; then
4801 if test -n "$ac_tool_prefix"; then
4802 echo "$as_me:$LINENO: checking for file" >&5
4803 echo $ECHO_N "checking for file... $ECHO_C" >&6
4804 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4812 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4815 ac_save_MAGIC_CMD="$MAGIC_CMD"
4816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4817 ac_dummy="/usr/bin:$PATH"
4818 for ac_dir in $ac_dummy; do
4819 test -z "$ac_dir" && ac_dir=.
4820 if test -f $ac_dir/file; then
4821 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4822 if test -n "$file_magic_test_file"; then
4823 case $deplibs_check_method in
4825 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4826 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4827 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4828 egrep "$file_magic_regex" > /dev/null; then
4833 *** Warning: the command libtool uses to detect shared libraries,
4834 *** $file_magic_cmd, produces output that libtool cannot recognize.
4835 *** The result is that libtool may fail to recognize shared libraries
4836 *** as such. This will affect the creation of libtool libraries that
4837 *** depend on shared libraries, but programs linked with such libtool
4838 *** libraries will work regardless of this problem. Nevertheless, you
4839 *** may want to report the problem to your system manager and/or to
4840 *** bug-libtool@gnu.org
4850 MAGIC_CMD="$ac_save_MAGIC_CMD"
4855 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4856 if test -n "$MAGIC_CMD"; then
4857 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4858 echo "${ECHO_T}$MAGIC_CMD" >&6
4860 echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6
4873 if test -n "$ac_tool_prefix"; then
4874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4875 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4876 echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878 if test "${ac_cv_prog_RANLIB+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 if test -n "$RANLIB"; then
4882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 RANLIB=$ac_cv_prog_RANLIB
4901 if test -n "$RANLIB"; then
4902 echo "$as_me:$LINENO: result: $RANLIB" >&5
4903 echo "${ECHO_T}$RANLIB" >&6
4905 echo "$as_me:$LINENO: result: no" >&5
4906 echo "${ECHO_T}no" >&6
4910 if test -z "$ac_cv_prog_RANLIB"; then
4911 ac_ct_RANLIB=$RANLIB
4912 # Extract the first word of "ranlib", so it can be a program name with args.
4913 set dummy ranlib; ac_word=$2
4914 echo "$as_me:$LINENO: checking for $ac_word" >&5
4915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4916 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 if test -n "$ac_ct_RANLIB"; then
4920 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_ac_ct_RANLIB="ranlib"
4930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4939 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4940 if test -n "$ac_ct_RANLIB"; then
4941 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4942 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4944 echo "$as_me:$LINENO: result: no" >&5
4945 echo "${ECHO_T}no" >&6
4948 RANLIB=$ac_ct_RANLIB
4950 RANLIB="$ac_cv_prog_RANLIB"
4953 if test -n "$ac_tool_prefix"; then
4954 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4955 set dummy ${ac_tool_prefix}strip; ac_word=$2
4956 echo "$as_me:$LINENO: checking for $ac_word" >&5
4957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958 if test "${ac_cv_prog_STRIP+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 if test -n "$STRIP"; then
4962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 STRIP=$ac_cv_prog_STRIP
4981 if test -n "$STRIP"; then
4982 echo "$as_me:$LINENO: result: $STRIP" >&5
4983 echo "${ECHO_T}$STRIP" >&6
4985 echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6
4990 if test -z "$ac_cv_prog_STRIP"; then
4992 # Extract the first word of "strip", so it can be a program name with args.
4993 set dummy strip; ac_word=$2
4994 echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4996 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 if test -n "$ac_ct_STRIP"; then
5000 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_prog_ac_ct_STRIP="strip"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5019 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5020 if test -n "$ac_ct_STRIP"; then
5021 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5022 echo "${ECHO_T}$ac_ct_STRIP" >&6
5024 echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6
5030 STRIP="$ac_cv_prog_STRIP"
5037 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5038 if test "${enable_libtool_lock+set}" = set; then
5039 enableval="$enable_libtool_lock"
5042 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5044 # Some flags need to be propagated to the compiler or linker for good
5048 # Find out which ABI we are using.
5049 echo '#line 5049 "configure"' > conftest.$ac_ext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051 (eval $ac_compile) 2>&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; then
5055 case `/usr/bin/file conftest.$ac_objext` in
5071 # Test if the compiler is 64bit
5072 echo 'int i;' > conftest.$ac_ext
5073 lt_cv_cc_64bit_output=no
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; then
5079 case `/usr/bin/file conftest.$ac_objext` in
5081 lt_cv_cc_64bit_output=yes
5089 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5090 SAVE_CFLAGS="$CFLAGS"
5091 CFLAGS="$CFLAGS -belf"
5092 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5093 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5094 if test "${lt_cv_cc_needs_belf+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105 cat >conftest.$ac_ext <<_ACEOF
5106 #line $LINENO "configure"
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5121 rm -f conftest.$ac_objext conftest$ac_exeext
5122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123 (eval $ac_link) 2>&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } &&
5127 { ac_try='test -s conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 lt_cv_cc_needs_belf=yes
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5138 lt_cv_cc_needs_belf=no
5140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5142 ac_cpp='$CPP $CPPFLAGS'
5143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5148 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5149 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5150 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5151 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5152 CFLAGS="$SAVE_CFLAGS"
5159 # Sed substitution that helps us do robust quoting. It backslashifies
5160 # metacharacters that are still active within double-quoted strings.
5161 Xsed='sed -e s/^X//'
5162 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5164 # Same as above, but do not quote variable references.
5165 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5167 # Sed substitution to delay expansion of an escaped shell variable in a
5168 # double_quote_subst'ed string.
5169 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5175 default_ofile=libtool
5176 can_build_shared=yes
5178 # All known linkers require a `.a' archive for static linking (except M$VC,
5179 # which needs '.lib').
5181 ltmain="$ac_aux_dir/ltmain.sh"
5182 ofile="$default_ofile"
5183 with_gnu_ld="$lt_cv_prog_gnu_ld"
5184 need_locks="$enable_libtool_lock"
5187 old_CFLAGS="$CFLAGS"
5189 # Set sane defaults for various variables
5190 test -z "$AR" && AR=ar
5191 test -z "$AR_FLAGS" && AR_FLAGS=cru
5192 test -z "$AS" && AS=as
5193 test -z "$CC" && CC=cc
5194 test -z "$DLLTOOL" && DLLTOOL=dlltool
5195 test -z "$LD" && LD=ld
5196 test -z "$LN_S" && LN_S="ln -s"
5197 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5198 test -z "$NM" && NM=nm
5199 test -z "$OBJDUMP" && OBJDUMP=objdump
5200 test -z "$RANLIB" && RANLIB=:
5201 test -z "$STRIP" && STRIP=:
5202 test -z "$ac_objext" && ac_objext=o
5204 if test x"$host" != x"$build"; then
5205 ac_tool_prefix=${host_alias}-
5212 # AIX sometimes has problems with the GCC collect2 program. For some
5213 # reason, if we set the COLLECT_NAMES environment variable, the problems
5214 # vanish in a puff of smoke.
5215 if test "X${COLLECT_NAMES+set}" != Xset; then
5217 export COLLECT_NAMES
5222 # Determine commands to create old-style static archives.
5223 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5224 old_postinstall_cmds='chmod 644 $oldlib'
5225 old_postuninstall_cmds=
5227 if test -n "$RANLIB"; then
5230 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5233 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5236 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5239 # Allow CC to be a program name with arguments.
5243 echo "$as_me:$LINENO: checking for objdir" >&5
5244 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5245 rm -f .libs 2>/dev/null
5246 mkdir .libs 2>/dev/null
5247 if test -d .libs; then
5250 # MS-DOS does not allow filenames that begin with a dot.
5253 rmdir .libs 2>/dev/null
5254 echo "$as_me:$LINENO: result: $objdir" >&5
5255 echo "${ECHO_T}$objdir" >&6
5259 # Check whether --with-pic or --without-pic was given.
5260 if test "${with_pic+set}" = set; then
5266 test -z "$pic_mode" && pic_mode=default
5268 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5269 # in isolation, and that seeing it set (from the cache) indicates that
5270 # the associated values are set (in the cache) correctly too.
5271 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5272 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5273 if test "${lt_cv_prog_cc_pic+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 lt_cv_prog_cc_shlib=
5279 lt_cv_prog_cc_static=
5280 lt_cv_prog_cc_no_builtin=
5281 lt_cv_prog_cc_can_build_shared=$can_build_shared
5283 if test "$GCC" = yes; then
5284 lt_cv_prog_cc_wl='-Wl,'
5285 lt_cv_prog_cc_static='-static'
5289 # Below there is a dirty hack to force normal static linking with -ldl
5290 # The problem is because libdl dynamically linked with both libc and
5291 # libC (AIX C++ library), which obviously doesn't included in libraries
5292 # list by gcc. This cause undefined symbols with -static flags.
5293 # This hack allows C programs to be linked with "-static -ldl", but
5294 # not sure about C++ programs.
5295 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5298 # FIXME: we need at least 68020 code to build shared libraries, but
5299 # adding the `-m68020' flag to GCC prevents building anything better,
5301 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5304 # PIC is the default for these OSes.
5306 darwin* | rhapsody*)
5307 # PIC is the default on this platform
5308 # Common symbols not allowed in MH_DYLIB files
5309 lt_cv_prog_cc_pic='-fno-common'
5311 cygwin* | mingw* | pw32* | os2*)
5312 # This hack is so that the source file can tell whether it is being
5313 # built for inclusion in a dll (and should export symbols for example).
5314 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5317 if test -d /usr/nec; then
5318 lt_cv_prog_cc_pic=-Kconform_pic
5322 lt_cv_prog_cc_pic='-fPIC'
5326 # PORTME Check for PIC flags for the system compiler.
5328 aix3* | aix4* | aix5*)
5329 lt_cv_prog_cc_wl='-Wl,'
5330 # All AIX code is PIC.
5331 if test "$host_cpu" = ia64; then
5332 # AIX 5 now supports IA64 processor
5333 lt_cv_prog_cc_static='-Bstatic'
5335 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5339 hpux9* | hpux10* | hpux11*)
5340 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5341 lt_cv_prog_cc_wl='-Wl,'
5342 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5343 lt_cv_prog_cc_pic='+Z'
5346 irix5* | irix6* | nonstopux*)
5347 lt_cv_prog_cc_wl='-Wl,'
5348 lt_cv_prog_cc_static='-non_shared'
5349 # PIC (with -KPIC) is the default.
5352 cygwin* | mingw* | pw32* | os2*)
5353 # This hack is so that the source file can tell whether it is being
5354 # built for inclusion in a dll (and should export symbols for example).
5355 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5359 lt_cv_prog_cc_pic='-KPIC'
5360 lt_cv_prog_cc_static='-Bstatic'
5363 osf3* | osf4* | osf5*)
5364 # All OSF/1 code is PIC.
5365 lt_cv_prog_cc_wl='-Wl,'
5366 lt_cv_prog_cc_static='-non_shared'
5370 lt_cv_prog_cc_pic='-Kpic'
5371 lt_cv_prog_cc_static='-dn'
5372 lt_cv_prog_cc_shlib='-belf'
5376 lt_cv_prog_cc_pic='-KPIC'
5377 lt_cv_prog_cc_static='-Bstatic'
5378 lt_cv_prog_cc_wl='-Wl,'
5382 lt_cv_prog_cc_pic='-PIC'
5383 lt_cv_prog_cc_static='-Bstatic'
5384 lt_cv_prog_cc_wl='-Qoption ld '
5387 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5388 lt_cv_prog_cc_pic='-KPIC'
5389 lt_cv_prog_cc_static='-Bstatic'
5390 lt_cv_prog_cc_wl='-Wl,'
5394 lt_cv_prog_cc_pic='-pic'
5395 lt_cv_prog_cc_static='-Bstatic'
5399 if test -d /usr/nec ;then
5400 lt_cv_prog_cc_pic='-Kconform_pic'
5401 lt_cv_prog_cc_static='-Bstatic'
5406 lt_cv_prog_cc_can_build_shared=no
5413 if test -z "$lt_cv_prog_cc_pic"; then
5414 echo "$as_me:$LINENO: result: none" >&5
5415 echo "${ECHO_T}none" >&6
5417 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5418 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5420 # Check to make sure the pic_flag actually works.
5421 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5422 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5423 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 save_CFLAGS="$CFLAGS"
5427 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5428 cat >conftest.$ac_ext <<_ACEOF
5429 #line $LINENO "configure"
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5444 rm -f conftest.$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -s conftest.$ac_objext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5457 hpux9* | hpux10* | hpux11*)
5458 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5459 # they create non-PIC objects. So, if there were any warnings, we
5460 # assume that PIC is not supported.
5461 if test -s conftest.err; then
5462 lt_cv_prog_cc_pic_works=no
5464 lt_cv_prog_cc_pic_works=yes
5468 lt_cv_prog_cc_pic_works=yes
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5476 lt_cv_prog_cc_pic_works=no
5479 rm -f conftest.$ac_objext conftest.$ac_ext
5480 CFLAGS="$save_CFLAGS"
5485 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5487 lt_cv_prog_cc_can_build_shared=no
5489 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5492 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5493 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5496 # Check for any special shared library compilation flags.
5497 if test -n "$lt_cv_prog_cc_shlib"; then
5498 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5499 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5500 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5502 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5503 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5504 lt_cv_prog_cc_can_build_shared=no
5508 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5509 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5510 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 lt_cv_prog_cc_static_works=no
5514 save_LDFLAGS="$LDFLAGS"
5515 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5516 cat >conftest.$ac_ext <<_ACEOF
5517 #line $LINENO "configure"
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5532 rm -f conftest.$ac_objext conftest$ac_exeext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534 (eval $ac_link) 2>&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -s conftest$ac_exeext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 lt_cv_prog_cc_static_works=yes
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5551 LDFLAGS="$save_LDFLAGS"
5556 # Belt *and* braces to stop my trousers falling down:
5557 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5558 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5559 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5561 pic_flag="$lt_cv_prog_cc_pic"
5562 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5563 wl="$lt_cv_prog_cc_wl"
5564 link_static_flag="$lt_cv_prog_cc_static"
5565 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5566 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5569 # Check to see if options -o and -c are simultaneously supported by compiler
5570 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5571 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5572 if test "${lt_cv_compiler_c_o+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 $rm -r conftest 2>/dev/null
5579 echo "int some_variable = 0;" > conftest.$ac_ext
5581 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5582 # that will create temporary files in the current directory regardless of
5583 # the output directory. Thus, making CWD read-only will cause this test
5584 # to fail, enabling locking or at least warning the user not to do parallel
5587 save_CFLAGS="$CFLAGS"
5588 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5590 if { (eval echo configure:5590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5591 # The compiler can only warn and ignore the option if not recognized
5592 # So say no if there are warnings
5593 if test -s out/conftest.err; then
5594 lt_cv_compiler_c_o=no
5596 lt_cv_compiler_c_o=yes
5599 # Append any errors to the config.log.
5600 cat out/conftest.err 1>&5
5601 lt_cv_compiler_c_o=no
5603 CFLAGS="$save_CFLAGS"
5609 $rm -r conftest 2>/dev/null
5613 compiler_c_o=$lt_cv_compiler_c_o
5614 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5615 echo "${ECHO_T}$compiler_c_o" >&6
5617 if test x"$compiler_c_o" = x"yes"; then
5618 # Check to see if we can write to a .lo
5619 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5620 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5621 if test "${lt_cv_compiler_o_lo+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 lt_cv_compiler_o_lo=no
5626 save_CFLAGS="$CFLAGS"
5627 CFLAGS="$CFLAGS -c -o conftest.lo"
5628 save_objext="$ac_objext"
5630 cat >conftest.$ac_ext <<_ACEOF
5631 #line $LINENO "configure"
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5641 int some_variable = 0;
5646 rm -f conftest.$ac_objext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648 (eval $ac_compile) 2>&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } &&
5652 { ac_try='test -s conftest.$ac_objext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 # The compiler can only warn and ignore the option if not recognized
5659 # So say no if there are warnings
5660 if test -s conftest.err; then
5661 lt_cv_compiler_o_lo=no
5663 lt_cv_compiler_o_lo=yes
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5671 rm -f conftest.$ac_objext conftest.$ac_ext
5672 ac_objext="$save_objext"
5673 CFLAGS="$save_CFLAGS"
5677 compiler_o_lo=$lt_cv_compiler_o_lo
5678 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5679 echo "${ECHO_T}$compiler_o_lo" >&6
5684 # Check to see if we can do hard links to lock some files if needed
5685 hard_links="nottested"
5686 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5687 # do not overwrite the value of need_locks provided by the user
5688 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5689 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5694 ln conftest.a conftest.b 2>&5 || hard_links=no
5695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5696 echo "$as_me:$LINENO: result: $hard_links" >&5
5697 echo "${ECHO_T}$hard_links" >&6
5698 if test "$hard_links" = no; then
5699 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5700 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5707 if test "$GCC" = yes; then
5708 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5709 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5710 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5711 echo "int some_variable = 0;" > conftest.$ac_ext
5712 save_CFLAGS="$CFLAGS"
5713 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5714 compiler_rtti_exceptions=no
5715 cat >conftest.$ac_ext <<_ACEOF
5716 #line $LINENO "configure"
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5726 int some_variable = 0;
5731 rm -f conftest.$ac_objext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733 (eval $ac_compile) 2>&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -s conftest.$ac_objext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 # The compiler can only warn and ignore the option if not recognized
5744 # So say no if there are warnings
5745 if test -s conftest.err; then
5746 compiler_rtti_exceptions=no
5748 compiler_rtti_exceptions=yes
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5756 rm -f conftest.$ac_objext conftest.$ac_ext
5757 CFLAGS="$save_CFLAGS"
5758 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5759 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5761 if test "$compiler_rtti_exceptions" = "yes"; then
5762 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5764 no_builtin_flag=' -fno-builtin'
5768 # See if the linker supports building shared libraries.
5769 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5770 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5772 allow_undefined_flag=
5774 need_lib_prefix=unknown
5775 need_version=unknown
5776 # when you set need_version to no, make sure it does not cause -set_version
5777 # flags to be left without arguments
5779 archive_expsym_cmds=
5780 old_archive_from_new_cmds=
5781 old_archive_from_expsyms_cmds=
5782 export_dynamic_flag_spec=
5783 whole_archive_flag_spec=
5784 thread_safe_flag_spec=
5785 hardcode_into_libs=no
5786 hardcode_libdir_flag_spec=
5787 hardcode_libdir_separator=
5790 hardcode_shlibpath_var=unsupported
5792 link_all_deplibs=unknown
5793 always_export_symbols=no
5794 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5795 # include_expsyms should be a list of space-separated symbols to be *always*
5796 # included in the symbol list
5798 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5799 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5800 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5801 # as well as any symbol that contains `d'.
5802 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5803 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5804 # platforms (ab)use it in PIC code, but their linkers get confused if
5805 # the symbol is explicitly referenced. Since portable code cannot
5806 # rely on this symbol name, it's probably fine to never include it in
5807 # preloaded symbol tables.
5808 extract_expsyms_cmds=
5811 cygwin* | mingw* | pw32*)
5812 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5813 # When not using gcc, we currently assume that we are using
5814 # Microsoft Visual C++.
5815 if test "$GCC" != yes; then
5825 if test "$with_gnu_ld" = yes; then
5826 # If archive_cmds runs LD, not CC, wlarc should be empty
5829 # See if GNU ld supports shared libraries.
5831 aix3* | aix4* | aix5*)
5832 # On AIX, the GNU linker is very broken
5833 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5837 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5838 *** to be unable to reliably create shared libraries on AIX.
5839 *** Therefore, libtool is disabling shared libraries support. If you
5840 *** really care for shared libraries, you may want to modify your PATH
5841 *** so that a non-GNU linker is found, and then restart.
5847 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)'
5848 hardcode_libdir_flag_spec='-L$libdir'
5849 hardcode_minus_L=yes
5851 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5852 # that the semantics of dynamic libraries on AmigaOS, at least up
5853 # to version 4, is to share data among multiple programs linked
5854 # with the same dynamic library. Since this doesn't match the
5855 # behavior of shared libraries on other platforms, we can use
5861 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5862 allow_undefined_flag=unsupported
5863 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5864 # support --undefined. This deserves some investigation. FIXME
5865 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5871 cygwin* | mingw* | pw32*)
5872 # hardcode_libdir_flag_spec is actually meaningless, as there is
5873 # no search path for DLLs.
5874 hardcode_libdir_flag_spec='-L$libdir'
5875 allow_undefined_flag=unsupported
5876 always_export_symbols=yes
5878 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5879 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5880 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5881 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5882 else $CC -o impgen impgen.c ; fi)~
5883 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5885 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5887 # cygwin and mingw dlls have different entry points and sets of symbols
5889 # FIXME: what about values for MSVC?
5890 dll_entry=__cygwin_dll_entry@12
5891 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5895 dll_entry=_DllMainCRTStartup@12
5896 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5900 # mingw and cygwin differ, and it's simplest to just exclude the union
5901 # of the two symbol sets.
5902 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5904 # recent cygwin and mingw systems supply a stub DllMain which the user
5905 # can override, but on older systems we have to supply one (in ltdll.c)
5906 if test "x$lt_cv_need_dllmain" = "xyes"; then
5907 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5908 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~
5909 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5915 # Extract the symbol export list from an `--export-all' def file,
5916 # then regenerate the def file from the symbol export list, so that
5917 # the compiled dll only exports the symbol export list.
5918 # Be careful not to strip the DATA tag left be newer dlltools.
5919 export_symbols_cmds="$ltdll_cmds"'
5920 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5921 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5923 # If the export-symbols file already is a .def file (1st line
5924 # is EXPORTS), use it as is.
5925 # If DATA tags from a recent dlltool are present, honour them!
5926 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5927 cp $export_symbols $output_objdir/$soname-def;
5929 echo EXPORTS > $output_objdir/$soname-def;
5931 cat $export_symbols | while read symbol; do
5934 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5935 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5936 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5938 _lt_hint=`expr 1 + \$_lt_hint`;
5942 $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~
5943 $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~
5944 $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~
5945 $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~
5946 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5951 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5954 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5955 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5960 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5964 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5965 *** create shared libraries on Solaris systems. Therefore, libtool
5966 *** is disabling shared libraries support. We urge you to upgrade GNU
5967 *** binutils to release 2.9.1 or newer. Another option is to modify
5968 *** your PATH or compiler configuration so that the native linker is
5969 *** used, and then restart.
5972 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5981 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5984 hardcode_shlibpath_var=no
5988 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5990 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5997 if test "$ld_shlibs" = yes; then
5998 runpath_var=LD_RUN_PATH
5999 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6000 export_dynamic_flag_spec='${wl}--export-dynamic'
6002 cygwin* | mingw* | pw32*)
6003 # dlltool doesn't understand --whole-archive et. al.
6004 whole_archive_flag_spec=
6007 # ancient GNU ld didn't support --whole-archive et. al.
6008 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6009 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6011 whole_archive_flag_spec=
6017 # PORTME fill in a description of your system's linker (not GNU ld)
6020 allow_undefined_flag=unsupported
6021 always_export_symbols=yes
6022 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'
6023 # Note: this linker hardcodes the directories in LIBPATH if there
6024 # are no directories specified by -L.
6025 hardcode_minus_L=yes
6026 if test "$GCC" = yes && test -z "$link_static_flag"; then
6027 # Neither direct hardcoding nor static linking is supported with a
6029 hardcode_direct=unsupported
6034 if test "$host_cpu" = ia64; then
6035 # On IA64, the linker does run time linking by default, so we don't
6036 # have to do anything special.
6037 aix_use_runtimelinking=no
6038 exp_sym_flag='-Bexport'
6041 aix_use_runtimelinking=no
6043 # Test if we are trying to use run time linking or normal
6044 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6045 # need to do runtime linking.
6046 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6047 for ld_flag in $LDFLAGS; do
6050 aix_use_runtimelinking=yes
6057 exp_sym_flag='-bexport'
6058 no_entry_flag='-bnoentry'
6061 # When large executables or shared objects are built, AIX ld can
6062 # have problems creating the table of contents. If linking a library
6063 # or program results in "error TOC overflow" add -mminimal-toc to
6064 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6065 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6069 hardcode_libdir_separator=':'
6070 if test "$GCC" = yes; then
6071 case $host_os in aix4.[012]|aix4.[012].*)
6072 collect2name=`${CC} -print-prog-name=collect2`
6073 if test -f "$collect2name" && \
6074 strings "$collect2name" | grep resolve_lib_name >/dev/null
6076 # We have reworked collect2
6079 # We have old collect2
6080 hardcode_direct=unsupported
6081 # It fails to find uninstalled libraries when the uninstalled
6082 # path is not listed in the libpath. Setting hardcode_minus_L
6083 # to unsupported forces relinking
6084 hardcode_minus_L=yes
6085 hardcode_libdir_flag_spec='-L$libdir'
6086 hardcode_libdir_separator=
6090 shared_flag='-shared'
6093 if test "$host_cpu" = ia64; then
6094 shared_flag='${wl}-G'
6096 if test "$aix_use_runtimelinking" = yes; then
6097 shared_flag='${wl}-G'
6099 shared_flag='${wl}-bM:SRE'
6104 # It seems that -bexpall can do strange things, so it is better to
6105 # generate a list of symbols to export.
6106 always_export_symbols=yes
6107 if test "$aix_use_runtimelinking" = yes; then
6108 # Warning - without using the other runtime loading flags (-brtl),
6109 # -berok will link without error, but may produce a broken library.
6110 allow_undefined_flag='-berok'
6111 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6112 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"
6114 if test "$host_cpu" = ia64; then
6115 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6116 allow_undefined_flag="-z nodefs"
6117 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"
6119 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6120 # Warning - without using the other run time loading flags,
6121 # -berok will link without error, but may produce a broken library.
6122 allow_undefined_flag='${wl}-berok'
6123 # This is a bit strange, but is similar to how AIX traditionally builds
6124 # it's shared libraries.
6125 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'
6131 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)'
6132 hardcode_libdir_flag_spec='-L$libdir'
6133 hardcode_minus_L=yes
6134 # see comment about different semantics on the GNU ld section
6138 cygwin* | mingw* | pw32*)
6139 # When not using gcc, we currently assume that we are using
6140 # Microsoft Visual C++.
6141 # hardcode_libdir_flag_spec is actually meaningless, as there is
6142 # no search path for DLLs.
6143 hardcode_libdir_flag_spec=' '
6144 allow_undefined_flag=unsupported
6145 # Tell ltmain to make .lib files, not .a files.
6147 # FIXME: Setting linknames here is a bad hack.
6148 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6149 # The linker will automatically build a .lib file if we build a DLL.
6150 old_archive_from_new_cmds='true'
6151 # FIXME: Should let the user specify the lib program.
6152 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6153 fix_srcfile_path='`cygpath -w "$srcfile"`'
6156 darwin* | rhapsody*)
6158 rhapsody* | darwin1.[012])
6159 allow_undefined_flag='-undefined suppress'
6162 allow_undefined_flag='-flat_namespace -undefined suppress'
6165 # FIXME: Relying on posixy $() will cause problems for
6166 # cross-compilation, but unfortunately the echo tests do not
6167 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6168 # `"' quotes if we put them in here... so don't!
6169 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)'
6170 # We need to add '_' to the symbols in $export_symbols first
6171 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6173 hardcode_shlibpath_var=no
6174 whole_archive_flag_spec='-all_load $convenience'
6181 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6182 # support. Future versions do this automatically, but an explicit c++rt0.o
6183 # does not break anything, and helps significantly (at the cost of a little
6186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6187 hardcode_libdir_flag_spec='-R$libdir'
6189 hardcode_shlibpath_var=no
6192 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6196 hardcode_minus_L=yes
6197 hardcode_shlibpath_var=no
6200 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6202 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6203 hardcode_libdir_flag_spec='-R$libdir'
6205 hardcode_shlibpath_var=no
6208 hpux9* | hpux10* | hpux11*)
6210 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' ;;
6211 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6213 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6214 hardcode_libdir_separator=:
6216 hardcode_minus_L=yes # Not in the search PATH, but as the default
6217 # location of the library.
6218 export_dynamic_flag_spec='${wl}-E'
6221 irix5* | irix6* | nonstopux*)
6222 if test "$GCC" = yes; then
6223 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'
6224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6226 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'
6227 hardcode_libdir_flag_spec='-rpath $libdir'
6229 hardcode_libdir_separator=:
6230 link_all_deplibs=yes
6234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6235 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6237 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6239 hardcode_libdir_flag_spec='-R$libdir'
6241 hardcode_shlibpath_var=no
6245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6248 hardcode_libdir_separator=:
6249 hardcode_shlibpath_var=no
6254 hardcode_shlibpath_var=no
6255 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6256 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6258 export_dynamic_flag_spec='${wl}-E'
6261 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6263 hardcode_libdir_flag_spec='-R$libdir'
6266 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6267 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6274 hardcode_libdir_flag_spec='-L$libdir'
6275 hardcode_minus_L=yes
6276 allow_undefined_flag=unsupported
6277 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'
6278 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6282 if test "$GCC" = yes; then
6283 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6284 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'
6286 allow_undefined_flag=' -expect_unresolved \*'
6287 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'
6289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6290 hardcode_libdir_separator=:
6293 osf4* | osf5*) # as osf3* with the addition of -msym flag
6294 if test "$GCC" = yes; then
6295 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6296 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'
6297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6299 allow_undefined_flag=' -expect_unresolved \*'
6300 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'
6301 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6302 $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'
6304 #Both c and cxx compiler support -rpath directly
6305 hardcode_libdir_flag_spec='-rpath $libdir'
6307 hardcode_libdir_separator=:
6311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6312 hardcode_shlibpath_var=no
6313 runpath_var=LD_RUN_PATH
6314 hardcode_runpath_var=yes
6315 export_dynamic_flag_spec='${wl}-Bexport'
6319 # gcc --version < 3.0 without binutils cannot create self contained
6320 # shared libraries reliably, requiring libgcc.a to resolve some of
6321 # the object symbols generated in some cases. Libraries that use
6322 # assert need libgcc.a to resolve __eprintf, for example. Linking
6323 # a copy of libgcc.a into every shared library to guarantee resolving
6324 # such symbols causes other problems: According to Tim Van Holder
6325 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6326 # (to the application) exception stack for one thing.
6327 no_undefined_flag=' -z defs'
6328 if test "$GCC" = yes; then
6329 case `$CC --version 2>/dev/null` in
6333 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6334 *** create self contained shared libraries on Solaris systems, without
6335 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6336 *** -no-undefined support, which will at least allow you to build shared
6337 *** libraries. However, you may find that when you link such libraries
6338 *** into an application without using GCC, you have to manually add
6339 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6340 *** upgrade to a newer version of GCC. Another option is to rebuild your
6341 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6348 # $CC -shared without GNU ld will not create a library from C++
6349 # object files and a static libstdc++, better avoid it by now
6350 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6351 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6352 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6353 hardcode_libdir_flag_spec='-R$libdir'
6354 hardcode_shlibpath_var=no
6356 solaris2.[0-5] | solaris2.[0-5].*) ;;
6357 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6358 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6360 link_all_deplibs=yes
6364 if test "x$host_vendor" = xsequent; then
6365 # Use $CC to link under sequent, because it throws in some extra .o
6366 # files that make .init and .fini sections work.
6367 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6369 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6371 hardcode_libdir_flag_spec='-L$libdir'
6373 hardcode_minus_L=yes
6374 hardcode_shlibpath_var=no
6378 case $host_vendor in
6380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6381 hardcode_direct=yes # is this really true???
6384 ## LD is ld it makes a PLAMLIB
6385 ## CC just makes a GrossModule.
6386 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6387 reload_cmds='$CC -r -o $output$reload_objs'
6391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6392 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6395 runpath_var='LD_RUN_PATH'
6396 hardcode_shlibpath_var=no
6400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6401 hardcode_shlibpath_var=no
6402 export_dynamic_flag_spec='-Bexport'
6406 no_undefined_flag=' -z text'
6407 # $CC -shared without GNU ld will not create a library from C++
6408 # object files and a static libstdc++, better avoid it by now
6409 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6410 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6411 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6412 hardcode_libdir_flag_spec=
6413 hardcode_shlibpath_var=no
6414 runpath_var='LD_RUN_PATH'
6418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6419 hardcode_libdir_flag_spec='-L$libdir'
6420 hardcode_shlibpath_var=no
6424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6425 hardcode_libdir_flag_spec='-L$libdir'
6426 hardcode_shlibpath_var=no
6430 if test -d /usr/nec; then
6431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6432 hardcode_shlibpath_var=no
6433 runpath_var=LD_RUN_PATH
6434 hardcode_runpath_var=yes
6440 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6443 hardcode_shlibpath_var=no
6444 hardcode_runpath_var=yes
6445 runpath_var=LD_RUN_PATH
6448 sysv5uw7* | unixware7*)
6449 no_undefined_flag='${wl}-z ${wl}text'
6450 if test "$GCC" = yes; then
6451 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6453 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6455 runpath_var='LD_RUN_PATH'
6456 hardcode_shlibpath_var=no
6464 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6465 echo "${ECHO_T}$ld_shlibs" >&6
6466 test "$ld_shlibs" = no && can_build_shared=no
6468 # Check hardcoding attributes.
6469 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6470 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6472 if test -n "$hardcode_libdir_flag_spec" || \
6473 test -n "$runpath_var"; then
6475 # We can hardcode non-existant directories.
6476 if test "$hardcode_direct" != no &&
6477 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6478 # have to relink, otherwise we might link with an installed library
6479 # when we should be linking with a yet-to-be-installed one
6480 ## test "$hardcode_shlibpath_var" != no &&
6481 test "$hardcode_minus_L" != no; then
6482 # Linking always hardcodes the temporary library directory.
6483 hardcode_action=relink
6485 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6486 hardcode_action=immediate
6489 # We cannot hardcode anything, or else we can only hardcode existing
6491 hardcode_action=unsupported
6493 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6494 echo "${ECHO_T}$hardcode_action" >&6
6498 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6499 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6500 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6501 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6502 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6503 echo "$as_me:$LINENO: result: yes" >&5
6504 echo "${ECHO_T}yes" >&6
6506 echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6
6510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6511 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6513 # PORTME Fill in your ld.so characteristics
6514 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6515 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6517 libname_spec='lib$name'
6524 shlibpath_overrides_runpath=unknown
6526 dynamic_linker="$host_os ld.so"
6527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6528 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6533 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6534 shlibpath_var=LIBPATH
6536 # AIX has no versioning support, so we append a major version to the name.
6537 soname_spec='${libname}${release}.so$major'
6544 hardcode_into_libs=yes
6545 if test "$host_cpu" = ia64; then
6546 # AIX 5 supports IA64
6547 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6548 shlibpath_var=LD_LIBRARY_PATH
6550 # With GCC up to 2.95.x, collect2 would create an import file
6551 # for dependence libraries. The import file would start with
6552 # the line `#! .'. This would cause the generated library to
6553 # depend on `.', always an invalid library. This was fixed in
6554 # development snapshots of GCC prior to 3.0.
6556 aix4 | aix4.[01] | aix4.[01].*)
6557 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6559 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6566 # AIX (on Power*) has no versioning support, so currently we can
6567 # not hardcode correct soname into executable. Probably we can
6568 # add versioning support to collect2, so additional links can
6569 # be useful in future.
6570 if test "$aix_use_runtimelinking" = yes; then
6571 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6572 # instead of lib<name>.a to let people know that these are not
6573 # typical AIX shared libraries.
6574 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6576 # We preserve .a as extension for shared libraries through AIX4.2
6577 # and later when we are not doing run time linking.
6578 library_names_spec='${libname}${release}.a $libname.a'
6579 soname_spec='${libname}${release}.so$major'
6581 shlibpath_var=LIBPATH
6583 hardcode_into_libs=yes
6587 library_names_spec='$libname.ixlibrary $libname.a'
6588 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6589 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'
6593 library_names_spec='${libname}.so'
6594 dynamic_linker="$host_os ld.so"
6595 shlibpath_var=LIBRARY_PATH
6601 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6602 soname_spec='${libname}${release}.so$major'
6603 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6604 shlibpath_var=LD_LIBRARY_PATH
6605 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6606 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6607 export_dynamic_flag_spec=-rdynamic
6608 # the default ld.so.conf also contains /usr/contrib/lib and
6609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6610 # libtool to hard-code these into programs
6613 cygwin* | mingw* | pw32*)
6614 version_type=windows
6617 case $GCC,$host_os in
6619 library_names_spec='$libname.dll.a'
6620 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6621 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6622 dldir=$destdir/`dirname \$dlpath`~
6623 test -d \$dldir || mkdir -p \$dldir~
6624 $install_prog .libs/$dlname \$dldir/$dlname'
6625 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6626 dlpath=$dir/\$dldll~
6630 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6631 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6634 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6637 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6640 dynamic_linker='Win32 ld.exe'
6641 # FIXME: first we should search . and the directory the executable is in
6645 darwin* | rhapsody*)
6646 dynamic_linker="$host_os dyld"
6650 # FIXME: Relying on posixy $() will cause problems for
6651 # cross-compilation, but unfortunately the echo tests do not
6652 # yet detect zsh echo's removal of \ escapes.
6653 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)'
6654 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6655 shlibpath_overrides_runpath=yes
6656 shlibpath_var=DYLD_LIBRARY_PATH
6664 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6665 version_type=freebsd-$objformat
6666 case $version_type in
6668 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6673 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6677 shlibpath_var=LD_LIBRARY_PATH
6680 shlibpath_overrides_runpath=yes
6683 shlibpath_overrides_runpath=no
6684 hardcode_into_libs=yes
6693 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6694 soname_spec='${libname}${release}.so$major'
6695 shlibpath_var=LD_LIBRARY_PATH
6696 hardcode_into_libs=yes
6699 hpux9* | hpux10* | hpux11*)
6700 # Give a soname corresponding to the major version so that dld.sl refuses to
6701 # link against other versions.
6702 dynamic_linker="$host_os dld.sl"
6706 shlibpath_var=SHLIB_PATH
6707 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6708 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6709 soname_spec='${libname}${release}.sl$major'
6710 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6711 postinstall_cmds='chmod 555 $lib'
6714 irix5* | irix6* | nonstopux*)
6716 nonstopux*) version_type=nonstopux ;;
6717 *) version_type=irix ;;
6721 soname_spec='${libname}${release}.so$major'
6722 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6724 irix5* | nonstopux*)
6728 case $LD in # libtool.m4 will add one of these switches to LD
6729 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6730 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6731 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6732 *) libsuff= shlibsuff= libmagic=never-match;;
6736 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6737 shlibpath_overrides_runpath=no
6738 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6739 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6742 # No shared lib support for Linux oldld, aout, or coff.
6743 linux*oldld* | linux*aout* | linux*coff*)
6747 # This must be Linux ELF.
6752 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6753 soname_spec='${libname}${release}.so$major'
6754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6755 shlibpath_var=LD_LIBRARY_PATH
6756 shlibpath_overrides_runpath=no
6757 # This implies no fast_install, which is unacceptable.
6758 # Some rework will be needed to allow for fast_install
6759 # before this can be enabled.
6760 hardcode_into_libs=yes
6762 case $host_cpu:$lt_cv_cc_64bit_output in
6763 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6764 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64"
6765 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64"
6769 # We used to test for /lib/ld.so.1 and disable shared libraries on
6770 # powerpc, because MkLinux only supported shared libraries with the
6771 # GNU dynamic linker. Since this was broken with cross compilers,
6772 # most powerpc-linux boxes support dynamic linking these days and
6773 # people can always --disable-shared, the test was removed, and we
6774 # assume the GNU/Linux dynamic linker is in use.
6775 dynamic_linker='GNU/Linux ld.so'
6782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6783 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6785 dynamic_linker='NetBSD (a.out) ld.so'
6787 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6788 soname_spec='${libname}${release}.so$major'
6789 dynamic_linker='NetBSD ld.elf_so'
6791 shlibpath_var=LD_LIBRARY_PATH
6792 shlibpath_overrides_runpath=yes
6793 hardcode_into_libs=yes
6798 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6799 shlibpath_var=LD_LIBRARY_PATH
6800 shlibpath_overrides_runpath=yes
6807 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6809 openbsd2.[89] | openbsd2.[89].*)
6810 shlibpath_overrides_runpath=no
6813 shlibpath_overrides_runpath=yes
6817 shlibpath_overrides_runpath=yes
6819 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6821 shlibpath_var=LD_LIBRARY_PATH
6825 libname_spec='$name'
6827 library_names_spec='$libname.dll $libname.a'
6828 dynamic_linker='OS/2 ld.exe'
6829 shlibpath_var=LIBPATH
6832 osf3* | osf4* | osf5*)
6835 soname_spec='${libname}${release}.so$major'
6836 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6837 shlibpath_var=LD_LIBRARY_PATH
6838 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6839 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6840 hardcode_into_libs=yes
6845 soname_spec='${libname}${release}.so$major'
6846 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6847 shlibpath_var=LD_LIBRARY_PATH
6854 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6855 soname_spec='${libname}${release}.so$major'
6856 shlibpath_var=LD_LIBRARY_PATH
6857 shlibpath_overrides_runpath=yes
6858 hardcode_into_libs=yes
6859 # ldd complains unless libraries are executable
6860 postinstall_cmds='chmod +x $lib'
6865 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6866 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6867 shlibpath_var=LD_LIBRARY_PATH
6868 shlibpath_overrides_runpath=yes
6869 if test "$with_gnu_ld" = yes; then
6875 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6877 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6878 soname_spec='${libname}${release}.so$major'
6879 shlibpath_var=LD_LIBRARY_PATH
6880 case $host_vendor in
6882 shlibpath_overrides_runpath=no
6884 export_dynamic_flag_spec='${wl}-Blargedynsym'
6885 runpath_var=LD_RUN_PATH
6893 shlibpath_overrides_runpath=no
6894 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6901 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6902 soname_spec='${libname}${release}.so$major'
6903 shlibpath_var=LD_LIBRARY_PATH
6910 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6911 soname_spec='${libname}${release}.so$major'
6912 shlibpath_var=LD_LIBRARY_PATH
6916 if test -d /usr/nec ;then
6918 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6919 soname_spec='$libname.so.$major'
6920 shlibpath_var=LD_LIBRARY_PATH
6928 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6929 echo "${ECHO_T}$dynamic_linker" >&6
6930 test "$dynamic_linker" = no && can_build_shared=no
6932 # Report the final consequences.
6933 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6934 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6935 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6936 echo "${ECHO_T}$can_build_shared" >&6
6938 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6939 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6940 test "$can_build_shared" = "no" && enable_shared=no
6942 # On AIX, shared libraries and static libraries use the same namespace, and
6943 # are all built from PIC.
6946 test "$enable_shared" = yes && enable_static=no
6947 if test -n "$RANLIB"; then
6948 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6949 postinstall_cmds='$RANLIB $lib'
6954 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6955 test "$enable_shared" = yes && enable_static=no
6959 echo "$as_me:$LINENO: result: $enable_shared" >&5
6960 echo "${ECHO_T}$enable_shared" >&6
6962 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6963 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6964 # Make sure either enable_shared or enable_static is yes.
6965 test "$enable_shared" = yes || enable_static=yes
6966 echo "$as_me:$LINENO: result: $enable_static" >&5
6967 echo "${ECHO_T}$enable_static" >&6
6969 if test "$hardcode_action" = relink; then
6970 # Fast installation is not supported
6971 enable_fast_install=no
6972 elif test "$shlibpath_overrides_runpath" = yes ||
6973 test "$enable_shared" = no; then
6974 # Fast installation is not necessary
6975 enable_fast_install=needless
6978 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6979 if test "$GCC" = yes; then
6980 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6983 if test "x$enable_dlopen" != xyes; then
6984 enable_dlopen=unknown
6985 enable_dlopen_self=unknown
6986 enable_dlopen_self_static=unknown
6993 lt_cv_dlopen="load_add_on"
6995 lt_cv_dlopen_self=yes
6998 cygwin* | mingw* | pw32*)
6999 lt_cv_dlopen="LoadLibrary"
7004 echo "$as_me:$LINENO: checking for shl_load" >&5
7005 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7006 if test "${ac_cv_func_shl_load+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 cat >conftest.$ac_ext <<_ACEOF
7010 #line $LINENO "configure"
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7016 /* System header to define __stub macros and hopefully few prototypes,
7017 which can conflict with char shl_load (); below.
7018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7019 <limits.h> exists even on freestanding compilers. */
7021 # include <limits.h>
7023 # include <assert.h>
7025 /* Override any gcc2 internal prototype to avoid an error. */
7030 /* We use char because int might match the return type of a gcc2
7031 builtin and then its argument prototype would still apply. */
7033 /* The GNU C library defines this for functions which it implements
7034 to always fail with ENOSYS. Some functions are actually named
7035 something starting with __ and the normal name is an alias. */
7036 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7039 char (*f) () = shl_load;
7048 return f != shl_load;
7053 rm -f conftest.$ac_objext conftest$ac_exeext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7055 (eval $ac_link) 2>&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try='test -s conftest$ac_exeext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 ac_cv_func_shl_load=yes
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7070 ac_cv_func_shl_load=no
7072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7074 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7075 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7076 if test $ac_cv_func_shl_load = yes; then
7077 lt_cv_dlopen="shl_load"
7079 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7080 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7081 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 ac_check_lib_save_LIBS=$LIBS
7086 cat >conftest.$ac_ext <<_ACEOF
7087 #line $LINENO "configure"
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7094 /* Override any gcc2 internal prototype to avoid an error. */
7098 /* We use char because int might match the return type of a gcc2
7099 builtin and then its argument prototype would still apply. */
7109 rm -f conftest.$ac_objext conftest$ac_exeext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7111 (eval $ac_link) 2>&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try='test -s conftest$ac_exeext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 ac_cv_lib_dld_shl_load=yes
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7126 ac_cv_lib_dld_shl_load=no
7128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7129 LIBS=$ac_check_lib_save_LIBS
7131 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7132 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7133 if test $ac_cv_lib_dld_shl_load = yes; then
7134 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7136 echo "$as_me:$LINENO: checking for dlopen" >&5
7137 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7138 if test "${ac_cv_func_dlopen+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 cat >conftest.$ac_ext <<_ACEOF
7142 #line $LINENO "configure"
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7148 /* System header to define __stub macros and hopefully few prototypes,
7149 which can conflict with char dlopen (); below.
7150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7151 <limits.h> exists even on freestanding compilers. */
7153 # include <limits.h>
7155 # include <assert.h>
7157 /* Override any gcc2 internal prototype to avoid an error. */
7162 /* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7165 /* The GNU C library defines this for functions which it implements
7166 to always fail with ENOSYS. Some functions are actually named
7167 something starting with __ and the normal name is an alias. */
7168 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7171 char (*f) () = dlopen;
7185 rm -f conftest.$ac_objext conftest$ac_exeext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7187 (eval $ac_link) 2>&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } &&
7191 { ac_try='test -s conftest$ac_exeext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 ac_cv_func_dlopen=yes
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7202 ac_cv_func_dlopen=no
7204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7206 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7207 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7208 if test $ac_cv_func_dlopen = yes; then
7209 lt_cv_dlopen="dlopen"
7211 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7212 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7213 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 ac_check_lib_save_LIBS=$LIBS
7218 cat >conftest.$ac_ext <<_ACEOF
7219 #line $LINENO "configure"
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7226 /* Override any gcc2 internal prototype to avoid an error. */
7230 /* We use char because int might match the return type of a gcc2
7231 builtin and then its argument prototype would still apply. */
7241 rm -f conftest.$ac_objext conftest$ac_exeext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7243 (eval $ac_link) 2>&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } &&
7247 { ac_try='test -s conftest$ac_exeext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7253 ac_cv_lib_dl_dlopen=yes
7255 echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7258 ac_cv_lib_dl_dlopen=no
7260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7261 LIBS=$ac_check_lib_save_LIBS
7263 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7264 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7265 if test $ac_cv_lib_dl_dlopen = yes; then
7266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7268 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7269 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7270 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 ac_check_lib_save_LIBS=$LIBS
7275 cat >conftest.$ac_ext <<_ACEOF
7276 #line $LINENO "configure"
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7283 /* Override any gcc2 internal prototype to avoid an error. */
7287 /* We use char because int might match the return type of a gcc2
7288 builtin and then its argument prototype would still apply. */
7298 rm -f conftest.$ac_objext conftest$ac_exeext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7300 (eval $ac_link) 2>&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -s conftest$ac_exeext'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7310 ac_cv_lib_svld_dlopen=yes
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7315 ac_cv_lib_svld_dlopen=no
7317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7318 LIBS=$ac_check_lib_save_LIBS
7320 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7321 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7322 if test $ac_cv_lib_svld_dlopen = yes; then
7323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7325 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7326 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7327 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 ac_check_lib_save_LIBS=$LIBS
7332 cat >conftest.$ac_ext <<_ACEOF
7333 #line $LINENO "configure"
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7340 /* Override any gcc2 internal prototype to avoid an error. */
7344 /* We use char because int might match the return type of a gcc2
7345 builtin and then its argument prototype would still apply. */
7355 rm -f conftest.$ac_objext conftest$ac_exeext
7356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7357 (eval $ac_link) 2>&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } &&
7361 { ac_try='test -s conftest$ac_exeext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 ac_cv_lib_dld_dld_link=yes
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 ac_cv_lib_dld_dld_link=no
7374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7375 LIBS=$ac_check_lib_save_LIBS
7377 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7378 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7379 if test $ac_cv_lib_dld_dld_link = yes; then
7380 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7401 if test "x$lt_cv_dlopen" != xno; then
7407 case $lt_cv_dlopen in
7409 save_CPPFLAGS="$CPPFLAGS"
7410 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7412 save_LDFLAGS="$LDFLAGS"
7413 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7416 LIBS="$lt_cv_dlopen_libs $LIBS"
7418 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7419 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7420 if test "${lt_cv_dlopen_self+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 if test "$cross_compiling" = yes; then :
7424 lt_cv_dlopen_self=cross
7426 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7427 lt_status=$lt_dlunknown
7428 cat > conftest.$ac_ext <<EOF
7429 #line 7429 "configure"
7430 #include "confdefs.h"
7439 # define LT_DLGLOBAL RTLD_GLOBAL
7442 # define LT_DLGLOBAL DL_GLOBAL
7444 # define LT_DLGLOBAL 0
7448 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7449 find out it does not work in some platform. */
7450 #ifndef LT_DLLAZY_OR_NOW
7452 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7455 # define LT_DLLAZY_OR_NOW DL_LAZY
7458 # define LT_DLLAZY_OR_NOW RTLD_NOW
7461 # define LT_DLLAZY_OR_NOW DL_NOW
7463 # define LT_DLLAZY_OR_NOW 0
7471 extern "C" void exit (int);
7474 void fnord() { int i=42;}
7477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7478 int status = $lt_dlunknown;
7482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7483 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7484 /* dlclose (self); */
7490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7491 (eval $ac_link) 2>&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7495 (./conftest; exit; ) 2>/dev/null
7498 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7499 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7500 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7503 # compilation failed
7504 lt_cv_dlopen_self=no
7511 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7512 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7514 if test "x$lt_cv_dlopen_self" = xyes; then
7515 LDFLAGS="$LDFLAGS $link_static_flag"
7516 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7517 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7518 if test "${lt_cv_dlopen_self_static+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 if test "$cross_compiling" = yes; then :
7522 lt_cv_dlopen_self_static=cross
7524 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7525 lt_status=$lt_dlunknown
7526 cat > conftest.$ac_ext <<EOF
7527 #line 7527 "configure"
7528 #include "confdefs.h"
7537 # define LT_DLGLOBAL RTLD_GLOBAL
7540 # define LT_DLGLOBAL DL_GLOBAL
7542 # define LT_DLGLOBAL 0
7546 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7547 find out it does not work in some platform. */
7548 #ifndef LT_DLLAZY_OR_NOW
7550 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7553 # define LT_DLLAZY_OR_NOW DL_LAZY
7556 # define LT_DLLAZY_OR_NOW RTLD_NOW
7559 # define LT_DLLAZY_OR_NOW DL_NOW
7561 # define LT_DLLAZY_OR_NOW 0
7569 extern "C" void exit (int);
7572 void fnord() { int i=42;}
7575 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7576 int status = $lt_dlunknown;
7580 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7581 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7582 /* dlclose (self); */
7588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7589 (eval $ac_link) 2>&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7593 (./conftest; exit; ) 2>/dev/null
7596 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7597 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7598 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7601 # compilation failed
7602 lt_cv_dlopen_self_static=no
7609 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7610 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7613 CPPFLAGS="$save_CPPFLAGS"
7614 LDFLAGS="$save_LDFLAGS"
7619 case $lt_cv_dlopen_self in
7620 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7621 *) enable_dlopen_self=unknown ;;
7624 case $lt_cv_dlopen_self_static in
7625 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7626 *) enable_dlopen_self_static=unknown ;;
7631 if test "$enable_shared" = yes && test "$GCC" = yes; then
7632 case $archive_cmds in
7634 # FIXME: we may have to deal with multi-command sequences.
7637 # Test whether the compiler implicitly links with -lc since on some
7638 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7639 # to ld, don't add -lc before -lgcc.
7640 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7641 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7642 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 echo 'static int dummy;' > conftest.$ac_ext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649 (eval $ac_compile) 2>&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; then
7655 libobjs=conftest.$ac_objext
7657 wl=$lt_cv_prog_cc_wl
7663 save_allow_undefined_flag=$allow_undefined_flag
7664 allow_undefined_flag=
7665 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7666 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }
7671 lt_cv_archive_cmds_need_lc=no
7673 lt_cv_archive_cmds_need_lc=yes
7675 allow_undefined_flag=$save_allow_undefined_flag
7677 cat conftest.err 1>&5
7681 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7682 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7686 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7688 # The second clause should only fire when bootstrapping the
7689 # libtool distribution, otherwise you forgot to ship ltmain.sh
7690 # with your package, and you will get complaints that there are
7691 # no rules to generate ltmain.sh.
7692 if test -f "$ltmain"; then
7695 # If there is no Makefile yet, we rely on a make rule to execute
7696 # `config.status --recheck' to rerun these tests and create the
7697 # libtool script then.
7698 test -f Makefile && make "$ltmain"
7701 if test -f "$ltmain"; then
7702 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7705 echo creating $ofile
7707 # Now quote all the things that may contain metacharacters while being
7708 # careful not to overquote the AC_SUBSTed values. We take copies of the
7709 # variables and quote the copies for generation of the libtool script.
7710 for var in echo old_CC old_CFLAGS SED \
7711 AR AR_FLAGS CC LD LN_S NM SHELL \
7712 reload_flag reload_cmds wl \
7713 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7714 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7715 library_names_spec soname_spec \
7716 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7717 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7718 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7719 old_striplib striplib file_magic_cmd export_symbols_cmds \
7720 deplibs_check_method allow_undefined_flag no_undefined_flag \
7721 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7722 global_symbol_to_c_name_address \
7723 hardcode_libdir_flag_spec hardcode_libdir_separator \
7724 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7725 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7728 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7729 old_postinstall_cmds | old_postuninstall_cmds | \
7730 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7731 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7732 postinstall_cmds | postuninstall_cmds | \
7733 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7734 # Double-quote double-evaled strings.
7735 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7738 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7743 cat <<__EOF__ > "${ofile}T"
7746 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7747 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7748 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7750 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7751 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7753 # This program is free software; you can redistribute it and/or modify
7754 # it under the terms of the GNU General Public License as published by
7755 # the Free Software Foundation; either version 2 of the License, or
7756 # (at your option) any later version.
7758 # This program is distributed in the hope that it will be useful, but
7759 # WITHOUT ANY WARRANTY; without even the implied warranty of
7760 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7761 # General Public License for more details.
7763 # You should have received a copy of the GNU General Public License
7764 # along with this program; if not, write to the Free Software
7765 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7767 # As a special exception to the GNU General Public License, if you
7768 # distribute this file as part of a program that contains a
7769 # configuration script generated by Autoconf, you may include it under
7770 # the same distribution terms that you use for the rest of that program.
7772 # A sed that does not truncate output.
7775 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7776 Xsed="${SED} -e s/^X//"
7778 # The HP-UX ksh and POSIX shell print the target directory to stdout
7780 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7782 # ### BEGIN LIBTOOL CONFIG
7784 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7786 # Shell to use when invoking shell scripts.
7789 # Whether or not to build shared libraries.
7790 build_libtool_libs=$enable_shared
7792 # Whether or not to build static libraries.
7793 build_old_libs=$enable_static
7795 # Whether or not to add -lc for building shared libraries.
7796 build_libtool_need_lc=$need_lc
7798 # Whether or not to optimize for fast installation.
7799 fast_install=$enable_fast_install
7802 host_alias=$host_alias
7805 # An echo program that does not interpret backslashes.
7810 AR_FLAGS=$lt_AR_FLAGS
7812 # The default C compiler.
7815 # Is the compiler the GNU C compiler?
7818 # The linker used to build libraries.
7821 # Whether we need hard or soft links.
7824 # A BSD-compatible nm program.
7827 # A symbol stripping program
7830 # Used to examine libraries when file_magic_cmd begins "file"
7831 MAGIC_CMD=$MAGIC_CMD
7833 # Used on cygwin: DLL creation program.
7836 # Used on cygwin: object dumper.
7839 # Used on cygwin: assembler.
7842 # The name of the directory that contains temporary libtool files.
7845 # How to create reloadable object files.
7846 reload_flag=$lt_reload_flag
7847 reload_cmds=$lt_reload_cmds
7849 # How to pass a linker flag through the compiler.
7852 # Object file suffix (normally "o").
7855 # Old archive suffix (normally "a").
7858 # Executable file suffix (normally "").
7861 # Additional compiler flags for building library objects.
7862 pic_flag=$lt_pic_flag
7865 # Does compiler simultaneously support -c and -o options?
7866 compiler_c_o=$lt_compiler_c_o
7868 # Can we write directly to a .lo ?
7869 compiler_o_lo=$lt_compiler_o_lo
7871 # Must we lock files when doing compilation ?
7872 need_locks=$lt_need_locks
7874 # Do we need the lib prefix for modules?
7875 need_lib_prefix=$need_lib_prefix
7877 # Do we need a version for libraries?
7878 need_version=$need_version
7880 # Whether dlopen is supported.
7881 dlopen_support=$enable_dlopen
7883 # Whether dlopen of programs is supported.
7884 dlopen_self=$enable_dlopen_self
7886 # Whether dlopen of statically linked programs is supported.
7887 dlopen_self_static=$enable_dlopen_self_static
7889 # Compiler flag to prevent dynamic linking.
7890 link_static_flag=$lt_link_static_flag
7892 # Compiler flag to turn off builtin functions.
7893 no_builtin_flag=$lt_no_builtin_flag
7895 # Compiler flag to allow reflexive dlopens.
7896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7898 # Compiler flag to generate shared objects directly from archives.
7899 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7901 # Compiler flag to generate thread-safe objects.
7902 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7904 # Library versioning type.
7905 version_type=$version_type
7907 # Format of library name prefix.
7908 libname_spec=$lt_libname_spec
7910 # List of archive names. First name is the real one, the rest are links.
7911 # The last name is the one that the linker finds with -lNAME.
7912 library_names_spec=$lt_library_names_spec
7914 # The coded name of the library, if different from the real name.
7915 soname_spec=$lt_soname_spec
7917 # Commands used to build and install an old-style archive.
7919 old_archive_cmds=$lt_old_archive_cmds
7920 old_postinstall_cmds=$lt_old_postinstall_cmds
7921 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7923 # Create an old-style archive from a shared archive.
7924 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7926 # Create a temporary old-style archive to link instead of a shared archive.
7927 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7929 # Commands used to build and install a shared archive.
7930 archive_cmds=$lt_archive_cmds
7931 archive_expsym_cmds=$lt_archive_expsym_cmds
7932 postinstall_cmds=$lt_postinstall_cmds
7933 postuninstall_cmds=$lt_postuninstall_cmds
7935 # Commands to strip libraries.
7936 old_striplib=$lt_old_striplib
7937 striplib=$lt_striplib
7939 # Method to check whether dependent libraries are shared objects.
7940 deplibs_check_method=$lt_deplibs_check_method
7942 # Command to use when deplibs_check_method == file_magic.
7943 file_magic_cmd=$lt_file_magic_cmd
7945 # Flag that allows shared libraries with undefined symbols to be built.
7946 allow_undefined_flag=$lt_allow_undefined_flag
7948 # Flag that forces no undefined symbols.
7949 no_undefined_flag=$lt_no_undefined_flag
7951 # Commands used to finish a libtool library installation in a directory.
7952 finish_cmds=$lt_finish_cmds
7954 # Same as above, but a single script fragment to be evaled but not shown.
7955 finish_eval=$lt_finish_eval
7957 # Take the output of nm and produce a listing of raw symbols and C names.
7958 global_symbol_pipe=$lt_global_symbol_pipe
7960 # Transform the output of nm in a proper C declaration
7961 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7963 # Transform the output of nm in a C name address pair
7964 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7966 # This is the shared library runtime path variable.
7967 runpath_var=$runpath_var
7969 # This is the shared library path variable.
7970 shlibpath_var=$shlibpath_var
7972 # Is shlibpath searched before the hard-coded library search path?
7973 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7975 # How to hardcode a shared library path into an executable.
7976 hardcode_action=$hardcode_action
7978 # Whether we should hardcode library paths into libraries.
7979 hardcode_into_libs=$hardcode_into_libs
7981 # Flag to hardcode \$libdir into a binary during linking.
7982 # This must work even if \$libdir does not exist.
7983 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7985 # Whether we need a single -rpath flag with a separated argument.
7986 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7988 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7990 hardcode_direct=$hardcode_direct
7992 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7994 hardcode_minus_L=$hardcode_minus_L
7996 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7997 # the resulting binary.
7998 hardcode_shlibpath_var=$hardcode_shlibpath_var
8000 # Variables whose values should be saved in libtool wrapper scripts and
8001 # restored at relink time.
8002 variables_saved_for_relink="$variables_saved_for_relink"
8004 # Whether libtool must link a program against all its dependency libraries.
8005 link_all_deplibs=$link_all_deplibs
8007 # Compile-time system search path for libraries
8008 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8010 # Run-time system search path for libraries
8011 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8013 # Fix the shell variable \$srcfile for the compiler.
8014 fix_srcfile_path="$fix_srcfile_path"
8016 # Set to yes if exported symbols are required.
8017 always_export_symbols=$always_export_symbols
8019 # The commands to list exported symbols.
8020 export_symbols_cmds=$lt_export_symbols_cmds
8022 # The commands to extract the exported symbol list from a shared archive.
8023 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8025 # Symbols that should not be listed in the preloaded symbols.
8026 exclude_expsyms=$lt_exclude_expsyms
8028 # Symbols that must always be exported.
8029 include_expsyms=$lt_include_expsyms
8031 # ### END LIBTOOL CONFIG
8037 cat <<\EOF >> "${ofile}T"
8039 # AIX sometimes has problems with the GCC collect2 program. For some
8040 # reason, if we set the COLLECT_NAMES environment variable, the problems
8041 # vanish in a puff of smoke.
8042 if test "X${COLLECT_NAMES+set}" != Xset; then
8044 export COLLECT_NAMES
8051 cygwin* | mingw* | pw32* | os2*)
8052 cat <<'EOF' >> "${ofile}T"
8053 # This is a source program that is used to create dlls on Windows
8054 # Don't remove nor modify the starting and closing comments
8055 # /* ltdll.c starts here */
8056 # #define WIN32_LEAN_AND_MEAN
8057 # #include <windows.h>
8058 # #undef WIN32_LEAN_AND_MEAN
8059 # #include <stdio.h>
8061 # #ifndef __CYGWIN__
8062 # # ifdef __CYGWIN32__
8063 # # define __CYGWIN__ __CYGWIN32__
8067 # #ifdef __cplusplus
8070 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8071 # #ifdef __cplusplus
8076 # #include <cygwin/cygwin_dll.h>
8077 # DECLARE_CYGWIN_DLL( DllMain );
8079 # HINSTANCE __hDllInstance_base;
8082 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8084 # __hDllInstance_base = hInst;
8087 # /* ltdll.c ends here */
8088 # This is a source program that is used to create import libraries
8089 # on Windows for dlls which lack them. Don't remove nor modify the
8090 # starting and closing comments
8091 # /* impgen.c starts here */
8092 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8094 # This file is part of GNU libtool.
8096 # This program is free software; you can redistribute it and/or modify
8097 # it under the terms of the GNU General Public License as published by
8098 # the Free Software Foundation; either version 2 of the License, or
8099 # (at your option) any later version.
8101 # This program is distributed in the hope that it will be useful,
8102 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8103 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8104 # GNU General Public License for more details.
8106 # You should have received a copy of the GNU General Public License
8107 # along with this program; if not, write to the Free Software
8108 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8111 # #include <stdio.h> /* for printf() */
8112 # #include <unistd.h> /* for open(), lseek(), read() */
8113 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8114 # #include <string.h> /* for strdup() */
8116 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8118 # #define O_BINARY 0
8121 # static unsigned int
8122 # pe_get16 (fd, offset)
8126 # unsigned char b[2];
8127 # lseek (fd, offset, SEEK_SET);
8129 # return b[0] + (b[1]<<8);
8132 # static unsigned int
8133 # pe_get32 (fd, offset)
8137 # unsigned char b[4];
8138 # lseek (fd, offset, SEEK_SET);
8140 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8143 # static unsigned int
8147 # unsigned char *b = ptr;
8148 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8157 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8158 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8159 # unsigned long name_rvas, nexp;
8160 # unsigned char *expdata, *erva;
8161 # char *filename, *dll_name;
8163 # filename = argv[1];
8165 # dll = open(filename, O_RDONLY|O_BINARY);
8169 # dll_name = filename;
8171 # for (i=0; filename[i]; i++)
8172 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8173 # dll_name = filename + i +1;
8175 # pe_header_offset = pe_get32 (dll, 0x3c);
8176 # opthdr_ofs = pe_header_offset + 4 + 20;
8177 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8179 # if (num_entries < 1) /* no exports */
8182 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8183 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8184 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8185 # secptr = (pe_header_offset + 4 + 20 +
8186 # pe_get16 (dll, pe_header_offset + 4 + 16));
8189 # for (i = 0; i < nsections; i++)
8192 # unsigned long secptr1 = secptr + 40 * i;
8193 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8194 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8195 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8196 # lseek(dll, secptr1, SEEK_SET);
8197 # read(dll, sname, 8);
8198 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8200 # expptr = fptr + (export_rva - vaddr);
8201 # if (export_rva + export_size > vaddr + vsize)
8202 # export_size = vsize - (export_rva - vaddr);
8207 # expdata = (unsigned char*)malloc(export_size);
8208 # lseek (dll, expptr, SEEK_SET);
8209 # read (dll, expdata, export_size);
8210 # erva = expdata - export_rva;
8212 # nexp = pe_as32 (expdata+24);
8213 # name_rvas = pe_as32 (expdata+32);
8215 # printf ("EXPORTS\n");
8216 # for (i = 0; i<nexp; i++)
8218 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8219 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8224 # /* impgen.c ends here */
8230 # We use sed instead of cat because bash on DJGPP gets confused if
8231 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8232 # text mode, it properly converts lines to CR/LF. This bash problem
8233 # is reportedly fixed, but why not run on old versions too?
8234 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8236 mv -f "${ofile}T" "$ofile" || \
8237 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8245 # This can be used to rebuild libtool when needed
8246 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8248 # Always use our own libtool.
8249 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8251 # Prevent multiple expansion
8254 # Check whether --enable-debug or --disable-debug was given.
8255 if test "${enable_debug+set}" = set; then
8256 enableval="$enable_debug"
8258 CXXFLAGS="-g -O0 -Wall"
8259 cat >>confdefs.h <<\_ACEOF
8260 #define WITH_DEBUG 1
8272 # Check whether --with-libldap or --without-libldap was given.
8273 if test "${with_libldap+set}" = set; then
8274 withval="$with_libldap"
8276 LIBS="-L$with_libldap $LIBS "
8280 LIBS="-L/usr/local/lib $LIBS "
8286 # Check whether --with-ldap-includes or --without-ldap-includes was given.
8287 if test "${with_ldap_includes+set}" = set; then
8288 withval="$with_ldap_includes"
8290 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
8294 CPPFLAGS="-I/usr/local/include $CPPFLAGS "
8299 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
8300 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
8301 if test "${ac_cv_lib_resolv_main+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 ac_check_lib_save_LIBS=$LIBS
8305 LIBS="-lresolv $LIBS"
8306 cat >conftest.$ac_ext <<_ACEOF
8307 #line $LINENO "configure"
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8323 rm -f conftest.$ac_objext conftest$ac_exeext
8324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8325 (eval $ac_link) 2>&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } &&
8329 { ac_try='test -s conftest$ac_exeext'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
8335 ac_cv_lib_resolv_main=yes
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8340 ac_cv_lib_resolv_main=no
8342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8343 LIBS=$ac_check_lib_save_LIBS
8345 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
8346 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
8347 if test $ac_cv_lib_resolv_main = yes; then
8348 cat >>confdefs.h <<_ACEOF
8349 #define HAVE_LIBRESOLV 1
8352 LIBS="-lresolv $LIBS"
8356 echo "$as_me:$LINENO: checking for ber_strdup in -llber" >&5
8357 echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6
8358 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 ac_check_lib_save_LIBS=$LIBS
8363 cat >conftest.$ac_ext <<_ACEOF
8364 #line $LINENO "configure"
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8371 /* Override any gcc2 internal prototype to avoid an error. */
8375 /* We use char because int might match the return type of a gcc2
8376 builtin and then its argument prototype would still apply. */
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388 (eval $ac_link) 2>&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -s conftest$ac_exeext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 ac_cv_lib_lber_ber_strdup=yes
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8403 ac_cv_lib_lber_ber_strdup=no
8405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8406 LIBS=$ac_check_lib_save_LIBS
8408 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_strdup" >&5
8409 echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6
8410 if test $ac_cv_lib_lber_ber_strdup = yes; then
8416 echo " didn't find ber_strdup in liblber !";
8417 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
8418 echo " or try the --with-libldap option.";
8423 echo "$as_me:$LINENO: checking for ldap_add_ext in -lldap" >&5
8424 echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6
8425 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 ac_check_lib_save_LIBS=$LIBS
8432 cat >conftest.$ac_ext <<_ACEOF
8433 #line $LINENO "configure"
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8440 /* Override any gcc2 internal prototype to avoid an error. */
8444 /* We use char because int might match the return type of a gcc2
8445 builtin and then its argument prototype would still apply. */
8446 char ldap_add_ext ();
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8457 (eval $ac_link) 2>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -s conftest$ac_exeext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_cv_lib_ldap_ldap_add_ext=yes
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8472 ac_cv_lib_ldap_ldap_add_ext=no
8474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8475 LIBS=$ac_check_lib_save_LIBS
8477 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
8478 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6
8479 if test $ac_cv_lib_ldap_ldap_add_ext = yes; then
8485 echo " didn't find ldap_add_ext in libldap !";
8486 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
8487 echo " or try the --with-libldap option.";
8492 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8493 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8494 if test "${ac_cv_header_time+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 cat >conftest.$ac_ext <<_ACEOF
8498 #line $LINENO "configure"
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8504 #include <sys/types.h>
8505 #include <sys/time.h>
8511 if ((struct tm *) 0)
8517 rm -f conftest.$ac_objext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8519 (eval $ac_compile) 2>&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -s conftest.$ac_objext'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 ac_cv_header_time=yes
8531 echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8534 ac_cv_header_time=no
8536 rm -f conftest.$ac_objext conftest.$ac_ext
8538 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8539 echo "${ECHO_T}$ac_cv_header_time" >&6
8540 if test $ac_cv_header_time = yes; then
8542 cat >>confdefs.h <<\_ACEOF
8543 #define TIME_WITH_SYS_TIME 1
8548 if test "${ac_cv_header_ldap_h+set}" = set; then
8549 echo "$as_me:$LINENO: checking for ldap.h" >&5
8550 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
8551 if test "${ac_cv_header_ldap_h+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
8555 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
8557 # Is the header compilable?
8558 echo "$as_me:$LINENO: checking ldap.h usability" >&5
8559 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6
8560 cat >conftest.$ac_ext <<_ACEOF
8561 #line $LINENO "configure"
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8567 $ac_includes_default
8570 rm -f conftest.$ac_objext
8571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8572 (eval $ac_compile) 2>&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
8576 { ac_try='test -s conftest.$ac_objext'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 ac_header_compiler=yes
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_header_compiler=no
8589 rm -f conftest.$ac_objext conftest.$ac_ext
8590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8591 echo "${ECHO_T}$ac_header_compiler" >&6
8593 # Is the header present?
8594 echo "$as_me:$LINENO: checking ldap.h presence" >&5
8595 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6
8596 cat >conftest.$ac_ext <<_ACEOF
8597 #line $LINENO "configure"
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8608 grep -v '^ *+' conftest.er1 >conftest.err
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } >/dev/null; then
8613 if test -s conftest.err; then
8614 ac_cpp_err=$ac_c_preproc_warn_flag
8621 if test -z "$ac_cpp_err"; then
8622 ac_header_preproc=yes
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 ac_header_preproc=no
8629 rm -f conftest.err conftest.$ac_ext
8630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8631 echo "${ECHO_T}$ac_header_preproc" >&6
8633 # So? What about this header?
8634 case $ac_header_compiler:$ac_header_preproc in
8636 { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8637 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8638 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
8639 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
8642 ## ------------------------------------ ##
8643 ## Report this to bug-autoconf@gnu.org. ##
8644 ## ------------------------------------ ##
8647 sed "s/^/$as_me: WARNING: /" >&2
8650 { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
8651 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
8652 { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
8653 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
8654 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
8655 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
8658 ## ------------------------------------ ##
8659 ## Report this to bug-autoconf@gnu.org. ##
8660 ## ------------------------------------ ##
8663 sed "s/^/$as_me: WARNING: /" >&2
8666 echo "$as_me:$LINENO: checking for ldap.h" >&5
8667 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
8668 if test "${ac_cv_header_ldap_h+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 ac_cv_header_ldap_h=$ac_header_preproc
8673 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
8674 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
8679 cat >conftest.$ac_ext <<_ACEOF
8680 #line $LINENO "configure"
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8690 $EGREP "ldap_add_ext" >/dev/null 2>&1; then
8696 echo " didn't find ldap_add_ext in ldap.h!";
8697 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
8698 echo " or try --with-ldap-includes option.";
8704 if test "${ac_cv_header_lber_h+set}" = set; then
8705 echo "$as_me:$LINENO: checking for lber.h" >&5
8706 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
8707 if test "${ac_cv_header_lber_h+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
8711 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
8713 # Is the header compilable?
8714 echo "$as_me:$LINENO: checking lber.h usability" >&5
8715 echo $ECHO_N "checking lber.h usability... $ECHO_C" >&6
8716 cat >conftest.$ac_ext <<_ACEOF
8717 #line $LINENO "configure"
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 $ac_includes_default
8726 rm -f conftest.$ac_objext
8727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8728 (eval $ac_compile) 2>&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } &&
8732 { ac_try='test -s conftest.$ac_objext'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; }; then
8738 ac_header_compiler=yes
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8743 ac_header_compiler=no
8745 rm -f conftest.$ac_objext conftest.$ac_ext
8746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8747 echo "${ECHO_T}$ac_header_compiler" >&6
8749 # Is the header present?
8750 echo "$as_me:$LINENO: checking lber.h presence" >&5
8751 echo $ECHO_N "checking lber.h presence... $ECHO_C" >&6
8752 cat >conftest.$ac_ext <<_ACEOF
8753 #line $LINENO "configure"
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8764 grep -v '^ *+' conftest.er1 >conftest.err
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } >/dev/null; then
8769 if test -s conftest.err; then
8770 ac_cpp_err=$ac_c_preproc_warn_flag
8777 if test -z "$ac_cpp_err"; then
8778 ac_header_preproc=yes
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_header_preproc=no
8785 rm -f conftest.err conftest.$ac_ext
8786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8787 echo "${ECHO_T}$ac_header_preproc" >&6
8789 # So? What about this header?
8790 case $ac_header_compiler:$ac_header_preproc in
8792 { echo "$as_me:$LINENO: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&5
8793 echo "$as_me: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8794 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5
8795 echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;}
8798 ## ------------------------------------ ##
8799 ## Report this to bug-autoconf@gnu.org. ##
8800 ## ------------------------------------ ##
8803 sed "s/^/$as_me: WARNING: /" >&2
8806 { echo "$as_me:$LINENO: WARNING: lber.h: present but cannot be compiled" >&5
8807 echo "$as_me: WARNING: lber.h: present but cannot be compiled" >&2;}
8808 { echo "$as_me:$LINENO: WARNING: lber.h: check for missing prerequisite headers?" >&5
8809 echo "$as_me: WARNING: lber.h: check for missing prerequisite headers?" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5
8811 echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;}
8814 ## ------------------------------------ ##
8815 ## Report this to bug-autoconf@gnu.org. ##
8816 ## ------------------------------------ ##
8819 sed "s/^/$as_me: WARNING: /" >&2
8822 echo "$as_me:$LINENO: checking for lber.h" >&5
8823 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
8824 if test "${ac_cv_header_lber_h+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 ac_cv_header_lber_h=$ac_header_preproc
8829 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
8830 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8846 $EGREP "ber_strdup" >/dev/null 2>&1; then
8852 echo " didn't find ber_strdup in lber.h!";
8853 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
8854 echo " or try --with-ldap-includes option.";
8863 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
8864 cat >confcache <<\_ACEOF
8865 # This file is a shell script that caches the results of configure
8866 # tests run on this system so they can be shared between configure
8867 # scripts and configure runs, see configure's option --config-cache.
8868 # It is not useful on other systems. If it contains results you don't
8869 # want to keep, you may remove or edit it.
8871 # config.status only pays attention to the cache file if you give it
8872 # the --recheck option to rerun configure.
8874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8880 # The following way of writing the cache mishandles newlines in values,
8881 # but we know of no workaround that is simple, portable, and efficient.
8882 # So, don't put newlines in cache variables' values.
8883 # Ultrix sh set writes to stderr and can't be redirected directly,
8884 # and sets the high bit in the cache file unless we assign to the vars.
8887 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8889 # `set' does not quote correctly, so add quotes (double-quote
8890 # substitution turns \\\\ into \\, and sed turns \\ into \).
8893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8896 # `set' quotes correctly as required by POSIX, so do not add quotes.
8898 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8905 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8907 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8909 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8910 if test -w $cache_file; then
8911 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8912 cat confcache >$cache_file
8914 echo "not updating unwritable cache $cache_file"
8919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8920 # Let make expand exec_prefix.
8921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8923 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8924 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8925 # trailing colons and then remove the whole line if VPATH becomes empty
8926 # (actually we leave an empty line to preserve line numbers).
8927 if test "x$srcdir" = x.; then
8928 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8929 s/:*\$(srcdir):*/:/;
8930 s/:*\${srcdir}:*/:/;
8932 s/^\([^=]*=[ ]*\):*/\1/;
8938 DEFS=-DHAVE_CONFIG_H
8942 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8943 # 1. Remove the extension, and $U if already installed.
8944 ac_i=`echo "$ac_i" |
8945 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8947 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8948 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8952 LTLIBOBJS=$ac_ltlibobjs
8955 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8956 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8957 Usually this means the macro was only invoked conditionally." >&5
8958 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8959 Usually this means the macro was only invoked conditionally." >&2;}
8960 { (exit 1); exit 1; }; }
8962 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8963 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8964 Usually this means the macro was only invoked conditionally." >&5
8965 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8966 Usually this means the macro was only invoked conditionally." >&2;}
8967 { (exit 1); exit 1; }; }
8969 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8970 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8971 Usually this means the macro was only invoked conditionally." >&5
8972 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8973 Usually this means the macro was only invoked conditionally." >&2;}
8974 { (exit 1); exit 1; }; }
8977 : ${CONFIG_STATUS=./config.status}
8978 ac_clean_files_save=$ac_clean_files
8979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8980 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8981 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8982 cat >$CONFIG_STATUS <<_ACEOF
8984 # Generated by $as_me.
8985 # Run this file to recreate the current configuration.
8986 # Compiler output produced by configure, useful for debugging
8987 # configure, is in config.log if it exists.
8992 SHELL=\${CONFIG_SHELL-$SHELL}
8995 cat >>$CONFIG_STATUS <<\_ACEOF
8996 ## --------------------- ##
8997 ## M4sh Initialization. ##
8998 ## --------------------- ##
9000 # Be Bourne compatible
9001 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9004 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9005 # is contrary to our usage. Disable this feature.
9006 alias -g '${1+"$@"}'='"$@"'
9007 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9011 # Support unset when possible.
9012 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9019 # Work around bugs in pre-3.0 UWIN ksh.
9020 $as_unset ENV MAIL MAILPATH
9027 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9028 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9029 LC_TELEPHONE LC_TIME
9031 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9032 eval $as_var=C; export $as_var
9038 # Required to use basename.
9039 if expr a : '\(a\)' >/dev/null 2>&1; then
9045 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9046 as_basename=basename
9052 # Name of the executable.
9053 as_me=`$as_basename "$0" ||
9054 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9055 X"$0" : 'X\(//\)$' \| \
9056 X"$0" : 'X\(/\)$' \| \
9057 . : '\(.\)' 2>/dev/null ||
9059 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9060 /^X\/\(\/\/\)$/{ s//\1/; q; }
9061 /^X\/\(\/\).*/{ s//\1/; q; }
9065 # PATH needs CR, and LINENO needs CR and PATH.
9066 # Avoid depending upon Character Ranges.
9067 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9068 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9069 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9070 as_cr_digits='0123456789'
9071 as_cr_alnum=$as_cr_Letters$as_cr_digits
9073 # The user is always right.
9074 if test "${PATH_SEPARATOR+set}" != set; then
9075 echo "#! /bin/sh" >conf$$.sh
9076 echo "exit 0" >>conf$$.sh
9078 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9089 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9090 test "x$as_lineno_1" != "x$as_lineno_2" &&
9091 test "x$as_lineno_3" = "x$as_lineno_2" || {
9092 # Find who we are. Look in the path if we contain no path at all
9095 *[\\/]* ) as_myself=$0 ;;
9096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 test -z "$as_dir" && as_dir=.
9101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9106 # We did not find ourselves, most probably we were run as `sh COMMAND'
9107 # in which case we are not to be found in the path.
9108 if test "x$as_myself" = x; then
9111 if test ! -f "$as_myself"; then
9112 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9113 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9114 { (exit 1); exit 1; }; }
9116 case $CONFIG_SHELL in
9118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9122 test -z "$as_dir" && as_dir=.
9123 for as_base in sh bash ksh sh5; do
9126 if ("$as_dir/$as_base" -c '
9129 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9130 test "x$as_lineno_1" != "x$as_lineno_2" &&
9131 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9132 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9133 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9134 CONFIG_SHELL=$as_dir/$as_base
9136 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9144 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9145 # uniformly replaced by the line number. The first 'sed' inserts a
9146 # line-number line before each line; the second 'sed' does the real
9147 # work. The second script uses 'N' to pair each line-number line
9148 # with the numbered line, and appends trailing '-' during
9149 # substitution so that $LINENO is not a special case at line end.
9150 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9151 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9152 sed '=' <$as_myself |
9157 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9160 s,^['$as_cr_digits']*\n,,
9162 chmod +x $as_me.lineno ||
9163 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9164 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9165 { (exit 1); exit 1; }; }
9167 # Don't try to exec as it changes $[0], causing all sort of problems
9168 # (the dirname of $[0] is not the place where we might find the
9169 # original and so on. Autoconf is especially sensible to this).
9171 # Exit status is that of the last command.
9176 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9177 *c*,-n*) ECHO_N= ECHO_C='
9179 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9180 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9183 if expr a : '\(a\)' >/dev/null 2>&1; then
9189 rm -f conf$$ conf$$.exe conf$$.file
9191 if ln -s conf$$.file conf$$ 2>/dev/null; then
9192 # We could just check for DJGPP; but this test a) works b) is more generic
9193 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9194 if test -f conf$$.exe; then
9195 # Don't use ln at all; we don't have any links
9200 elif ln conf$$.file conf$$ 2>/dev/null; then
9205 rm -f conf$$ conf$$.exe conf$$.file
9207 if mkdir -p . 2>/dev/null; then
9213 as_executable_p="test -f"
9215 # Sed expression to map a string onto a valid CPP name.
9216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9218 # Sed expression to map a string onto a valid variable name.
9219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9223 # We need space, tab and new line, in precisely that order.
9233 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9234 # report actual input values of CONFIG_FILES etc. instead of their
9235 # values after options handling. Logging --version etc. is OK.
9239 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9240 ## Running $as_me. ##
9245 This file was extended by $as_me, which was
9246 generated by GNU Autoconf 2.57. Invocation command line was
9248 CONFIG_FILES = $CONFIG_FILES
9249 CONFIG_HEADERS = $CONFIG_HEADERS
9250 CONFIG_LINKS = $CONFIG_LINKS
9251 CONFIG_COMMANDS = $CONFIG_COMMANDS
9255 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9259 # Files that config.status was made for.
9260 if test -n "$ac_config_files"; then
9261 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9264 if test -n "$ac_config_headers"; then
9265 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9268 if test -n "$ac_config_links"; then
9269 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9272 if test -n "$ac_config_commands"; then
9273 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9276 cat >>$CONFIG_STATUS <<\_ACEOF
9279 \`$as_me' instantiates files from templates according to the
9280 current configuration.
9282 Usage: $0 [OPTIONS] [FILE]...
9284 -h, --help print this help, then exit
9285 -V, --version print version number, then exit
9286 -q, --quiet do not print progress messages
9287 -d, --debug don't remove temporary files
9288 --recheck update $as_me by reconfiguring in the same conditions
9289 --file=FILE[:TEMPLATE]
9290 instantiate the configuration file FILE
9291 --header=FILE[:TEMPLATE]
9292 instantiate the configuration header FILE
9294 Configuration files:
9297 Configuration headers:
9300 Configuration commands:
9303 Report bugs to <bug-autoconf@gnu.org>."
9306 cat >>$CONFIG_STATUS <<_ACEOF
9309 configured by $0, generated by GNU Autoconf 2.57,
9310 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9312 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9313 Free Software Foundation, Inc.
9314 This config.status script is free software; the Free Software Foundation
9315 gives unlimited permission to copy, distribute and modify it."
9320 cat >>$CONFIG_STATUS <<\_ACEOF
9321 # If no file are specified by the user, then we need to provide default
9322 # value. By we need to know if files were specified by the user.
9328 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9329 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9337 *) # This is not an option, so the user has probably given explicit
9340 ac_need_defaults=false;;
9344 # Handling of the options.
9346 cat >>$CONFIG_STATUS <<\_ACEOF
9347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9349 --version | --vers* | -V )
9350 echo "$ac_cs_version"; exit 0 ;;
9352 # Conflict between --help and --header
9353 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9354 Try \`$0 --help' for more information." >&5
9355 echo "$as_me: error: ambiguous option: $1
9356 Try \`$0 --help' for more information." >&2;}
9357 { (exit 1); exit 1; }; };;
9358 --help | --hel | -h )
9359 echo "$ac_cs_usage"; exit 0 ;;
9360 --debug | --d* | -d )
9362 --file | --fil | --fi | --f )
9364 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9365 ac_need_defaults=false;;
9366 --header | --heade | --head | --hea )
9368 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9369 ac_need_defaults=false;;
9370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9375 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9376 Try \`$0 --help' for more information." >&5
9377 echo "$as_me: error: unrecognized option: $1
9378 Try \`$0 --help' for more information." >&2;}
9379 { (exit 1); exit 1; }; } ;;
9381 *) ac_config_targets="$ac_config_targets $1" ;;
9387 ac_configure_extra_args=
9389 if $ac_cs_silent; then
9391 ac_configure_extra_args="$ac_configure_extra_args --silent"
9395 cat >>$CONFIG_STATUS <<_ACEOF
9396 if \$ac_cs_recheck; then
9397 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9398 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9403 cat >>$CONFIG_STATUS <<_ACEOF
9405 # INIT-COMMANDS section.
9408 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9414 cat >>$CONFIG_STATUS <<\_ACEOF
9415 for ac_config_target in $ac_config_targets
9417 case "$ac_config_target" in
9418 # Handling of arguments.
9419 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9420 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9421 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
9422 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9423 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9424 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9425 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9426 { (exit 1); exit 1; }; };;
9430 # If the user did not use the arguments to specify the items to instantiate,
9431 # then the envvar interface is used. Set only those that are not.
9432 # We use the long form for the default assignment because of an extremely
9433 # bizarre bug on SunOS 4.1.3.
9434 if $ac_need_defaults; then
9435 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9436 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9437 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9440 # Have a temporary directory for convenience. Make it in the build tree
9441 # simply because there is no reason to put it here, and in addition,
9442 # creating and moving files from /tmp can sometimes cause problems.
9443 # Create a temporary directory, and hook for its removal unless debugging.
9446 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9447 trap '{ (exit 1); exit 1; }' 1 2 13 15
9450 # Create a (secure) tmp directory for tmp files.
9453 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9454 test -n "$tmp" && test -d "$tmp"
9457 tmp=./confstat$$-$RANDOM
9458 (umask 077 && mkdir $tmp)
9461 echo "$me: cannot create a temporary directory in ." >&2
9462 { (exit 1); exit 1; }
9467 cat >>$CONFIG_STATUS <<_ACEOF
9470 # CONFIG_FILES section.
9473 # No need to generate the scripts if there are no CONFIG_FILES.
9474 # This happens for instance when ./config.status config.h
9475 if test -n "\$CONFIG_FILES"; then
9476 # Protect against being on the right side of a sed subst in config.status.
9477 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9478 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9479 s,@SHELL@,$SHELL,;t t
9480 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9481 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9482 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9483 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9484 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9485 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9486 s,@exec_prefix@,$exec_prefix,;t t
9487 s,@prefix@,$prefix,;t t
9488 s,@program_transform_name@,$program_transform_name,;t t
9489 s,@bindir@,$bindir,;t t
9490 s,@sbindir@,$sbindir,;t t
9491 s,@libexecdir@,$libexecdir,;t t
9492 s,@datadir@,$datadir,;t t
9493 s,@sysconfdir@,$sysconfdir,;t t
9494 s,@sharedstatedir@,$sharedstatedir,;t t
9495 s,@localstatedir@,$localstatedir,;t t
9496 s,@libdir@,$libdir,;t t
9497 s,@includedir@,$includedir,;t t
9498 s,@oldincludedir@,$oldincludedir,;t t
9499 s,@infodir@,$infodir,;t t
9500 s,@mandir@,$mandir,;t t
9501 s,@build_alias@,$build_alias,;t t
9502 s,@host_alias@,$host_alias,;t t
9503 s,@target_alias@,$target_alias,;t t
9505 s,@ECHO_C@,$ECHO_C,;t t
9506 s,@ECHO_N@,$ECHO_N,;t t
9507 s,@ECHO_T@,$ECHO_T,;t t
9509 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9510 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9511 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9512 s,@CYGPATH_W@,$CYGPATH_W,;t t
9513 s,@PACKAGE@,$PACKAGE,;t t
9514 s,@VERSION@,$VERSION,;t t
9515 s,@ACLOCAL@,$ACLOCAL,;t t
9516 s,@AUTOCONF@,$AUTOCONF,;t t
9517 s,@AUTOMAKE@,$AUTOMAKE,;t t
9518 s,@AUTOHEADER@,$AUTOHEADER,;t t
9519 s,@MAKEINFO@,$MAKEINFO,;t t
9520 s,@AMTAR@,$AMTAR,;t t
9521 s,@install_sh@,$install_sh,;t t
9522 s,@STRIP@,$STRIP,;t t
9523 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9524 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9526 s,@SET_MAKE@,$SET_MAKE,;t t
9528 s,@CXXFLAGS@,$CXXFLAGS,;t t
9529 s,@LDFLAGS@,$LDFLAGS,;t t
9530 s,@CPPFLAGS@,$CPPFLAGS,;t t
9531 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9532 s,@EXEEXT@,$EXEEXT,;t t
9533 s,@OBJEXT@,$OBJEXT,;t t
9534 s,@DEPDIR@,$DEPDIR,;t t
9535 s,@am__include@,$am__include,;t t
9536 s,@am__quote@,$am__quote,;t t
9537 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9538 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9539 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9540 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9541 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9542 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
9543 s,@build@,$build,;t t
9544 s,@build_cpu@,$build_cpu,;t t
9545 s,@build_vendor@,$build_vendor,;t t
9546 s,@build_os@,$build_os,;t t
9548 s,@host_cpu@,$host_cpu,;t t
9549 s,@host_vendor@,$host_vendor,;t t
9550 s,@host_os@,$host_os,;t t
9552 s,@CFLAGS@,$CFLAGS,;t t
9553 s,@ac_ct_CC@,$ac_ct_CC,;t t
9554 s,@CCDEPMODE@,$CCDEPMODE,;t t
9555 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9556 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9559 s,@RANLIB@,$RANLIB,;t t
9560 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9562 s,@EGREP@,$EGREP,;t t
9563 s,@LIBTOOL@,$LIBTOOL,;t t
9564 s,@LIBOBJS@,$LIBOBJS,;t t
9565 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9570 cat >>$CONFIG_STATUS <<\_ACEOF
9571 # Split the substitutions into bite-sized pieces for seds with
9572 # small command number limits, like on Digital OSF/1 and HP-UX.
9574 ac_sed_frag=1 # Number of current file.
9575 ac_beg=1 # First line for current file.
9576 ac_end=$ac_max_sed_lines # Line after last line for current file.
9579 while $ac_more_lines; do
9580 if test $ac_beg -gt 1; then
9581 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9583 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9585 if test ! -s $tmp/subs.frag; then
9588 # The purpose of the label and of the branching condition is to
9589 # speed up the sed processing (if there are no `@' at all, there
9590 # is no need to browse any of the substitutions).
9591 # These are the two extra sed commands mentioned above.
9593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9594 if test -z "$ac_sed_cmds"; then
9595 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9597 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9599 ac_sed_frag=`expr $ac_sed_frag + 1`
9601 ac_end=`expr $ac_end + $ac_max_sed_lines`
9604 if test -z "$ac_sed_cmds"; then
9607 fi # test -n "$CONFIG_FILES"
9610 cat >>$CONFIG_STATUS <<\_ACEOF
9611 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9612 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9614 - | *:- | *:-:* ) # input from stdin
9616 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9617 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9618 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9619 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9620 * ) ac_file_in=$ac_file.in ;;
9623 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9624 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9626 X"$ac_file" : 'X\(//\)[^/]' \| \
9627 X"$ac_file" : 'X\(//\)$' \| \
9628 X"$ac_file" : 'X\(/\)' \| \
9629 . : '\(.\)' 2>/dev/null ||
9631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9633 /^X\(\/\/\)$/{ s//\1/; q; }
9634 /^X\(\/\).*/{ s//\1/; q; }
9636 { if $as_mkdir_p; then
9641 while test ! -d "$as_dir"; do
9642 as_dirs="$as_dir $as_dirs"
9643 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9645 X"$as_dir" : 'X\(//\)[^/]' \| \
9646 X"$as_dir" : 'X\(//\)$' \| \
9647 X"$as_dir" : 'X\(/\)' \| \
9648 . : '\(.\)' 2>/dev/null ||
9650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9651 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9652 /^X\(\/\/\)$/{ s//\1/; q; }
9653 /^X\(\/\).*/{ s//\1/; q; }
9656 test ! -n "$as_dirs" || mkdir $as_dirs
9657 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9658 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9659 { (exit 1); exit 1; }; }; }
9663 if test "$ac_dir" != .; then
9664 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9665 # A "../" for each directory in $ac_dir_suffix.
9666 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9668 ac_dir_suffix= ac_top_builddir=
9672 .) # No --srcdir option. We are building in place.
9674 if test -z "$ac_top_builddir"; then
9677 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9679 [\\/]* | ?:[\\/]* ) # Absolute path.
9680 ac_srcdir=$srcdir$ac_dir_suffix;
9681 ac_top_srcdir=$srcdir ;;
9683 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9684 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9686 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9688 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9689 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9690 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9691 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9695 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9696 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9699 if test x"$ac_file" != x-; then
9700 { echo "$as_me:$LINENO: creating $ac_file" >&5
9701 echo "$as_me: creating $ac_file" >&6;}
9704 # Let's still pretend it is `configure' which instantiates (i.e., don't
9705 # use $as_me), people would be surprised to read:
9706 # /* config.h. Generated by config.status. */
9707 if test x"$ac_file" = x-; then
9710 configure_input="$ac_file. "
9712 configure_input=$configure_input"Generated from `echo $ac_file_in |
9713 sed 's,.*/,,'` by configure."
9715 # First look for the input files in the build tree, otherwise in the
9717 ac_file_inputs=`IFS=:
9718 for f in $ac_file_in; do
9720 -) echo $tmp/stdin ;;
9722 # Absolute (can't be DOS-style, as IFS=:)
9723 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9724 echo "$as_me: error: cannot find input file: $f" >&2;}
9725 { (exit 1); exit 1; }; }
9728 if test -f "$f"; then
9731 elif test -f "$srcdir/$f"; then
9736 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9737 echo "$as_me: error: cannot find input file: $f" >&2;}
9738 { (exit 1); exit 1; }; }
9741 done` || { (exit 1); exit 1; }
9743 cat >>$CONFIG_STATUS <<_ACEOF
9747 cat >>$CONFIG_STATUS <<\_ACEOF
9749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9750 s,@configure_input@,$configure_input,;t t
9751 s,@srcdir@,$ac_srcdir,;t t
9752 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9753 s,@top_srcdir@,$ac_top_srcdir,;t t
9754 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9755 s,@builddir@,$ac_builddir,;t t
9756 s,@abs_builddir@,$ac_abs_builddir,;t t
9757 s,@top_builddir@,$ac_top_builddir,;t t
9758 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9759 s,@INSTALL@,$ac_INSTALL,;t t
9760 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9762 if test x"$ac_file" != x-; then
9763 mv $tmp/out $ac_file
9771 cat >>$CONFIG_STATUS <<\_ACEOF
9774 # CONFIG_HEADER section.
9777 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9778 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9780 # ac_d sets the value in "#define NAME VALUE" lines.
9781 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9782 ac_dB='[ ].*$,\1#\2'
9785 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9786 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9787 ac_uB='$,\1#\2define\3'
9791 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9792 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9794 - | *:- | *:-:* ) # input from stdin
9796 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9797 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9798 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9799 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9800 * ) ac_file_in=$ac_file.in ;;
9803 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9804 echo "$as_me: creating $ac_file" >&6;}
9806 # First look for the input files in the build tree, otherwise in the
9808 ac_file_inputs=`IFS=:
9809 for f in $ac_file_in; do
9811 -) echo $tmp/stdin ;;
9813 # Absolute (can't be DOS-style, as IFS=:)
9814 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9815 echo "$as_me: error: cannot find input file: $f" >&2;}
9816 { (exit 1); exit 1; }; }
9819 if test -f "$f"; then
9822 elif test -f "$srcdir/$f"; then
9827 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9828 echo "$as_me: error: cannot find input file: $f" >&2;}
9829 { (exit 1); exit 1; }; }
9832 done` || { (exit 1); exit 1; }
9833 # Remove the trailing spaces.
9834 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9838 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9839 # `conftest.undefs', that substitutes the proper values into
9840 # config.h.in to produce config.h. The first handles `#define'
9841 # templates, and the second `#undef' templates.
9842 # And first: Protect against being on the right side of a sed subst in
9843 # config.status. Protect against being in an unquoted here document
9845 rm -f conftest.defines conftest.undefs
9846 # Using a here document instead of a string reduces the quoting nightmare.
9847 # Putting comments in sed scripts is not portable.
9849 # `end' is used to avoid that the second main sed command (meant for
9850 # 0-ary CPP macros) applies to n-ary macro definitions.
9851 # See the Autoconf documentation for `clear'.
9852 cat >confdef2sed.sed <<\_ACEOF
9857 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9859 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9862 # If some macros were called several times there might be several times
9863 # the same #defines, which is useless. Nevertheless, we may not want to
9864 # sort them, since we want the *last* AC-DEFINE to be honored.
9865 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9866 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9867 rm -f confdef2sed.sed
9869 # This sed command replaces #undef with comments. This is necessary, for
9870 # example, in the case of _POSIX_SOURCE, which is predefined and required
9871 # on some systems where configure will not decide to define it.
9872 cat >>conftest.undefs <<\_ACEOF
9873 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9876 # Break up conftest.defines because some shells have a limit on the size
9877 # of here documents, and old seds have small limits too (100 cmds).
9878 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9879 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9880 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9881 echo ' :' >>$CONFIG_STATUS
9883 while grep . conftest.defines >/dev/null
9885 # Write a limited-size here document to $tmp/defines.sed.
9886 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9887 # Speed up: don't consider the non `#define' lines.
9888 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9889 # Work around the forget-to-reset-the-flag bug.
9890 echo 't clr' >>$CONFIG_STATUS
9891 echo ': clr' >>$CONFIG_STATUS
9892 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9894 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9898 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9899 rm -f conftest.defines
9900 mv conftest.tail conftest.defines
9902 rm -f conftest.defines
9903 echo ' fi # grep' >>$CONFIG_STATUS
9904 echo >>$CONFIG_STATUS
9906 # Break up conftest.undefs because some shells have a limit on the size
9907 # of here documents, and old seds have small limits too (100 cmds).
9908 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9910 while grep . conftest.undefs >/dev/null
9912 # Write a limited-size here document to $tmp/undefs.sed.
9913 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9914 # Speed up: don't consider the non `#undef'
9915 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9916 # Work around the forget-to-reset-the-flag bug.
9917 echo 't clr' >>$CONFIG_STATUS
9918 echo ': clr' >>$CONFIG_STATUS
9919 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9921 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9925 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9926 rm -f conftest.undefs
9927 mv conftest.tail conftest.undefs
9929 rm -f conftest.undefs
9931 cat >>$CONFIG_STATUS <<\_ACEOF
9932 # Let's still pretend it is `configure' which instantiates (i.e., don't
9933 # use $as_me), people would be surprised to read:
9934 # /* config.h. Generated by config.status. */
9935 if test x"$ac_file" = x-; then
9936 echo "/* Generated by configure. */" >$tmp/config.h
9938 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9940 cat $tmp/in >>$tmp/config.h
9942 if test x"$ac_file" != x-; then
9943 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9944 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9945 echo "$as_me: $ac_file is unchanged" >&6;}
9947 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9948 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9949 X"$ac_file" : 'X\(//\)[^/]' \| \
9950 X"$ac_file" : 'X\(//\)$' \| \
9951 X"$ac_file" : 'X\(/\)' \| \
9952 . : '\(.\)' 2>/dev/null ||
9954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9956 /^X\(\/\/\)$/{ s//\1/; q; }
9957 /^X\(\/\).*/{ s//\1/; q; }
9959 { if $as_mkdir_p; then
9964 while test ! -d "$as_dir"; do
9965 as_dirs="$as_dir $as_dirs"
9966 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9968 X"$as_dir" : 'X\(//\)[^/]' \| \
9969 X"$as_dir" : 'X\(//\)$' \| \
9970 X"$as_dir" : 'X\(/\)' \| \
9971 . : '\(.\)' 2>/dev/null ||
9973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9974 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9975 /^X\(\/\/\)$/{ s//\1/; q; }
9976 /^X\(\/\).*/{ s//\1/; q; }
9979 test ! -n "$as_dirs" || mkdir $as_dirs
9980 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9981 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9982 { (exit 1); exit 1; }; }; }
9985 mv $tmp/config.h $ac_file
9991 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
9992 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9993 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9994 X$ac_file : 'X\(//\)[^/]' \| \
9995 X$ac_file : 'X\(//\)$' \| \
9996 X$ac_file : 'X\(/\)' \| \
9997 . : '\(.\)' 2>/dev/null ||
9999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10001 /^X\(\/\/\)$/{ s//\1/; q; }
10002 /^X\(\/\).*/{ s//\1/; q; }
10003 s/.*/./; q'`/stamp-h$_am_stamp_count
10006 cat >>$CONFIG_STATUS <<\_ACEOF
10009 # CONFIG_COMMANDS section.
10011 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10012 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10013 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10014 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10015 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10016 X"$ac_dest" : 'X\(//\)[^/]' \| \
10017 X"$ac_dest" : 'X\(//\)$' \| \
10018 X"$ac_dest" : 'X\(/\)' \| \
10019 . : '\(.\)' 2>/dev/null ||
10021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10023 /^X\(\/\/\)$/{ s//\1/; q; }
10024 /^X\(\/\).*/{ s//\1/; q; }
10028 if test "$ac_dir" != .; then
10029 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10030 # A "../" for each directory in $ac_dir_suffix.
10031 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10033 ac_dir_suffix= ac_top_builddir=
10037 .) # No --srcdir option. We are building in place.
10039 if test -z "$ac_top_builddir"; then
10042 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10044 [\\/]* | ?:[\\/]* ) # Absolute path.
10045 ac_srcdir=$srcdir$ac_dir_suffix;
10046 ac_top_srcdir=$srcdir ;;
10047 *) # Relative path.
10048 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10049 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10051 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10053 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10054 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10055 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10056 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10059 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10060 echo "$as_me: executing $ac_dest commands" >&6;}
10062 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10063 # Strip MF so we end up with the name of the file.
10064 mf=`echo "$mf" | sed -e 's/:.*$//'`
10065 # Check whether this is an Automake generated Makefile or not.
10066 # We used to match only the files named `Makefile.in', but
10067 # some people rename them; so instead we look at the file content.
10068 # Grep'ing the first line is not enough: some people post-process
10069 # each Makefile.in and add a new line on top of each file to say so.
10070 # So let's grep whole file.
10071 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10072 dirpart=`(dirname "$mf") 2>/dev/null ||
10073 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10074 X"$mf" : 'X\(//\)[^/]' \| \
10075 X"$mf" : 'X\(//\)$' \| \
10076 X"$mf" : 'X\(/\)' \| \
10077 . : '\(.\)' 2>/dev/null ||
10079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10081 /^X\(\/\/\)$/{ s//\1/; q; }
10082 /^X\(\/\).*/{ s//\1/; q; }
10087 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10088 # Extract the definition of DEP_FILES from the Makefile without
10090 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10091 test -z "$DEPDIR" && continue
10092 # When using ansi2knr, U may be empty or an underscore; expand it
10093 U=`sed -n -e '/^U = / s///p' < "$mf"`
10094 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10095 # We invoke sed twice because it is the simplest approach to
10096 # changing $(DEPDIR) to its actual value in the expansion.
10097 for file in `sed -n -e '
10098 /^DEP_FILES = .*\\\\$/ {
10107 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10108 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10109 # Make sure the directory exists.
10110 test -f "$dirpart/$file" && continue
10111 fdir=`(dirname "$file") 2>/dev/null ||
10112 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10113 X"$file" : 'X\(//\)[^/]' \| \
10114 X"$file" : 'X\(//\)$' \| \
10115 X"$file" : 'X\(/\)' \| \
10116 . : '\(.\)' 2>/dev/null ||
10118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10120 /^X\(\/\/\)$/{ s//\1/; q; }
10121 /^X\(\/\).*/{ s//\1/; q; }
10123 { if $as_mkdir_p; then
10124 mkdir -p $dirpart/$fdir
10126 as_dir=$dirpart/$fdir
10128 while test ! -d "$as_dir"; do
10129 as_dirs="$as_dir $as_dirs"
10130 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10132 X"$as_dir" : 'X\(//\)[^/]' \| \
10133 X"$as_dir" : 'X\(//\)$' \| \
10134 X"$as_dir" : 'X\(/\)' \| \
10135 . : '\(.\)' 2>/dev/null ||
10137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10139 /^X\(\/\/\)$/{ s//\1/; q; }
10140 /^X\(\/\).*/{ s//\1/; q; }
10143 test ! -n "$as_dirs" || mkdir $as_dirs
10144 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10145 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10146 { (exit 1); exit 1; }; }; }
10148 # echo "creating $dirpart/$file"
10149 echo '# dummy' > "$dirpart/$file"
10157 cat >>$CONFIG_STATUS <<\_ACEOF
10159 { (exit 0); exit 0; }
10161 chmod +x $CONFIG_STATUS
10162 ac_clean_files=$ac_clean_files_save
10165 # configure is writing to config.log, and then calls config.status.
10166 # config.status does its own redirection, appending to config.log.
10167 # Unfortunately, on DOS this fails, as config.log is still kept open
10168 # by configure, so config.status won't be able to write to it; its
10169 # output is simply discarded. So we exec the FD to /dev/null,
10170 # effectively closing config.log, so it can be properly (re)opened and
10171 # appended to by config.status. When coming back to configure, we
10172 # need to make the FD available again.
10173 if test "$no_create" != yes; then
10175 ac_config_status_args=
10176 test "$silent" = yes &&
10177 ac_config_status_args="$ac_config_status_args --quiet"
10179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10182 # would make configure fail if this is the last instruction.
10183 $ac_cs_success || { (exit 1); exit 1; }