modified: makefile
[GalaxyCodeBases.git] / c_cpp / etc / jellyfish / configure
blobf3170e98f9ac194c01b28d85531440b65dec960f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for jellyfish 1.1.4.
5 # Report bugs to <gmarcais@umd.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 as_nl='
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
161 /^X\/\(\/\/\)$/{
162 s//\1/
165 /^X\/\(\/\).*/{
166 s//\1/
169 s/.*/./; q'`
171 # CDPATH.
172 $as_unset CDPATH
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
186 as_func_success () {
187 as_func_return 0
189 as_func_failure () {
190 as_func_return 1
192 as_func_ret_success () {
193 return 0
195 as_func_ret_failure () {
196 return 1
199 exitcode=0
200 if as_func_success; then
202 else
203 exitcode=1
204 echo as_func_success failed.
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 else
227 exitcode=1
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
298 (as_func_return () {
299 (exit $1)
301 as_func_success () {
302 as_func_return 0
304 as_func_failure () {
305 as_func_return 1
307 as_func_ret_success () {
308 return 0
310 as_func_ret_failure () {
311 return 1
314 exitcode=0
315 if as_func_success; then
317 else
318 exitcode=1
319 echo as_func_success failed.
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 else
342 exitcode=1
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354 _ASEOF
355 }; then
356 break
361 done
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
388 (exit \$1)
390 as_func_success () {
391 as_func_return 0
393 as_func_failure () {
394 as_func_return 1
396 as_func_ret_success () {
397 return 0
399 as_func_ret_failure () {
400 return 1
403 exitcode=0
404 if as_func_success; then
406 else
407 exitcode=1
408 echo as_func_success failed.
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 else
431 exitcode=1
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
468 :lineno
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
532 else
533 as_ln_s='cp -p'
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
585 esac
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
607 _LT_EOF
608 exit 0
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
625 done
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
649 done
650 IFS="$lt_save_ifs"
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
698 prev="$cmd"
699 done
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev/null 6>&1
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 # Initializations.
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
746 PACKAGE_NAME='jellyfish'
747 PACKAGE_TARNAME='jellyfish'
748 PACKAGE_VERSION='1.1.4'
749 PACKAGE_STRING='jellyfish 1.1.4'
750 PACKAGE_BUGREPORT='gmarcais@umd.edu'
752 # Factoring default headers for most tests.
753 ac_includes_default="\
754 #include <stdio.h>
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
757 #endif
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
760 #endif
761 #ifdef STDC_HEADERS
762 # include <stdlib.h>
763 # include <stddef.h>
764 #else
765 # ifdef HAVE_STDLIB_H
766 # include <stdlib.h>
767 # endif
768 #endif
769 #ifdef HAVE_STRING_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771 # include <memory.h>
772 # endif
773 # include <string.h>
774 #endif
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
777 #endif
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
780 #endif
781 #ifdef HAVE_STDINT_H
782 # include <stdint.h>
783 #endif
784 #ifdef HAVE_UNISTD_H
785 # include <unistd.h>
786 #endif"
788 ac_subst_vars='am__EXEEXT_FALSE
789 am__EXEEXT_TRUE
790 LTLIBOBJS
791 LIBOBJS
792 CXXCPP
793 OTOOL64
794 OTOOL
795 LIPO
796 NMEDIT
797 DSYMUTIL
798 lt_ECHO
799 RANLIB
801 OBJDUMP
802 LN_S
804 ac_ct_DUMPBIN
805 DUMPBIN
807 FGREP
809 LIBTOOL
810 EGREP
811 GREP
813 am__fastdepCC_FALSE
814 am__fastdepCC_TRUE
815 CCDEPMODE
816 ac_ct_CC
817 CFLAGS
820 am__fastdepCXX_FALSE
821 am__fastdepCXX_TRUE
822 CXXDEPMODE
823 AMDEPBACKSLASH
824 AMDEP_FALSE
825 AMDEP_TRUE
826 am__quote
827 am__include
828 DEPDIR
829 OBJEXT
830 EXEEXT
831 ac_ct_CXX
832 CPPFLAGS
833 LDFLAGS
834 CXXFLAGS
836 AM_BACKSLASH
837 AM_DEFAULT_VERBOSITY
838 am__untar
839 am__tar
840 AMTAR
841 am__leading_dot
842 SET_MAKE
844 mkdir_p
845 MKDIR_P
846 INSTALL_STRIP_PROGRAM
847 STRIP
848 install_sh
849 MAKEINFO
850 AUTOHEADER
851 AUTOMAKE
852 AUTOCONF
853 ACLOCAL
854 VERSION
855 PACKAGE
856 CYGPATH_W
857 am__isrc
858 INSTALL_DATA
859 INSTALL_SCRIPT
860 INSTALL_PROGRAM
861 host_os
862 host_vendor
863 host_cpu
864 host
865 build_os
866 build_vendor
867 build_cpu
868 build
869 target_alias
870 host_alias
871 build_alias
872 LIBS
873 ECHO_T
874 ECHO_N
875 ECHO_C
876 DEFS
877 mandir
878 localedir
879 libdir
880 psdir
881 pdfdir
882 dvidir
883 htmldir
884 infodir
885 docdir
886 oldincludedir
887 includedir
888 localstatedir
889 sharedstatedir
890 sysconfdir
891 datadir
892 datarootdir
893 libexecdir
894 sbindir
895 bindir
896 program_transform_name
897 prefix
898 exec_prefix
899 PACKAGE_BUGREPORT
900 PACKAGE_STRING
901 PACKAGE_VERSION
902 PACKAGE_TARNAME
903 PACKAGE_NAME
904 PATH_SEPARATOR
905 SHELL'
906 ac_subst_files=''
907 ac_user_opts='
908 enable_option_checking
909 enable_silent_rules
910 enable_dependency_tracking
911 with_sse
912 with_half
913 enable_shared
914 enable_static
915 with_pic
916 enable_fast_install
917 with_gnu_ld
918 enable_libtool_lock
920 ac_precious_vars='build_alias
921 host_alias
922 target_alias
924 CXXFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
931 CFLAGS
933 CXXCPP'
936 # Initialize some variables set by options.
937 ac_init_help=
938 ac_init_version=false
939 ac_unrecognized_opts=
940 ac_unrecognized_sep=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
943 cache_file=/dev/null
944 exec_prefix=NONE
945 no_create=
946 no_recursion=
947 prefix=NONE
948 program_prefix=NONE
949 program_suffix=NONE
950 program_transform_name=s,x,x,
951 silent=
952 site=
953 srcdir=
954 verbose=
955 x_includes=NONE
956 x_libraries=NONE
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir='${exec_prefix}/bin'
965 sbindir='${exec_prefix}/sbin'
966 libexecdir='${exec_prefix}/libexec'
967 datarootdir='${prefix}/share'
968 datadir='${datarootdir}'
969 sysconfdir='${prefix}/etc'
970 sharedstatedir='${prefix}/com'
971 localstatedir='${prefix}/var'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975 infodir='${datarootdir}/info'
976 htmldir='${docdir}'
977 dvidir='${docdir}'
978 pdfdir='${docdir}'
979 psdir='${docdir}'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
984 ac_prev=
985 ac_dashdash=
986 for ac_option
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\$ac_option
991 ac_prev=
992 continue
995 case $ac_option in
996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *) ac_optarg=yes ;;
998 esac
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1002 case $ac_dashdash$ac_option in
1004 ac_dashdash=yes ;;
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 ac_prev=bindir ;;
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009 bindir=$ac_optarg ;;
1011 -build | --build | --buil | --bui | --bu)
1012 ac_prev=build_alias ;;
1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014 build_alias=$ac_optarg ;;
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018 ac_prev=cache_file ;;
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021 cache_file=$ac_optarg ;;
1023 --config-cache | -C)
1024 cache_file=config.cache ;;
1026 -datadir | --datadir | --datadi | --datad)
1027 ac_prev=datadir ;;
1028 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1029 datadir=$ac_optarg ;;
1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032 | --dataroo | --dataro | --datar)
1033 ac_prev=datarootdir ;;
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036 datarootdir=$ac_optarg ;;
1038 -disable-* | --disable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1065 -enable-* | --enable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1075 "enable_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval enable_$ac_useropt=\$ac_optarg ;;
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
1089 exec_prefix=$ac_optarg ;;
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1093 with_gas=yes ;;
1095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
1102 -host | --host | --hos | --ho)
1103 ac_prev=host_alias ;;
1104 -host=* | --host=* | --hos=* | --ho=*)
1105 host_alias=$ac_optarg ;;
1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 ac_prev=htmldir ;;
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 | --ht=*)
1111 htmldir=$ac_optarg ;;
1113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
1118 includedir=$ac_optarg ;;
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 ac_prev=infodir ;;
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123 infodir=$ac_optarg ;;
1125 -libdir | --libdir | --libdi | --libd)
1126 ac_prev=libdir ;;
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128 libdir=$ac_optarg ;;
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
1135 libexecdir=$ac_optarg ;;
1137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1142 -localstatedir | --localstatedir | --localstatedi | --localstated \
1143 | --localstate | --localstat | --localsta | --localst | --locals)
1144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147 localstatedir=$ac_optarg ;;
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 ac_prev=mandir ;;
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152 mandir=$ac_optarg ;;
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1156 with_fp=no ;;
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159 | --no-cr | --no-c | -n)
1160 no_create=yes ;;
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 no_recursion=yes ;;
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173 oldincludedir=$ac_optarg ;;
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 ac_prev=prefix ;;
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178 prefix=$ac_optarg ;;
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185 program_prefix=$ac_optarg ;;
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192 program_suffix=$ac_optarg ;;
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
1202 -program-transform-name=* | --program-transform-name=* \
1203 | --program-transform-nam=* | --program-transform-na=* \
1204 | --program-transform-n=* | --program-transform-=* \
1205 | --program-transform=* | --program-transfor=* \
1206 | --program-transfo=* | --program-transf=* \
1207 | --program-trans=* | --program-tran=* \
1208 | --progr-tra=* | --program-tr=* | --program-t=*)
1209 program_transform_name=$ac_optarg ;;
1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 ac_prev=pdfdir ;;
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1216 -psdir | --psdir | --psdi | --psd | --ps)
1217 ac_prev=psdir ;;
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 psdir=$ac_optarg ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 silent=yes ;;
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 ac_prev=sbindir ;;
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 | --sbi=* | --sb=*)
1229 sbindir=$ac_optarg ;;
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1234 | --sha | --sh)
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 | --sha=* | --sh=*)
1240 sharedstatedir=$ac_optarg ;;
1242 -site | --site | --sit)
1243 ac_prev=site ;;
1244 -site=* | --site=* | --sit=*)
1245 site=$ac_optarg ;;
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 ac_prev=srcdir ;;
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250 srcdir=$ac_optarg ;;
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257 sysconfdir=$ac_optarg ;;
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
1260 ac_prev=target_alias ;;
1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262 target_alias=$ac_optarg ;;
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 verbose=yes ;;
1267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
1270 -with-* | --with-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1275 { (exit 1); exit 1; }; }
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1280 "with_$ac_useropt"
1281 "*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=\$ac_optarg ;;
1287 -without-* | --without-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1292 { (exit 1); exit 1; }; }
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1297 "with_$ac_useropt"
1298 "*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=no ;;
1304 --x)
1305 # Obsolete; use --with-x.
1306 with_x=yes ;;
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1322 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1323 Try \`$0 --help' for more information." >&2
1324 { (exit 1); exit 1; }; }
1327 *=*)
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1331 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1332 { (exit 1); exit 1; }; }
1333 eval $ac_envvar=\$ac_optarg
1334 export $ac_envvar ;;
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 esac
1345 done
1347 if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1350 { (exit 1); exit 1; }; }
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1355 no) ;;
1356 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1357 { (exit 1); exit 1; }; } ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
1380 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1381 { (exit 1); exit 1; }; }
1382 done
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405 test "$silent" = yes && exec 6>/dev/null
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1412 { (exit 1); exit 1; }; }
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1415 { (exit 1); exit 1; }; }
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1436 /^X\(\/\/\)$/{
1437 s//\1/
1440 /^X\(\/\).*/{
1441 s//\1/
1444 s/.*/./; q'`
1445 srcdir=$ac_confdir
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 srcdir=..
1449 else
1450 ac_srcdir_defaulted=no
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1455 { (exit 1); exit 1; }; }
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 ac_abs_confdir=`(
1459 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1460 { (exit 1); exit 1; }; }
1461 pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486 \`configure' configures jellyfish 1.1.4 to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1495 Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/jellyfish]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539 _ACEOF
1541 cat <<\_ACEOF
1543 Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1548 System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 _ACEOF
1554 if test -n "$ac_init_help"; then
1555 case $ac_init_help in
1556 short | recursive ) echo "Configuration of jellyfish 1.1.4:";;
1557 esac
1558 cat <<\_ACEOF
1560 Optional Features:
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --enable-silent-rules less verbose build output (undo: `make V=1')
1565 --disable-silent-rules verbose build output (undo: `make V=0')
1566 --disable-dependency-tracking speeds up one-time build
1567 --enable-dependency-tracking do not reject slow dependency extractors
1568 --enable-shared[=PKGS] build shared libraries [default=yes]
1569 --enable-static[=PKGS] build static libraries [default=yes]
1570 --enable-fast-install[=PKGS]
1571 optimize for fast installation [default=yes]
1572 --disable-libtool-lock avoid locking (might break parallel builds)
1574 Optional Packages:
1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1577 --with-sse enable SSE
1578 --with-half enable half float (16 bits)
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1583 Some influential environment variables:
1584 CXX C++ compiler command
1585 CXXFLAGS C++ compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 MD5 Path to md5 hashing program
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 CPP C preprocessor
1595 CXXCPP C++ preprocessor
1597 Use these variables to override the choices made by `configure' or to help
1598 it to find libraries and programs with nonstandard names/locations.
1600 Report bugs to <gmarcais@umd.edu>.
1601 _ACEOF
1602 ac_status=$?
1605 if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608 test -d "$ac_dir" ||
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 continue
1611 ac_builddir=.
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1629 case $srcdir in
1630 .) # We are building in place.
1631 ac_srcdir=.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1653 else
1654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1657 done
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662 cat <<\_ACEOF
1663 jellyfish configure 1.1.4
1664 generated by GNU Autoconf 2.63
1666 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1667 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671 exit
1673 cat >config.log <<_ACEOF
1674 This file contains any messages produced by compilers while
1675 running configure, to aid debugging if configure makes a mistake.
1677 It was created by jellyfish $as_me 1.1.4, which was
1678 generated by GNU Autoconf 2.63. Invocation command line was
1680 $ $0 $@
1682 _ACEOF
1683 exec 5>>config.log
1685 cat <<_ASUNAME
1686 ## --------- ##
1687 ## Platform. ##
1688 ## --------- ##
1690 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1691 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1692 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1693 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1694 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1697 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1699 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1700 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1701 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1702 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1703 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1704 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1705 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707 _ASUNAME
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 $as_echo "PATH: $as_dir"
1715 done
1716 IFS=$as_save_IFS
1718 } >&5
1720 cat >&5 <<_ACEOF
1723 ## ----------- ##
1724 ## Core tests. ##
1725 ## ----------- ##
1727 _ACEOF
1730 # Keep a trace of the command line.
1731 # Strip out --no-create and --no-recursion so they do not pile up.
1732 # Strip out --silent because we don't want to record it for future runs.
1733 # Also quote any args containing shell meta-characters.
1734 # Make two passes to allow for proper duplicate-argument suppression.
1735 ac_configure_args=
1736 ac_configure_args0=
1737 ac_configure_args1=
1738 ac_must_keep_next=false
1739 for ac_pass in 1 2
1741 for ac_arg
1743 case $ac_arg in
1744 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1746 | -silent | --silent | --silen | --sile | --sil)
1747 continue ;;
1748 *\'*)
1749 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1750 esac
1751 case $ac_pass in
1752 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1755 if test $ac_must_keep_next = true; then
1756 ac_must_keep_next=false # Got value, back to normal.
1757 else
1758 case $ac_arg in
1759 *=* | --config-cache | -C | -disable-* | --disable-* \
1760 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1761 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1762 | -with-* | --with-* | -without-* | --without-* | --x)
1763 case "$ac_configure_args0 " in
1764 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1765 esac
1767 -* ) ac_must_keep_next=true ;;
1768 esac
1770 ac_configure_args="$ac_configure_args '$ac_arg'"
1772 esac
1773 done
1774 done
1775 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1776 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778 # When interrupted or exit'd, cleanup temporary files, and complete
1779 # config.log. We remove comments because anyway the quotes in there
1780 # would cause problems or look ugly.
1781 # WARNING: Use '\'' to represent an apostrophe within the trap.
1782 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1783 trap 'exit_status=$?
1784 # Save into config.log some information that might help in debugging.
1786 echo
1788 cat <<\_ASBOX
1789 ## ---------------- ##
1790 ## Cache variables. ##
1791 ## ---------------- ##
1792 _ASBOX
1793 echo
1794 # The following way of writing the cache mishandles newlines in values,
1796 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1797 eval ac_val=\$$ac_var
1798 case $ac_val in #(
1799 *${as_nl}*)
1800 case $ac_var in #(
1801 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1802 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1803 esac
1804 case $ac_var in #(
1805 _ | IFS | as_nl) ;; #(
1806 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1807 *) $as_unset $ac_var ;;
1808 esac ;;
1809 esac
1810 done
1811 (set) 2>&1 |
1812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
1814 sed -n \
1815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 ;; #(
1819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821 esac |
1822 sort
1824 echo
1826 cat <<\_ASBOX
1827 ## ----------------- ##
1828 ## Output variables. ##
1829 ## ----------------- ##
1830 _ASBOX
1831 echo
1832 for ac_var in $ac_subst_vars
1834 eval ac_val=\$$ac_var
1835 case $ac_val in
1836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 esac
1838 $as_echo "$ac_var='\''$ac_val'\''"
1839 done | sort
1840 echo
1842 if test -n "$ac_subst_files"; then
1843 cat <<\_ASBOX
1844 ## ------------------- ##
1845 ## File substitutions. ##
1846 ## ------------------- ##
1847 _ASBOX
1848 echo
1849 for ac_var in $ac_subst_files
1851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 $as_echo "$ac_var='\''$ac_val'\''"
1856 done | sort
1857 echo
1860 if test -s confdefs.h; then
1861 cat <<\_ASBOX
1862 ## ----------- ##
1863 ## confdefs.h. ##
1864 ## ----------- ##
1865 _ASBOX
1866 echo
1867 cat confdefs.h
1868 echo
1870 test "$ac_signal" != 0 &&
1871 $as_echo "$as_me: caught signal $ac_signal"
1872 $as_echo "$as_me: exit $exit_status"
1873 } >&5
1874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1876 exit $exit_status
1878 for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880 done
1881 ac_signal=0
1883 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1884 rm -f -r conftest* confdefs.h
1886 # Predefined preprocessor variables.
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_NAME "$PACKAGE_NAME"
1890 _ACEOF
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895 _ACEOF
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1900 _ACEOF
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_STRING "$PACKAGE_STRING"
1905 _ACEOF
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910 _ACEOF
1913 # Let the site file select an alternate cache file if it wants to.
1914 # Prefer an explicitly selected file to automatically selected ones.
1915 ac_site_file1=NONE
1916 ac_site_file2=NONE
1917 if test -n "$CONFIG_SITE"; then
1918 ac_site_file1=$CONFIG_SITE
1919 elif test "x$prefix" != xNONE; then
1920 ac_site_file1=$prefix/share/config.site
1921 ac_site_file2=$prefix/etc/config.site
1922 else
1923 ac_site_file1=$ac_default_prefix/share/config.site
1924 ac_site_file2=$ac_default_prefix/etc/config.site
1926 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1928 test "x$ac_site_file" = xNONE && continue
1929 if test -r "$ac_site_file"; then
1930 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1931 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1932 sed 's/^/| /' "$ac_site_file" >&5
1933 . "$ac_site_file"
1935 done
1937 if test -r "$cache_file"; then
1938 # Some versions of bash will fail to source /dev/null (special
1939 # files actually), so we avoid doing that.
1940 if test -f "$cache_file"; then
1941 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1942 $as_echo "$as_me: loading cache $cache_file" >&6;}
1943 case $cache_file in
1944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1945 *) . "./$cache_file";;
1946 esac
1948 else
1949 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1950 $as_echo "$as_me: creating cache $cache_file" >&6;}
1951 >$cache_file
1954 # Check that the precious variables saved in the cache have kept the same
1955 # value.
1956 ac_cache_corrupted=false
1957 for ac_var in $ac_precious_vars; do
1958 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1959 eval ac_new_set=\$ac_env_${ac_var}_set
1960 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1961 eval ac_new_val=\$ac_env_${ac_var}_value
1962 case $ac_old_set,$ac_new_set in
1963 set,)
1964 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1965 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1966 ac_cache_corrupted=: ;;
1967 ,set)
1968 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1969 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1970 ac_cache_corrupted=: ;;
1971 ,);;
1973 if test "x$ac_old_val" != "x$ac_new_val"; then
1974 # differences in whitespace do not lead to failure.
1975 ac_old_val_w=`echo x $ac_old_val`
1976 ac_new_val_w=`echo x $ac_new_val`
1977 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1979 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1980 ac_cache_corrupted=:
1981 else
1982 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1983 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1984 eval $ac_var=\$ac_old_val
1986 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1987 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1988 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1989 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1990 fi;;
1991 esac
1992 # Pass precious variables to config.status.
1993 if test "$ac_new_set" = set; then
1994 case $ac_new_val in
1995 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 *) ac_arg=$ac_var=$ac_new_val ;;
1997 esac
1998 case " $ac_configure_args " in
1999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2000 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2001 esac
2003 done
2004 if $ac_cache_corrupted; then
2005 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2007 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2008 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2009 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2010 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2011 { (exit 1); exit 1; }; }
2038 ac_ext=c
2039 ac_cpp='$CPP $CPPFLAGS'
2040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2045 ac_aux_dir=
2046 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2047 if test -f "$ac_dir/install-sh"; then
2048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/install-sh -c"
2050 break
2051 elif test -f "$ac_dir/install.sh"; then
2052 ac_aux_dir=$ac_dir
2053 ac_install_sh="$ac_aux_dir/install.sh -c"
2054 break
2055 elif test -f "$ac_dir/shtool"; then
2056 ac_aux_dir=$ac_dir
2057 ac_install_sh="$ac_aux_dir/shtool install -c"
2058 break
2060 done
2061 if test -z "$ac_aux_dir"; then
2062 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2063 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2064 { (exit 1); exit 1; }; }
2067 # These three variables are undocumented and unsupported,
2068 # and are intended to be withdrawn in a future Autoconf release.
2069 # They can cause serious problems if a builder's source tree is in a directory
2070 # whose full name contains unusual characters.
2071 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2072 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2073 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2076 # Make sure we can run config.sub.
2077 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2078 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2079 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2080 { (exit 1); exit 1; }; }
2082 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2083 $as_echo_n "checking build system type... " >&6; }
2084 if test "${ac_cv_build+set}" = set; then
2085 $as_echo_n "(cached) " >&6
2086 else
2087 ac_build_alias=$build_alias
2088 test "x$ac_build_alias" = x &&
2089 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2090 test "x$ac_build_alias" = x &&
2091 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2092 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2093 { (exit 1); exit 1; }; }
2094 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2095 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2096 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2097 { (exit 1); exit 1; }; }
2100 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2101 $as_echo "$ac_cv_build" >&6; }
2102 case $ac_cv_build in
2103 *-*-*) ;;
2104 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2105 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2106 { (exit 1); exit 1; }; };;
2107 esac
2108 build=$ac_cv_build
2109 ac_save_IFS=$IFS; IFS='-'
2110 set x $ac_cv_build
2111 shift
2112 build_cpu=$1
2113 build_vendor=$2
2114 shift; shift
2115 # Remember, the first character of IFS is used to create $*,
2116 # except with old shells:
2117 build_os=$*
2118 IFS=$ac_save_IFS
2119 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2122 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2123 $as_echo_n "checking host system type... " >&6; }
2124 if test "${ac_cv_host+set}" = set; then
2125 $as_echo_n "(cached) " >&6
2126 else
2127 if test "x$host_alias" = x; then
2128 ac_cv_host=$ac_cv_build
2129 else
2130 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2131 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2132 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2133 { (exit 1); exit 1; }; }
2137 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2138 $as_echo "$ac_cv_host" >&6; }
2139 case $ac_cv_host in
2140 *-*-*) ;;
2141 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2142 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2143 { (exit 1); exit 1; }; };;
2144 esac
2145 host=$ac_cv_host
2146 ac_save_IFS=$IFS; IFS='-'
2147 set x $ac_cv_host
2148 shift
2149 host_cpu=$1
2150 host_vendor=$2
2151 shift; shift
2152 # Remember, the first character of IFS is used to create $*,
2153 # except with old shells:
2154 host_os=$*
2155 IFS=$ac_save_IFS
2156 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2160 am__api_version='1.11'
2162 # Find a good install program. We prefer a C program (faster),
2163 # so one script is as good as another. But avoid the broken or
2164 # incompatible versions:
2165 # SysV /etc/install, /usr/sbin/install
2166 # SunOS /usr/etc/install
2167 # IRIX /sbin/install
2168 # AIX /bin/install
2169 # AmigaOS /C/install, which installs bootblocks on floppy discs
2170 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2171 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2172 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2173 # OS/2's system install, which has a completely different semantic
2174 # ./install, which can be erroneously created by make from ./install.sh.
2175 # Reject install programs that cannot install multiple files.
2176 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2177 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2178 if test -z "$INSTALL"; then
2179 if test "${ac_cv_path_install+set}" = set; then
2180 $as_echo_n "(cached) " >&6
2181 else
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 for as_dir in $PATH
2185 IFS=$as_save_IFS
2186 test -z "$as_dir" && as_dir=.
2187 # Account for people who put trailing slashes in PATH elements.
2188 case $as_dir/ in
2189 ./ | .// | /cC/* | \
2190 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2191 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2192 /usr/ucb/* ) ;;
2194 # OSF1 and SCO ODT 3.0 have their own names for install.
2195 # Don't use installbsd from OSF since it installs stuff as root
2196 # by default.
2197 for ac_prog in ginstall scoinst install; do
2198 for ac_exec_ext in '' $ac_executable_extensions; do
2199 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2200 if test $ac_prog = install &&
2201 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2202 # AIX install. It has an incompatible calling convention.
2204 elif test $ac_prog = install &&
2205 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2206 # program-specific install script used by HP pwplus--don't use.
2208 else
2209 rm -rf conftest.one conftest.two conftest.dir
2210 echo one > conftest.one
2211 echo two > conftest.two
2212 mkdir conftest.dir
2213 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2214 test -s conftest.one && test -s conftest.two &&
2215 test -s conftest.dir/conftest.one &&
2216 test -s conftest.dir/conftest.two
2217 then
2218 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2219 break 3
2223 done
2224 done
2226 esac
2228 done
2229 IFS=$as_save_IFS
2231 rm -rf conftest.one conftest.two conftest.dir
2234 if test "${ac_cv_path_install+set}" = set; then
2235 INSTALL=$ac_cv_path_install
2236 else
2237 # As a last resort, use the slow shell script. Don't cache a
2238 # value for INSTALL within a source directory, because that will
2239 # break other packages using the cache if that directory is
2240 # removed, or if the value is a relative name.
2241 INSTALL=$ac_install_sh
2244 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2245 $as_echo "$INSTALL" >&6; }
2247 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2248 # It thinks the first close brace ends the variable substitution.
2249 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2251 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2253 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2255 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2256 $as_echo_n "checking whether build environment is sane... " >&6; }
2257 # Just in case
2258 sleep 1
2259 echo timestamp > conftest.file
2260 # Reject unsafe characters in $srcdir or the absolute working directory
2261 # name. Accept space and tab only in the latter.
2262 am_lf='
2264 case `pwd` in
2265 *[\\\"\#\$\&\'\`$am_lf]*)
2266 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2267 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2268 { (exit 1); exit 1; }; };;
2269 esac
2270 case $srcdir in
2271 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2272 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2273 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2274 { (exit 1); exit 1; }; };;
2275 esac
2277 # Do `set' in a subshell so we don't clobber the current shell's
2278 # arguments. Must try -L first in case configure is actually a
2279 # symlink; some systems play weird games with the mod time of symlinks
2280 # (eg FreeBSD returns the mod time of the symlink's containing
2281 # directory).
2282 if (
2283 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2284 if test "$*" = "X"; then
2285 # -L didn't work.
2286 set X `ls -t "$srcdir/configure" conftest.file`
2288 rm -f conftest.file
2289 if test "$*" != "X $srcdir/configure conftest.file" \
2290 && test "$*" != "X conftest.file $srcdir/configure"; then
2292 # If neither matched, then we have a broken ls. This can happen
2293 # if, for instance, CONFIG_SHELL is bash and it inherits a
2294 # broken ls alias from the environment. This has actually
2295 # happened. Such a system could not be considered "sane".
2296 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2297 alias in your environment" >&5
2298 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2299 alias in your environment" >&2;}
2300 { (exit 1); exit 1; }; }
2303 test "$2" = conftest.file
2305 then
2306 # Ok.
2308 else
2309 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2310 Check your system clock" >&5
2311 $as_echo "$as_me: error: newly created file is older than distributed files!
2312 Check your system clock" >&2;}
2313 { (exit 1); exit 1; }; }
2315 { $as_echo "$as_me:$LINENO: result: yes" >&5
2316 $as_echo "yes" >&6; }
2317 test "$program_prefix" != NONE &&
2318 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2319 # Use a double $ so make ignores it.
2320 test "$program_suffix" != NONE &&
2321 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2322 # Double any \ or $.
2323 # By default was `s,x,x', remove it if useless.
2324 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2325 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2327 # expand $ac_aux_dir to an absolute path
2328 am_aux_dir=`cd $ac_aux_dir && pwd`
2330 if test x"${MISSING+set}" != xset; then
2331 case $am_aux_dir in
2332 *\ * | *\ *)
2333 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2335 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2336 esac
2338 # Use eval to expand $SHELL
2339 if eval "$MISSING --run true"; then
2340 am_missing_run="$MISSING --run "
2341 else
2342 am_missing_run=
2343 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2344 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2347 if test x"${install_sh}" != xset; then
2348 case $am_aux_dir in
2349 *\ * | *\ *)
2350 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2352 install_sh="\${SHELL} $am_aux_dir/install-sh"
2353 esac
2356 # Installed binaries are usually stripped using `strip' when the user
2357 # run `make install-strip'. However `strip' might not be the right
2358 # tool to use in cross-compilation environments, therefore Automake
2359 # will honor the `STRIP' environment variable to overrule this program.
2360 if test "$cross_compiling" != no; then
2361 if test -n "$ac_tool_prefix"; then
2362 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}strip; ac_word=$2
2364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 $as_echo_n "checking for $ac_word... " >&6; }
2366 if test "${ac_cv_prog_STRIP+set}" = set; then
2367 $as_echo_n "(cached) " >&6
2368 else
2369 if test -n "$STRIP"; then
2370 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2383 done
2384 done
2385 IFS=$as_save_IFS
2389 STRIP=$ac_cv_prog_STRIP
2390 if test -n "$STRIP"; then
2391 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2392 $as_echo "$STRIP" >&6; }
2393 else
2394 { $as_echo "$as_me:$LINENO: result: no" >&5
2395 $as_echo "no" >&6; }
2400 if test -z "$ac_cv_prog_STRIP"; then
2401 ac_ct_STRIP=$STRIP
2402 # Extract the first word of "strip", so it can be a program name with args.
2403 set dummy strip; ac_word=$2
2404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2407 $as_echo_n "(cached) " >&6
2408 else
2409 if test -n "$ac_ct_STRIP"; then
2410 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2419 ac_cv_prog_ac_ct_STRIP="strip"
2420 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 break 2
2423 done
2424 done
2425 IFS=$as_save_IFS
2429 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2430 if test -n "$ac_ct_STRIP"; then
2431 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2432 $as_echo "$ac_ct_STRIP" >&6; }
2433 else
2434 { $as_echo "$as_me:$LINENO: result: no" >&5
2435 $as_echo "no" >&6; }
2438 if test "x$ac_ct_STRIP" = x; then
2439 STRIP=":"
2440 else
2441 case $cross_compiling:$ac_tool_warned in
2442 yes:)
2443 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2445 ac_tool_warned=yes ;;
2446 esac
2447 STRIP=$ac_ct_STRIP
2449 else
2450 STRIP="$ac_cv_prog_STRIP"
2454 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2456 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2457 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2458 if test -z "$MKDIR_P"; then
2459 if test "${ac_cv_path_mkdir+set}" = set; then
2460 $as_echo_n "(cached) " >&6
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_prog in mkdir gmkdir; do
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2470 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2471 'mkdir (GNU coreutils) '* | \
2472 'mkdir (coreutils) '* | \
2473 'mkdir (fileutils) '4.1*)
2474 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2475 break 3;;
2476 esac
2477 done
2478 done
2479 done
2480 IFS=$as_save_IFS
2484 if test "${ac_cv_path_mkdir+set}" = set; then
2485 MKDIR_P="$ac_cv_path_mkdir -p"
2486 else
2487 # As a last resort, use the slow shell script. Don't cache a
2488 # value for MKDIR_P within a source directory, because that will
2489 # break other packages using the cache if that directory is
2490 # removed, or if the value is a relative name.
2491 test -d ./--version && rmdir ./--version
2492 MKDIR_P="$ac_install_sh -d"
2495 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2496 $as_echo "$MKDIR_P" >&6; }
2498 mkdir_p="$MKDIR_P"
2499 case $mkdir_p in
2500 [\\/$]* | ?:[\\/]*) ;;
2501 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2502 esac
2504 for ac_prog in gawk mawk nawk awk
2506 # Extract the first word of "$ac_prog", so it can be a program name with args.
2507 set dummy $ac_prog; ac_word=$2
2508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if test "${ac_cv_prog_AWK+set}" = set; then
2511 $as_echo_n "(cached) " >&6
2512 else
2513 if test -n "$AWK"; then
2514 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_AWK="$ac_prog"
2524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2527 done
2528 done
2529 IFS=$as_save_IFS
2533 AWK=$ac_cv_prog_AWK
2534 if test -n "$AWK"; then
2535 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2536 $as_echo "$AWK" >&6; }
2537 else
2538 { $as_echo "$as_me:$LINENO: result: no" >&5
2539 $as_echo "no" >&6; }
2543 test -n "$AWK" && break
2544 done
2546 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2547 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2548 set x ${MAKE-make}
2549 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2550 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2551 $as_echo_n "(cached) " >&6
2552 else
2553 cat >conftest.make <<\_ACEOF
2554 SHELL = /bin/sh
2555 all:
2556 @echo '@@@%%%=$(MAKE)=@@@%%%'
2557 _ACEOF
2558 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2559 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2560 *@@@%%%=?*=@@@%%%*)
2561 eval ac_cv_prog_make_${ac_make}_set=yes;;
2563 eval ac_cv_prog_make_${ac_make}_set=no;;
2564 esac
2565 rm -f conftest.make
2567 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2568 { $as_echo "$as_me:$LINENO: result: yes" >&5
2569 $as_echo "yes" >&6; }
2570 SET_MAKE=
2571 else
2572 { $as_echo "$as_me:$LINENO: result: no" >&5
2573 $as_echo "no" >&6; }
2574 SET_MAKE="MAKE=${MAKE-make}"
2577 rm -rf .tst 2>/dev/null
2578 mkdir .tst 2>/dev/null
2579 if test -d .tst; then
2580 am__leading_dot=.
2581 else
2582 am__leading_dot=_
2584 rmdir .tst 2>/dev/null
2586 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2587 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2588 # is not polluted with repeated "-I."
2589 am__isrc=' -I$(srcdir)'
2590 # test to see if srcdir already configured
2591 if test -f $srcdir/config.status; then
2592 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2593 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2594 { (exit 1); exit 1; }; }
2598 # test whether we have cygpath
2599 if test -z "$CYGPATH_W"; then
2600 if (cygpath --version) >/dev/null 2>/dev/null; then
2601 CYGPATH_W='cygpath -w'
2602 else
2603 CYGPATH_W=echo
2608 # Define the identity of the package.
2609 PACKAGE='jellyfish'
2610 VERSION='1.1.4'
2613 cat >>confdefs.h <<_ACEOF
2614 #define PACKAGE "$PACKAGE"
2615 _ACEOF
2618 cat >>confdefs.h <<_ACEOF
2619 #define VERSION "$VERSION"
2620 _ACEOF
2622 # Some tools Automake needs.
2624 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2627 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2630 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2633 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2636 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2638 # We need awk for the "check" target. The system "awk" is bad on
2639 # some platforms.
2640 # Always define AMTAR for backward compatibility.
2642 AMTAR=${AMTAR-"${am_missing_run}tar"}
2644 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2650 # Check whether --enable-silent-rules was given.
2651 if test "${enable_silent_rules+set}" = set; then
2652 enableval=$enable_silent_rules;
2655 case $enable_silent_rules in
2656 yes) AM_DEFAULT_VERBOSITY=0;;
2657 no) AM_DEFAULT_VERBOSITY=1;;
2658 *) AM_DEFAULT_VERBOSITY=0;;
2659 esac
2660 AM_BACKSLASH='\'
2663 : ${CXXFLAGS=""}
2664 ac_ext=cpp
2665 ac_cpp='$CXXCPP $CPPFLAGS'
2666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2669 if test -z "$CXX"; then
2670 if test -n "$CCC"; then
2671 CXX=$CCC
2672 else
2673 if test -n "$ac_tool_prefix"; then
2674 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if test "${ac_cv_prog_CXX+set}" = set; then
2681 $as_echo_n "(cached) " >&6
2682 else
2683 if test -n "$CXX"; then
2684 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2697 done
2698 done
2699 IFS=$as_save_IFS
2703 CXX=$ac_cv_prog_CXX
2704 if test -n "$CXX"; then
2705 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2706 $as_echo "$CXX" >&6; }
2707 else
2708 { $as_echo "$as_me:$LINENO: result: no" >&5
2709 $as_echo "no" >&6; }
2713 test -n "$CXX" && break
2714 done
2716 if test -z "$CXX"; then
2717 ac_ct_CXX=$CXX
2718 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2721 set dummy $ac_prog; ac_word=$2
2722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$ac_ct_CXX"; then
2728 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_ac_ct_CXX="$ac_prog"
2738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2743 IFS=$as_save_IFS
2747 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2748 if test -n "$ac_ct_CXX"; then
2749 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2750 $as_echo "$ac_ct_CXX" >&6; }
2751 else
2752 { $as_echo "$as_me:$LINENO: result: no" >&5
2753 $as_echo "no" >&6; }
2757 test -n "$ac_ct_CXX" && break
2758 done
2760 if test "x$ac_ct_CXX" = x; then
2761 CXX="g++"
2762 else
2763 case $cross_compiling:$ac_tool_warned in
2764 yes:)
2765 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2767 ac_tool_warned=yes ;;
2768 esac
2769 CXX=$ac_ct_CXX
2775 # Provide some information about the compiler.
2776 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2777 set X $ac_compile
2778 ac_compiler=$2
2779 { (ac_try="$ac_compiler --version >&5"
2780 case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783 esac
2784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2785 $as_echo "$ac_try_echo") >&5
2786 (eval "$ac_compiler --version >&5") 2>&5
2787 ac_status=$?
2788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }
2790 { (ac_try="$ac_compiler -v >&5"
2791 case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794 esac
2795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2796 $as_echo "$ac_try_echo") >&5
2797 (eval "$ac_compiler -v >&5") 2>&5
2798 ac_status=$?
2799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }
2801 { (ac_try="$ac_compiler -V >&5"
2802 case "(($ac_try" in
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2805 esac
2806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2807 $as_echo "$ac_try_echo") >&5
2808 (eval "$ac_compiler -V >&5") 2>&5
2809 ac_status=$?
2810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }
2813 cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h. */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2821 main ()
2825 return 0;
2827 _ACEOF
2828 ac_clean_files_save=$ac_clean_files
2829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2830 # Try to create an executable without -o first, disregard a.out.
2831 # It will help us diagnose broken compilers, and finding out an intuition
2832 # of exeext.
2833 { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2834 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2837 # The possible output files:
2838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2840 ac_rmfiles=
2841 for ac_file in $ac_files
2843 case $ac_file in
2844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2846 esac
2847 done
2848 rm -f $ac_rmfiles
2850 if { (ac_try="$ac_link_default"
2851 case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854 esac
2855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2856 $as_echo "$ac_try_echo") >&5
2857 (eval "$ac_link_default") 2>&5
2858 ac_status=$?
2859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; then
2861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2864 # so that the user can short-circuit this test for compilers unknown to
2865 # Autoconf.
2866 for ac_file in $ac_files ''
2868 test -f "$ac_file" || continue
2869 case $ac_file in
2870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2872 [ab].out )
2873 # We found the default executable, but exeext='' is most
2874 # certainly right.
2875 break;;
2876 *.* )
2877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2878 then :; else
2879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2881 # We set ac_cv_exeext here because the later test for it is not
2882 # safe: cross compilers may not add the suffix if given an `-o'
2883 # argument, so we may need to know it at that point already.
2884 # Even if this section looks crufty: it has the advantage of
2885 # actually working.
2886 break;;
2888 break;;
2889 esac
2890 done
2891 test "$ac_cv_exeext" = no && ac_cv_exeext=
2893 else
2894 ac_file=''
2897 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2898 $as_echo "$ac_file" >&6; }
2899 if test -z "$ac_file"; then
2900 $as_echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2903 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2905 { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2906 See \`config.log' for more details." >&5
2907 $as_echo "$as_me: error: C++ compiler cannot create executables
2908 See \`config.log' for more details." >&2;}
2909 { (exit 77); exit 77; }; }; }
2912 ac_exeext=$ac_cv_exeext
2914 # Check that the compiler produces executables we can run. If not, either
2915 # the compiler is broken, or we cross compile.
2916 { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2917 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2918 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2919 # If not cross compiling, check that we can run a simple program.
2920 if test "$cross_compiling" != yes; then
2921 if { ac_try='./$ac_file'
2922 { (case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925 esac
2926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2927 $as_echo "$ac_try_echo") >&5
2928 (eval "$ac_try") 2>&5
2929 ac_status=$?
2930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2932 cross_compiling=no
2933 else
2934 if test "$cross_compiling" = maybe; then
2935 cross_compiling=yes
2936 else
2937 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2940 If you meant to cross compile, use \`--host'.
2941 See \`config.log' for more details." >&5
2942 $as_echo "$as_me: error: cannot run C++ compiled programs.
2943 If you meant to cross compile, use \`--host'.
2944 See \`config.log' for more details." >&2;}
2945 { (exit 1); exit 1; }; }; }
2949 { $as_echo "$as_me:$LINENO: result: yes" >&5
2950 $as_echo "yes" >&6; }
2952 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2953 ac_clean_files=$ac_clean_files_save
2954 # Check that the compiler produces executables we can run. If not, either
2955 # the compiler is broken, or we cross compile.
2956 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2957 $as_echo_n "checking whether we are cross compiling... " >&6; }
2958 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2959 $as_echo "$cross_compiling" >&6; }
2961 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2962 $as_echo_n "checking for suffix of executables... " >&6; }
2963 if { (ac_try="$ac_link"
2964 case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967 esac
2968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2969 $as_echo "$ac_try_echo") >&5
2970 (eval "$ac_link") 2>&5
2971 ac_status=$?
2972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; then
2974 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2975 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2976 # work properly (i.e., refer to `conftest.exe'), while it won't with
2977 # `rm'.
2978 for ac_file in conftest.exe conftest conftest.*; do
2979 test -f "$ac_file" || continue
2980 case $ac_file in
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983 break;;
2984 * ) break;;
2985 esac
2986 done
2987 else
2988 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2991 See \`config.log' for more details." >&5
2992 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2993 See \`config.log' for more details." >&2;}
2994 { (exit 1); exit 1; }; }; }
2997 rm -f conftest$ac_cv_exeext
2998 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2999 $as_echo "$ac_cv_exeext" >&6; }
3001 rm -f conftest.$ac_ext
3002 EXEEXT=$ac_cv_exeext
3003 ac_exeext=$EXEEXT
3004 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3005 $as_echo_n "checking for suffix of object files... " >&6; }
3006 if test "${ac_cv_objext+set}" = set; then
3007 $as_echo_n "(cached) " >&6
3008 else
3009 cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h. */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3017 main ()
3021 return 0;
3023 _ACEOF
3024 rm -f conftest.o conftest.obj
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3031 $as_echo "$ac_try_echo") >&5
3032 (eval "$ac_compile") 2>&5
3033 ac_status=$?
3034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; then
3036 for ac_file in conftest.o conftest.obj conftest.*; do
3037 test -f "$ac_file" || continue;
3038 case $ac_file in
3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3040 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3041 break;;
3042 esac
3043 done
3044 else
3045 $as_echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3048 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3051 See \`config.log' for more details." >&5
3052 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3053 See \`config.log' for more details." >&2;}
3054 { (exit 1); exit 1; }; }; }
3057 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3059 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3060 $as_echo "$ac_cv_objext" >&6; }
3061 OBJEXT=$ac_cv_objext
3062 ac_objext=$OBJEXT
3063 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3064 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3065 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3066 $as_echo_n "(cached) " >&6
3067 else
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3076 main ()
3078 #ifndef __GNUC__
3079 choke me
3080 #endif
3083 return 0;
3085 _ACEOF
3086 rm -f conftest.$ac_objext
3087 if { (ac_try="$ac_compile"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3093 $as_echo "$ac_try_echo") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && {
3101 test -z "$ac_cxx_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3104 ac_compiler_gnu=yes
3105 else
3106 $as_echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 ac_compiler_gnu=no
3112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3116 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3117 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3118 if test $ac_compiler_gnu = yes; then
3119 GXX=yes
3120 else
3121 GXX=
3123 ac_test_CXXFLAGS=${CXXFLAGS+set}
3124 ac_save_CXXFLAGS=$CXXFLAGS
3125 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3126 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3127 if test "${ac_cv_prog_cxx_g+set}" = set; then
3128 $as_echo_n "(cached) " >&6
3129 else
3130 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3131 ac_cxx_werror_flag=yes
3132 ac_cv_prog_cxx_g=no
3133 CXXFLAGS="-g"
3134 cat >conftest.$ac_ext <<_ACEOF
3135 /* confdefs.h. */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3142 main ()
3146 return 0;
3148 _ACEOF
3149 rm -f conftest.$ac_objext
3150 if { (ac_try="$ac_compile"
3151 case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3156 $as_echo "$ac_try_echo") >&5
3157 (eval "$ac_compile") 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } && {
3164 test -z "$ac_cxx_werror_flag" ||
3165 test ! -s conftest.err
3166 } && test -s conftest.$ac_objext; then
3167 ac_cv_prog_cxx_g=yes
3168 else
3169 $as_echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3172 CXXFLAGS=""
3173 cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h. */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3181 main ()
3185 return 0;
3187 _ACEOF
3188 rm -f conftest.$ac_objext
3189 if { (ac_try="$ac_compile"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3195 $as_echo "$ac_try_echo") >&5
3196 (eval "$ac_compile") 2>conftest.er1
3197 ac_status=$?
3198 grep -v '^ *+' conftest.er1 >conftest.err
3199 rm -f conftest.er1
3200 cat conftest.err >&5
3201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } && {
3203 test -z "$ac_cxx_werror_flag" ||
3204 test ! -s conftest.err
3205 } && test -s conftest.$ac_objext; then
3207 else
3208 $as_echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3212 CXXFLAGS="-g"
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3221 main ()
3225 return 0;
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3235 $as_echo "$ac_try_echo") >&5
3236 (eval "$ac_compile") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } && {
3243 test -z "$ac_cxx_werror_flag" ||
3244 test ! -s conftest.err
3245 } && test -s conftest.$ac_objext; then
3246 ac_cv_prog_cxx_g=yes
3247 else
3248 $as_echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3263 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3264 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3265 if test "$ac_test_CXXFLAGS" = set; then
3266 CXXFLAGS=$ac_save_CXXFLAGS
3267 elif test $ac_cv_prog_cxx_g = yes; then
3268 if test "$GXX" = yes; then
3269 CXXFLAGS="-g -O2"
3270 else
3271 CXXFLAGS="-g"
3273 else
3274 if test "$GXX" = yes; then
3275 CXXFLAGS="-O2"
3276 else
3277 CXXFLAGS=
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 DEPDIR="${am__leading_dot}deps"
3287 ac_config_commands="$ac_config_commands depfiles"
3290 am_make=${MAKE-make}
3291 cat > confinc << 'END'
3292 am__doit:
3293 @echo this is the am__doit target
3294 .PHONY: am__doit
3296 # If we don't find an include directive, just comment out the code.
3297 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3298 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3299 am__include="#"
3300 am__quote=
3301 _am_result=none
3302 # First try GNU make style include.
3303 echo "include confinc" > confmf
3304 # Ignore all kinds of additional output from `make'.
3305 case `$am_make -s -f confmf 2> /dev/null` in #(
3306 *the\ am__doit\ target*)
3307 am__include=include
3308 am__quote=
3309 _am_result=GNU
3311 esac
3312 # Now try BSD make style include.
3313 if test "$am__include" = "#"; then
3314 echo '.include "confinc"' > confmf
3315 case `$am_make -s -f confmf 2> /dev/null` in #(
3316 *the\ am__doit\ target*)
3317 am__include=.include
3318 am__quote="\""
3319 _am_result=BSD
3321 esac
3325 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3326 $as_echo "$_am_result" >&6; }
3327 rm -f confinc confmf
3329 # Check whether --enable-dependency-tracking was given.
3330 if test "${enable_dependency_tracking+set}" = set; then
3331 enableval=$enable_dependency_tracking;
3334 if test "x$enable_dependency_tracking" != xno; then
3335 am_depcomp="$ac_aux_dir/depcomp"
3336 AMDEPBACKSLASH='\'
3338 if test "x$enable_dependency_tracking" != xno; then
3339 AMDEP_TRUE=
3340 AMDEP_FALSE='#'
3341 else
3342 AMDEP_TRUE='#'
3343 AMDEP_FALSE=
3348 depcc="$CXX" am_compiler_list=
3350 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3351 $as_echo_n "checking dependency style of $depcc... " >&6; }
3352 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3353 $as_echo_n "(cached) " >&6
3354 else
3355 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3356 # We make a subdir and do the tests there. Otherwise we can end up
3357 # making bogus files that we don't know about and never remove. For
3358 # instance it was reported that on HP-UX the gcc test will end up
3359 # making a dummy file named `D' -- because `-MD' means `put the output
3360 # in D'.
3361 mkdir conftest.dir
3362 # Copy depcomp to subdir because otherwise we won't find it if we're
3363 # using a relative directory.
3364 cp "$am_depcomp" conftest.dir
3365 cd conftest.dir
3366 # We will build objects and dependencies in a subdirectory because
3367 # it helps to detect inapplicable dependency modes. For instance
3368 # both Tru64's cc and ICC support -MD to output dependencies as a
3369 # side effect of compilation, but ICC will put the dependencies in
3370 # the current directory while Tru64 will put them in the object
3371 # directory.
3372 mkdir sub
3374 am_cv_CXX_dependencies_compiler_type=none
3375 if test "$am_compiler_list" = ""; then
3376 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3378 am__universal=false
3379 case " $depcc " in #(
3380 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3381 esac
3383 for depmode in $am_compiler_list; do
3384 # Setup a source with many dependencies, because some compilers
3385 # like to wrap large dependency lists on column 80 (with \), and
3386 # we should not choose a depcomp mode which is confused by this.
3388 # We need to recreate these files for each test, as the compiler may
3389 # overwrite some of them when testing with obscure command lines.
3390 # This happens at least with the AIX C compiler.
3391 : > sub/conftest.c
3392 for i in 1 2 3 4 5 6; do
3393 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3394 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3395 # Solaris 8's {/usr,}/bin/sh.
3396 touch sub/conftst$i.h
3397 done
3398 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3400 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3401 # mode. It turns out that the SunPro C++ compiler does not properly
3402 # handle `-M -o', and we need to detect this. Also, some Intel
3403 # versions had trouble with output in subdirs
3404 am__obj=sub/conftest.${OBJEXT-o}
3405 am__minus_obj="-o $am__obj"
3406 case $depmode in
3407 gcc)
3408 # This depmode causes a compiler race in universal mode.
3409 test "$am__universal" = false || continue
3411 nosideeffect)
3412 # after this tag, mechanisms are not by side-effect, so they'll
3413 # only be used when explicitly requested
3414 if test "x$enable_dependency_tracking" = xyes; then
3415 continue
3416 else
3417 break
3420 msvisualcpp | msvcmsys)
3421 # This compiler won't grok `-c -o', but also, the minuso test has
3422 # not run yet. These depmodes are late enough in the game, and
3423 # so weak that their functioning should not be impacted.
3424 am__obj=conftest.${OBJEXT-o}
3425 am__minus_obj=
3427 none) break ;;
3428 esac
3429 if depmode=$depmode \
3430 source=sub/conftest.c object=$am__obj \
3431 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3432 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3433 >/dev/null 2>conftest.err &&
3434 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3435 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3436 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3437 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3438 # icc doesn't choke on unknown options, it will just issue warnings
3439 # or remarks (even with -Werror). So we grep stderr for any message
3440 # that says an option was ignored or not supported.
3441 # When given -MP, icc 7.0 and 7.1 complain thusly:
3442 # icc: Command line warning: ignoring option '-M'; no argument required
3443 # The diagnosis changed in icc 8.0:
3444 # icc: Command line remark: option '-MP' not supported
3445 if (grep 'ignoring option' conftest.err ||
3446 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3447 am_cv_CXX_dependencies_compiler_type=$depmode
3448 break
3451 done
3453 cd ..
3454 rm -rf conftest.dir
3455 else
3456 am_cv_CXX_dependencies_compiler_type=none
3460 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3461 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3462 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3465 test "x$enable_dependency_tracking" != xno \
3466 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3467 am__fastdepCXX_TRUE=
3468 am__fastdepCXX_FALSE='#'
3469 else
3470 am__fastdepCXX_TRUE='#'
3471 am__fastdepCXX_FALSE=
3477 ac_config_headers="$ac_config_headers config.h"
3481 ac_config_files="$ac_config_files Makefile tests/compat.sh jellyfish-1.1.pc"
3485 if test "x$MD5" = "x"; then
3486 # Extract the first word of "md5sum", so it can be a program name with args.
3487 set dummy md5sum; ac_word=$2
3488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3489 $as_echo_n "checking for $ac_word... " >&6; }
3490 if test "${ac_cv_prog_MD5+set}" = set; then
3491 $as_echo_n "(cached) " >&6
3492 else
3493 if test -n "$MD5"; then
3494 ac_cv_prog_MD5="$MD5" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3499 IFS=$as_save_IFS
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3503 ac_cv_prog_MD5="md5sum"
3504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 break 2
3507 done
3508 done
3509 IFS=$as_save_IFS
3513 MD5=$ac_cv_prog_MD5
3514 if test -n "$MD5"; then
3515 { $as_echo "$as_me:$LINENO: result: $MD5" >&5
3516 $as_echo "$MD5" >&6; }
3517 else
3518 { $as_echo "$as_me:$LINENO: result: no" >&5
3519 $as_echo "no" >&6; }
3525 if test "x$MD5" = "x"; then
3526 # Extract the first word of "md5", so it can be a program name with args.
3527 set dummy md5; ac_word=$2
3528 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if test "${ac_cv_prog_MD5+set}" = set; then
3531 $as_echo_n "(cached) " >&6
3532 else
3533 if test -n "$MD5"; then
3534 ac_cv_prog_MD5="$MD5" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3543 ac_cv_prog_MD5="md5 -r"
3544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3547 done
3548 done
3549 IFS=$as_save_IFS
3553 MD5=$ac_cv_prog_MD5
3554 if test -n "$MD5"; then
3555 { $as_echo "$as_me:$LINENO: result: $MD5" >&5
3556 $as_echo "$MD5" >&6; }
3557 else
3558 { $as_echo "$as_me:$LINENO: result: no" >&5
3559 $as_echo "no" >&6; }
3565 if test "x$MD5" = "x"; then
3566 { { $as_echo "$as_me:$LINENO: error: Could not find md5 hashing program in your path" >&5
3567 $as_echo "$as_me: error: Could not find md5 hashing program in your path" >&2;}
3568 { (exit 1); exit 1; }; }
3573 # Check whether --with-sse was given.
3574 if test "${with_sse+set}" = set; then
3575 withval=$with_sse;
3576 else
3577 with_sse=no
3580 if test "x$with_sse" != xno; then
3582 cat >>confdefs.h <<\_ACEOF
3583 #define HAVE_SSE 1
3584 _ACEOF
3590 # Check whether --with-half was given.
3591 if test "${with_half+set}" = set; then
3592 withval=$with_half;
3593 else
3594 with_half=no
3597 if test "x$with_half" = "xyes"; then
3599 cat >>confdefs.h <<\_ACEOF
3600 #define HALF_FLOATS 1
3601 _ACEOF
3606 # Check the version of strerror_r
3607 ac_ext=c
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612 if test -n "$ac_tool_prefix"; then
3613 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3614 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3615 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 $as_echo_n "checking for $ac_word... " >&6; }
3617 if test "${ac_cv_prog_CC+set}" = set; then
3618 $as_echo_n "(cached) " >&6
3619 else
3620 if test -n "$CC"; then
3621 ac_cv_prog_CC="$CC" # Let the user override the test.
3622 else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3630 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 break 2
3634 done
3635 done
3636 IFS=$as_save_IFS
3640 CC=$ac_cv_prog_CC
3641 if test -n "$CC"; then
3642 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3643 $as_echo "$CC" >&6; }
3644 else
3645 { $as_echo "$as_me:$LINENO: result: no" >&5
3646 $as_echo "no" >&6; }
3651 if test -z "$ac_cv_prog_CC"; then
3652 ac_ct_CC=$CC
3653 # Extract the first word of "gcc", so it can be a program name with args.
3654 set dummy gcc; ac_word=$2
3655 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 $as_echo_n "checking for $ac_word... " >&6; }
3657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3658 $as_echo_n "(cached) " >&6
3659 else
3660 if test -n "$ac_ct_CC"; then
3661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670 ac_cv_prog_ac_ct_CC="gcc"
3671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3674 done
3675 done
3676 IFS=$as_save_IFS
3680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3681 if test -n "$ac_ct_CC"; then
3682 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3683 $as_echo "$ac_ct_CC" >&6; }
3684 else
3685 { $as_echo "$as_me:$LINENO: result: no" >&5
3686 $as_echo "no" >&6; }
3689 if test "x$ac_ct_CC" = x; then
3690 CC=""
3691 else
3692 case $cross_compiling:$ac_tool_warned in
3693 yes:)
3694 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3696 ac_tool_warned=yes ;;
3697 esac
3698 CC=$ac_ct_CC
3700 else
3701 CC="$ac_cv_prog_CC"
3704 if test -z "$CC"; then
3705 if test -n "$ac_tool_prefix"; then
3706 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3707 set dummy ${ac_tool_prefix}cc; ac_word=$2
3708 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if test "${ac_cv_prog_CC+set}" = set; then
3711 $as_echo_n "(cached) " >&6
3712 else
3713 if test -n "$CC"; then
3714 ac_cv_prog_CC="$CC" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723 ac_cv_prog_CC="${ac_tool_prefix}cc"
3724 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 break 2
3727 done
3728 done
3729 IFS=$as_save_IFS
3733 CC=$ac_cv_prog_CC
3734 if test -n "$CC"; then
3735 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3736 $as_echo "$CC" >&6; }
3737 else
3738 { $as_echo "$as_me:$LINENO: result: no" >&5
3739 $as_echo "no" >&6; }
3745 if test -z "$CC"; then
3746 # Extract the first word of "cc", so it can be a program name with args.
3747 set dummy cc; ac_word=$2
3748 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3749 $as_echo_n "checking for $ac_word... " >&6; }
3750 if test "${ac_cv_prog_CC+set}" = set; then
3751 $as_echo_n "(cached) " >&6
3752 else
3753 if test -n "$CC"; then
3754 ac_cv_prog_CC="$CC" # Let the user override the test.
3755 else
3756 ac_prog_rejected=no
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3765 ac_prog_rejected=yes
3766 continue
3768 ac_cv_prog_CC="cc"
3769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3772 done
3773 done
3774 IFS=$as_save_IFS
3776 if test $ac_prog_rejected = yes; then
3777 # We found a bogon in the path, so make sure we never use it.
3778 set dummy $ac_cv_prog_CC
3779 shift
3780 if test $# != 0; then
3781 # We chose a different compiler from the bogus one.
3782 # However, it has the same basename, so the bogon will be chosen
3783 # first if we set CC to just the basename; use the full file name.
3784 shift
3785 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3790 CC=$ac_cv_prog_CC
3791 if test -n "$CC"; then
3792 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3793 $as_echo "$CC" >&6; }
3794 else
3795 { $as_echo "$as_me:$LINENO: result: no" >&5
3796 $as_echo "no" >&6; }
3801 if test -z "$CC"; then
3802 if test -n "$ac_tool_prefix"; then
3803 for ac_prog in cl.exe
3805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3808 $as_echo_n "checking for $ac_word... " >&6; }
3809 if test "${ac_cv_prog_CC+set}" = set; then
3810 $as_echo_n "(cached) " >&6
3811 else
3812 if test -n "$CC"; then
3813 ac_cv_prog_CC="$CC" # Let the user override the test.
3814 else
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3818 IFS=$as_save_IFS
3819 test -z "$as_dir" && as_dir=.
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3822 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 break 2
3826 done
3827 done
3828 IFS=$as_save_IFS
3832 CC=$ac_cv_prog_CC
3833 if test -n "$CC"; then
3834 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3835 $as_echo "$CC" >&6; }
3836 else
3837 { $as_echo "$as_me:$LINENO: result: no" >&5
3838 $as_echo "no" >&6; }
3842 test -n "$CC" && break
3843 done
3845 if test -z "$CC"; then
3846 ac_ct_CC=$CC
3847 for ac_prog in cl.exe
3849 # Extract the first word of "$ac_prog", so it can be a program name with args.
3850 set dummy $ac_prog; ac_word=$2
3851 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 $as_echo_n "checking for $ac_word... " >&6; }
3853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3854 $as_echo_n "(cached) " >&6
3855 else
3856 if test -n "$ac_ct_CC"; then
3857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3866 ac_cv_prog_ac_ct_CC="$ac_prog"
3867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3870 done
3871 done
3872 IFS=$as_save_IFS
3876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3877 if test -n "$ac_ct_CC"; then
3878 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3879 $as_echo "$ac_ct_CC" >&6; }
3880 else
3881 { $as_echo "$as_me:$LINENO: result: no" >&5
3882 $as_echo "no" >&6; }
3886 test -n "$ac_ct_CC" && break
3887 done
3889 if test "x$ac_ct_CC" = x; then
3890 CC=""
3891 else
3892 case $cross_compiling:$ac_tool_warned in
3893 yes:)
3894 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3896 ac_tool_warned=yes ;;
3897 esac
3898 CC=$ac_ct_CC
3905 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3908 See \`config.log' for more details." >&5
3909 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3910 See \`config.log' for more details." >&2;}
3911 { (exit 1); exit 1; }; }; }
3913 # Provide some information about the compiler.
3914 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3915 set X $ac_compile
3916 ac_compiler=$2
3917 { (ac_try="$ac_compiler --version >&5"
3918 case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3923 $as_echo "$ac_try_echo") >&5
3924 (eval "$ac_compiler --version >&5") 2>&5
3925 ac_status=$?
3926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }
3928 { (ac_try="$ac_compiler -v >&5"
3929 case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932 esac
3933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3934 $as_echo "$ac_try_echo") >&5
3935 (eval "$ac_compiler -v >&5") 2>&5
3936 ac_status=$?
3937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }
3939 { (ac_try="$ac_compiler -V >&5"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3945 $as_echo "$ac_try_echo") >&5
3946 (eval "$ac_compiler -V >&5") 2>&5
3947 ac_status=$?
3948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }
3951 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3952 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3953 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3954 $as_echo_n "(cached) " >&6
3955 else
3956 cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h. */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3964 main ()
3966 #ifndef __GNUC__
3967 choke me
3968 #endif
3971 return 0;
3973 _ACEOF
3974 rm -f conftest.$ac_objext
3975 if { (ac_try="$ac_compile"
3976 case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3979 esac
3980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3981 $as_echo "$ac_try_echo") >&5
3982 (eval "$ac_compile") 2>conftest.er1
3983 ac_status=$?
3984 grep -v '^ *+' conftest.er1 >conftest.err
3985 rm -f conftest.er1
3986 cat conftest.err >&5
3987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } && {
3989 test -z "$ac_c_werror_flag" ||
3990 test ! -s conftest.err
3991 } && test -s conftest.$ac_objext; then
3992 ac_compiler_gnu=yes
3993 else
3994 $as_echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 ac_compiler_gnu=no
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4004 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4005 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4006 if test $ac_compiler_gnu = yes; then
4007 GCC=yes
4008 else
4009 GCC=
4011 ac_test_CFLAGS=${CFLAGS+set}
4012 ac_save_CFLAGS=$CFLAGS
4013 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4014 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4015 if test "${ac_cv_prog_cc_g+set}" = set; then
4016 $as_echo_n "(cached) " >&6
4017 else
4018 ac_save_c_werror_flag=$ac_c_werror_flag
4019 ac_c_werror_flag=yes
4020 ac_cv_prog_cc_g=no
4021 CFLAGS="-g"
4022 cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h. */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4030 main ()
4034 return 0;
4036 _ACEOF
4037 rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4039 case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4044 $as_echo "$ac_try_echo") >&5
4045 (eval "$ac_compile") 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } && {
4052 test -z "$ac_c_werror_flag" ||
4053 test ! -s conftest.err
4054 } && test -s conftest.$ac_objext; then
4055 ac_cv_prog_cc_g=yes
4056 else
4057 $as_echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 CFLAGS=""
4061 cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h. */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4069 main ()
4073 return 0;
4075 _ACEOF
4076 rm -f conftest.$ac_objext
4077 if { (ac_try="$ac_compile"
4078 case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4083 $as_echo "$ac_try_echo") >&5
4084 (eval "$ac_compile") 2>conftest.er1
4085 ac_status=$?
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } && {
4091 test -z "$ac_c_werror_flag" ||
4092 test ! -s conftest.err
4093 } && test -s conftest.$ac_objext; then
4095 else
4096 $as_echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 ac_c_werror_flag=$ac_save_c_werror_flag
4100 CFLAGS="-g"
4101 cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h. */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4109 main ()
4113 return 0;
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4118 case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121 esac
4122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4123 $as_echo "$ac_try_echo") >&5
4124 (eval "$ac_compile") 2>conftest.er1
4125 ac_status=$?
4126 grep -v '^ *+' conftest.er1 >conftest.err
4127 rm -f conftest.er1
4128 cat conftest.err >&5
4129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } && {
4131 test -z "$ac_c_werror_flag" ||
4132 test ! -s conftest.err
4133 } && test -s conftest.$ac_objext; then
4134 ac_cv_prog_cc_g=yes
4135 else
4136 $as_echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4151 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4152 $as_echo "$ac_cv_prog_cc_g" >&6; }
4153 if test "$ac_test_CFLAGS" = set; then
4154 CFLAGS=$ac_save_CFLAGS
4155 elif test $ac_cv_prog_cc_g = yes; then
4156 if test "$GCC" = yes; then
4157 CFLAGS="-g -O2"
4158 else
4159 CFLAGS="-g"
4161 else
4162 if test "$GCC" = yes; then
4163 CFLAGS="-O2"
4164 else
4165 CFLAGS=
4168 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4169 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4170 if test "${ac_cv_prog_cc_c89+set}" = set; then
4171 $as_echo_n "(cached) " >&6
4172 else
4173 ac_cv_prog_cc_c89=no
4174 ac_save_CC=$CC
4175 cat >conftest.$ac_ext <<_ACEOF
4176 /* confdefs.h. */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4181 #include <stdarg.h>
4182 #include <stdio.h>
4183 #include <sys/types.h>
4184 #include <sys/stat.h>
4185 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4186 struct buf { int x; };
4187 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4188 static char *e (p, i)
4189 char **p;
4190 int i;
4192 return p[i];
4194 static char *f (char * (*g) (char **, int), char **p, ...)
4196 char *s;
4197 va_list v;
4198 va_start (v,p);
4199 s = g (p, va_arg (v,int));
4200 va_end (v);
4201 return s;
4204 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4205 function prototypes and stuff, but not '\xHH' hex character constants.
4206 These don't provoke an error unfortunately, instead are silently treated
4207 as 'x'. The following induces an error, until -std is added to get
4208 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4209 array size at least. It's necessary to write '\x00'==0 to get something
4210 that's true only with -std. */
4211 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4213 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4214 inside strings and character constants. */
4215 #define FOO(x) 'x'
4216 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4218 int test (int i, double x);
4219 struct s1 {int (*f) (int a);};
4220 struct s2 {int (*f) (double a);};
4221 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4222 int argc;
4223 char **argv;
4225 main ()
4227 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4229 return 0;
4231 _ACEOF
4232 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4233 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4235 CC="$ac_save_CC $ac_arg"
4236 rm -f conftest.$ac_objext
4237 if { (ac_try="$ac_compile"
4238 case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241 esac
4242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4243 $as_echo "$ac_try_echo") >&5
4244 (eval "$ac_compile") 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } && {
4251 test -z "$ac_c_werror_flag" ||
4252 test ! -s conftest.err
4253 } && test -s conftest.$ac_objext; then
4254 ac_cv_prog_cc_c89=$ac_arg
4255 else
4256 $as_echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4262 rm -f core conftest.err conftest.$ac_objext
4263 test "x$ac_cv_prog_cc_c89" != "xno" && break
4264 done
4265 rm -f conftest.$ac_ext
4266 CC=$ac_save_CC
4269 # AC_CACHE_VAL
4270 case "x$ac_cv_prog_cc_c89" in
4272 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4273 $as_echo "none needed" >&6; } ;;
4274 xno)
4275 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4276 $as_echo "unsupported" >&6; } ;;
4278 CC="$CC $ac_cv_prog_cc_c89"
4279 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4280 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4281 esac
4284 ac_ext=c
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 depcc="$CC" am_compiler_list=
4292 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4293 $as_echo_n "checking dependency style of $depcc... " >&6; }
4294 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4295 $as_echo_n "(cached) " >&6
4296 else
4297 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4298 # We make a subdir and do the tests there. Otherwise we can end up
4299 # making bogus files that we don't know about and never remove. For
4300 # instance it was reported that on HP-UX the gcc test will end up
4301 # making a dummy file named `D' -- because `-MD' means `put the output
4302 # in D'.
4303 mkdir conftest.dir
4304 # Copy depcomp to subdir because otherwise we won't find it if we're
4305 # using a relative directory.
4306 cp "$am_depcomp" conftest.dir
4307 cd conftest.dir
4308 # We will build objects and dependencies in a subdirectory because
4309 # it helps to detect inapplicable dependency modes. For instance
4310 # both Tru64's cc and ICC support -MD to output dependencies as a
4311 # side effect of compilation, but ICC will put the dependencies in
4312 # the current directory while Tru64 will put them in the object
4313 # directory.
4314 mkdir sub
4316 am_cv_CC_dependencies_compiler_type=none
4317 if test "$am_compiler_list" = ""; then
4318 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4320 am__universal=false
4321 case " $depcc " in #(
4322 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4323 esac
4325 for depmode in $am_compiler_list; do
4326 # Setup a source with many dependencies, because some compilers
4327 # like to wrap large dependency lists on column 80 (with \), and
4328 # we should not choose a depcomp mode which is confused by this.
4330 # We need to recreate these files for each test, as the compiler may
4331 # overwrite some of them when testing with obscure command lines.
4332 # This happens at least with the AIX C compiler.
4333 : > sub/conftest.c
4334 for i in 1 2 3 4 5 6; do
4335 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4336 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4337 # Solaris 8's {/usr,}/bin/sh.
4338 touch sub/conftst$i.h
4339 done
4340 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4342 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4343 # mode. It turns out that the SunPro C++ compiler does not properly
4344 # handle `-M -o', and we need to detect this. Also, some Intel
4345 # versions had trouble with output in subdirs
4346 am__obj=sub/conftest.${OBJEXT-o}
4347 am__minus_obj="-o $am__obj"
4348 case $depmode in
4349 gcc)
4350 # This depmode causes a compiler race in universal mode.
4351 test "$am__universal" = false || continue
4353 nosideeffect)
4354 # after this tag, mechanisms are not by side-effect, so they'll
4355 # only be used when explicitly requested
4356 if test "x$enable_dependency_tracking" = xyes; then
4357 continue
4358 else
4359 break
4362 msvisualcpp | msvcmsys)
4363 # This compiler won't grok `-c -o', but also, the minuso test has
4364 # not run yet. These depmodes are late enough in the game, and
4365 # so weak that their functioning should not be impacted.
4366 am__obj=conftest.${OBJEXT-o}
4367 am__minus_obj=
4369 none) break ;;
4370 esac
4371 if depmode=$depmode \
4372 source=sub/conftest.c object=$am__obj \
4373 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4374 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4375 >/dev/null 2>conftest.err &&
4376 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4377 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4378 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4379 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4380 # icc doesn't choke on unknown options, it will just issue warnings
4381 # or remarks (even with -Werror). So we grep stderr for any message
4382 # that says an option was ignored or not supported.
4383 # When given -MP, icc 7.0 and 7.1 complain thusly:
4384 # icc: Command line warning: ignoring option '-M'; no argument required
4385 # The diagnosis changed in icc 8.0:
4386 # icc: Command line remark: option '-MP' not supported
4387 if (grep 'ignoring option' conftest.err ||
4388 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4389 am_cv_CC_dependencies_compiler_type=$depmode
4390 break
4393 done
4395 cd ..
4396 rm -rf conftest.dir
4397 else
4398 am_cv_CC_dependencies_compiler_type=none
4402 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4403 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4404 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4407 test "x$enable_dependency_tracking" != xno \
4408 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4409 am__fastdepCC_TRUE=
4410 am__fastdepCC_FALSE='#'
4411 else
4412 am__fastdepCC_TRUE='#'
4413 am__fastdepCC_FALSE=
4418 ac_ext=c
4419 ac_cpp='$CPP $CPPFLAGS'
4420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4424 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4425 # On Suns, sometimes $CPP names a directory.
4426 if test -n "$CPP" && test -d "$CPP"; then
4427 CPP=
4429 if test -z "$CPP"; then
4430 if test "${ac_cv_prog_CPP+set}" = set; then
4431 $as_echo_n "(cached) " >&6
4432 else
4433 # Double quotes because CPP needs to be expanded
4434 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4436 ac_preproc_ok=false
4437 for ac_c_preproc_warn_flag in '' yes
4439 # Use a header file that comes with gcc, so configuring glibc
4440 # with a fresh cross-compiler works.
4441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4442 # <limits.h> exists even on freestanding compilers.
4443 # On the NeXT, cc -E runs the code through the compiler's parser,
4444 # not just through cpp. "Syntax error" is here to catch this case.
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 #ifdef __STDC__
4452 # include <limits.h>
4453 #else
4454 # include <assert.h>
4455 #endif
4456 Syntax error
4457 _ACEOF
4458 if { (ac_try="$ac_cpp conftest.$ac_ext"
4459 case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4464 $as_echo "$ac_try_echo") >&5
4465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4466 ac_status=$?
4467 grep -v '^ *+' conftest.er1 >conftest.err
4468 rm -f conftest.er1
4469 cat conftest.err >&5
4470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } >/dev/null && {
4472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 }; then
4476 else
4477 $as_echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 # Broken: fails on valid input.
4481 continue
4484 rm -f conftest.err conftest.$ac_ext
4486 # OK, works on sane cases. Now check whether nonexistent headers
4487 # can be detected and how.
4488 cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h. */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 #include <ac_nonexistent.h>
4495 _ACEOF
4496 if { (ac_try="$ac_cpp conftest.$ac_ext"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4502 $as_echo "$ac_try_echo") >&5
4503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4504 ac_status=$?
4505 grep -v '^ *+' conftest.er1 >conftest.err
4506 rm -f conftest.er1
4507 cat conftest.err >&5
4508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } >/dev/null && {
4510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4511 test ! -s conftest.err
4512 }; then
4513 # Broken: success on invalid input.
4514 continue
4515 else
4516 $as_echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4519 # Passes both tests.
4520 ac_preproc_ok=:
4521 break
4524 rm -f conftest.err conftest.$ac_ext
4526 done
4527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4528 rm -f conftest.err conftest.$ac_ext
4529 if $ac_preproc_ok; then
4530 break
4533 done
4534 ac_cv_prog_CPP=$CPP
4537 CPP=$ac_cv_prog_CPP
4538 else
4539 ac_cv_prog_CPP=$CPP
4541 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4542 $as_echo "$CPP" >&6; }
4543 ac_preproc_ok=false
4544 for ac_c_preproc_warn_flag in '' yes
4546 # Use a header file that comes with gcc, so configuring glibc
4547 # with a fresh cross-compiler works.
4548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4549 # <limits.h> exists even on freestanding compilers.
4550 # On the NeXT, cc -E runs the code through the compiler's parser,
4551 # not just through cpp. "Syntax error" is here to catch this case.
4552 cat >conftest.$ac_ext <<_ACEOF
4553 /* confdefs.h. */
4554 _ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4558 #ifdef __STDC__
4559 # include <limits.h>
4560 #else
4561 # include <assert.h>
4562 #endif
4563 Syntax error
4564 _ACEOF
4565 if { (ac_try="$ac_cpp conftest.$ac_ext"
4566 case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569 esac
4570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4571 $as_echo "$ac_try_echo") >&5
4572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4573 ac_status=$?
4574 grep -v '^ *+' conftest.er1 >conftest.err
4575 rm -f conftest.er1
4576 cat conftest.err >&5
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } >/dev/null && {
4579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4580 test ! -s conftest.err
4581 }; then
4583 else
4584 $as_echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4587 # Broken: fails on valid input.
4588 continue
4591 rm -f conftest.err conftest.$ac_ext
4593 # OK, works on sane cases. Now check whether nonexistent headers
4594 # can be detected and how.
4595 cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h. */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 #include <ac_nonexistent.h>
4602 _ACEOF
4603 if { (ac_try="$ac_cpp conftest.$ac_ext"
4604 case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4607 esac
4608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4609 $as_echo "$ac_try_echo") >&5
4610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4611 ac_status=$?
4612 grep -v '^ *+' conftest.er1 >conftest.err
4613 rm -f conftest.er1
4614 cat conftest.err >&5
4615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } >/dev/null && {
4617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4618 test ! -s conftest.err
4619 }; then
4620 # Broken: success on invalid input.
4621 continue
4622 else
4623 $as_echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 # Passes both tests.
4627 ac_preproc_ok=:
4628 break
4631 rm -f conftest.err conftest.$ac_ext
4633 done
4634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4635 rm -f conftest.err conftest.$ac_ext
4636 if $ac_preproc_ok; then
4638 else
4639 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4641 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4642 See \`config.log' for more details." >&5
4643 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4644 See \`config.log' for more details." >&2;}
4645 { (exit 1); exit 1; }; }; }
4648 ac_ext=c
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4656 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4657 if test "${ac_cv_path_GREP+set}" = set; then
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if test -z "$GREP"; then
4661 ac_path_GREP_found=false
4662 # Loop through the user's path and test for each of PROGNAME-LIST
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_prog in grep ggrep; do
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4671 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4672 # Check for GNU ac_path_GREP and select it if it is found.
4673 # Check for GNU $ac_path_GREP
4674 case `"$ac_path_GREP" --version 2>&1` in
4675 *GNU*)
4676 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4678 ac_count=0
4679 $as_echo_n 0123456789 >"conftest.in"
4680 while :
4682 cat "conftest.in" "conftest.in" >"conftest.tmp"
4683 mv "conftest.tmp" "conftest.in"
4684 cp "conftest.in" "conftest.nl"
4685 $as_echo 'GREP' >> "conftest.nl"
4686 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4688 ac_count=`expr $ac_count + 1`
4689 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4690 # Best one so far, save it but keep looking for a better one
4691 ac_cv_path_GREP="$ac_path_GREP"
4692 ac_path_GREP_max=$ac_count
4694 # 10*(2^10) chars as input seems more than enough
4695 test $ac_count -gt 10 && break
4696 done
4697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4698 esac
4700 $ac_path_GREP_found && break 3
4701 done
4702 done
4703 done
4704 IFS=$as_save_IFS
4705 if test -z "$ac_cv_path_GREP"; then
4706 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4707 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4708 { (exit 1); exit 1; }; }
4710 else
4711 ac_cv_path_GREP=$GREP
4715 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4716 $as_echo "$ac_cv_path_GREP" >&6; }
4717 GREP="$ac_cv_path_GREP"
4720 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4721 $as_echo_n "checking for egrep... " >&6; }
4722 if test "${ac_cv_path_EGREP+set}" = set; then
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4726 then ac_cv_path_EGREP="$GREP -E"
4727 else
4728 if test -z "$EGREP"; then
4729 ac_path_EGREP_found=false
4730 # Loop through the user's path and test for each of PROGNAME-LIST
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_prog in egrep; do
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4739 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4740 # Check for GNU ac_path_EGREP and select it if it is found.
4741 # Check for GNU $ac_path_EGREP
4742 case `"$ac_path_EGREP" --version 2>&1` in
4743 *GNU*)
4744 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4746 ac_count=0
4747 $as_echo_n 0123456789 >"conftest.in"
4748 while :
4750 cat "conftest.in" "conftest.in" >"conftest.tmp"
4751 mv "conftest.tmp" "conftest.in"
4752 cp "conftest.in" "conftest.nl"
4753 $as_echo 'EGREP' >> "conftest.nl"
4754 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4756 ac_count=`expr $ac_count + 1`
4757 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4758 # Best one so far, save it but keep looking for a better one
4759 ac_cv_path_EGREP="$ac_path_EGREP"
4760 ac_path_EGREP_max=$ac_count
4762 # 10*(2^10) chars as input seems more than enough
4763 test $ac_count -gt 10 && break
4764 done
4765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4766 esac
4768 $ac_path_EGREP_found && break 3
4769 done
4770 done
4771 done
4772 IFS=$as_save_IFS
4773 if test -z "$ac_cv_path_EGREP"; then
4774 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4775 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4776 { (exit 1); exit 1; }; }
4778 else
4779 ac_cv_path_EGREP=$EGREP
4784 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4785 $as_echo "$ac_cv_path_EGREP" >&6; }
4786 EGREP="$ac_cv_path_EGREP"
4789 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4790 $as_echo_n "checking for ANSI C header files... " >&6; }
4791 if test "${ac_cv_header_stdc+set}" = set; then
4792 $as_echo_n "(cached) " >&6
4793 else
4794 cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h. */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 #include <stdlib.h>
4801 #include <stdarg.h>
4802 #include <string.h>
4803 #include <float.h>
4806 main ()
4810 return 0;
4812 _ACEOF
4813 rm -f conftest.$ac_objext
4814 if { (ac_try="$ac_compile"
4815 case "(($ac_try" in
4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817 *) ac_try_echo=$ac_try;;
4818 esac
4819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4820 $as_echo "$ac_try_echo") >&5
4821 (eval "$ac_compile") 2>conftest.er1
4822 ac_status=$?
4823 grep -v '^ *+' conftest.er1 >conftest.err
4824 rm -f conftest.er1
4825 cat conftest.err >&5
4826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } && {
4828 test -z "$ac_c_werror_flag" ||
4829 test ! -s conftest.err
4830 } && test -s conftest.$ac_objext; then
4831 ac_cv_header_stdc=yes
4832 else
4833 $as_echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4836 ac_cv_header_stdc=no
4839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 if test $ac_cv_header_stdc = yes; then
4842 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h. */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 #include <string.h>
4851 _ACEOF
4852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4853 $EGREP "memchr" >/dev/null 2>&1; then
4855 else
4856 ac_cv_header_stdc=no
4858 rm -f conftest*
4862 if test $ac_cv_header_stdc = yes; then
4863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #include <stdlib.h>
4872 _ACEOF
4873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4874 $EGREP "free" >/dev/null 2>&1; then
4876 else
4877 ac_cv_header_stdc=no
4879 rm -f conftest*
4883 if test $ac_cv_header_stdc = yes; then
4884 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4885 if test "$cross_compiling" = yes; then
4887 else
4888 cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h. */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4894 #include <ctype.h>
4895 #include <stdlib.h>
4896 #if ((' ' & 0x0FF) == 0x020)
4897 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4898 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4899 #else
4900 # define ISLOWER(c) \
4901 (('a' <= (c) && (c) <= 'i') \
4902 || ('j' <= (c) && (c) <= 'r') \
4903 || ('s' <= (c) && (c) <= 'z'))
4904 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4905 #endif
4907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4909 main ()
4911 int i;
4912 for (i = 0; i < 256; i++)
4913 if (XOR (islower (i), ISLOWER (i))
4914 || toupper (i) != TOUPPER (i))
4915 return 2;
4916 return 0;
4918 _ACEOF
4919 rm -f conftest$ac_exeext
4920 if { (ac_try="$ac_link"
4921 case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924 esac
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927 (eval "$ac_link") 2>&5
4928 ac_status=$?
4929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4931 { (case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934 esac
4935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4936 $as_echo "$ac_try_echo") >&5
4937 (eval "$ac_try") 2>&5
4938 ac_status=$?
4939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4942 else
4943 $as_echo "$as_me: program exited with status $ac_status" >&5
4944 $as_echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 ( exit $ac_status )
4948 ac_cv_header_stdc=no
4950 rm -rf conftest.dSYM
4951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4957 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4958 $as_echo "$ac_cv_header_stdc" >&6; }
4959 if test $ac_cv_header_stdc = yes; then
4961 cat >>confdefs.h <<\_ACEOF
4962 #define STDC_HEADERS 1
4963 _ACEOF
4967 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4977 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4978 inttypes.h stdint.h unistd.h
4980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4982 $as_echo_n "checking for $ac_header... " >&6; }
4983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4984 $as_echo_n "(cached) " >&6
4985 else
4986 cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h. */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 $ac_includes_default
4994 #include <$ac_header>
4995 _ACEOF
4996 rm -f conftest.$ac_objext
4997 if { (ac_try="$ac_compile"
4998 case "(($ac_try" in
4999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000 *) ac_try_echo=$ac_try;;
5001 esac
5002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5003 $as_echo "$ac_try_echo") >&5
5004 (eval "$ac_compile") 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && {
5011 test -z "$ac_c_werror_flag" ||
5012 test ! -s conftest.err
5013 } && test -s conftest.$ac_objext; then
5014 eval "$as_ac_Header=yes"
5015 else
5016 $as_echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5019 eval "$as_ac_Header=no"
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024 ac_res=`eval 'as_val=${'$as_ac_Header'}
5025 $as_echo "$as_val"'`
5026 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5027 $as_echo "$ac_res" >&6; }
5028 as_val=`eval 'as_val=${'$as_ac_Header'}
5029 $as_echo "$as_val"'`
5030 if test "x$as_val" = x""yes; then
5031 cat >>confdefs.h <<_ACEOF
5032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5033 _ACEOF
5037 done
5040 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
5041 $as_echo_n "checking whether strerror_r is declared... " >&6; }
5042 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
5043 $as_echo_n "(cached) " >&6
5044 else
5045 cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h. */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5051 $ac_includes_default
5053 main ()
5055 #ifndef strerror_r
5056 (void) strerror_r;
5057 #endif
5060 return 0;
5062 _ACEOF
5063 rm -f conftest.$ac_objext
5064 if { (ac_try="$ac_compile"
5065 case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068 esac
5069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5070 $as_echo "$ac_try_echo") >&5
5071 (eval "$ac_compile") 2>conftest.er1
5072 ac_status=$?
5073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
5076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } && {
5078 test -z "$ac_c_werror_flag" ||
5079 test ! -s conftest.err
5080 } && test -s conftest.$ac_objext; then
5081 ac_cv_have_decl_strerror_r=yes
5082 else
5083 $as_echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5086 ac_cv_have_decl_strerror_r=no
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
5092 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
5093 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
5095 cat >>confdefs.h <<_ACEOF
5096 #define HAVE_DECL_STRERROR_R 1
5097 _ACEOF
5100 else
5101 cat >>confdefs.h <<_ACEOF
5102 #define HAVE_DECL_STRERROR_R 0
5103 _ACEOF
5110 for ac_func in strerror_r
5112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5113 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5114 $as_echo_n "checking for $ac_func... " >&6; }
5115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5116 $as_echo_n "(cached) " >&6
5117 else
5118 cat >conftest.$ac_ext <<_ACEOF
5119 /* confdefs.h. */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5126 #define $ac_func innocuous_$ac_func
5128 /* System header to define __stub macros and hopefully few prototypes,
5129 which can conflict with char $ac_func (); below.
5130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5131 <limits.h> exists even on freestanding compilers. */
5133 #ifdef __STDC__
5134 # include <limits.h>
5135 #else
5136 # include <assert.h>
5137 #endif
5139 #undef $ac_func
5141 /* Override any GCC internal prototype to avoid an error.
5142 Use char because int might match the return type of a GCC
5143 builtin and then its argument prototype would still apply. */
5144 #ifdef __cplusplus
5145 extern "C"
5146 #endif
5147 char $ac_func ();
5148 /* The GNU C library defines this for functions which it implements
5149 to always fail with ENOSYS. Some functions are actually named
5150 something starting with __ and the normal name is an alias. */
5151 #if defined __stub_$ac_func || defined __stub___$ac_func
5152 choke me
5153 #endif
5156 main ()
5158 return $ac_func ();
5160 return 0;
5162 _ACEOF
5163 rm -f conftest.$ac_objext conftest$ac_exeext
5164 if { (ac_try="$ac_link"
5165 case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168 esac
5169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5170 $as_echo "$ac_try_echo") >&5
5171 (eval "$ac_link") 2>conftest.er1
5172 ac_status=$?
5173 grep -v '^ *+' conftest.er1 >conftest.err
5174 rm -f conftest.er1
5175 cat conftest.err >&5
5176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } && {
5178 test -z "$ac_c_werror_flag" ||
5179 test ! -s conftest.err
5180 } && test -s conftest$ac_exeext && {
5181 test "$cross_compiling" = yes ||
5182 $as_test_x conftest$ac_exeext
5183 }; then
5184 eval "$as_ac_var=yes"
5185 else
5186 $as_echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5189 eval "$as_ac_var=no"
5192 rm -rf conftest.dSYM
5193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5194 conftest$ac_exeext conftest.$ac_ext
5196 ac_res=`eval 'as_val=${'$as_ac_var'}
5197 $as_echo "$as_val"'`
5198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5199 $as_echo "$ac_res" >&6; }
5200 as_val=`eval 'as_val=${'$as_ac_var'}
5201 $as_echo "$as_val"'`
5202 if test "x$as_val" = x""yes; then
5203 cat >>confdefs.h <<_ACEOF
5204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5205 _ACEOF
5208 done
5210 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
5211 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
5212 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
5213 $as_echo_n "(cached) " >&6
5214 else
5216 ac_cv_func_strerror_r_char_p=no
5217 if test $ac_cv_have_decl_strerror_r = yes; then
5218 cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h. */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 $ac_includes_default
5226 main ()
5229 char buf[100];
5230 char x = *strerror_r (0, buf, sizeof buf);
5231 char *p = strerror_r (0, buf, sizeof buf);
5232 return !p || x;
5235 return 0;
5237 _ACEOF
5238 rm -f conftest.$ac_objext
5239 if { (ac_try="$ac_compile"
5240 case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243 esac
5244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5245 $as_echo "$ac_try_echo") >&5
5246 (eval "$ac_compile") 2>conftest.er1
5247 ac_status=$?
5248 grep -v '^ *+' conftest.er1 >conftest.err
5249 rm -f conftest.er1
5250 cat conftest.err >&5
5251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } && {
5253 test -z "$ac_c_werror_flag" ||
5254 test ! -s conftest.err
5255 } && test -s conftest.$ac_objext; then
5256 ac_cv_func_strerror_r_char_p=yes
5257 else
5258 $as_echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 else
5266 # strerror_r is not declared. Choose between
5267 # systems that have relatively inaccessible declarations for the
5268 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
5269 # former has a strerror_r that returns char*, while the latter
5270 # has a strerror_r that returns `int'.
5271 # This test should segfault on the DEC system.
5272 if test "$cross_compiling" = yes; then
5274 else
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 $ac_includes_default
5282 extern char *strerror_r ();
5284 main ()
5286 char buf[100];
5287 char x = *strerror_r (0, buf, sizeof buf);
5288 return ! isalpha (x);
5290 return 0;
5292 _ACEOF
5293 rm -f conftest$ac_exeext
5294 if { (ac_try="$ac_link"
5295 case "(($ac_try" in
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5298 esac
5299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5300 $as_echo "$ac_try_echo") >&5
5301 (eval "$ac_link") 2>&5
5302 ac_status=$?
5303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5305 { (case "(($ac_try" in
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5308 esac
5309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5310 $as_echo "$ac_try_echo") >&5
5311 (eval "$ac_try") 2>&5
5312 ac_status=$?
5313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5315 ac_cv_func_strerror_r_char_p=yes
5316 else
5317 $as_echo "$as_me: program exited with status $ac_status" >&5
5318 $as_echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5322 rm -rf conftest.dSYM
5323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5330 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
5331 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
5332 if test $ac_cv_func_strerror_r_char_p = yes; then
5334 cat >>confdefs.h <<\_ACEOF
5335 #define STRERROR_R_CHAR_P 1
5336 _ACEOF
5342 for ac_header in execinfo.h
5344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5347 $as_echo_n "checking for $ac_header... " >&6; }
5348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5349 $as_echo_n "(cached) " >&6
5351 ac_res=`eval 'as_val=${'$as_ac_Header'}
5352 $as_echo "$as_val"'`
5353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5354 $as_echo "$ac_res" >&6; }
5355 else
5356 # Is the header compilable?
5357 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5358 $as_echo_n "checking $ac_header usability... " >&6; }
5359 cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h. */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 $ac_includes_default
5366 #include <$ac_header>
5367 _ACEOF
5368 rm -f conftest.$ac_objext
5369 if { (ac_try="$ac_compile"
5370 case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373 esac
5374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5375 $as_echo "$ac_try_echo") >&5
5376 (eval "$ac_compile") 2>conftest.er1
5377 ac_status=$?
5378 grep -v '^ *+' conftest.er1 >conftest.err
5379 rm -f conftest.er1
5380 cat conftest.err >&5
5381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } && {
5383 test -z "$ac_c_werror_flag" ||
5384 test ! -s conftest.err
5385 } && test -s conftest.$ac_objext; then
5386 ac_header_compiler=yes
5387 else
5388 $as_echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 ac_header_compiler=no
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5396 $as_echo "$ac_header_compiler" >&6; }
5398 # Is the header present?
5399 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5400 $as_echo_n "checking $ac_header presence... " >&6; }
5401 cat >conftest.$ac_ext <<_ACEOF
5402 /* confdefs.h. */
5403 _ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <$ac_header>
5408 _ACEOF
5409 if { (ac_try="$ac_cpp conftest.$ac_ext"
5410 case "(($ac_try" in
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5413 esac
5414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5415 $as_echo "$ac_try_echo") >&5
5416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5417 ac_status=$?
5418 grep -v '^ *+' conftest.er1 >conftest.err
5419 rm -f conftest.er1
5420 cat conftest.err >&5
5421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } >/dev/null && {
5423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5424 test ! -s conftest.err
5425 }; then
5426 ac_header_preproc=yes
5427 else
5428 $as_echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5431 ac_header_preproc=no
5434 rm -f conftest.err conftest.$ac_ext
5435 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5436 $as_echo "$ac_header_preproc" >&6; }
5438 # So? What about this header?
5439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5440 yes:no: )
5441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5442 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5444 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5445 ac_header_preproc=yes
5447 no:yes:* )
5448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5449 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5451 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5453 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5455 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5457 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5459 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5460 ( cat <<\_ASBOX
5461 ## ------------------------------- ##
5462 ## Report this to gmarcais@umd.edu ##
5463 ## ------------------------------- ##
5464 _ASBOX
5465 ) | sed "s/^/$as_me: WARNING: /" >&2
5467 esac
5468 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5469 $as_echo_n "checking for $ac_header... " >&6; }
5470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5471 $as_echo_n "(cached) " >&6
5472 else
5473 eval "$as_ac_Header=\$ac_header_preproc"
5475 ac_res=`eval 'as_val=${'$as_ac_Header'}
5476 $as_echo "$as_val"'`
5477 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5478 $as_echo "$ac_res" >&6; }
5481 as_val=`eval 'as_val=${'$as_ac_Header'}
5482 $as_echo "$as_val"'`
5483 if test "x$as_val" = x""yes; then
5484 cat >>confdefs.h <<_ACEOF
5485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5486 _ACEOF
5490 done
5493 { $as_echo "$as_me:$LINENO: checking for siginfo_t.si_int" >&5
5494 $as_echo_n "checking for siginfo_t.si_int... " >&6; }
5495 if test "${ac_cv_member_siginfo_t_si_int+set}" = set; then
5496 $as_echo_n "(cached) " >&6
5497 else
5498 cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h. */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 #include <signal.h>
5507 main ()
5509 static siginfo_t ac_aggr;
5510 if (ac_aggr.si_int)
5511 return 0;
5513 return 0;
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (ac_try="$ac_compile"
5518 case "(($ac_try" in
5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520 *) ac_try_echo=$ac_try;;
5521 esac
5522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5523 $as_echo "$ac_try_echo") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_c_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.$ac_objext; then
5534 ac_cv_member_siginfo_t_si_int=yes
5535 else
5536 $as_echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 #include <signal.h>
5548 main ()
5550 static siginfo_t ac_aggr;
5551 if (sizeof ac_aggr.si_int)
5552 return 0;
5554 return 0;
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (ac_try="$ac_compile"
5559 case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562 esac
5563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5564 $as_echo "$ac_try_echo") >&5
5565 (eval "$ac_compile") 2>conftest.er1
5566 ac_status=$?
5567 grep -v '^ *+' conftest.er1 >conftest.err
5568 rm -f conftest.er1
5569 cat conftest.err >&5
5570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } && {
5572 test -z "$ac_c_werror_flag" ||
5573 test ! -s conftest.err
5574 } && test -s conftest.$ac_objext; then
5575 ac_cv_member_siginfo_t_si_int=yes
5576 else
5577 $as_echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5580 ac_cv_member_siginfo_t_si_int=no
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_int" >&5
5589 $as_echo "$ac_cv_member_siginfo_t_si_int" >&6; }
5590 if test "x$ac_cv_member_siginfo_t_si_int" = x""yes; then
5592 cat >>confdefs.h <<\_ACEOF
5593 #define HAVE_SI_INT 1
5594 _ACEOF
5599 case `pwd` in
5600 *\ * | *\ *)
5601 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5602 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5603 esac
5607 macro_version='2.2.6b'
5608 macro_revision='1.3017'
5622 ltmain="$ac_aux_dir/ltmain.sh"
5624 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5625 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5626 if test "${ac_cv_path_SED+set}" = set; then
5627 $as_echo_n "(cached) " >&6
5628 else
5629 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5630 for ac_i in 1 2 3 4 5 6 7; do
5631 ac_script="$ac_script$as_nl$ac_script"
5632 done
5633 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5634 $as_unset ac_script || ac_script=
5635 if test -z "$SED"; then
5636 ac_path_SED_found=false
5637 # Loop through the user's path and test for each of PROGNAME-LIST
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_prog in sed gsed; do
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5646 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5647 # Check for GNU ac_path_SED and select it if it is found.
5648 # Check for GNU $ac_path_SED
5649 case `"$ac_path_SED" --version 2>&1` in
5650 *GNU*)
5651 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5653 ac_count=0
5654 $as_echo_n 0123456789 >"conftest.in"
5655 while :
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 $as_echo '' >> "conftest.nl"
5661 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663 ac_count=`expr $ac_count + 1`
5664 if test $ac_count -gt ${ac_path_SED_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_SED="$ac_path_SED"
5667 ac_path_SED_max=$ac_count
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5671 done
5672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5673 esac
5675 $ac_path_SED_found && break 3
5676 done
5677 done
5678 done
5679 IFS=$as_save_IFS
5680 if test -z "$ac_cv_path_SED"; then
5681 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5682 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5683 { (exit 1); exit 1; }; }
5685 else
5686 ac_cv_path_SED=$SED
5690 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5691 $as_echo "$ac_cv_path_SED" >&6; }
5692 SED="$ac_cv_path_SED"
5693 rm -f conftest.sed
5695 test -z "$SED" && SED=sed
5696 Xsed="$SED -e 1s/^X//"
5708 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5709 $as_echo_n "checking for fgrep... " >&6; }
5710 if test "${ac_cv_path_FGREP+set}" = set; then
5711 $as_echo_n "(cached) " >&6
5712 else
5713 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5714 then ac_cv_path_FGREP="$GREP -F"
5715 else
5716 if test -z "$FGREP"; then
5717 ac_path_FGREP_found=false
5718 # Loop through the user's path and test for each of PROGNAME-LIST
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_prog in fgrep; do
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5727 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5728 # Check for GNU ac_path_FGREP and select it if it is found.
5729 # Check for GNU $ac_path_FGREP
5730 case `"$ac_path_FGREP" --version 2>&1` in
5731 *GNU*)
5732 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5734 ac_count=0
5735 $as_echo_n 0123456789 >"conftest.in"
5736 while :
5738 cat "conftest.in" "conftest.in" >"conftest.tmp"
5739 mv "conftest.tmp" "conftest.in"
5740 cp "conftest.in" "conftest.nl"
5741 $as_echo 'FGREP' >> "conftest.nl"
5742 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5744 ac_count=`expr $ac_count + 1`
5745 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5746 # Best one so far, save it but keep looking for a better one
5747 ac_cv_path_FGREP="$ac_path_FGREP"
5748 ac_path_FGREP_max=$ac_count
5750 # 10*(2^10) chars as input seems more than enough
5751 test $ac_count -gt 10 && break
5752 done
5753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5754 esac
5756 $ac_path_FGREP_found && break 3
5757 done
5758 done
5759 done
5760 IFS=$as_save_IFS
5761 if test -z "$ac_cv_path_FGREP"; then
5762 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5763 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5764 { (exit 1); exit 1; }; }
5766 else
5767 ac_cv_path_FGREP=$FGREP
5772 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5773 $as_echo "$ac_cv_path_FGREP" >&6; }
5774 FGREP="$ac_cv_path_FGREP"
5777 test -z "$GREP" && GREP=grep
5797 # Check whether --with-gnu-ld was given.
5798 if test "${with_gnu_ld+set}" = set; then
5799 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5800 else
5801 with_gnu_ld=no
5804 ac_prog=ld
5805 if test "$GCC" = yes; then
5806 # Check if gcc -print-prog-name=ld gives a path.
5807 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5808 $as_echo_n "checking for ld used by $CC... " >&6; }
5809 case $host in
5810 *-*-mingw*)
5811 # gcc leaves a trailing carriage return which upsets mingw
5812 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5814 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5815 esac
5816 case $ac_prog in
5817 # Accept absolute paths.
5818 [\\/]* | ?:[\\/]*)
5819 re_direlt='/[^/][^/]*/\.\./'
5820 # Canonicalize the pathname of ld
5821 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5822 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5823 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5824 done
5825 test -z "$LD" && LD="$ac_prog"
5828 # If it fails, then pretend we aren't using GCC.
5829 ac_prog=ld
5832 # If it is relative, then search for the first ld in PATH.
5833 with_gnu_ld=unknown
5835 esac
5836 elif test "$with_gnu_ld" = yes; then
5837 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5838 $as_echo_n "checking for GNU ld... " >&6; }
5839 else
5840 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5841 $as_echo_n "checking for non-GNU ld... " >&6; }
5843 if test "${lt_cv_path_LD+set}" = set; then
5844 $as_echo_n "(cached) " >&6
5845 else
5846 if test -z "$LD"; then
5847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5848 for ac_dir in $PATH; do
5849 IFS="$lt_save_ifs"
5850 test -z "$ac_dir" && ac_dir=.
5851 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5852 lt_cv_path_LD="$ac_dir/$ac_prog"
5853 # Check to see if the program is GNU ld. I'd rather use --version,
5854 # but apparently some variants of GNU ld only accept -v.
5855 # Break only if it was the GNU/non-GNU ld that we prefer.
5856 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5857 *GNU* | *'with BFD'*)
5858 test "$with_gnu_ld" != no && break
5861 test "$with_gnu_ld" != yes && break
5863 esac
5865 done
5866 IFS="$lt_save_ifs"
5867 else
5868 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5872 LD="$lt_cv_path_LD"
5873 if test -n "$LD"; then
5874 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5875 $as_echo "$LD" >&6; }
5876 else
5877 { $as_echo "$as_me:$LINENO: result: no" >&5
5878 $as_echo "no" >&6; }
5880 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5881 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5882 { (exit 1); exit 1; }; }
5883 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5884 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5885 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5886 $as_echo_n "(cached) " >&6
5887 else
5888 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5889 case `$LD -v 2>&1 </dev/null` in
5890 *GNU* | *'with BFD'*)
5891 lt_cv_prog_gnu_ld=yes
5894 lt_cv_prog_gnu_ld=no
5896 esac
5898 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5899 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5900 with_gnu_ld=$lt_cv_prog_gnu_ld
5910 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5911 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5912 if test "${lt_cv_path_NM+set}" = set; then
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if test -n "$NM"; then
5916 # Let the user override the test.
5917 lt_cv_path_NM="$NM"
5918 else
5919 lt_nm_to_check="${ac_tool_prefix}nm"
5920 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5921 lt_nm_to_check="$lt_nm_to_check nm"
5923 for lt_tmp_nm in $lt_nm_to_check; do
5924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5925 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5926 IFS="$lt_save_ifs"
5927 test -z "$ac_dir" && ac_dir=.
5928 tmp_nm="$ac_dir/$lt_tmp_nm"
5929 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5930 # Check to see if the nm accepts a BSD-compat flag.
5931 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5932 # nm: unknown option "B" ignored
5933 # Tru64's nm complains that /dev/null is an invalid object file
5934 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5935 */dev/null* | *'Invalid file or object type'*)
5936 lt_cv_path_NM="$tmp_nm -B"
5937 break
5940 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5941 */dev/null*)
5942 lt_cv_path_NM="$tmp_nm -p"
5943 break
5946 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5947 continue # so that we can try to find one that supports BSD flags
5949 esac
5951 esac
5953 done
5954 IFS="$lt_save_ifs"
5955 done
5956 : ${lt_cv_path_NM=no}
5959 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5960 $as_echo "$lt_cv_path_NM" >&6; }
5961 if test "$lt_cv_path_NM" != "no"; then
5962 NM="$lt_cv_path_NM"
5963 else
5964 # Didn't find any BSD compatible name lister, look for dumpbin.
5965 if test -n "$ac_tool_prefix"; then
5966 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5970 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if test -n "$DUMPBIN"; then
5976 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5986 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5989 done
5990 done
5991 IFS=$as_save_IFS
5995 DUMPBIN=$ac_cv_prog_DUMPBIN
5996 if test -n "$DUMPBIN"; then
5997 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5998 $as_echo "$DUMPBIN" >&6; }
5999 else
6000 { $as_echo "$as_me:$LINENO: result: no" >&5
6001 $as_echo "no" >&6; }
6005 test -n "$DUMPBIN" && break
6006 done
6008 if test -z "$DUMPBIN"; then
6009 ac_ct_DUMPBIN=$DUMPBIN
6010 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6012 # Extract the first word of "$ac_prog", so it can be a program name with args.
6013 set dummy $ac_prog; ac_word=$2
6014 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6017 $as_echo_n "(cached) " >&6
6018 else
6019 if test -n "$ac_ct_DUMPBIN"; then
6020 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 break 2
6033 done
6034 done
6035 IFS=$as_save_IFS
6039 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6040 if test -n "$ac_ct_DUMPBIN"; then
6041 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6042 $as_echo "$ac_ct_DUMPBIN" >&6; }
6043 else
6044 { $as_echo "$as_me:$LINENO: result: no" >&5
6045 $as_echo "no" >&6; }
6049 test -n "$ac_ct_DUMPBIN" && break
6050 done
6052 if test "x$ac_ct_DUMPBIN" = x; then
6053 DUMPBIN=":"
6054 else
6055 case $cross_compiling:$ac_tool_warned in
6056 yes:)
6057 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6059 ac_tool_warned=yes ;;
6060 esac
6061 DUMPBIN=$ac_ct_DUMPBIN
6066 if test "$DUMPBIN" != ":"; then
6067 NM="$DUMPBIN"
6070 test -z "$NM" && NM=nm
6077 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6078 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6079 if test "${lt_cv_nm_interface+set}" = set; then
6080 $as_echo_n "(cached) " >&6
6081 else
6082 lt_cv_nm_interface="BSD nm"
6083 echo "int some_variable = 0;" > conftest.$ac_ext
6084 (eval echo "\"\$as_me:6084: $ac_compile\"" >&5)
6085 (eval "$ac_compile" 2>conftest.err)
6086 cat conftest.err >&5
6087 (eval echo "\"\$as_me:6087: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6088 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6089 cat conftest.err >&5
6090 (eval echo "\"\$as_me:6090: output\"" >&5)
6091 cat conftest.out >&5
6092 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6093 lt_cv_nm_interface="MS dumpbin"
6095 rm -f conftest*
6097 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6098 $as_echo "$lt_cv_nm_interface" >&6; }
6100 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6101 $as_echo_n "checking whether ln -s works... " >&6; }
6102 LN_S=$as_ln_s
6103 if test "$LN_S" = "ln -s"; then
6104 { $as_echo "$as_me:$LINENO: result: yes" >&5
6105 $as_echo "yes" >&6; }
6106 else
6107 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6108 $as_echo "no, using $LN_S" >&6; }
6111 # find the maximum length of command line arguments
6112 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6113 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6114 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6115 $as_echo_n "(cached) " >&6
6116 else
6118 teststring="ABCD"
6120 case $build_os in
6121 msdosdjgpp*)
6122 # On DJGPP, this test can blow up pretty badly due to problems in libc
6123 # (any single argument exceeding 2000 bytes causes a buffer overrun
6124 # during glob expansion). Even if it were fixed, the result of this
6125 # check would be larger than it should be.
6126 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6129 gnu*)
6130 # Under GNU Hurd, this test is not required because there is
6131 # no limit to the length of command line arguments.
6132 # Libtool will interpret -1 as no limit whatsoever
6133 lt_cv_sys_max_cmd_len=-1;
6136 cygwin* | mingw* | cegcc*)
6137 # On Win9x/ME, this test blows up -- it succeeds, but takes
6138 # about 5 minutes as the teststring grows exponentially.
6139 # Worse, since 9x/ME are not pre-emptively multitasking,
6140 # you end up with a "frozen" computer, even though with patience
6141 # the test eventually succeeds (with a max line length of 256k).
6142 # Instead, let's just punt: use the minimum linelength reported by
6143 # all of the supported platforms: 8192 (on NT/2K/XP).
6144 lt_cv_sys_max_cmd_len=8192;
6147 amigaos*)
6148 # On AmigaOS with pdksh, this test takes hours, literally.
6149 # So we just punt and use a minimum line length of 8192.
6150 lt_cv_sys_max_cmd_len=8192;
6153 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6154 # This has been around since 386BSD, at least. Likely further.
6155 if test -x /sbin/sysctl; then
6156 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6157 elif test -x /usr/sbin/sysctl; then
6158 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6159 else
6160 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6162 # And add a safety zone
6163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6167 interix*)
6168 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6169 lt_cv_sys_max_cmd_len=196608
6172 osf*)
6173 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6174 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6175 # nice to cause kernel panics so lets avoid the loop below.
6176 # First set a reasonable default.
6177 lt_cv_sys_max_cmd_len=16384
6179 if test -x /sbin/sysconfig; then
6180 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6181 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6182 esac
6185 sco3.2v5*)
6186 lt_cv_sys_max_cmd_len=102400
6188 sysv5* | sco5v6* | sysv4.2uw2*)
6189 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6190 if test -n "$kargmax"; then
6191 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6192 else
6193 lt_cv_sys_max_cmd_len=32768
6197 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6198 if test -n "$lt_cv_sys_max_cmd_len"; then
6199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6201 else
6202 # Make teststring a little bigger before we do anything with it.
6203 # a 1K string should be a reasonable start.
6204 for i in 1 2 3 4 5 6 7 8 ; do
6205 teststring=$teststring$teststring
6206 done
6207 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6208 # If test is not a shell built-in, we'll probably end up computing a
6209 # maximum length that is only half of the actual maximum length, but
6210 # we can't tell.
6211 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6212 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6213 test $i != 17 # 1/2 MB should be enough
6215 i=`expr $i + 1`
6216 teststring=$teststring$teststring
6217 done
6218 # Only check the string length outside the loop.
6219 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6220 teststring=
6221 # Add a significant safety factor because C++ compilers can tack on
6222 # massive amounts of additional arguments before passing them to the
6223 # linker. It appears as though 1/2 is a usable value.
6224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6227 esac
6231 if test -n $lt_cv_sys_max_cmd_len ; then
6232 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6233 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6234 else
6235 { $as_echo "$as_me:$LINENO: result: none" >&5
6236 $as_echo "none" >&6; }
6238 max_cmd_len=$lt_cv_sys_max_cmd_len
6245 : ${CP="cp -f"}
6246 : ${MV="mv -f"}
6247 : ${RM="rm -f"}
6249 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6250 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6251 # Try some XSI features
6252 xsi_shell=no
6253 ( _lt_dummy="a/b/c"
6254 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6255 = c,a/b,, \
6256 && eval 'test $(( 1 + 1 )) -eq 2 \
6257 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6258 && xsi_shell=yes
6259 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6260 $as_echo "$xsi_shell" >&6; }
6263 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6264 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6265 lt_shell_append=no
6266 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6267 >/dev/null 2>&1 \
6268 && lt_shell_append=yes
6269 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6270 $as_echo "$lt_shell_append" >&6; }
6273 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6274 lt_unset=unset
6275 else
6276 lt_unset=false
6283 # test EBCDIC or ASCII
6284 case `echo X|tr X '\101'` in
6285 A) # ASCII based system
6286 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6287 lt_SP2NL='tr \040 \012'
6288 lt_NL2SP='tr \015\012 \040\040'
6290 *) # EBCDIC based system
6291 lt_SP2NL='tr \100 \n'
6292 lt_NL2SP='tr \r\n \100\100'
6294 esac
6304 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6305 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6306 if test "${lt_cv_ld_reload_flag+set}" = set; then
6307 $as_echo_n "(cached) " >&6
6308 else
6309 lt_cv_ld_reload_flag='-r'
6311 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6312 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6313 reload_flag=$lt_cv_ld_reload_flag
6314 case $reload_flag in
6315 "" | " "*) ;;
6316 *) reload_flag=" $reload_flag" ;;
6317 esac
6318 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6319 case $host_os in
6320 darwin*)
6321 if test "$GCC" = yes; then
6322 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6323 else
6324 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6327 esac
6337 if test -n "$ac_tool_prefix"; then
6338 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6339 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6343 $as_echo_n "(cached) " >&6
6344 else
6345 if test -n "$OBJDUMP"; then
6346 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6347 else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 break 2
6359 done
6360 done
6361 IFS=$as_save_IFS
6365 OBJDUMP=$ac_cv_prog_OBJDUMP
6366 if test -n "$OBJDUMP"; then
6367 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6368 $as_echo "$OBJDUMP" >&6; }
6369 else
6370 { $as_echo "$as_me:$LINENO: result: no" >&5
6371 $as_echo "no" >&6; }
6376 if test -z "$ac_cv_prog_OBJDUMP"; then
6377 ac_ct_OBJDUMP=$OBJDUMP
6378 # Extract the first word of "objdump", so it can be a program name with args.
6379 set dummy objdump; ac_word=$2
6380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6383 $as_echo_n "(cached) " >&6
6384 else
6385 if test -n "$ac_ct_OBJDUMP"; then
6386 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6399 done
6400 done
6401 IFS=$as_save_IFS
6405 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6406 if test -n "$ac_ct_OBJDUMP"; then
6407 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6408 $as_echo "$ac_ct_OBJDUMP" >&6; }
6409 else
6410 { $as_echo "$as_me:$LINENO: result: no" >&5
6411 $as_echo "no" >&6; }
6414 if test "x$ac_ct_OBJDUMP" = x; then
6415 OBJDUMP="false"
6416 else
6417 case $cross_compiling:$ac_tool_warned in
6418 yes:)
6419 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421 ac_tool_warned=yes ;;
6422 esac
6423 OBJDUMP=$ac_ct_OBJDUMP
6425 else
6426 OBJDUMP="$ac_cv_prog_OBJDUMP"
6429 test -z "$OBJDUMP" && OBJDUMP=objdump
6439 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6440 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6441 if test "${lt_cv_deplibs_check_method+set}" = set; then
6442 $as_echo_n "(cached) " >&6
6443 else
6444 lt_cv_file_magic_cmd='$MAGIC_CMD'
6445 lt_cv_file_magic_test_file=
6446 lt_cv_deplibs_check_method='unknown'
6447 # Need to set the preceding variable on all platforms that support
6448 # interlibrary dependencies.
6449 # 'none' -- dependencies not supported.
6450 # `unknown' -- same as none, but documents that we really don't know.
6451 # 'pass_all' -- all dependencies passed with no checks.
6452 # 'test_compile' -- check by making test program.
6453 # 'file_magic [[regex]]' -- check by looking for files in library path
6454 # which responds to the $file_magic_cmd with a given extended regex.
6455 # If you have `file' or equivalent on your system and you're not sure
6456 # whether `pass_all' will *always* work, you probably want this one.
6458 case $host_os in
6459 aix[4-9]*)
6460 lt_cv_deplibs_check_method=pass_all
6463 beos*)
6464 lt_cv_deplibs_check_method=pass_all
6467 bsdi[45]*)
6468 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6469 lt_cv_file_magic_cmd='/usr/bin/file -L'
6470 lt_cv_file_magic_test_file=/shlib/libc.so
6473 cygwin*)
6474 # func_win32_libid is a shell function defined in ltmain.sh
6475 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6476 lt_cv_file_magic_cmd='func_win32_libid'
6479 mingw* | pw32*)
6480 # Base MSYS/MinGW do not provide the 'file' command needed by
6481 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6482 # unless we find 'file', for example because we are cross-compiling.
6483 if ( file / ) >/dev/null 2>&1; then
6484 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6485 lt_cv_file_magic_cmd='func_win32_libid'
6486 else
6487 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6488 lt_cv_file_magic_cmd='$OBJDUMP -f'
6492 cegcc)
6493 # use the weaker test based on 'objdump'. See mingw*.
6494 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6495 lt_cv_file_magic_cmd='$OBJDUMP -f'
6498 darwin* | rhapsody*)
6499 lt_cv_deplibs_check_method=pass_all
6502 freebsd* | dragonfly*)
6503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6504 case $host_cpu in
6505 i*86 )
6506 # Not sure whether the presence of OpenBSD here was a mistake.
6507 # Let's accept both of them until this is cleared up.
6508 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6509 lt_cv_file_magic_cmd=/usr/bin/file
6510 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6512 esac
6513 else
6514 lt_cv_deplibs_check_method=pass_all
6518 gnu*)
6519 lt_cv_deplibs_check_method=pass_all
6522 hpux10.20* | hpux11*)
6523 lt_cv_file_magic_cmd=/usr/bin/file
6524 case $host_cpu in
6525 ia64*)
6526 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6527 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6529 hppa*64*)
6530 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6531 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6535 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6537 esac
6540 interix[3-9]*)
6541 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6545 irix5* | irix6* | nonstopux*)
6546 case $LD in
6547 *-32|*"-32 ") libmagic=32-bit;;
6548 *-n32|*"-n32 ") libmagic=N32;;
6549 *-64|*"-64 ") libmagic=64-bit;;
6550 *) libmagic=never-match;;
6551 esac
6552 lt_cv_deplibs_check_method=pass_all
6555 # This must be Linux ELF.
6556 linux* | k*bsd*-gnu)
6557 lt_cv_deplibs_check_method=pass_all
6560 netbsd*)
6561 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6563 else
6564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6568 newos6*)
6569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6570 lt_cv_file_magic_cmd=/usr/bin/file
6571 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6574 *nto* | *qnx*)
6575 lt_cv_deplibs_check_method=pass_all
6578 openbsd*)
6579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6581 else
6582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6586 osf3* | osf4* | osf5*)
6587 lt_cv_deplibs_check_method=pass_all
6590 rdos*)
6591 lt_cv_deplibs_check_method=pass_all
6594 solaris*)
6595 lt_cv_deplibs_check_method=pass_all
6598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6599 lt_cv_deplibs_check_method=pass_all
6602 sysv4 | sysv4.3*)
6603 case $host_vendor in
6604 motorola)
6605 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]'
6606 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6608 ncr)
6609 lt_cv_deplibs_check_method=pass_all
6611 sequent)
6612 lt_cv_file_magic_cmd='/bin/file'
6613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6615 sni)
6616 lt_cv_file_magic_cmd='/bin/file'
6617 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6618 lt_cv_file_magic_test_file=/lib/libc.so
6620 siemens)
6621 lt_cv_deplibs_check_method=pass_all
6624 lt_cv_deplibs_check_method=pass_all
6626 esac
6629 tpf*)
6630 lt_cv_deplibs_check_method=pass_all
6632 esac
6635 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6636 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6637 file_magic_cmd=$lt_cv_file_magic_cmd
6638 deplibs_check_method=$lt_cv_deplibs_check_method
6639 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}ar; ac_word=$2
6655 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if test "${ac_cv_prog_AR+set}" = set; then
6658 $as_echo_n "(cached) " >&6
6659 else
6660 if test -n "$AR"; then
6661 ac_cv_prog_AR="$AR" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_AR="${ac_tool_prefix}ar"
6671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6674 done
6675 done
6676 IFS=$as_save_IFS
6680 AR=$ac_cv_prog_AR
6681 if test -n "$AR"; then
6682 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6683 $as_echo "$AR" >&6; }
6684 else
6685 { $as_echo "$as_me:$LINENO: result: no" >&5
6686 $as_echo "no" >&6; }
6691 if test -z "$ac_cv_prog_AR"; then
6692 ac_ct_AR=$AR
6693 # Extract the first word of "ar", so it can be a program name with args.
6694 set dummy ar; ac_word=$2
6695 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6698 $as_echo_n "(cached) " >&6
6699 else
6700 if test -n "$ac_ct_AR"; then
6701 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_ac_ct_AR="ar"
6711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6714 done
6715 done
6716 IFS=$as_save_IFS
6720 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6721 if test -n "$ac_ct_AR"; then
6722 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6723 $as_echo "$ac_ct_AR" >&6; }
6724 else
6725 { $as_echo "$as_me:$LINENO: result: no" >&5
6726 $as_echo "no" >&6; }
6729 if test "x$ac_ct_AR" = x; then
6730 AR="false"
6731 else
6732 case $cross_compiling:$ac_tool_warned in
6733 yes:)
6734 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736 ac_tool_warned=yes ;;
6737 esac
6738 AR=$ac_ct_AR
6740 else
6741 AR="$ac_cv_prog_AR"
6744 test -z "$AR" && AR=ar
6745 test -z "$AR_FLAGS" && AR_FLAGS=cru
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}strip; ac_word=$2
6760 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if test "${ac_cv_prog_STRIP+set}" = set; then
6763 $as_echo_n "(cached) " >&6
6764 else
6765 if test -n "$STRIP"; then
6766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6776 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6779 done
6780 done
6781 IFS=$as_save_IFS
6785 STRIP=$ac_cv_prog_STRIP
6786 if test -n "$STRIP"; then
6787 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6788 $as_echo "$STRIP" >&6; }
6789 else
6790 { $as_echo "$as_me:$LINENO: result: no" >&5
6791 $as_echo "no" >&6; }
6796 if test -z "$ac_cv_prog_STRIP"; then
6797 ac_ct_STRIP=$STRIP
6798 # Extract the first word of "strip", so it can be a program name with args.
6799 set dummy strip; ac_word=$2
6800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$ac_ct_STRIP"; then
6806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_STRIP="strip"
6816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6819 done
6820 done
6821 IFS=$as_save_IFS
6825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6826 if test -n "$ac_ct_STRIP"; then
6827 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6828 $as_echo "$ac_ct_STRIP" >&6; }
6829 else
6830 { $as_echo "$as_me:$LINENO: result: no" >&5
6831 $as_echo "no" >&6; }
6834 if test "x$ac_ct_STRIP" = x; then
6835 STRIP=":"
6836 else
6837 case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6842 esac
6843 STRIP=$ac_ct_STRIP
6845 else
6846 STRIP="$ac_cv_prog_STRIP"
6849 test -z "$STRIP" && STRIP=:
6856 if test -n "$ac_tool_prefix"; then
6857 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6858 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6859 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if test "${ac_cv_prog_RANLIB+set}" = set; then
6862 $as_echo_n "(cached) " >&6
6863 else
6864 if test -n "$RANLIB"; then
6865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6878 done
6879 done
6880 IFS=$as_save_IFS
6884 RANLIB=$ac_cv_prog_RANLIB
6885 if test -n "$RANLIB"; then
6886 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6887 $as_echo "$RANLIB" >&6; }
6888 else
6889 { $as_echo "$as_me:$LINENO: result: no" >&5
6890 $as_echo "no" >&6; }
6895 if test -z "$ac_cv_prog_RANLIB"; then
6896 ac_ct_RANLIB=$RANLIB
6897 # Extract the first word of "ranlib", so it can be a program name with args.
6898 set dummy ranlib; ac_word=$2
6899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6900 $as_echo_n "checking for $ac_word... " >&6; }
6901 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6902 $as_echo_n "(cached) " >&6
6903 else
6904 if test -n "$ac_ct_RANLIB"; then
6905 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6906 else
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_prog_ac_ct_RANLIB="ranlib"
6915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6918 done
6919 done
6920 IFS=$as_save_IFS
6924 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6925 if test -n "$ac_ct_RANLIB"; then
6926 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6927 $as_echo "$ac_ct_RANLIB" >&6; }
6928 else
6929 { $as_echo "$as_me:$LINENO: result: no" >&5
6930 $as_echo "no" >&6; }
6933 if test "x$ac_ct_RANLIB" = x; then
6934 RANLIB=":"
6935 else
6936 case $cross_compiling:$ac_tool_warned in
6937 yes:)
6938 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940 ac_tool_warned=yes ;;
6941 esac
6942 RANLIB=$ac_ct_RANLIB
6944 else
6945 RANLIB="$ac_cv_prog_RANLIB"
6948 test -z "$RANLIB" && RANLIB=:
6955 # Determine commands to create old-style static archives.
6956 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6957 old_postinstall_cmds='chmod 644 $oldlib'
6958 old_postuninstall_cmds=
6960 if test -n "$RANLIB"; then
6961 case $host_os in
6962 openbsd*)
6963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6966 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6968 esac
6969 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7005 # If no C compiler was specified, use CC.
7006 LTCC=${LTCC-"$CC"}
7008 # If no C compiler flags were specified, use CFLAGS.
7009 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7011 # Allow CC to be a program name with arguments.
7012 compiler=$CC
7015 # Check for command to grab the raw symbol name followed by C symbol from nm.
7016 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7017 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7018 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7019 $as_echo_n "(cached) " >&6
7020 else
7022 # These are sane defaults that work on at least a few old systems.
7023 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7025 # Character class describing NM global symbol codes.
7026 symcode='[BCDEGRST]'
7028 # Regexp to match symbols that can be accessed directly from C.
7029 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7031 # Define system-specific variables.
7032 case $host_os in
7033 aix*)
7034 symcode='[BCDT]'
7036 cygwin* | mingw* | pw32* | cegcc*)
7037 symcode='[ABCDGISTW]'
7039 hpux*)
7040 if test "$host_cpu" = ia64; then
7041 symcode='[ABCDEGRST]'
7044 irix* | nonstopux*)
7045 symcode='[BCDEGRST]'
7047 osf*)
7048 symcode='[BCDEGQRST]'
7050 solaris*)
7051 symcode='[BDRT]'
7053 sco3.2v5*)
7054 symcode='[DT]'
7056 sysv4.2uw2*)
7057 symcode='[DT]'
7059 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7060 symcode='[ABDT]'
7062 sysv4)
7063 symcode='[DFNSTU]'
7065 esac
7067 # If we're using GNU nm, then use its standard symbol codes.
7068 case `$NM -V 2>&1` in
7069 *GNU* | *'with BFD'*)
7070 symcode='[ABCDGIRSTW]' ;;
7071 esac
7073 # Transform an extracted symbol line into a proper C declaration.
7074 # Some systems (esp. on ia64) link data and code symbols differently,
7075 # so use this general approach.
7076 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7078 # Transform an extracted symbol line into symbol name and symbol address
7079 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7080 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7082 # Handle CRLF in mingw tool chain
7083 opt_cr=
7084 case $build_os in
7085 mingw*)
7086 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7088 esac
7090 # Try without a prefix underscore, then with it.
7091 for ac_symprfx in "" "_"; do
7093 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7094 symxfrm="\\1 $ac_symprfx\\2 \\2"
7096 # Write the raw and C identifiers.
7097 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7098 # Fake it for dumpbin and say T for any non-static function
7099 # and D for any global variable.
7100 # Also find C++ and __fastcall symbols from MSVC++,
7101 # which start with @ or ?.
7102 lt_cv_sys_global_symbol_pipe="$AWK '"\
7103 " {last_section=section; section=\$ 3};"\
7104 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7105 " \$ 0!~/External *\|/{next};"\
7106 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7107 " {if(hide[section]) next};"\
7108 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7109 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7110 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7111 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7112 " ' prfx=^$ac_symprfx"
7113 else
7114 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7117 # Check to see that the pipe works correctly.
7118 pipe_works=no
7120 rm -f conftest*
7121 cat > conftest.$ac_ext <<_LT_EOF
7122 #ifdef __cplusplus
7123 extern "C" {
7124 #endif
7125 char nm_test_var;
7126 void nm_test_func(void);
7127 void nm_test_func(void){}
7128 #ifdef __cplusplus
7130 #endif
7131 int main(){nm_test_var='a';nm_test_func();return(0);}
7132 _LT_EOF
7134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7135 (eval $ac_compile) 2>&5
7136 ac_status=$?
7137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; then
7139 # Now try to grab the symbols.
7140 nlist=conftest.nm
7141 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7142 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7143 ac_status=$?
7144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } && test -s "$nlist"; then
7146 # Try sorting and uniquifying the output.
7147 if sort "$nlist" | uniq > "$nlist"T; then
7148 mv -f "$nlist"T "$nlist"
7149 else
7150 rm -f "$nlist"T
7153 # Make sure that we snagged all the symbols we need.
7154 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7155 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7156 cat <<_LT_EOF > conftest.$ac_ext
7157 #ifdef __cplusplus
7158 extern "C" {
7159 #endif
7161 _LT_EOF
7162 # Now generate the symbol file.
7163 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7165 cat <<_LT_EOF >> conftest.$ac_ext
7167 /* The mapping between symbol names and symbols. */
7168 const struct {
7169 const char *name;
7170 void *address;
7172 lt__PROGRAM__LTX_preloaded_symbols[] =
7174 { "@PROGRAM@", (void *) 0 },
7175 _LT_EOF
7176 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7177 cat <<\_LT_EOF >> conftest.$ac_ext
7178 {0, (void *) 0}
7181 /* This works around a problem in FreeBSD linker */
7182 #ifdef FREEBSD_WORKAROUND
7183 static const void *lt_preloaded_setup() {
7184 return lt__PROGRAM__LTX_preloaded_symbols;
7186 #endif
7188 #ifdef __cplusplus
7190 #endif
7191 _LT_EOF
7192 # Now try linking the two files.
7193 mv conftest.$ac_objext conftstm.$ac_objext
7194 lt_save_LIBS="$LIBS"
7195 lt_save_CFLAGS="$CFLAGS"
7196 LIBS="conftstm.$ac_objext"
7197 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199 (eval $ac_link) 2>&5
7200 ac_status=$?
7201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7203 pipe_works=yes
7205 LIBS="$lt_save_LIBS"
7206 CFLAGS="$lt_save_CFLAGS"
7207 else
7208 echo "cannot find nm_test_func in $nlist" >&5
7210 else
7211 echo "cannot find nm_test_var in $nlist" >&5
7213 else
7214 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7216 else
7217 echo "$progname: failed program was:" >&5
7218 cat conftest.$ac_ext >&5
7220 rm -rf conftest* conftst*
7222 # Do not use the global_symbol_pipe unless it works.
7223 if test "$pipe_works" = yes; then
7224 break
7225 else
7226 lt_cv_sys_global_symbol_pipe=
7228 done
7232 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7233 lt_cv_sys_global_symbol_to_cdecl=
7235 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7236 { $as_echo "$as_me:$LINENO: result: failed" >&5
7237 $as_echo "failed" >&6; }
7238 else
7239 { $as_echo "$as_me:$LINENO: result: ok" >&5
7240 $as_echo "ok" >&6; }
7264 # Check whether --enable-libtool-lock was given.
7265 if test "${enable_libtool_lock+set}" = set; then
7266 enableval=$enable_libtool_lock;
7269 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7271 # Some flags need to be propagated to the compiler or linker for good
7272 # libtool support.
7273 case $host in
7274 ia64-*-hpux*)
7275 # Find out which ABI we are using.
7276 echo 'int i;' > conftest.$ac_ext
7277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7278 (eval $ac_compile) 2>&5
7279 ac_status=$?
7280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; then
7282 case `/usr/bin/file conftest.$ac_objext` in
7283 *ELF-32*)
7284 HPUX_IA64_MODE="32"
7286 *ELF-64*)
7287 HPUX_IA64_MODE="64"
7289 esac
7291 rm -rf conftest*
7293 *-*-irix6*)
7294 # Find out which ABI we are using.
7295 echo '#line 7295 "configure"' > conftest.$ac_ext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297 (eval $ac_compile) 2>&5
7298 ac_status=$?
7299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; then
7301 if test "$lt_cv_prog_gnu_ld" = yes; then
7302 case `/usr/bin/file conftest.$ac_objext` in
7303 *32-bit*)
7304 LD="${LD-ld} -melf32bsmip"
7306 *N32*)
7307 LD="${LD-ld} -melf32bmipn32"
7309 *64-bit*)
7310 LD="${LD-ld} -melf64bmip"
7312 esac
7313 else
7314 case `/usr/bin/file conftest.$ac_objext` in
7315 *32-bit*)
7316 LD="${LD-ld} -32"
7318 *N32*)
7319 LD="${LD-ld} -n32"
7321 *64-bit*)
7322 LD="${LD-ld} -64"
7324 esac
7327 rm -rf conftest*
7330 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7331 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7332 # Find out which ABI we are using.
7333 echo 'int i;' > conftest.$ac_ext
7334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7335 (eval $ac_compile) 2>&5
7336 ac_status=$?
7337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; then
7339 case `/usr/bin/file conftest.o` in
7340 *32-bit*)
7341 case $host in
7342 x86_64-*kfreebsd*-gnu)
7343 LD="${LD-ld} -m elf_i386_fbsd"
7345 x86_64-*linux*)
7346 LD="${LD-ld} -m elf_i386"
7348 ppc64-*linux*|powerpc64-*linux*)
7349 LD="${LD-ld} -m elf32ppclinux"
7351 s390x-*linux*)
7352 LD="${LD-ld} -m elf_s390"
7354 sparc64-*linux*)
7355 LD="${LD-ld} -m elf32_sparc"
7357 esac
7359 *64-bit*)
7360 case $host in
7361 x86_64-*kfreebsd*-gnu)
7362 LD="${LD-ld} -m elf_x86_64_fbsd"
7364 x86_64-*linux*)
7365 LD="${LD-ld} -m elf_x86_64"
7367 ppc*-*linux*|powerpc*-*linux*)
7368 LD="${LD-ld} -m elf64ppc"
7370 s390*-*linux*|s390*-*tpf*)
7371 LD="${LD-ld} -m elf64_s390"
7373 sparc*-*linux*)
7374 LD="${LD-ld} -m elf64_sparc"
7376 esac
7378 esac
7380 rm -rf conftest*
7383 *-*-sco3.2v5*)
7384 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7385 SAVE_CFLAGS="$CFLAGS"
7386 CFLAGS="$CFLAGS -belf"
7387 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7388 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7389 if test "${lt_cv_cc_needs_belf+set}" = set; then
7390 $as_echo_n "(cached) " >&6
7391 else
7392 ac_ext=c
7393 ac_cpp='$CPP $CPPFLAGS'
7394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7398 cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h. */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7406 main ()
7410 return 0;
7412 _ACEOF
7413 rm -f conftest.$ac_objext conftest$ac_exeext
7414 if { (ac_try="$ac_link"
7415 case "(($ac_try" in
7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7418 esac
7419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7420 $as_echo "$ac_try_echo") >&5
7421 (eval "$ac_link") 2>conftest.er1
7422 ac_status=$?
7423 grep -v '^ *+' conftest.er1 >conftest.err
7424 rm -f conftest.er1
7425 cat conftest.err >&5
7426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } && {
7428 test -z "$ac_c_werror_flag" ||
7429 test ! -s conftest.err
7430 } && test -s conftest$ac_exeext && {
7431 test "$cross_compiling" = yes ||
7432 $as_test_x conftest$ac_exeext
7433 }; then
7434 lt_cv_cc_needs_belf=yes
7435 else
7436 $as_echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7439 lt_cv_cc_needs_belf=no
7442 rm -rf conftest.dSYM
7443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7444 conftest$ac_exeext conftest.$ac_ext
7445 ac_ext=c
7446 ac_cpp='$CPP $CPPFLAGS'
7447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7452 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7453 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7454 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7455 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7456 CFLAGS="$SAVE_CFLAGS"
7459 sparc*-*solaris*)
7460 # Find out which ABI we are using.
7461 echo 'int i;' > conftest.$ac_ext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>&5
7464 ac_status=$?
7465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; then
7467 case `/usr/bin/file conftest.o` in
7468 *64-bit*)
7469 case $lt_cv_prog_gnu_ld in
7470 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7472 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7473 LD="${LD-ld} -64"
7476 esac
7478 esac
7480 rm -rf conftest*
7482 esac
7484 need_locks="$enable_libtool_lock"
7487 case $host_os in
7488 rhapsody* | darwin*)
7489 if test -n "$ac_tool_prefix"; then
7490 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7491 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7492 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7495 $as_echo_n "(cached) " >&6
7496 else
7497 if test -n "$DSYMUTIL"; then
7498 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7508 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7511 done
7512 done
7513 IFS=$as_save_IFS
7517 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7518 if test -n "$DSYMUTIL"; then
7519 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7520 $as_echo "$DSYMUTIL" >&6; }
7521 else
7522 { $as_echo "$as_me:$LINENO: result: no" >&5
7523 $as_echo "no" >&6; }
7528 if test -z "$ac_cv_prog_DSYMUTIL"; then
7529 ac_ct_DSYMUTIL=$DSYMUTIL
7530 # Extract the first word of "dsymutil", so it can be a program name with args.
7531 set dummy dsymutil; ac_word=$2
7532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7533 $as_echo_n "checking for $ac_word... " >&6; }
7534 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7535 $as_echo_n "(cached) " >&6
7536 else
7537 if test -n "$ac_ct_DSYMUTIL"; then
7538 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7539 else
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7547 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 break 2
7551 done
7552 done
7553 IFS=$as_save_IFS
7557 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7558 if test -n "$ac_ct_DSYMUTIL"; then
7559 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7560 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7561 else
7562 { $as_echo "$as_me:$LINENO: result: no" >&5
7563 $as_echo "no" >&6; }
7566 if test "x$ac_ct_DSYMUTIL" = x; then
7567 DSYMUTIL=":"
7568 else
7569 case $cross_compiling:$ac_tool_warned in
7570 yes:)
7571 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7573 ac_tool_warned=yes ;;
7574 esac
7575 DSYMUTIL=$ac_ct_DSYMUTIL
7577 else
7578 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7581 if test -n "$ac_tool_prefix"; then
7582 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7583 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7587 $as_echo_n "(cached) " >&6
7588 else
7589 if test -n "$NMEDIT"; then
7590 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7591 else
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7603 done
7604 done
7605 IFS=$as_save_IFS
7609 NMEDIT=$ac_cv_prog_NMEDIT
7610 if test -n "$NMEDIT"; then
7611 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7612 $as_echo "$NMEDIT" >&6; }
7613 else
7614 { $as_echo "$as_me:$LINENO: result: no" >&5
7615 $as_echo "no" >&6; }
7620 if test -z "$ac_cv_prog_NMEDIT"; then
7621 ac_ct_NMEDIT=$NMEDIT
7622 # Extract the first word of "nmedit", so it can be a program name with args.
7623 set dummy nmedit; ac_word=$2
7624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7627 $as_echo_n "(cached) " >&6
7628 else
7629 if test -n "$ac_ct_NMEDIT"; then
7630 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7631 else
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7639 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7640 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 break 2
7643 done
7644 done
7645 IFS=$as_save_IFS
7649 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7650 if test -n "$ac_ct_NMEDIT"; then
7651 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7652 $as_echo "$ac_ct_NMEDIT" >&6; }
7653 else
7654 { $as_echo "$as_me:$LINENO: result: no" >&5
7655 $as_echo "no" >&6; }
7658 if test "x$ac_ct_NMEDIT" = x; then
7659 NMEDIT=":"
7660 else
7661 case $cross_compiling:$ac_tool_warned in
7662 yes:)
7663 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7665 ac_tool_warned=yes ;;
7666 esac
7667 NMEDIT=$ac_ct_NMEDIT
7669 else
7670 NMEDIT="$ac_cv_prog_NMEDIT"
7673 if test -n "$ac_tool_prefix"; then
7674 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7675 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_LIPO+set}" = set; then
7679 $as_echo_n "(cached) " >&6
7680 else
7681 if test -n "$LIPO"; then
7682 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 break 2
7695 done
7696 done
7697 IFS=$as_save_IFS
7701 LIPO=$ac_cv_prog_LIPO
7702 if test -n "$LIPO"; then
7703 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7704 $as_echo "$LIPO" >&6; }
7705 else
7706 { $as_echo "$as_me:$LINENO: result: no" >&5
7707 $as_echo "no" >&6; }
7712 if test -z "$ac_cv_prog_LIPO"; then
7713 ac_ct_LIPO=$LIPO
7714 # Extract the first word of "lipo", so it can be a program name with args.
7715 set dummy lipo; ac_word=$2
7716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7719 $as_echo_n "(cached) " >&6
7720 else
7721 if test -n "$ac_ct_LIPO"; then
7722 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7723 else
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_prog_ac_ct_LIPO="lipo"
7732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 break 2
7735 done
7736 done
7737 IFS=$as_save_IFS
7741 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7742 if test -n "$ac_ct_LIPO"; then
7743 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7744 $as_echo "$ac_ct_LIPO" >&6; }
7745 else
7746 { $as_echo "$as_me:$LINENO: result: no" >&5
7747 $as_echo "no" >&6; }
7750 if test "x$ac_ct_LIPO" = x; then
7751 LIPO=":"
7752 else
7753 case $cross_compiling:$ac_tool_warned in
7754 yes:)
7755 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7757 ac_tool_warned=yes ;;
7758 esac
7759 LIPO=$ac_ct_LIPO
7761 else
7762 LIPO="$ac_cv_prog_LIPO"
7765 if test -n "$ac_tool_prefix"; then
7766 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7767 set dummy ${ac_tool_prefix}otool; ac_word=$2
7768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if test "${ac_cv_prog_OTOOL+set}" = set; then
7771 $as_echo_n "(cached) " >&6
7772 else
7773 if test -n "$OTOOL"; then
7774 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7783 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 break 2
7787 done
7788 done
7789 IFS=$as_save_IFS
7793 OTOOL=$ac_cv_prog_OTOOL
7794 if test -n "$OTOOL"; then
7795 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7796 $as_echo "$OTOOL" >&6; }
7797 else
7798 { $as_echo "$as_me:$LINENO: result: no" >&5
7799 $as_echo "no" >&6; }
7804 if test -z "$ac_cv_prog_OTOOL"; then
7805 ac_ct_OTOOL=$OTOOL
7806 # Extract the first word of "otool", so it can be a program name with args.
7807 set dummy otool; ac_word=$2
7808 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7809 $as_echo_n "checking for $ac_word... " >&6; }
7810 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7811 $as_echo_n "(cached) " >&6
7812 else
7813 if test -n "$ac_ct_OTOOL"; then
7814 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7815 else
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_prog_ac_ct_OTOOL="otool"
7824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 break 2
7827 done
7828 done
7829 IFS=$as_save_IFS
7833 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7834 if test -n "$ac_ct_OTOOL"; then
7835 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7836 $as_echo "$ac_ct_OTOOL" >&6; }
7837 else
7838 { $as_echo "$as_me:$LINENO: result: no" >&5
7839 $as_echo "no" >&6; }
7842 if test "x$ac_ct_OTOOL" = x; then
7843 OTOOL=":"
7844 else
7845 case $cross_compiling:$ac_tool_warned in
7846 yes:)
7847 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7849 ac_tool_warned=yes ;;
7850 esac
7851 OTOOL=$ac_ct_OTOOL
7853 else
7854 OTOOL="$ac_cv_prog_OTOOL"
7857 if test -n "$ac_tool_prefix"; then
7858 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7859 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7863 $as_echo_n "(cached) " >&6
7864 else
7865 if test -n "$OTOOL64"; then
7866 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 break 2
7879 done
7880 done
7881 IFS=$as_save_IFS
7885 OTOOL64=$ac_cv_prog_OTOOL64
7886 if test -n "$OTOOL64"; then
7887 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7888 $as_echo "$OTOOL64" >&6; }
7889 else
7890 { $as_echo "$as_me:$LINENO: result: no" >&5
7891 $as_echo "no" >&6; }
7896 if test -z "$ac_cv_prog_OTOOL64"; then
7897 ac_ct_OTOOL64=$OTOOL64
7898 # Extract the first word of "otool64", so it can be a program name with args.
7899 set dummy otool64; ac_word=$2
7900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7903 $as_echo_n "(cached) " >&6
7904 else
7905 if test -n "$ac_ct_OTOOL64"; then
7906 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_prog_ac_ct_OTOOL64="otool64"
7916 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7919 done
7920 done
7921 IFS=$as_save_IFS
7925 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7926 if test -n "$ac_ct_OTOOL64"; then
7927 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7928 $as_echo "$ac_ct_OTOOL64" >&6; }
7929 else
7930 { $as_echo "$as_me:$LINENO: result: no" >&5
7931 $as_echo "no" >&6; }
7934 if test "x$ac_ct_OTOOL64" = x; then
7935 OTOOL64=":"
7936 else
7937 case $cross_compiling:$ac_tool_warned in
7938 yes:)
7939 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7941 ac_tool_warned=yes ;;
7942 esac
7943 OTOOL64=$ac_ct_OTOOL64
7945 else
7946 OTOOL64="$ac_cv_prog_OTOOL64"
7975 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7976 $as_echo_n "checking for -single_module linker flag... " >&6; }
7977 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7978 $as_echo_n "(cached) " >&6
7979 else
7980 lt_cv_apple_cc_single_mod=no
7981 if test -z "${LT_MULTI_MODULE}"; then
7982 # By default we will add the -single_module flag. You can override
7983 # by either setting the environment variable LT_MULTI_MODULE
7984 # non-empty at configure time, or by adding -multi_module to the
7985 # link flags.
7986 rm -rf libconftest.dylib*
7987 echo "int foo(void){return 1;}" > conftest.c
7988 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7989 -dynamiclib -Wl,-single_module conftest.c" >&5
7990 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7991 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7992 _lt_result=$?
7993 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7994 lt_cv_apple_cc_single_mod=yes
7995 else
7996 cat conftest.err >&5
7998 rm -rf libconftest.dylib*
7999 rm -f conftest.*
8002 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8003 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8004 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8005 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8006 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8007 $as_echo_n "(cached) " >&6
8008 else
8009 lt_cv_ld_exported_symbols_list=no
8010 save_LDFLAGS=$LDFLAGS
8011 echo "_main" > conftest.sym
8012 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8013 cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h. */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8021 main ()
8025 return 0;
8027 _ACEOF
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8030 case "(($ac_try" in
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8033 esac
8034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8035 $as_echo "$ac_try_echo") >&5
8036 (eval "$ac_link") 2>conftest.er1
8037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest$ac_exeext && {
8046 test "$cross_compiling" = yes ||
8047 $as_test_x conftest$ac_exeext
8048 }; then
8049 lt_cv_ld_exported_symbols_list=yes
8050 else
8051 $as_echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8054 lt_cv_ld_exported_symbols_list=no
8057 rm -rf conftest.dSYM
8058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8059 conftest$ac_exeext conftest.$ac_ext
8060 LDFLAGS="$save_LDFLAGS"
8063 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8064 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8065 case $host_os in
8066 rhapsody* | darwin1.[012])
8067 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8068 darwin1.*)
8069 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8070 darwin*) # darwin 5.x on
8071 # if running on 10.5 or later, the deployment target defaults
8072 # to the OS version, if on x86, and 10.4, the deployment
8073 # target defaults to 10.4. Don't you love it?
8074 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8075 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8076 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8077 10.[012]*)
8078 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8079 10.*)
8080 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8081 esac
8083 esac
8084 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8085 _lt_dar_single_mod='$single_module'
8087 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8088 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8089 else
8090 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8092 if test "$DSYMUTIL" != ":"; then
8093 _lt_dsymutil='~$DSYMUTIL $lib || :'
8094 else
8095 _lt_dsymutil=
8098 esac
8101 for ac_header in dlfcn.h
8103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8104 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8105 $as_echo_n "checking for $ac_header... " >&6; }
8106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8107 $as_echo_n "(cached) " >&6
8108 else
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h. */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 $ac_includes_default
8117 #include <$ac_header>
8118 _ACEOF
8119 rm -f conftest.$ac_objext
8120 if { (ac_try="$ac_compile"
8121 case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8124 esac
8125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8126 $as_echo "$ac_try_echo") >&5
8127 (eval "$ac_compile") 2>conftest.er1
8128 ac_status=$?
8129 grep -v '^ *+' conftest.er1 >conftest.err
8130 rm -f conftest.er1
8131 cat conftest.err >&5
8132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } && {
8134 test -z "$ac_c_werror_flag" ||
8135 test ! -s conftest.err
8136 } && test -s conftest.$ac_objext; then
8137 eval "$as_ac_Header=yes"
8138 else
8139 $as_echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8142 eval "$as_ac_Header=no"
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 ac_res=`eval 'as_val=${'$as_ac_Header'}
8148 $as_echo "$as_val"'`
8149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8150 $as_echo "$ac_res" >&6; }
8151 as_val=`eval 'as_val=${'$as_ac_Header'}
8152 $as_echo "$as_val"'`
8153 if test "x$as_val" = x""yes; then
8154 cat >>confdefs.h <<_ACEOF
8155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8156 _ACEOF
8160 done
8164 ac_ext=cpp
8165 ac_cpp='$CXXCPP $CPPFLAGS'
8166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8169 if test -z "$CXX"; then
8170 if test -n "$CCC"; then
8171 CXX=$CCC
8172 else
8173 if test -n "$ac_tool_prefix"; then
8174 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8179 $as_echo_n "checking for $ac_word... " >&6; }
8180 if test "${ac_cv_prog_CXX+set}" = set; then
8181 $as_echo_n "(cached) " >&6
8182 else
8183 if test -n "$CXX"; then
8184 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8185 else
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8189 IFS=$as_save_IFS
8190 test -z "$as_dir" && as_dir=.
8191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8193 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8195 break 2
8197 done
8198 done
8199 IFS=$as_save_IFS
8203 CXX=$ac_cv_prog_CXX
8204 if test -n "$CXX"; then
8205 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
8206 $as_echo "$CXX" >&6; }
8207 else
8208 { $as_echo "$as_me:$LINENO: result: no" >&5
8209 $as_echo "no" >&6; }
8213 test -n "$CXX" && break
8214 done
8216 if test -z "$CXX"; then
8217 ac_ct_CXX=$CXX
8218 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8220 # Extract the first word of "$ac_prog", so it can be a program name with args.
8221 set dummy $ac_prog; ac_word=$2
8222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8223 $as_echo_n "checking for $ac_word... " >&6; }
8224 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8225 $as_echo_n "(cached) " >&6
8226 else
8227 if test -n "$ac_ct_CXX"; then
8228 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8229 else
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 for as_dir in $PATH
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8237 ac_cv_prog_ac_ct_CXX="$ac_prog"
8238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 break 2
8241 done
8242 done
8243 IFS=$as_save_IFS
8247 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8248 if test -n "$ac_ct_CXX"; then
8249 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8250 $as_echo "$ac_ct_CXX" >&6; }
8251 else
8252 { $as_echo "$as_me:$LINENO: result: no" >&5
8253 $as_echo "no" >&6; }
8257 test -n "$ac_ct_CXX" && break
8258 done
8260 if test "x$ac_ct_CXX" = x; then
8261 CXX="g++"
8262 else
8263 case $cross_compiling:$ac_tool_warned in
8264 yes:)
8265 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8267 ac_tool_warned=yes ;;
8268 esac
8269 CXX=$ac_ct_CXX
8275 # Provide some information about the compiler.
8276 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8277 set X $ac_compile
8278 ac_compiler=$2
8279 { (ac_try="$ac_compiler --version >&5"
8280 case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8283 esac
8284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8285 $as_echo "$ac_try_echo") >&5
8286 (eval "$ac_compiler --version >&5") 2>&5
8287 ac_status=$?
8288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }
8290 { (ac_try="$ac_compiler -v >&5"
8291 case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294 esac
8295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8296 $as_echo "$ac_try_echo") >&5
8297 (eval "$ac_compiler -v >&5") 2>&5
8298 ac_status=$?
8299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }
8301 { (ac_try="$ac_compiler -V >&5"
8302 case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8305 esac
8306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8307 $as_echo "$ac_try_echo") >&5
8308 (eval "$ac_compiler -V >&5") 2>&5
8309 ac_status=$?
8310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }
8313 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8314 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8315 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8316 $as_echo_n "(cached) " >&6
8317 else
8318 cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h. */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8326 main ()
8328 #ifndef __GNUC__
8329 choke me
8330 #endif
8333 return 0;
8335 _ACEOF
8336 rm -f conftest.$ac_objext
8337 if { (ac_try="$ac_compile"
8338 case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8341 esac
8342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8343 $as_echo "$ac_try_echo") >&5
8344 (eval "$ac_compile") 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && {
8351 test -z "$ac_cxx_werror_flag" ||
8352 test ! -s conftest.err
8353 } && test -s conftest.$ac_objext; then
8354 ac_compiler_gnu=yes
8355 else
8356 $as_echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8359 ac_compiler_gnu=no
8362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8366 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8367 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8368 if test $ac_compiler_gnu = yes; then
8369 GXX=yes
8370 else
8371 GXX=
8373 ac_test_CXXFLAGS=${CXXFLAGS+set}
8374 ac_save_CXXFLAGS=$CXXFLAGS
8375 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8376 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8377 if test "${ac_cv_prog_cxx_g+set}" = set; then
8378 $as_echo_n "(cached) " >&6
8379 else
8380 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8381 ac_cxx_werror_flag=yes
8382 ac_cv_prog_cxx_g=no
8383 CXXFLAGS="-g"
8384 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h. */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8392 main ()
8396 return 0;
8398 _ACEOF
8399 rm -f conftest.$ac_objext
8400 if { (ac_try="$ac_compile"
8401 case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404 esac
8405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8406 $as_echo "$ac_try_echo") >&5
8407 (eval "$ac_compile") 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } && {
8414 test -z "$ac_cxx_werror_flag" ||
8415 test ! -s conftest.err
8416 } && test -s conftest.$ac_objext; then
8417 ac_cv_prog_cxx_g=yes
8418 else
8419 $as_echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8422 CXXFLAGS=""
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8431 main ()
8435 return 0;
8437 _ACEOF
8438 rm -f conftest.$ac_objext
8439 if { (ac_try="$ac_compile"
8440 case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443 esac
8444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8445 $as_echo "$ac_try_echo") >&5
8446 (eval "$ac_compile") 2>conftest.er1
8447 ac_status=$?
8448 grep -v '^ *+' conftest.er1 >conftest.err
8449 rm -f conftest.er1
8450 cat conftest.err >&5
8451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && {
8453 test -z "$ac_cxx_werror_flag" ||
8454 test ! -s conftest.err
8455 } && test -s conftest.$ac_objext; then
8457 else
8458 $as_echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8461 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8462 CXXFLAGS="-g"
8463 cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h. */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8471 main ()
8475 return 0;
8477 _ACEOF
8478 rm -f conftest.$ac_objext
8479 if { (ac_try="$ac_compile"
8480 case "(($ac_try" in
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8483 esac
8484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8485 $as_echo "$ac_try_echo") >&5
8486 (eval "$ac_compile") 2>conftest.er1
8487 ac_status=$?
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
8491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } && {
8493 test -z "$ac_cxx_werror_flag" ||
8494 test ! -s conftest.err
8495 } && test -s conftest.$ac_objext; then
8496 ac_cv_prog_cxx_g=yes
8497 else
8498 $as_echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8513 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8514 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8515 if test "$ac_test_CXXFLAGS" = set; then
8516 CXXFLAGS=$ac_save_CXXFLAGS
8517 elif test $ac_cv_prog_cxx_g = yes; then
8518 if test "$GXX" = yes; then
8519 CXXFLAGS="-g -O2"
8520 else
8521 CXXFLAGS="-g"
8523 else
8524 if test "$GXX" = yes; then
8525 CXXFLAGS="-O2"
8526 else
8527 CXXFLAGS=
8530 ac_ext=c
8531 ac_cpp='$CPP $CPPFLAGS'
8532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8536 depcc="$CXX" am_compiler_list=
8538 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8539 $as_echo_n "checking dependency style of $depcc... " >&6; }
8540 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8541 $as_echo_n "(cached) " >&6
8542 else
8543 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8544 # We make a subdir and do the tests there. Otherwise we can end up
8545 # making bogus files that we don't know about and never remove. For
8546 # instance it was reported that on HP-UX the gcc test will end up
8547 # making a dummy file named `D' -- because `-MD' means `put the output
8548 # in D'.
8549 mkdir conftest.dir
8550 # Copy depcomp to subdir because otherwise we won't find it if we're
8551 # using a relative directory.
8552 cp "$am_depcomp" conftest.dir
8553 cd conftest.dir
8554 # We will build objects and dependencies in a subdirectory because
8555 # it helps to detect inapplicable dependency modes. For instance
8556 # both Tru64's cc and ICC support -MD to output dependencies as a
8557 # side effect of compilation, but ICC will put the dependencies in
8558 # the current directory while Tru64 will put them in the object
8559 # directory.
8560 mkdir sub
8562 am_cv_CXX_dependencies_compiler_type=none
8563 if test "$am_compiler_list" = ""; then
8564 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8566 am__universal=false
8567 case " $depcc " in #(
8568 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8569 esac
8571 for depmode in $am_compiler_list; do
8572 # Setup a source with many dependencies, because some compilers
8573 # like to wrap large dependency lists on column 80 (with \), and
8574 # we should not choose a depcomp mode which is confused by this.
8576 # We need to recreate these files for each test, as the compiler may
8577 # overwrite some of them when testing with obscure command lines.
8578 # This happens at least with the AIX C compiler.
8579 : > sub/conftest.c
8580 for i in 1 2 3 4 5 6; do
8581 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8582 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8583 # Solaris 8's {/usr,}/bin/sh.
8584 touch sub/conftst$i.h
8585 done
8586 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8588 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8589 # mode. It turns out that the SunPro C++ compiler does not properly
8590 # handle `-M -o', and we need to detect this. Also, some Intel
8591 # versions had trouble with output in subdirs
8592 am__obj=sub/conftest.${OBJEXT-o}
8593 am__minus_obj="-o $am__obj"
8594 case $depmode in
8595 gcc)
8596 # This depmode causes a compiler race in universal mode.
8597 test "$am__universal" = false || continue
8599 nosideeffect)
8600 # after this tag, mechanisms are not by side-effect, so they'll
8601 # only be used when explicitly requested
8602 if test "x$enable_dependency_tracking" = xyes; then
8603 continue
8604 else
8605 break
8608 msvisualcpp | msvcmsys)
8609 # This compiler won't grok `-c -o', but also, the minuso test has
8610 # not run yet. These depmodes are late enough in the game, and
8611 # so weak that their functioning should not be impacted.
8612 am__obj=conftest.${OBJEXT-o}
8613 am__minus_obj=
8615 none) break ;;
8616 esac
8617 if depmode=$depmode \
8618 source=sub/conftest.c object=$am__obj \
8619 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8620 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8621 >/dev/null 2>conftest.err &&
8622 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8623 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8624 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8625 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8626 # icc doesn't choke on unknown options, it will just issue warnings
8627 # or remarks (even with -Werror). So we grep stderr for any message
8628 # that says an option was ignored or not supported.
8629 # When given -MP, icc 7.0 and 7.1 complain thusly:
8630 # icc: Command line warning: ignoring option '-M'; no argument required
8631 # The diagnosis changed in icc 8.0:
8632 # icc: Command line remark: option '-MP' not supported
8633 if (grep 'ignoring option' conftest.err ||
8634 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8635 am_cv_CXX_dependencies_compiler_type=$depmode
8636 break
8639 done
8641 cd ..
8642 rm -rf conftest.dir
8643 else
8644 am_cv_CXX_dependencies_compiler_type=none
8648 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8649 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8650 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8653 test "x$enable_dependency_tracking" != xno \
8654 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8655 am__fastdepCXX_TRUE=
8656 am__fastdepCXX_FALSE='#'
8657 else
8658 am__fastdepCXX_TRUE='#'
8659 am__fastdepCXX_FALSE=
8663 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8664 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8665 (test "X$CXX" != "Xg++"))) ; then
8666 ac_ext=cpp
8667 ac_cpp='$CXXCPP $CPPFLAGS'
8668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8671 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8672 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8673 if test -z "$CXXCPP"; then
8674 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8675 $as_echo_n "(cached) " >&6
8676 else
8677 # Double quotes because CXXCPP needs to be expanded
8678 for CXXCPP in "$CXX -E" "/lib/cpp"
8680 ac_preproc_ok=false
8681 for ac_cxx_preproc_warn_flag in '' yes
8683 # Use a header file that comes with gcc, so configuring glibc
8684 # with a fresh cross-compiler works.
8685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8686 # <limits.h> exists even on freestanding compilers.
8687 # On the NeXT, cc -E runs the code through the compiler's parser,
8688 # not just through cpp. "Syntax error" is here to catch this case.
8689 cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h. */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 #ifdef __STDC__
8696 # include <limits.h>
8697 #else
8698 # include <assert.h>
8699 #endif
8700 Syntax error
8701 _ACEOF
8702 if { (ac_try="$ac_cpp conftest.$ac_ext"
8703 case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706 esac
8707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8708 $as_echo "$ac_try_echo") >&5
8709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } >/dev/null && {
8716 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8717 test ! -s conftest.err
8718 }; then
8720 else
8721 $as_echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8724 # Broken: fails on valid input.
8725 continue
8728 rm -f conftest.err conftest.$ac_ext
8730 # OK, works on sane cases. Now check whether nonexistent headers
8731 # can be detected and how.
8732 cat >conftest.$ac_ext <<_ACEOF
8733 /* confdefs.h. */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8738 #include <ac_nonexistent.h>
8739 _ACEOF
8740 if { (ac_try="$ac_cpp conftest.$ac_ext"
8741 case "(($ac_try" in
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8744 esac
8745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8746 $as_echo "$ac_try_echo") >&5
8747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8748 ac_status=$?
8749 grep -v '^ *+' conftest.er1 >conftest.err
8750 rm -f conftest.er1
8751 cat conftest.err >&5
8752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } >/dev/null && {
8754 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8755 test ! -s conftest.err
8756 }; then
8757 # Broken: success on invalid input.
8758 continue
8759 else
8760 $as_echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8763 # Passes both tests.
8764 ac_preproc_ok=:
8765 break
8768 rm -f conftest.err conftest.$ac_ext
8770 done
8771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8772 rm -f conftest.err conftest.$ac_ext
8773 if $ac_preproc_ok; then
8774 break
8777 done
8778 ac_cv_prog_CXXCPP=$CXXCPP
8781 CXXCPP=$ac_cv_prog_CXXCPP
8782 else
8783 ac_cv_prog_CXXCPP=$CXXCPP
8785 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8786 $as_echo "$CXXCPP" >&6; }
8787 ac_preproc_ok=false
8788 for ac_cxx_preproc_warn_flag in '' yes
8790 # Use a header file that comes with gcc, so configuring glibc
8791 # with a fresh cross-compiler works.
8792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8793 # <limits.h> exists even on freestanding compilers.
8794 # On the NeXT, cc -E runs the code through the compiler's parser,
8795 # not just through cpp. "Syntax error" is here to catch this case.
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h. */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 #ifdef __STDC__
8803 # include <limits.h>
8804 #else
8805 # include <assert.h>
8806 #endif
8807 Syntax error
8808 _ACEOF
8809 if { (ac_try="$ac_cpp conftest.$ac_ext"
8810 case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813 esac
8814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8815 $as_echo "$ac_try_echo") >&5
8816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } >/dev/null && {
8823 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8824 test ! -s conftest.err
8825 }; then
8827 else
8828 $as_echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 # Broken: fails on valid input.
8832 continue
8835 rm -f conftest.err conftest.$ac_ext
8837 # OK, works on sane cases. Now check whether nonexistent headers
8838 # can be detected and how.
8839 cat >conftest.$ac_ext <<_ACEOF
8840 /* confdefs.h. */
8841 _ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8845 #include <ac_nonexistent.h>
8846 _ACEOF
8847 if { (ac_try="$ac_cpp conftest.$ac_ext"
8848 case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8851 esac
8852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8853 $as_echo "$ac_try_echo") >&5
8854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } >/dev/null && {
8861 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8862 test ! -s conftest.err
8863 }; then
8864 # Broken: success on invalid input.
8865 continue
8866 else
8867 $as_echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 # Passes both tests.
8871 ac_preproc_ok=:
8872 break
8875 rm -f conftest.err conftest.$ac_ext
8877 done
8878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8879 rm -f conftest.err conftest.$ac_ext
8880 if $ac_preproc_ok; then
8882 else
8883 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8885 _lt_caught_CXX_error=yes; }
8888 ac_ext=c
8889 ac_cpp='$CPP $CPPFLAGS'
8890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8894 else
8895 _lt_caught_CXX_error=yes
8902 # Set options
8906 enable_dlopen=no
8909 enable_win32_dll=no
8912 # Check whether --enable-shared was given.
8913 if test "${enable_shared+set}" = set; then
8914 enableval=$enable_shared; p=${PACKAGE-default}
8915 case $enableval in
8916 yes) enable_shared=yes ;;
8917 no) enable_shared=no ;;
8919 enable_shared=no
8920 # Look at the argument we got. We use all the common list separators.
8921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8922 for pkg in $enableval; do
8923 IFS="$lt_save_ifs"
8924 if test "X$pkg" = "X$p"; then
8925 enable_shared=yes
8927 done
8928 IFS="$lt_save_ifs"
8930 esac
8931 else
8932 enable_shared=yes
8943 # Check whether --enable-static was given.
8944 if test "${enable_static+set}" = set; then
8945 enableval=$enable_static; p=${PACKAGE-default}
8946 case $enableval in
8947 yes) enable_static=yes ;;
8948 no) enable_static=no ;;
8950 enable_static=no
8951 # Look at the argument we got. We use all the common list separators.
8952 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8953 for pkg in $enableval; do
8954 IFS="$lt_save_ifs"
8955 if test "X$pkg" = "X$p"; then
8956 enable_static=yes
8958 done
8959 IFS="$lt_save_ifs"
8961 esac
8962 else
8963 enable_static=yes
8975 # Check whether --with-pic was given.
8976 if test "${with_pic+set}" = set; then
8977 withval=$with_pic; pic_mode="$withval"
8978 else
8979 pic_mode=default
8983 test -z "$pic_mode" && pic_mode=default
8991 # Check whether --enable-fast-install was given.
8992 if test "${enable_fast_install+set}" = set; then
8993 enableval=$enable_fast_install; p=${PACKAGE-default}
8994 case $enableval in
8995 yes) enable_fast_install=yes ;;
8996 no) enable_fast_install=no ;;
8998 enable_fast_install=no
8999 # Look at the argument we got. We use all the common list separators.
9000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9001 for pkg in $enableval; do
9002 IFS="$lt_save_ifs"
9003 if test "X$pkg" = "X$p"; then
9004 enable_fast_install=yes
9006 done
9007 IFS="$lt_save_ifs"
9009 esac
9010 else
9011 enable_fast_install=yes
9024 # This can be used to rebuild libtool when needed
9025 LIBTOOL_DEPS="$ltmain"
9027 # Always use our own libtool.
9028 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9054 test -z "$LN_S" && LN_S="ln -s"
9069 if test -n "${ZSH_VERSION+set}" ; then
9070 setopt NO_GLOB_SUBST
9073 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9074 $as_echo_n "checking for objdir... " >&6; }
9075 if test "${lt_cv_objdir+set}" = set; then
9076 $as_echo_n "(cached) " >&6
9077 else
9078 rm -f .libs 2>/dev/null
9079 mkdir .libs 2>/dev/null
9080 if test -d .libs; then
9081 lt_cv_objdir=.libs
9082 else
9083 # MS-DOS does not allow filenames that begin with a dot.
9084 lt_cv_objdir=_libs
9086 rmdir .libs 2>/dev/null
9088 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9089 $as_echo "$lt_cv_objdir" >&6; }
9090 objdir=$lt_cv_objdir
9096 cat >>confdefs.h <<_ACEOF
9097 #define LT_OBJDIR "$lt_cv_objdir/"
9098 _ACEOF
9116 case $host_os in
9117 aix3*)
9118 # AIX sometimes has problems with the GCC collect2 program. For some
9119 # reason, if we set the COLLECT_NAMES environment variable, the problems
9120 # vanish in a puff of smoke.
9121 if test "X${COLLECT_NAMES+set}" != Xset; then
9122 COLLECT_NAMES=
9123 export COLLECT_NAMES
9126 esac
9128 # Sed substitution that helps us do robust quoting. It backslashifies
9129 # metacharacters that are still active within double-quoted strings.
9130 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9132 # Same as above, but do not quote variable references.
9133 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9135 # Sed substitution to delay expansion of an escaped shell variable in a
9136 # double_quote_subst'ed string.
9137 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9139 # Sed substitution to delay expansion of an escaped single quote.
9140 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9142 # Sed substitution to avoid accidental globbing in evaled expressions
9143 no_glob_subst='s/\*/\\\*/g'
9145 # Global variables:
9146 ofile=libtool
9147 can_build_shared=yes
9149 # All known linkers require a `.a' archive for static linking (except MSVC,
9150 # which needs '.lib').
9151 libext=a
9153 with_gnu_ld="$lt_cv_prog_gnu_ld"
9155 old_CC="$CC"
9156 old_CFLAGS="$CFLAGS"
9158 # Set sane defaults for various variables
9159 test -z "$CC" && CC=cc
9160 test -z "$LTCC" && LTCC=$CC
9161 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9162 test -z "$LD" && LD=ld
9163 test -z "$ac_objext" && ac_objext=o
9165 for cc_temp in $compiler""; do
9166 case $cc_temp in
9167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9169 \-*) ;;
9170 *) break;;
9171 esac
9172 done
9173 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9176 # Only perform the check for file, if the check method requires it
9177 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9178 case $deplibs_check_method in
9179 file_magic*)
9180 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9181 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9182 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9183 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9184 $as_echo_n "(cached) " >&6
9185 else
9186 case $MAGIC_CMD in
9187 [\\/*] | ?:[\\/]*)
9188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9191 lt_save_MAGIC_CMD="$MAGIC_CMD"
9192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9193 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9194 for ac_dir in $ac_dummy; do
9195 IFS="$lt_save_ifs"
9196 test -z "$ac_dir" && ac_dir=.
9197 if test -f $ac_dir/${ac_tool_prefix}file; then
9198 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9199 if test -n "$file_magic_test_file"; then
9200 case $deplibs_check_method in
9201 "file_magic "*)
9202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9205 $EGREP "$file_magic_regex" > /dev/null; then
9207 else
9208 cat <<_LT_EOF 1>&2
9210 *** Warning: the command libtool uses to detect shared libraries,
9211 *** $file_magic_cmd, produces output that libtool cannot recognize.
9212 *** The result is that libtool may fail to recognize shared libraries
9213 *** as such. This will affect the creation of libtool libraries that
9214 *** depend on shared libraries, but programs linked with such libtool
9215 *** libraries will work regardless of this problem. Nevertheless, you
9216 *** may want to report the problem to your system manager and/or to
9217 *** bug-libtool@gnu.org
9219 _LT_EOF
9220 fi ;;
9221 esac
9223 break
9225 done
9226 IFS="$lt_save_ifs"
9227 MAGIC_CMD="$lt_save_MAGIC_CMD"
9229 esac
9232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9233 if test -n "$MAGIC_CMD"; then
9234 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9235 $as_echo "$MAGIC_CMD" >&6; }
9236 else
9237 { $as_echo "$as_me:$LINENO: result: no" >&5
9238 $as_echo "no" >&6; }
9245 if test -z "$lt_cv_path_MAGIC_CMD"; then
9246 if test -n "$ac_tool_prefix"; then
9247 { $as_echo "$as_me:$LINENO: checking for file" >&5
9248 $as_echo_n "checking for file... " >&6; }
9249 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9250 $as_echo_n "(cached) " >&6
9251 else
9252 case $MAGIC_CMD in
9253 [\\/*] | ?:[\\/]*)
9254 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9257 lt_save_MAGIC_CMD="$MAGIC_CMD"
9258 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9259 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9260 for ac_dir in $ac_dummy; do
9261 IFS="$lt_save_ifs"
9262 test -z "$ac_dir" && ac_dir=.
9263 if test -f $ac_dir/file; then
9264 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9265 if test -n "$file_magic_test_file"; then
9266 case $deplibs_check_method in
9267 "file_magic "*)
9268 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9270 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9271 $EGREP "$file_magic_regex" > /dev/null; then
9273 else
9274 cat <<_LT_EOF 1>&2
9276 *** Warning: the command libtool uses to detect shared libraries,
9277 *** $file_magic_cmd, produces output that libtool cannot recognize.
9278 *** The result is that libtool may fail to recognize shared libraries
9279 *** as such. This will affect the creation of libtool libraries that
9280 *** depend on shared libraries, but programs linked with such libtool
9281 *** libraries will work regardless of this problem. Nevertheless, you
9282 *** may want to report the problem to your system manager and/or to
9283 *** bug-libtool@gnu.org
9285 _LT_EOF
9286 fi ;;
9287 esac
9289 break
9291 done
9292 IFS="$lt_save_ifs"
9293 MAGIC_CMD="$lt_save_MAGIC_CMD"
9295 esac
9298 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9299 if test -n "$MAGIC_CMD"; then
9300 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9301 $as_echo "$MAGIC_CMD" >&6; }
9302 else
9303 { $as_echo "$as_me:$LINENO: result: no" >&5
9304 $as_echo "no" >&6; }
9308 else
9309 MAGIC_CMD=:
9315 esac
9317 # Use C for the default configuration in the libtool script
9319 lt_save_CC="$CC"
9320 ac_ext=c
9321 ac_cpp='$CPP $CPPFLAGS'
9322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9327 # Source file extension for C test sources.
9328 ac_ext=c
9330 # Object file extension for compiled C test sources.
9331 objext=o
9332 objext=$objext
9334 # Code to be used in simple compile tests
9335 lt_simple_compile_test_code="int some_variable = 0;"
9337 # Code to be used in simple link tests
9338 lt_simple_link_test_code='int main(){return(0);}'
9346 # If no C compiler was specified, use CC.
9347 LTCC=${LTCC-"$CC"}
9349 # If no C compiler flags were specified, use CFLAGS.
9350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9352 # Allow CC to be a program name with arguments.
9353 compiler=$CC
9355 # Save the default compiler, since it gets overwritten when the other
9356 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9357 compiler_DEFAULT=$CC
9359 # save warnings/boilerplate of simple test code
9360 ac_outfile=conftest.$ac_objext
9361 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9362 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9363 _lt_compiler_boilerplate=`cat conftest.err`
9364 $RM conftest*
9366 ac_outfile=conftest.$ac_objext
9367 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9368 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9369 _lt_linker_boilerplate=`cat conftest.err`
9370 $RM -r conftest*
9373 ## CAVEAT EMPTOR:
9374 ## There is no encapsulation within the following macros, do not change
9375 ## the running order or otherwise move them around unless you know exactly
9376 ## what you are doing...
9377 if test -n "$compiler"; then
9379 lt_prog_compiler_no_builtin_flag=
9381 if test "$GCC" = yes; then
9382 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9384 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9385 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9386 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9387 $as_echo_n "(cached) " >&6
9388 else
9389 lt_cv_prog_compiler_rtti_exceptions=no
9390 ac_outfile=conftest.$ac_objext
9391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9392 lt_compiler_flag="-fno-rtti -fno-exceptions"
9393 # Insert the option either (1) after the last *FLAGS variable, or
9394 # (2) before a word containing "conftest.", or (3) at the end.
9395 # Note that $ac_compile itself does not contain backslashes and begins
9396 # with a dollar sign (not a hyphen), so the echo should work correctly.
9397 # The option is referenced via a variable to avoid confusing sed.
9398 lt_compile=`echo "$ac_compile" | $SED \
9399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9401 -e 's:$: $lt_compiler_flag:'`
9402 (eval echo "\"\$as_me:9402: $lt_compile\"" >&5)
9403 (eval "$lt_compile" 2>conftest.err)
9404 ac_status=$?
9405 cat conftest.err >&5
9406 echo "$as_me:9406: \$? = $ac_status" >&5
9407 if (exit $ac_status) && test -s "$ac_outfile"; then
9408 # The compiler can only warn and ignore the option if not recognized
9409 # So say no if there are warnings other than the usual output.
9410 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9413 lt_cv_prog_compiler_rtti_exceptions=yes
9416 $RM conftest*
9419 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9420 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9422 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9423 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9424 else
9435 lt_prog_compiler_wl=
9436 lt_prog_compiler_pic=
9437 lt_prog_compiler_static=
9439 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9440 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9442 if test "$GCC" = yes; then
9443 lt_prog_compiler_wl='-Wl,'
9444 lt_prog_compiler_static='-static'
9446 case $host_os in
9447 aix*)
9448 # All AIX code is PIC.
9449 if test "$host_cpu" = ia64; then
9450 # AIX 5 now supports IA64 processor
9451 lt_prog_compiler_static='-Bstatic'
9455 amigaos*)
9456 case $host_cpu in
9457 powerpc)
9458 # see comment about AmigaOS4 .so support
9459 lt_prog_compiler_pic='-fPIC'
9461 m68k)
9462 # FIXME: we need at least 68020 code to build shared libraries, but
9463 # adding the `-m68020' flag to GCC prevents building anything better,
9464 # like `-m68040'.
9465 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9467 esac
9470 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9471 # PIC is the default for these OSes.
9474 mingw* | cygwin* | pw32* | os2* | cegcc*)
9475 # This hack is so that the source file can tell whether it is being
9476 # built for inclusion in a dll (and should export symbols for example).
9477 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9478 # (--disable-auto-import) libraries
9479 lt_prog_compiler_pic='-DDLL_EXPORT'
9482 darwin* | rhapsody*)
9483 # PIC is the default on this platform
9484 # Common symbols not allowed in MH_DYLIB files
9485 lt_prog_compiler_pic='-fno-common'
9488 hpux*)
9489 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9490 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9491 # sets the default TLS model and affects inlining.
9492 case $host_cpu in
9493 hppa*64*)
9494 # +Z the default
9497 lt_prog_compiler_pic='-fPIC'
9499 esac
9502 interix[3-9]*)
9503 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9504 # Instead, we relocate shared libraries at runtime.
9507 msdosdjgpp*)
9508 # Just because we use GCC doesn't mean we suddenly get shared libraries
9509 # on systems that don't support them.
9510 lt_prog_compiler_can_build_shared=no
9511 enable_shared=no
9514 *nto* | *qnx*)
9515 # QNX uses GNU C++, but need to define -shared option too, otherwise
9516 # it will coredump.
9517 lt_prog_compiler_pic='-fPIC -shared'
9520 sysv4*MP*)
9521 if test -d /usr/nec; then
9522 lt_prog_compiler_pic=-Kconform_pic
9527 lt_prog_compiler_pic='-fPIC'
9529 esac
9530 else
9531 # PORTME Check for flag to pass linker flags through the system compiler.
9532 case $host_os in
9533 aix*)
9534 lt_prog_compiler_wl='-Wl,'
9535 if test "$host_cpu" = ia64; then
9536 # AIX 5 now supports IA64 processor
9537 lt_prog_compiler_static='-Bstatic'
9538 else
9539 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9543 mingw* | cygwin* | pw32* | os2* | cegcc*)
9544 # This hack is so that the source file can tell whether it is being
9545 # built for inclusion in a dll (and should export symbols for example).
9546 lt_prog_compiler_pic='-DDLL_EXPORT'
9549 hpux9* | hpux10* | hpux11*)
9550 lt_prog_compiler_wl='-Wl,'
9551 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9552 # not for PA HP-UX.
9553 case $host_cpu in
9554 hppa*64*|ia64*)
9555 # +Z the default
9558 lt_prog_compiler_pic='+Z'
9560 esac
9561 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9562 lt_prog_compiler_static='${wl}-a ${wl}archive'
9565 irix5* | irix6* | nonstopux*)
9566 lt_prog_compiler_wl='-Wl,'
9567 # PIC (with -KPIC) is the default.
9568 lt_prog_compiler_static='-non_shared'
9571 linux* | k*bsd*-gnu)
9572 case $cc_basename in
9573 # old Intel for x86_64 which still supported -KPIC.
9574 ecc*)
9575 lt_prog_compiler_wl='-Wl,'
9576 lt_prog_compiler_pic='-KPIC'
9577 lt_prog_compiler_static='-static'
9579 # icc used to be incompatible with GCC.
9580 # ICC 10 doesn't accept -KPIC any more.
9581 icc* | ifort*)
9582 lt_prog_compiler_wl='-Wl,'
9583 lt_prog_compiler_pic='-fPIC'
9584 lt_prog_compiler_static='-static'
9586 # Lahey Fortran 8.1.
9587 lf95*)
9588 lt_prog_compiler_wl='-Wl,'
9589 lt_prog_compiler_pic='--shared'
9590 lt_prog_compiler_static='--static'
9592 pgcc* | pgf77* | pgf90* | pgf95*)
9593 # Portland Group compilers (*not* the Pentium gcc compiler,
9594 # which looks to be a dead project)
9595 lt_prog_compiler_wl='-Wl,'
9596 lt_prog_compiler_pic='-fpic'
9597 lt_prog_compiler_static='-Bstatic'
9599 ccc*)
9600 lt_prog_compiler_wl='-Wl,'
9601 # All Alpha code is PIC.
9602 lt_prog_compiler_static='-non_shared'
9604 xl*)
9605 # IBM XL C 8.0/Fortran 10.1 on PPC
9606 lt_prog_compiler_wl='-Wl,'
9607 lt_prog_compiler_pic='-qpic'
9608 lt_prog_compiler_static='-qstaticlink'
9611 case `$CC -V 2>&1 | sed 5q` in
9612 *Sun\ C*)
9613 # Sun C 5.9
9614 lt_prog_compiler_pic='-KPIC'
9615 lt_prog_compiler_static='-Bstatic'
9616 lt_prog_compiler_wl='-Wl,'
9618 *Sun\ F*)
9619 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9620 lt_prog_compiler_pic='-KPIC'
9621 lt_prog_compiler_static='-Bstatic'
9622 lt_prog_compiler_wl=''
9624 esac
9626 esac
9629 newsos6)
9630 lt_prog_compiler_pic='-KPIC'
9631 lt_prog_compiler_static='-Bstatic'
9634 *nto* | *qnx*)
9635 # QNX uses GNU C++, but need to define -shared option too, otherwise
9636 # it will coredump.
9637 lt_prog_compiler_pic='-fPIC -shared'
9640 osf3* | osf4* | osf5*)
9641 lt_prog_compiler_wl='-Wl,'
9642 # All OSF/1 code is PIC.
9643 lt_prog_compiler_static='-non_shared'
9646 rdos*)
9647 lt_prog_compiler_static='-non_shared'
9650 solaris*)
9651 lt_prog_compiler_pic='-KPIC'
9652 lt_prog_compiler_static='-Bstatic'
9653 case $cc_basename in
9654 f77* | f90* | f95*)
9655 lt_prog_compiler_wl='-Qoption ld ';;
9657 lt_prog_compiler_wl='-Wl,';;
9658 esac
9661 sunos4*)
9662 lt_prog_compiler_wl='-Qoption ld '
9663 lt_prog_compiler_pic='-PIC'
9664 lt_prog_compiler_static='-Bstatic'
9667 sysv4 | sysv4.2uw2* | sysv4.3*)
9668 lt_prog_compiler_wl='-Wl,'
9669 lt_prog_compiler_pic='-KPIC'
9670 lt_prog_compiler_static='-Bstatic'
9673 sysv4*MP*)
9674 if test -d /usr/nec ;then
9675 lt_prog_compiler_pic='-Kconform_pic'
9676 lt_prog_compiler_static='-Bstatic'
9680 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9681 lt_prog_compiler_wl='-Wl,'
9682 lt_prog_compiler_pic='-KPIC'
9683 lt_prog_compiler_static='-Bstatic'
9686 unicos*)
9687 lt_prog_compiler_wl='-Wl,'
9688 lt_prog_compiler_can_build_shared=no
9691 uts4*)
9692 lt_prog_compiler_pic='-pic'
9693 lt_prog_compiler_static='-Bstatic'
9697 lt_prog_compiler_can_build_shared=no
9699 esac
9702 case $host_os in
9703 # For platforms which do not support PIC, -DPIC is meaningless:
9704 *djgpp*)
9705 lt_prog_compiler_pic=
9708 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9710 esac
9711 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9712 $as_echo "$lt_prog_compiler_pic" >&6; }
9720 # Check to make sure the PIC flag actually works.
9722 if test -n "$lt_prog_compiler_pic"; then
9723 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9724 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9725 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9726 $as_echo_n "(cached) " >&6
9727 else
9728 lt_cv_prog_compiler_pic_works=no
9729 ac_outfile=conftest.$ac_objext
9730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9731 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9732 # Insert the option either (1) after the last *FLAGS variable, or
9733 # (2) before a word containing "conftest.", or (3) at the end.
9734 # Note that $ac_compile itself does not contain backslashes and begins
9735 # with a dollar sign (not a hyphen), so the echo should work correctly.
9736 # The option is referenced via a variable to avoid confusing sed.
9737 lt_compile=`echo "$ac_compile" | $SED \
9738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9740 -e 's:$: $lt_compiler_flag:'`
9741 (eval echo "\"\$as_me:9741: $lt_compile\"" >&5)
9742 (eval "$lt_compile" 2>conftest.err)
9743 ac_status=$?
9744 cat conftest.err >&5
9745 echo "$as_me:9745: \$? = $ac_status" >&5
9746 if (exit $ac_status) && test -s "$ac_outfile"; then
9747 # The compiler can only warn and ignore the option if not recognized
9748 # So say no if there are warnings other than the usual output.
9749 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9752 lt_cv_prog_compiler_pic_works=yes
9755 $RM conftest*
9758 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9759 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9761 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9762 case $lt_prog_compiler_pic in
9763 "" | " "*) ;;
9764 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9765 esac
9766 else
9767 lt_prog_compiler_pic=
9768 lt_prog_compiler_can_build_shared=no
9779 # Check to make sure the static flag actually works.
9781 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9782 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9783 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9784 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9785 $as_echo_n "(cached) " >&6
9786 else
9787 lt_cv_prog_compiler_static_works=no
9788 save_LDFLAGS="$LDFLAGS"
9789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9790 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9792 # The linker can only warn and ignore the option if not recognized
9793 # So say no if there are warnings
9794 if test -s conftest.err; then
9795 # Append any errors to the config.log.
9796 cat conftest.err 1>&5
9797 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9799 if diff conftest.exp conftest.er2 >/dev/null; then
9800 lt_cv_prog_compiler_static_works=yes
9802 else
9803 lt_cv_prog_compiler_static_works=yes
9806 $RM -r conftest*
9807 LDFLAGS="$save_LDFLAGS"
9810 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9811 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9813 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9815 else
9816 lt_prog_compiler_static=
9825 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9826 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9827 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9828 $as_echo_n "(cached) " >&6
9829 else
9830 lt_cv_prog_compiler_c_o=no
9831 $RM -r conftest 2>/dev/null
9832 mkdir conftest
9833 cd conftest
9834 mkdir out
9835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9837 lt_compiler_flag="-o out/conftest2.$ac_objext"
9838 # Insert the option either (1) after the last *FLAGS variable, or
9839 # (2) before a word containing "conftest.", or (3) at the end.
9840 # Note that $ac_compile itself does not contain backslashes and begins
9841 # with a dollar sign (not a hyphen), so the echo should work correctly.
9842 lt_compile=`echo "$ac_compile" | $SED \
9843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9845 -e 's:$: $lt_compiler_flag:'`
9846 (eval echo "\"\$as_me:9846: $lt_compile\"" >&5)
9847 (eval "$lt_compile" 2>out/conftest.err)
9848 ac_status=$?
9849 cat out/conftest.err >&5
9850 echo "$as_me:9850: \$? = $ac_status" >&5
9851 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9852 then
9853 # The compiler can only warn and ignore the option if not recognized
9854 # So say no if there are warnings
9855 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9856 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9857 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9858 lt_cv_prog_compiler_c_o=yes
9861 chmod u+w . 2>&5
9862 $RM conftest*
9863 # SGI C++ compiler will create directory out/ii_files/ for
9864 # template instantiation
9865 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9866 $RM out/* && rmdir out
9867 cd ..
9868 $RM -r conftest
9869 $RM conftest*
9872 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9873 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9880 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9881 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9882 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9883 $as_echo_n "(cached) " >&6
9884 else
9885 lt_cv_prog_compiler_c_o=no
9886 $RM -r conftest 2>/dev/null
9887 mkdir conftest
9888 cd conftest
9889 mkdir out
9890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9892 lt_compiler_flag="-o out/conftest2.$ac_objext"
9893 # Insert the option either (1) after the last *FLAGS variable, or
9894 # (2) before a word containing "conftest.", or (3) at the end.
9895 # Note that $ac_compile itself does not contain backslashes and begins
9896 # with a dollar sign (not a hyphen), so the echo should work correctly.
9897 lt_compile=`echo "$ac_compile" | $SED \
9898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9900 -e 's:$: $lt_compiler_flag:'`
9901 (eval echo "\"\$as_me:9901: $lt_compile\"" >&5)
9902 (eval "$lt_compile" 2>out/conftest.err)
9903 ac_status=$?
9904 cat out/conftest.err >&5
9905 echo "$as_me:9905: \$? = $ac_status" >&5
9906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9907 then
9908 # The compiler can only warn and ignore the option if not recognized
9909 # So say no if there are warnings
9910 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9913 lt_cv_prog_compiler_c_o=yes
9916 chmod u+w . 2>&5
9917 $RM conftest*
9918 # SGI C++ compiler will create directory out/ii_files/ for
9919 # template instantiation
9920 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9921 $RM out/* && rmdir out
9922 cd ..
9923 $RM -r conftest
9924 $RM conftest*
9927 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9928 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9933 hard_links="nottested"
9934 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9935 # do not overwrite the value of need_locks provided by the user
9936 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9937 $as_echo_n "checking if we can lock with hard links... " >&6; }
9938 hard_links=yes
9939 $RM conftest*
9940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9941 touch conftest.a
9942 ln conftest.a conftest.b 2>&5 || hard_links=no
9943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9944 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9945 $as_echo "$hard_links" >&6; }
9946 if test "$hard_links" = no; then
9947 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9948 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9949 need_locks=warn
9951 else
9952 need_locks=no
9960 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9961 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9963 runpath_var=
9964 allow_undefined_flag=
9965 always_export_symbols=no
9966 archive_cmds=
9967 archive_expsym_cmds=
9968 compiler_needs_object=no
9969 enable_shared_with_static_runtimes=no
9970 export_dynamic_flag_spec=
9971 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9972 hardcode_automatic=no
9973 hardcode_direct=no
9974 hardcode_direct_absolute=no
9975 hardcode_libdir_flag_spec=
9976 hardcode_libdir_flag_spec_ld=
9977 hardcode_libdir_separator=
9978 hardcode_minus_L=no
9979 hardcode_shlibpath_var=unsupported
9980 inherit_rpath=no
9981 link_all_deplibs=unknown
9982 module_cmds=
9983 module_expsym_cmds=
9984 old_archive_from_new_cmds=
9985 old_archive_from_expsyms_cmds=
9986 thread_safe_flag_spec=
9987 whole_archive_flag_spec=
9988 # include_expsyms should be a list of space-separated symbols to be *always*
9989 # included in the symbol list
9990 include_expsyms=
9991 # exclude_expsyms can be an extended regexp of symbols to exclude
9992 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9993 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9994 # as well as any symbol that contains `d'.
9995 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9996 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9997 # platforms (ab)use it in PIC code, but their linkers get confused if
9998 # the symbol is explicitly referenced. Since portable code cannot
9999 # rely on this symbol name, it's probably fine to never include it in
10000 # preloaded symbol tables.
10001 # Exclude shared library initialization/finalization symbols.
10002 extract_expsyms_cmds=
10004 case $host_os in
10005 cygwin* | mingw* | pw32* | cegcc*)
10006 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10007 # When not using gcc, we currently assume that we are using
10008 # Microsoft Visual C++.
10009 if test "$GCC" != yes; then
10010 with_gnu_ld=no
10013 interix*)
10014 # we just hope/assume this is gcc and not c89 (= MSVC++)
10015 with_gnu_ld=yes
10017 openbsd*)
10018 with_gnu_ld=no
10020 esac
10022 ld_shlibs=yes
10023 if test "$with_gnu_ld" = yes; then
10024 # If archive_cmds runs LD, not CC, wlarc should be empty
10025 wlarc='${wl}'
10027 # Set some defaults for GNU ld with shared library support. These
10028 # are reset later if shared libraries are not supported. Putting them
10029 # here allows them to be overridden if necessary.
10030 runpath_var=LD_RUN_PATH
10031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10032 export_dynamic_flag_spec='${wl}--export-dynamic'
10033 # ancient GNU ld didn't support --whole-archive et. al.
10034 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10035 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10036 else
10037 whole_archive_flag_spec=
10039 supports_anon_versioning=no
10040 case `$LD -v 2>&1` in
10041 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10042 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10043 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10044 *\ 2.11.*) ;; # other 2.11 versions
10045 *) supports_anon_versioning=yes ;;
10046 esac
10048 # See if GNU ld supports shared libraries.
10049 case $host_os in
10050 aix[3-9]*)
10051 # On AIX/PPC, the GNU linker is very broken
10052 if test "$host_cpu" != ia64; then
10053 ld_shlibs=no
10054 cat <<_LT_EOF 1>&2
10056 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10057 *** to be unable to reliably create shared libraries on AIX.
10058 *** Therefore, libtool is disabling shared libraries support. If you
10059 *** really care for shared libraries, you may want to modify your PATH
10060 *** so that a non-GNU linker is found, and then restart.
10062 _LT_EOF
10066 amigaos*)
10067 case $host_cpu in
10068 powerpc)
10069 # see comment about AmigaOS4 .so support
10070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10071 archive_expsym_cmds=''
10073 m68k)
10074 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)'
10075 hardcode_libdir_flag_spec='-L$libdir'
10076 hardcode_minus_L=yes
10078 esac
10081 beos*)
10082 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10083 allow_undefined_flag=unsupported
10084 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10085 # support --undefined. This deserves some investigation. FIXME
10086 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10087 else
10088 ld_shlibs=no
10092 cygwin* | mingw* | pw32* | cegcc*)
10093 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10094 # as there is no search path for DLLs.
10095 hardcode_libdir_flag_spec='-L$libdir'
10096 allow_undefined_flag=unsupported
10097 always_export_symbols=no
10098 enable_shared_with_static_runtimes=yes
10099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10101 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10103 # If the export-symbols file already is a .def file (1st line
10104 # is EXPORTS), use it as is; otherwise, prepend...
10105 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10106 cp $export_symbols $output_objdir/$soname.def;
10107 else
10108 echo EXPORTS > $output_objdir/$soname.def;
10109 cat $export_symbols >> $output_objdir/$soname.def;
10111 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10112 else
10113 ld_shlibs=no
10117 interix[3-9]*)
10118 hardcode_direct=no
10119 hardcode_shlibpath_var=no
10120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10121 export_dynamic_flag_spec='${wl}-E'
10122 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10123 # Instead, shared libraries are loaded at an image base (0x10000000 by
10124 # default) and relocated if they conflict, which is a slow very memory
10125 # consuming and fragmenting process. To avoid this, we pick a random,
10126 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10127 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10128 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10129 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10132 gnu* | linux* | tpf* | k*bsd*-gnu)
10133 tmp_diet=no
10134 if test "$host_os" = linux-dietlibc; then
10135 case $cc_basename in
10136 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10137 esac
10139 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10140 && test "$tmp_diet" = no
10141 then
10142 tmp_addflag=
10143 tmp_sharedflag='-shared'
10144 case $cc_basename,$host_cpu in
10145 pgcc*) # Portland Group C compiler
10146 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10147 tmp_addflag=' $pic_flag'
10149 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10150 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10151 tmp_addflag=' $pic_flag -Mnomain' ;;
10152 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10153 tmp_addflag=' -i_dynamic' ;;
10154 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10155 tmp_addflag=' -i_dynamic -nofor_main' ;;
10156 ifc* | ifort*) # Intel Fortran compiler
10157 tmp_addflag=' -nofor_main' ;;
10158 lf95*) # Lahey Fortran 8.1
10159 whole_archive_flag_spec=
10160 tmp_sharedflag='--shared' ;;
10161 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10162 tmp_sharedflag='-qmkshrobj'
10163 tmp_addflag= ;;
10164 esac
10165 case `$CC -V 2>&1 | sed 5q` in
10166 *Sun\ C*) # Sun C 5.9
10167 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10168 compiler_needs_object=yes
10169 tmp_sharedflag='-G' ;;
10170 *Sun\ F*) # Sun Fortran 8.3
10171 tmp_sharedflag='-G' ;;
10172 esac
10173 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10175 if test "x$supports_anon_versioning" = xyes; then
10176 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10178 echo "local: *; };" >> $output_objdir/$libname.ver~
10179 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10182 case $cc_basename in
10183 xlf*)
10184 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10185 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10186 hardcode_libdir_flag_spec=
10187 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10188 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10189 if test "x$supports_anon_versioning" = xyes; then
10190 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10191 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10192 echo "local: *; };" >> $output_objdir/$libname.ver~
10193 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10196 esac
10197 else
10198 ld_shlibs=no
10202 netbsd*)
10203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10204 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10205 wlarc=
10206 else
10207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10208 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10212 solaris*)
10213 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10214 ld_shlibs=no
10215 cat <<_LT_EOF 1>&2
10217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10218 *** create shared libraries on Solaris systems. Therefore, libtool
10219 *** is disabling shared libraries support. We urge you to upgrade GNU
10220 *** binutils to release 2.9.1 or newer. Another option is to modify
10221 *** your PATH or compiler configuration so that the native linker is
10222 *** used, and then restart.
10224 _LT_EOF
10225 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10227 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10228 else
10229 ld_shlibs=no
10233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10234 case `$LD -v 2>&1` in
10235 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10236 ld_shlibs=no
10237 cat <<_LT_EOF 1>&2
10239 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10240 *** reliably create shared libraries on SCO systems. Therefore, libtool
10241 *** is disabling shared libraries support. We urge you to upgrade GNU
10242 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10243 *** your PATH or compiler configuration so that the native linker is
10244 *** used, and then restart.
10246 _LT_EOF
10249 # For security reasons, it is highly recommended that you always
10250 # use absolute paths for naming shared libraries, and exclude the
10251 # DT_RUNPATH tag from executables and libraries. But doing so
10252 # requires that you compile everything twice, which is a pain.
10253 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10257 else
10258 ld_shlibs=no
10261 esac
10264 sunos4*)
10265 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10266 wlarc=
10267 hardcode_direct=yes
10268 hardcode_shlibpath_var=no
10272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10275 else
10276 ld_shlibs=no
10279 esac
10281 if test "$ld_shlibs" = no; then
10282 runpath_var=
10283 hardcode_libdir_flag_spec=
10284 export_dynamic_flag_spec=
10285 whole_archive_flag_spec=
10287 else
10288 # PORTME fill in a description of your system's linker (not GNU ld)
10289 case $host_os in
10290 aix3*)
10291 allow_undefined_flag=unsupported
10292 always_export_symbols=yes
10293 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'
10294 # Note: this linker hardcodes the directories in LIBPATH if there
10295 # are no directories specified by -L.
10296 hardcode_minus_L=yes
10297 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10298 # Neither direct hardcoding nor static linking is supported with a
10299 # broken collect2.
10300 hardcode_direct=unsupported
10304 aix[4-9]*)
10305 if test "$host_cpu" = ia64; then
10306 # On IA64, the linker does run time linking by default, so we don't
10307 # have to do anything special.
10308 aix_use_runtimelinking=no
10309 exp_sym_flag='-Bexport'
10310 no_entry_flag=""
10311 else
10312 # If we're using GNU nm, then we don't want the "-C" option.
10313 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10314 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10315 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10316 else
10317 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10319 aix_use_runtimelinking=no
10321 # Test if we are trying to use run time linking or normal
10322 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10323 # need to do runtime linking.
10324 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10325 for ld_flag in $LDFLAGS; do
10326 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10327 aix_use_runtimelinking=yes
10328 break
10330 done
10332 esac
10334 exp_sym_flag='-bexport'
10335 no_entry_flag='-bnoentry'
10338 # When large executables or shared objects are built, AIX ld can
10339 # have problems creating the table of contents. If linking a library
10340 # or program results in "error TOC overflow" add -mminimal-toc to
10341 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10342 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10344 archive_cmds=''
10345 hardcode_direct=yes
10346 hardcode_direct_absolute=yes
10347 hardcode_libdir_separator=':'
10348 link_all_deplibs=yes
10349 file_list_spec='${wl}-f,'
10351 if test "$GCC" = yes; then
10352 case $host_os in aix4.[012]|aix4.[012].*)
10353 # We only want to do this on AIX 4.2 and lower, the check
10354 # below for broken collect2 doesn't work under 4.3+
10355 collect2name=`${CC} -print-prog-name=collect2`
10356 if test -f "$collect2name" &&
10357 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10358 then
10359 # We have reworked collect2
10361 else
10362 # We have old collect2
10363 hardcode_direct=unsupported
10364 # It fails to find uninstalled libraries when the uninstalled
10365 # path is not listed in the libpath. Setting hardcode_minus_L
10366 # to unsupported forces relinking
10367 hardcode_minus_L=yes
10368 hardcode_libdir_flag_spec='-L$libdir'
10369 hardcode_libdir_separator=
10372 esac
10373 shared_flag='-shared'
10374 if test "$aix_use_runtimelinking" = yes; then
10375 shared_flag="$shared_flag "'${wl}-G'
10377 else
10378 # not using gcc
10379 if test "$host_cpu" = ia64; then
10380 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10381 # chokes on -Wl,-G. The following line is correct:
10382 shared_flag='-G'
10383 else
10384 if test "$aix_use_runtimelinking" = yes; then
10385 shared_flag='${wl}-G'
10386 else
10387 shared_flag='${wl}-bM:SRE'
10392 export_dynamic_flag_spec='${wl}-bexpall'
10393 # It seems that -bexpall does not export symbols beginning with
10394 # underscore (_), so it is better to generate a list of symbols to export.
10395 always_export_symbols=yes
10396 if test "$aix_use_runtimelinking" = yes; then
10397 # Warning - without using the other runtime loading flags (-brtl),
10398 # -berok will link without error, but may produce a broken library.
10399 allow_undefined_flag='-berok'
10400 # Determine the default libpath from the value encoded in an
10401 # empty executable.
10402 cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h. */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10410 main ()
10414 return 0;
10416 _ACEOF
10417 rm -f conftest.$ac_objext conftest$ac_exeext
10418 if { (ac_try="$ac_link"
10419 case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10422 esac
10423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10424 $as_echo "$ac_try_echo") >&5
10425 (eval "$ac_link") 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } && {
10432 test -z "$ac_c_werror_flag" ||
10433 test ! -s conftest.err
10434 } && test -s conftest$ac_exeext && {
10435 test "$cross_compiling" = yes ||
10436 $as_test_x conftest$ac_exeext
10437 }; then
10439 lt_aix_libpath_sed='
10440 /Import File Strings/,/^$/ {
10441 /^0/ {
10442 s/^0 *\(.*\)$/\1/
10446 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10447 # Check for a 64-bit object if we didn't find anything.
10448 if test -z "$aix_libpath"; then
10449 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10451 else
10452 $as_echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10458 rm -rf conftest.dSYM
10459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10460 conftest$ac_exeext conftest.$ac_ext
10461 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10463 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10464 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10465 else
10466 if test "$host_cpu" = ia64; then
10467 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10468 allow_undefined_flag="-z nodefs"
10469 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10470 else
10471 # Determine the default libpath from the value encoded in an
10472 # empty executable.
10473 cat >conftest.$ac_ext <<_ACEOF
10474 /* confdefs.h. */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10481 main ()
10485 return 0;
10487 _ACEOF
10488 rm -f conftest.$ac_objext conftest$ac_exeext
10489 if { (ac_try="$ac_link"
10490 case "(($ac_try" in
10491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10492 *) ac_try_echo=$ac_try;;
10493 esac
10494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10495 $as_echo "$ac_try_echo") >&5
10496 (eval "$ac_link") 2>conftest.er1
10497 ac_status=$?
10498 grep -v '^ *+' conftest.er1 >conftest.err
10499 rm -f conftest.er1
10500 cat conftest.err >&5
10501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } && {
10503 test -z "$ac_c_werror_flag" ||
10504 test ! -s conftest.err
10505 } && test -s conftest$ac_exeext && {
10506 test "$cross_compiling" = yes ||
10507 $as_test_x conftest$ac_exeext
10508 }; then
10510 lt_aix_libpath_sed='
10511 /Import File Strings/,/^$/ {
10512 /^0/ {
10513 s/^0 *\(.*\)$/\1/
10517 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10518 # Check for a 64-bit object if we didn't find anything.
10519 if test -z "$aix_libpath"; then
10520 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10522 else
10523 $as_echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10529 rm -rf conftest.dSYM
10530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10531 conftest$ac_exeext conftest.$ac_ext
10532 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10534 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10535 # Warning - without using the other run time loading flags,
10536 # -berok will link without error, but may produce a broken library.
10537 no_undefined_flag=' ${wl}-bernotok'
10538 allow_undefined_flag=' ${wl}-berok'
10539 # Exported symbols can be pulled into shared objects from archives
10540 whole_archive_flag_spec='$convenience'
10541 archive_cmds_need_lc=yes
10542 # This is similar to how AIX traditionally builds its shared libraries.
10543 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10548 amigaos*)
10549 case $host_cpu in
10550 powerpc)
10551 # see comment about AmigaOS4 .so support
10552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10553 archive_expsym_cmds=''
10555 m68k)
10556 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)'
10557 hardcode_libdir_flag_spec='-L$libdir'
10558 hardcode_minus_L=yes
10560 esac
10563 bsdi[45]*)
10564 export_dynamic_flag_spec=-rdynamic
10567 cygwin* | mingw* | pw32* | cegcc*)
10568 # When not using gcc, we currently assume that we are using
10569 # Microsoft Visual C++.
10570 # hardcode_libdir_flag_spec is actually meaningless, as there is
10571 # no search path for DLLs.
10572 hardcode_libdir_flag_spec=' '
10573 allow_undefined_flag=unsupported
10574 # Tell ltmain to make .lib files, not .a files.
10575 libext=lib
10576 # Tell ltmain to make .dll files, not .so files.
10577 shrext_cmds=".dll"
10578 # FIXME: Setting linknames here is a bad hack.
10579 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10580 # The linker will automatically build a .lib file if we build a DLL.
10581 old_archive_from_new_cmds='true'
10582 # FIXME: Should let the user specify the lib program.
10583 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10584 fix_srcfile_path='`cygpath -w "$srcfile"`'
10585 enable_shared_with_static_runtimes=yes
10588 darwin* | rhapsody*)
10591 archive_cmds_need_lc=no
10592 hardcode_direct=no
10593 hardcode_automatic=yes
10594 hardcode_shlibpath_var=unsupported
10595 whole_archive_flag_spec=''
10596 link_all_deplibs=yes
10597 allow_undefined_flag="$_lt_dar_allow_undefined"
10598 case $cc_basename in
10599 ifort*) _lt_dar_can_shared=yes ;;
10600 *) _lt_dar_can_shared=$GCC ;;
10601 esac
10602 if test "$_lt_dar_can_shared" = "yes"; then
10603 output_verbose_link_cmd=echo
10604 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10605 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10606 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10607 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10609 else
10610 ld_shlibs=no
10615 dgux*)
10616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10617 hardcode_libdir_flag_spec='-L$libdir'
10618 hardcode_shlibpath_var=no
10621 freebsd1*)
10622 ld_shlibs=no
10625 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10626 # support. Future versions do this automatically, but an explicit c++rt0.o
10627 # does not break anything, and helps significantly (at the cost of a little
10628 # extra space).
10629 freebsd2.2*)
10630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10631 hardcode_libdir_flag_spec='-R$libdir'
10632 hardcode_direct=yes
10633 hardcode_shlibpath_var=no
10636 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10637 freebsd2*)
10638 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10639 hardcode_direct=yes
10640 hardcode_minus_L=yes
10641 hardcode_shlibpath_var=no
10644 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10645 freebsd* | dragonfly*)
10646 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10647 hardcode_libdir_flag_spec='-R$libdir'
10648 hardcode_direct=yes
10649 hardcode_shlibpath_var=no
10652 hpux9*)
10653 if test "$GCC" = yes; then
10654 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10655 else
10656 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'
10658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10659 hardcode_libdir_separator=:
10660 hardcode_direct=yes
10662 # hardcode_minus_L: Not really in the search PATH,
10663 # but as the default location of the library.
10664 hardcode_minus_L=yes
10665 export_dynamic_flag_spec='${wl}-E'
10668 hpux10*)
10669 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10670 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10671 else
10672 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10674 if test "$with_gnu_ld" = no; then
10675 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10676 hardcode_libdir_flag_spec_ld='+b $libdir'
10677 hardcode_libdir_separator=:
10678 hardcode_direct=yes
10679 hardcode_direct_absolute=yes
10680 export_dynamic_flag_spec='${wl}-E'
10681 # hardcode_minus_L: Not really in the search PATH,
10682 # but as the default location of the library.
10683 hardcode_minus_L=yes
10687 hpux11*)
10688 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10689 case $host_cpu in
10690 hppa*64*)
10691 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10693 ia64*)
10694 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10697 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10699 esac
10700 else
10701 case $host_cpu in
10702 hppa*64*)
10703 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10705 ia64*)
10706 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10709 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10711 esac
10713 if test "$with_gnu_ld" = no; then
10714 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10715 hardcode_libdir_separator=:
10717 case $host_cpu in
10718 hppa*64*|ia64*)
10719 hardcode_direct=no
10720 hardcode_shlibpath_var=no
10723 hardcode_direct=yes
10724 hardcode_direct_absolute=yes
10725 export_dynamic_flag_spec='${wl}-E'
10727 # hardcode_minus_L: Not really in the search PATH,
10728 # but as the default location of the library.
10729 hardcode_minus_L=yes
10731 esac
10735 irix5* | irix6* | nonstopux*)
10736 if test "$GCC" = yes; then
10737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10738 # Try to use the -exported_symbol ld option, if it does not
10739 # work, assume that -exports_file does not work either and
10740 # implicitly export all symbols.
10741 save_LDFLAGS="$LDFLAGS"
10742 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10743 cat >conftest.$ac_ext <<_ACEOF
10744 int foo(void) {}
10745 _ACEOF
10746 rm -f conftest.$ac_objext conftest$ac_exeext
10747 if { (ac_try="$ac_link"
10748 case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10751 esac
10752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10753 $as_echo "$ac_try_echo") >&5
10754 (eval "$ac_link") 2>conftest.er1
10755 ac_status=$?
10756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
10759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest$ac_exeext && {
10764 test "$cross_compiling" = yes ||
10765 $as_test_x conftest$ac_exeext
10766 }; then
10767 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10769 else
10770 $as_echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10776 rm -rf conftest.dSYM
10777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10778 conftest$ac_exeext conftest.$ac_ext
10779 LDFLAGS="$save_LDFLAGS"
10780 else
10781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10784 archive_cmds_need_lc='no'
10785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10786 hardcode_libdir_separator=:
10787 inherit_rpath=yes
10788 link_all_deplibs=yes
10791 netbsd*)
10792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10794 else
10795 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10797 hardcode_libdir_flag_spec='-R$libdir'
10798 hardcode_direct=yes
10799 hardcode_shlibpath_var=no
10802 newsos6)
10803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10804 hardcode_direct=yes
10805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10806 hardcode_libdir_separator=:
10807 hardcode_shlibpath_var=no
10810 *nto* | *qnx*)
10813 openbsd*)
10814 if test -f /usr/libexec/ld.so; then
10815 hardcode_direct=yes
10816 hardcode_shlibpath_var=no
10817 hardcode_direct_absolute=yes
10818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10820 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10821 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10822 export_dynamic_flag_spec='${wl}-E'
10823 else
10824 case $host_os in
10825 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10827 hardcode_libdir_flag_spec='-R$libdir'
10830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10831 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10833 esac
10835 else
10836 ld_shlibs=no
10840 os2*)
10841 hardcode_libdir_flag_spec='-L$libdir'
10842 hardcode_minus_L=yes
10843 allow_undefined_flag=unsupported
10844 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'
10845 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10848 osf3*)
10849 if test "$GCC" = yes; then
10850 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10851 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10852 else
10853 allow_undefined_flag=' -expect_unresolved \*'
10854 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10856 archive_cmds_need_lc='no'
10857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10858 hardcode_libdir_separator=:
10861 osf4* | osf5*) # as osf3* with the addition of -msym flag
10862 if test "$GCC" = yes; then
10863 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10864 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10866 else
10867 allow_undefined_flag=' -expect_unresolved \*'
10868 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10869 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10870 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10872 # Both c and cxx compiler support -rpath directly
10873 hardcode_libdir_flag_spec='-rpath $libdir'
10875 archive_cmds_need_lc='no'
10876 hardcode_libdir_separator=:
10879 solaris*)
10880 no_undefined_flag=' -z defs'
10881 if test "$GCC" = yes; then
10882 wlarc='${wl}'
10883 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10884 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10885 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10886 else
10887 case `$CC -V 2>&1` in
10888 *"Compilers 5.0"*)
10889 wlarc=''
10890 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10891 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10895 wlarc='${wl}'
10896 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10897 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10898 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10900 esac
10902 hardcode_libdir_flag_spec='-R$libdir'
10903 hardcode_shlibpath_var=no
10904 case $host_os in
10905 solaris2.[0-5] | solaris2.[0-5].*) ;;
10907 # The compiler driver will combine and reorder linker options,
10908 # but understands `-z linker_flag'. GCC discards it without `$wl',
10909 # but is careful enough not to reorder.
10910 # Supported since Solaris 2.6 (maybe 2.5.1?)
10911 if test "$GCC" = yes; then
10912 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10913 else
10914 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10917 esac
10918 link_all_deplibs=yes
10921 sunos4*)
10922 if test "x$host_vendor" = xsequent; then
10923 # Use $CC to link under sequent, because it throws in some extra .o
10924 # files that make .init and .fini sections work.
10925 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10926 else
10927 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10929 hardcode_libdir_flag_spec='-L$libdir'
10930 hardcode_direct=yes
10931 hardcode_minus_L=yes
10932 hardcode_shlibpath_var=no
10935 sysv4)
10936 case $host_vendor in
10937 sni)
10938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10939 hardcode_direct=yes # is this really true???
10941 siemens)
10942 ## LD is ld it makes a PLAMLIB
10943 ## CC just makes a GrossModule.
10944 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10945 reload_cmds='$CC -r -o $output$reload_objs'
10946 hardcode_direct=no
10948 motorola)
10949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10950 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10952 esac
10953 runpath_var='LD_RUN_PATH'
10954 hardcode_shlibpath_var=no
10957 sysv4.3*)
10958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10959 hardcode_shlibpath_var=no
10960 export_dynamic_flag_spec='-Bexport'
10963 sysv4*MP*)
10964 if test -d /usr/nec; then
10965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10966 hardcode_shlibpath_var=no
10967 runpath_var=LD_RUN_PATH
10968 hardcode_runpath_var=yes
10969 ld_shlibs=yes
10973 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10974 no_undefined_flag='${wl}-z,text'
10975 archive_cmds_need_lc=no
10976 hardcode_shlibpath_var=no
10977 runpath_var='LD_RUN_PATH'
10979 if test "$GCC" = yes; then
10980 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10981 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10982 else
10983 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10984 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10988 sysv5* | sco3.2v5* | sco5v6*)
10989 # Note: We can NOT use -z defs as we might desire, because we do not
10990 # link with -lc, and that would cause any symbols used from libc to
10991 # always be unresolved, which means just about no library would
10992 # ever link correctly. If we're not using GNU ld we use -z text
10993 # though, which does catch some bad symbols but isn't as heavy-handed
10994 # as -z defs.
10995 no_undefined_flag='${wl}-z,text'
10996 allow_undefined_flag='${wl}-z,nodefs'
10997 archive_cmds_need_lc=no
10998 hardcode_shlibpath_var=no
10999 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11000 hardcode_libdir_separator=':'
11001 link_all_deplibs=yes
11002 export_dynamic_flag_spec='${wl}-Bexport'
11003 runpath_var='LD_RUN_PATH'
11005 if test "$GCC" = yes; then
11006 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008 else
11009 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014 uts4*)
11015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11016 hardcode_libdir_flag_spec='-L$libdir'
11017 hardcode_shlibpath_var=no
11021 ld_shlibs=no
11023 esac
11025 if test x$host_vendor = xsni; then
11026 case $host in
11027 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11028 export_dynamic_flag_spec='${wl}-Blargedynsym'
11030 esac
11034 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11035 $as_echo "$ld_shlibs" >&6; }
11036 test "$ld_shlibs" = no && can_build_shared=no
11038 with_gnu_ld=$with_gnu_ld
11055 # Do we need to explicitly link libc?
11057 case "x$archive_cmds_need_lc" in
11058 x|xyes)
11059 # Assume -lc should be added
11060 archive_cmds_need_lc=yes
11062 if test "$enable_shared" = yes && test "$GCC" = yes; then
11063 case $archive_cmds in
11064 *'~'*)
11065 # FIXME: we may have to deal with multi-command sequences.
11067 '$CC '*)
11068 # Test whether the compiler implicitly links with -lc since on some
11069 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11070 # to ld, don't add -lc before -lgcc.
11071 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11072 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11073 $RM conftest*
11074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077 (eval $ac_compile) 2>&5
11078 ac_status=$?
11079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } 2>conftest.err; then
11081 soname=conftest
11082 lib=conftest
11083 libobjs=conftest.$ac_objext
11084 deplibs=
11085 wl=$lt_prog_compiler_wl
11086 pic_flag=$lt_prog_compiler_pic
11087 compiler_flags=-v
11088 linker_flags=-v
11089 verstring=
11090 output_objdir=.
11091 libname=conftest
11092 lt_save_allow_undefined_flag=$allow_undefined_flag
11093 allow_undefined_flag=
11094 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11095 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11096 ac_status=$?
11097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }
11099 then
11100 archive_cmds_need_lc=no
11101 else
11102 archive_cmds_need_lc=yes
11104 allow_undefined_flag=$lt_save_allow_undefined_flag
11105 else
11106 cat conftest.err 1>&5
11108 $RM conftest*
11109 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11110 $as_echo "$archive_cmds_need_lc" >&6; }
11112 esac
11115 esac
11273 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11274 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11276 if test "$GCC" = yes; then
11277 case $host_os in
11278 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11279 *) lt_awk_arg="/^libraries:/" ;;
11280 esac
11281 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11282 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11283 # if the path contains ";" then we assume it to be the separator
11284 # otherwise default to the standard path separator (i.e. ":") - it is
11285 # assumed that no part of a normal pathname contains ";" but that should
11286 # okay in the real world where ";" in dirpaths is itself problematic.
11287 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11288 else
11289 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11291 # Ok, now we have the path, separated by spaces, we can step through it
11292 # and add multilib dir if necessary.
11293 lt_tmp_lt_search_path_spec=
11294 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11295 for lt_sys_path in $lt_search_path_spec; do
11296 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11298 else
11299 test -d "$lt_sys_path" && \
11300 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11302 done
11303 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11304 BEGIN {RS=" "; FS="/|\n";} {
11305 lt_foo="";
11306 lt_count=0;
11307 for (lt_i = NF; lt_i > 0; lt_i--) {
11308 if ($lt_i != "" && $lt_i != ".") {
11309 if ($lt_i == "..") {
11310 lt_count++;
11311 } else {
11312 if (lt_count == 0) {
11313 lt_foo="/" $lt_i lt_foo;
11314 } else {
11315 lt_count--;
11320 if (lt_foo != "") { lt_freq[lt_foo]++; }
11321 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11323 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11324 else
11325 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11327 library_names_spec=
11328 libname_spec='lib$name'
11329 soname_spec=
11330 shrext_cmds=".so"
11331 postinstall_cmds=
11332 postuninstall_cmds=
11333 finish_cmds=
11334 finish_eval=
11335 shlibpath_var=
11336 shlibpath_overrides_runpath=unknown
11337 version_type=none
11338 dynamic_linker="$host_os ld.so"
11339 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11340 need_lib_prefix=unknown
11341 hardcode_into_libs=no
11343 # when you set need_version to no, make sure it does not cause -set_version
11344 # flags to be left without arguments
11345 need_version=unknown
11347 case $host_os in
11348 aix3*)
11349 version_type=linux
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11351 shlibpath_var=LIBPATH
11353 # AIX 3 has no versioning support, so we append a major version to the name.
11354 soname_spec='${libname}${release}${shared_ext}$major'
11357 aix[4-9]*)
11358 version_type=linux
11359 need_lib_prefix=no
11360 need_version=no
11361 hardcode_into_libs=yes
11362 if test "$host_cpu" = ia64; then
11363 # AIX 5 supports IA64
11364 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11365 shlibpath_var=LD_LIBRARY_PATH
11366 else
11367 # With GCC up to 2.95.x, collect2 would create an import file
11368 # for dependence libraries. The import file would start with
11369 # the line `#! .'. This would cause the generated library to
11370 # depend on `.', always an invalid library. This was fixed in
11371 # development snapshots of GCC prior to 3.0.
11372 case $host_os in
11373 aix4 | aix4.[01] | aix4.[01].*)
11374 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11375 echo ' yes '
11376 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11378 else
11379 can_build_shared=no
11382 esac
11383 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11384 # soname into executable. Probably we can add versioning support to
11385 # collect2, so additional links can be useful in future.
11386 if test "$aix_use_runtimelinking" = yes; then
11387 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11388 # instead of lib<name>.a to let people know that these are not
11389 # typical AIX shared libraries.
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11391 else
11392 # We preserve .a as extension for shared libraries through AIX4.2
11393 # and later when we are not doing run time linking.
11394 library_names_spec='${libname}${release}.a $libname.a'
11395 soname_spec='${libname}${release}${shared_ext}$major'
11397 shlibpath_var=LIBPATH
11401 amigaos*)
11402 case $host_cpu in
11403 powerpc)
11404 # Since July 2007 AmigaOS4 officially supports .so libraries.
11405 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11408 m68k)
11409 library_names_spec='$libname.ixlibrary $libname.a'
11410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11411 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'
11413 esac
11416 beos*)
11417 library_names_spec='${libname}${shared_ext}'
11418 dynamic_linker="$host_os ld.so"
11419 shlibpath_var=LIBRARY_PATH
11422 bsdi[45]*)
11423 version_type=linux
11424 need_version=no
11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426 soname_spec='${libname}${release}${shared_ext}$major'
11427 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11428 shlibpath_var=LD_LIBRARY_PATH
11429 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11430 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11431 # the default ld.so.conf also contains /usr/contrib/lib and
11432 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11433 # libtool to hard-code these into programs
11436 cygwin* | mingw* | pw32* | cegcc*)
11437 version_type=windows
11438 shrext_cmds=".dll"
11439 need_version=no
11440 need_lib_prefix=no
11442 case $GCC,$host_os in
11443 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11444 library_names_spec='$libname.dll.a'
11445 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11446 postinstall_cmds='base_file=`basename \${file}`~
11447 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11448 dldir=$destdir/`dirname \$dlpath`~
11449 test -d \$dldir || mkdir -p \$dldir~
11450 $install_prog $dir/$dlname \$dldir/$dlname~
11451 chmod a+x \$dldir/$dlname~
11452 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11453 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11455 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11456 dlpath=$dir/\$dldll~
11457 $RM \$dlpath'
11458 shlibpath_overrides_runpath=yes
11460 case $host_os in
11461 cygwin*)
11462 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11463 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11464 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11466 mingw* | cegcc*)
11467 # MinGW DLLs use traditional 'lib' prefix
11468 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11469 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11470 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11471 # It is most probably a Windows format PATH printed by
11472 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11473 # path with ; separators, and with drive letters. We can handle the
11474 # drive letters (cygwin fileutils understands them), so leave them,
11475 # especially as we might pass files found there to a mingw objdump,
11476 # which wouldn't understand a cygwinified path. Ahh.
11477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11478 else
11479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11482 pw32*)
11483 # pw32 DLLs use 'pw' prefix rather than 'lib'
11484 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11486 esac
11490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11492 esac
11493 dynamic_linker='Win32 ld.exe'
11494 # FIXME: first we should search . and the directory the executable is in
11495 shlibpath_var=PATH
11498 darwin* | rhapsody*)
11499 dynamic_linker="$host_os dyld"
11500 version_type=darwin
11501 need_lib_prefix=no
11502 need_version=no
11503 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11504 soname_spec='${libname}${release}${major}$shared_ext'
11505 shlibpath_overrides_runpath=yes
11506 shlibpath_var=DYLD_LIBRARY_PATH
11507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11509 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11510 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11513 dgux*)
11514 version_type=linux
11515 need_lib_prefix=no
11516 need_version=no
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11518 soname_spec='${libname}${release}${shared_ext}$major'
11519 shlibpath_var=LD_LIBRARY_PATH
11522 freebsd1*)
11523 dynamic_linker=no
11526 freebsd* | dragonfly*)
11527 # DragonFly does not have aout. When/if they implement a new
11528 # versioning mechanism, adjust this.
11529 if test -x /usr/bin/objformat; then
11530 objformat=`/usr/bin/objformat`
11531 else
11532 case $host_os in
11533 freebsd[123]*) objformat=aout ;;
11534 *) objformat=elf ;;
11535 esac
11537 version_type=freebsd-$objformat
11538 case $version_type in
11539 freebsd-elf*)
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11541 need_version=no
11542 need_lib_prefix=no
11544 freebsd-*)
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11546 need_version=yes
11548 esac
11549 shlibpath_var=LD_LIBRARY_PATH
11550 case $host_os in
11551 freebsd2*)
11552 shlibpath_overrides_runpath=yes
11554 freebsd3.[01]* | freebsdelf3.[01]*)
11555 shlibpath_overrides_runpath=yes
11556 hardcode_into_libs=yes
11558 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11559 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11560 shlibpath_overrides_runpath=no
11561 hardcode_into_libs=yes
11563 *) # from 4.6 on, and DragonFly
11564 shlibpath_overrides_runpath=yes
11565 hardcode_into_libs=yes
11567 esac
11570 gnu*)
11571 version_type=linux
11572 need_lib_prefix=no
11573 need_version=no
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11575 soname_spec='${libname}${release}${shared_ext}$major'
11576 shlibpath_var=LD_LIBRARY_PATH
11577 hardcode_into_libs=yes
11580 hpux9* | hpux10* | hpux11*)
11581 # Give a soname corresponding to the major version so that dld.sl refuses to
11582 # link against other versions.
11583 version_type=sunos
11584 need_lib_prefix=no
11585 need_version=no
11586 case $host_cpu in
11587 ia64*)
11588 shrext_cmds='.so'
11589 hardcode_into_libs=yes
11590 dynamic_linker="$host_os dld.so"
11591 shlibpath_var=LD_LIBRARY_PATH
11592 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594 soname_spec='${libname}${release}${shared_ext}$major'
11595 if test "X$HPUX_IA64_MODE" = X32; then
11596 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11597 else
11598 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11602 hppa*64*)
11603 shrext_cmds='.sl'
11604 hardcode_into_libs=yes
11605 dynamic_linker="$host_os dld.sl"
11606 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11609 soname_spec='${libname}${release}${shared_ext}$major'
11610 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11614 shrext_cmds='.sl'
11615 dynamic_linker="$host_os dld.sl"
11616 shlibpath_var=SHLIB_PATH
11617 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 soname_spec='${libname}${release}${shared_ext}$major'
11621 esac
11622 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11623 postinstall_cmds='chmod 555 $lib'
11626 interix[3-9]*)
11627 version_type=linux
11628 need_lib_prefix=no
11629 need_version=no
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11631 soname_spec='${libname}${release}${shared_ext}$major'
11632 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11633 shlibpath_var=LD_LIBRARY_PATH
11634 shlibpath_overrides_runpath=no
11635 hardcode_into_libs=yes
11638 irix5* | irix6* | nonstopux*)
11639 case $host_os in
11640 nonstopux*) version_type=nonstopux ;;
11642 if test "$lt_cv_prog_gnu_ld" = yes; then
11643 version_type=linux
11644 else
11645 version_type=irix
11646 fi ;;
11647 esac
11648 need_lib_prefix=no
11649 need_version=no
11650 soname_spec='${libname}${release}${shared_ext}$major'
11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11652 case $host_os in
11653 irix5* | nonstopux*)
11654 libsuff= shlibsuff=
11657 case $LD in # libtool.m4 will add one of these switches to LD
11658 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11659 libsuff= shlibsuff= libmagic=32-bit;;
11660 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11661 libsuff=32 shlibsuff=N32 libmagic=N32;;
11662 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11663 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11664 *) libsuff= shlibsuff= libmagic=never-match;;
11665 esac
11667 esac
11668 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11669 shlibpath_overrides_runpath=no
11670 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11671 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11672 hardcode_into_libs=yes
11675 # No shared lib support for Linux oldld, aout, or coff.
11676 linux*oldld* | linux*aout* | linux*coff*)
11677 dynamic_linker=no
11680 # This must be Linux ELF.
11681 linux* | k*bsd*-gnu)
11682 version_type=linux
11683 need_lib_prefix=no
11684 need_version=no
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686 soname_spec='${libname}${release}${shared_ext}$major'
11687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11688 shlibpath_var=LD_LIBRARY_PATH
11689 shlibpath_overrides_runpath=no
11690 # Some binutils ld are patched to set DT_RUNPATH
11691 save_LDFLAGS=$LDFLAGS
11692 save_libdir=$libdir
11693 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11694 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11695 cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h. */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11703 main ()
11707 return 0;
11709 _ACEOF
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (ac_try="$ac_link"
11712 case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11715 esac
11716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11717 $as_echo "$ac_try_echo") >&5
11718 (eval "$ac_link") 2>conftest.er1
11719 ac_status=$?
11720 grep -v '^ *+' conftest.er1 >conftest.err
11721 rm -f conftest.er1
11722 cat conftest.err >&5
11723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } && {
11725 test -z "$ac_c_werror_flag" ||
11726 test ! -s conftest.err
11727 } && test -s conftest$ac_exeext && {
11728 test "$cross_compiling" = yes ||
11729 $as_test_x conftest$ac_exeext
11730 }; then
11731 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11732 shlibpath_overrides_runpath=yes
11735 else
11736 $as_echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.$ac_ext >&5
11742 rm -rf conftest.dSYM
11743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11744 conftest$ac_exeext conftest.$ac_ext
11745 LDFLAGS=$save_LDFLAGS
11746 libdir=$save_libdir
11748 # This implies no fast_install, which is unacceptable.
11749 # Some rework will be needed to allow for fast_install
11750 # before this can be enabled.
11751 hardcode_into_libs=yes
11753 # Add ABI-specific directories to the system library path.
11754 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11756 # Append ld.so.conf contents to the search path
11757 if test -f /etc/ld.so.conf; then
11758 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11759 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11762 # We used to test for /lib/ld.so.1 and disable shared libraries on
11763 # powerpc, because MkLinux only supported shared libraries with the
11764 # GNU dynamic linker. Since this was broken with cross compilers,
11765 # most powerpc-linux boxes support dynamic linking these days and
11766 # people can always --disable-shared, the test was removed, and we
11767 # assume the GNU/Linux dynamic linker is in use.
11768 dynamic_linker='GNU/Linux ld.so'
11771 netbsd*)
11772 version_type=sunos
11773 need_lib_prefix=no
11774 need_version=no
11775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11778 dynamic_linker='NetBSD (a.out) ld.so'
11779 else
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11781 soname_spec='${libname}${release}${shared_ext}$major'
11782 dynamic_linker='NetBSD ld.elf_so'
11784 shlibpath_var=LD_LIBRARY_PATH
11785 shlibpath_overrides_runpath=yes
11786 hardcode_into_libs=yes
11789 newsos6)
11790 version_type=linux
11791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11792 shlibpath_var=LD_LIBRARY_PATH
11793 shlibpath_overrides_runpath=yes
11796 *nto* | *qnx*)
11797 version_type=qnx
11798 need_lib_prefix=no
11799 need_version=no
11800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801 soname_spec='${libname}${release}${shared_ext}$major'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=no
11804 hardcode_into_libs=yes
11805 dynamic_linker='ldqnx.so'
11808 openbsd*)
11809 version_type=sunos
11810 sys_lib_dlsearch_path_spec="/usr/lib"
11811 need_lib_prefix=no
11812 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11813 case $host_os in
11814 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11815 *) need_version=no ;;
11816 esac
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11821 case $host_os in
11822 openbsd2.[89] | openbsd2.[89].*)
11823 shlibpath_overrides_runpath=no
11826 shlibpath_overrides_runpath=yes
11828 esac
11829 else
11830 shlibpath_overrides_runpath=yes
11834 os2*)
11835 libname_spec='$name'
11836 shrext_cmds=".dll"
11837 need_lib_prefix=no
11838 library_names_spec='$libname${shared_ext} $libname.a'
11839 dynamic_linker='OS/2 ld.exe'
11840 shlibpath_var=LIBPATH
11843 osf3* | osf4* | osf5*)
11844 version_type=osf
11845 need_lib_prefix=no
11846 need_version=no
11847 soname_spec='${libname}${release}${shared_ext}$major'
11848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11849 shlibpath_var=LD_LIBRARY_PATH
11850 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11851 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11854 rdos*)
11855 dynamic_linker=no
11858 solaris*)
11859 version_type=linux
11860 need_lib_prefix=no
11861 need_version=no
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 shlibpath_overrides_runpath=yes
11866 hardcode_into_libs=yes
11867 # ldd complains unless libraries are executable
11868 postinstall_cmds='chmod +x $lib'
11871 sunos4*)
11872 version_type=sunos
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11874 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11875 shlibpath_var=LD_LIBRARY_PATH
11876 shlibpath_overrides_runpath=yes
11877 if test "$with_gnu_ld" = yes; then
11878 need_lib_prefix=no
11880 need_version=yes
11883 sysv4 | sysv4.3*)
11884 version_type=linux
11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11886 soname_spec='${libname}${release}${shared_ext}$major'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 case $host_vendor in
11889 sni)
11890 shlibpath_overrides_runpath=no
11891 need_lib_prefix=no
11892 runpath_var=LD_RUN_PATH
11894 siemens)
11895 need_lib_prefix=no
11897 motorola)
11898 need_lib_prefix=no
11899 need_version=no
11900 shlibpath_overrides_runpath=no
11901 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11903 esac
11906 sysv4*MP*)
11907 if test -d /usr/nec ;then
11908 version_type=linux
11909 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11910 soname_spec='$libname${shared_ext}.$major'
11911 shlibpath_var=LD_LIBRARY_PATH
11915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11916 version_type=freebsd-elf
11917 need_lib_prefix=no
11918 need_version=no
11919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11920 soname_spec='${libname}${release}${shared_ext}$major'
11921 shlibpath_var=LD_LIBRARY_PATH
11922 shlibpath_overrides_runpath=yes
11923 hardcode_into_libs=yes
11924 if test "$with_gnu_ld" = yes; then
11925 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11926 else
11927 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11928 case $host_os in
11929 sco3.2v5*)
11930 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11932 esac
11934 sys_lib_dlsearch_path_spec='/usr/lib'
11937 tpf*)
11938 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11939 version_type=linux
11940 need_lib_prefix=no
11941 need_version=no
11942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11943 shlibpath_var=LD_LIBRARY_PATH
11944 shlibpath_overrides_runpath=no
11945 hardcode_into_libs=yes
11948 uts4*)
11949 version_type=linux
11950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11951 soname_spec='${libname}${release}${shared_ext}$major'
11952 shlibpath_var=LD_LIBRARY_PATH
11956 dynamic_linker=no
11958 esac
11959 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11960 $as_echo "$dynamic_linker" >&6; }
11961 test "$dynamic_linker" = no && can_build_shared=no
11963 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11964 if test "$GCC" = yes; then
11965 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11968 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11969 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11971 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11972 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12061 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12062 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12063 hardcode_action=
12064 if test -n "$hardcode_libdir_flag_spec" ||
12065 test -n "$runpath_var" ||
12066 test "X$hardcode_automatic" = "Xyes" ; then
12068 # We can hardcode non-existent directories.
12069 if test "$hardcode_direct" != no &&
12070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12071 # have to relink, otherwise we might link with an installed library
12072 # when we should be linking with a yet-to-be-installed one
12073 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12074 test "$hardcode_minus_L" != no; then
12075 # Linking always hardcodes the temporary library directory.
12076 hardcode_action=relink
12077 else
12078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12079 hardcode_action=immediate
12081 else
12082 # We cannot hardcode anything, or else we can only hardcode existing
12083 # directories.
12084 hardcode_action=unsupported
12086 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12087 $as_echo "$hardcode_action" >&6; }
12089 if test "$hardcode_action" = relink ||
12090 test "$inherit_rpath" = yes; then
12091 # Fast installation is not supported
12092 enable_fast_install=no
12093 elif test "$shlibpath_overrides_runpath" = yes ||
12094 test "$enable_shared" = no; then
12095 # Fast installation is not necessary
12096 enable_fast_install=needless
12104 if test "x$enable_dlopen" != xyes; then
12105 enable_dlopen=unknown
12106 enable_dlopen_self=unknown
12107 enable_dlopen_self_static=unknown
12108 else
12109 lt_cv_dlopen=no
12110 lt_cv_dlopen_libs=
12112 case $host_os in
12113 beos*)
12114 lt_cv_dlopen="load_add_on"
12115 lt_cv_dlopen_libs=
12116 lt_cv_dlopen_self=yes
12119 mingw* | pw32* | cegcc*)
12120 lt_cv_dlopen="LoadLibrary"
12121 lt_cv_dlopen_libs=
12124 cygwin*)
12125 lt_cv_dlopen="dlopen"
12126 lt_cv_dlopen_libs=
12129 darwin*)
12130 # if libdl is installed we need to link against it
12131 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12132 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12133 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12134 $as_echo_n "(cached) " >&6
12135 else
12136 ac_check_lib_save_LIBS=$LIBS
12137 LIBS="-ldl $LIBS"
12138 cat >conftest.$ac_ext <<_ACEOF
12139 /* confdefs.h. */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12145 /* Override any GCC internal prototype to avoid an error.
12146 Use char because int might match the return type of a GCC
12147 builtin and then its argument prototype would still apply. */
12148 #ifdef __cplusplus
12149 extern "C"
12150 #endif
12151 char dlopen ();
12153 main ()
12155 return dlopen ();
12157 return 0;
12159 _ACEOF
12160 rm -f conftest.$ac_objext conftest$ac_exeext
12161 if { (ac_try="$ac_link"
12162 case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12165 esac
12166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12167 $as_echo "$ac_try_echo") >&5
12168 (eval "$ac_link") 2>conftest.er1
12169 ac_status=$?
12170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
12173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } && {
12175 test -z "$ac_c_werror_flag" ||
12176 test ! -s conftest.err
12177 } && test -s conftest$ac_exeext && {
12178 test "$cross_compiling" = yes ||
12179 $as_test_x conftest$ac_exeext
12180 }; then
12181 ac_cv_lib_dl_dlopen=yes
12182 else
12183 $as_echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 ac_cv_lib_dl_dlopen=no
12189 rm -rf conftest.dSYM
12190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12191 conftest$ac_exeext conftest.$ac_ext
12192 LIBS=$ac_check_lib_save_LIBS
12194 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12195 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12196 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12197 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12198 else
12200 lt_cv_dlopen="dyld"
12201 lt_cv_dlopen_libs=
12202 lt_cv_dlopen_self=yes
12209 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12210 $as_echo_n "checking for shl_load... " >&6; }
12211 if test "${ac_cv_func_shl_load+set}" = set; then
12212 $as_echo_n "(cached) " >&6
12213 else
12214 cat >conftest.$ac_ext <<_ACEOF
12215 /* confdefs.h. */
12216 _ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12222 #define shl_load innocuous_shl_load
12224 /* System header to define __stub macros and hopefully few prototypes,
12225 which can conflict with char shl_load (); below.
12226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12227 <limits.h> exists even on freestanding compilers. */
12229 #ifdef __STDC__
12230 # include <limits.h>
12231 #else
12232 # include <assert.h>
12233 #endif
12235 #undef shl_load
12237 /* Override any GCC internal prototype to avoid an error.
12238 Use char because int might match the return type of a GCC
12239 builtin and then its argument prototype would still apply. */
12240 #ifdef __cplusplus
12241 extern "C"
12242 #endif
12243 char shl_load ();
12244 /* The GNU C library defines this for functions which it implements
12245 to always fail with ENOSYS. Some functions are actually named
12246 something starting with __ and the normal name is an alias. */
12247 #if defined __stub_shl_load || defined __stub___shl_load
12248 choke me
12249 #endif
12252 main ()
12254 return shl_load ();
12256 return 0;
12258 _ACEOF
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (ac_try="$ac_link"
12261 case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12264 esac
12265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12266 $as_echo "$ac_try_echo") >&5
12267 (eval "$ac_link") 2>conftest.er1
12268 ac_status=$?
12269 grep -v '^ *+' conftest.er1 >conftest.err
12270 rm -f conftest.er1
12271 cat conftest.err >&5
12272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } && {
12274 test -z "$ac_c_werror_flag" ||
12275 test ! -s conftest.err
12276 } && test -s conftest$ac_exeext && {
12277 test "$cross_compiling" = yes ||
12278 $as_test_x conftest$ac_exeext
12279 }; then
12280 ac_cv_func_shl_load=yes
12281 else
12282 $as_echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12285 ac_cv_func_shl_load=no
12288 rm -rf conftest.dSYM
12289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12290 conftest$ac_exeext conftest.$ac_ext
12292 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12293 $as_echo "$ac_cv_func_shl_load" >&6; }
12294 if test "x$ac_cv_func_shl_load" = x""yes; then
12295 lt_cv_dlopen="shl_load"
12296 else
12297 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12298 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12299 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12300 $as_echo_n "(cached) " >&6
12301 else
12302 ac_check_lib_save_LIBS=$LIBS
12303 LIBS="-ldld $LIBS"
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h. */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12311 /* Override any GCC internal prototype to avoid an error.
12312 Use char because int might match the return type of a GCC
12313 builtin and then its argument prototype would still apply. */
12314 #ifdef __cplusplus
12315 extern "C"
12316 #endif
12317 char shl_load ();
12319 main ()
12321 return shl_load ();
12323 return 0;
12325 _ACEOF
12326 rm -f conftest.$ac_objext conftest$ac_exeext
12327 if { (ac_try="$ac_link"
12328 case "(($ac_try" in
12329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330 *) ac_try_echo=$ac_try;;
12331 esac
12332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12333 $as_echo "$ac_try_echo") >&5
12334 (eval "$ac_link") 2>conftest.er1
12335 ac_status=$?
12336 grep -v '^ *+' conftest.er1 >conftest.err
12337 rm -f conftest.er1
12338 cat conftest.err >&5
12339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } && {
12341 test -z "$ac_c_werror_flag" ||
12342 test ! -s conftest.err
12343 } && test -s conftest$ac_exeext && {
12344 test "$cross_compiling" = yes ||
12345 $as_test_x conftest$ac_exeext
12346 }; then
12347 ac_cv_lib_dld_shl_load=yes
12348 else
12349 $as_echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12352 ac_cv_lib_dld_shl_load=no
12355 rm -rf conftest.dSYM
12356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12357 conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12360 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12361 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12362 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12363 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12364 else
12365 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12366 $as_echo_n "checking for dlopen... " >&6; }
12367 if test "${ac_cv_func_dlopen+set}" = set; then
12368 $as_echo_n "(cached) " >&6
12369 else
12370 cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h. */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12378 #define dlopen innocuous_dlopen
12380 /* System header to define __stub macros and hopefully few prototypes,
12381 which can conflict with char dlopen (); below.
12382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383 <limits.h> exists even on freestanding compilers. */
12385 #ifdef __STDC__
12386 # include <limits.h>
12387 #else
12388 # include <assert.h>
12389 #endif
12391 #undef dlopen
12393 /* Override any GCC internal prototype to avoid an error.
12394 Use char because int might match the return type of a GCC
12395 builtin and then its argument prototype would still apply. */
12396 #ifdef __cplusplus
12397 extern "C"
12398 #endif
12399 char dlopen ();
12400 /* The GNU C library defines this for functions which it implements
12401 to always fail with ENOSYS. Some functions are actually named
12402 something starting with __ and the normal name is an alias. */
12403 #if defined __stub_dlopen || defined __stub___dlopen
12404 choke me
12405 #endif
12408 main ()
12410 return dlopen ();
12412 return 0;
12414 _ACEOF
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (ac_try="$ac_link"
12417 case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12420 esac
12421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12422 $as_echo "$ac_try_echo") >&5
12423 (eval "$ac_link") 2>conftest.er1
12424 ac_status=$?
12425 grep -v '^ *+' conftest.er1 >conftest.err
12426 rm -f conftest.er1
12427 cat conftest.err >&5
12428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } && {
12430 test -z "$ac_c_werror_flag" ||
12431 test ! -s conftest.err
12432 } && test -s conftest$ac_exeext && {
12433 test "$cross_compiling" = yes ||
12434 $as_test_x conftest$ac_exeext
12435 }; then
12436 ac_cv_func_dlopen=yes
12437 else
12438 $as_echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ac_cv_func_dlopen=no
12444 rm -rf conftest.dSYM
12445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12446 conftest$ac_exeext conftest.$ac_ext
12448 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12449 $as_echo "$ac_cv_func_dlopen" >&6; }
12450 if test "x$ac_cv_func_dlopen" = x""yes; then
12451 lt_cv_dlopen="dlopen"
12452 else
12453 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12454 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12455 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12456 $as_echo_n "(cached) " >&6
12457 else
12458 ac_check_lib_save_LIBS=$LIBS
12459 LIBS="-ldl $LIBS"
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h. */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12467 /* Override any GCC internal prototype to avoid an error.
12468 Use char because int might match the return type of a GCC
12469 builtin and then its argument prototype would still apply. */
12470 #ifdef __cplusplus
12471 extern "C"
12472 #endif
12473 char dlopen ();
12475 main ()
12477 return dlopen ();
12479 return 0;
12481 _ACEOF
12482 rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (ac_try="$ac_link"
12484 case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12487 esac
12488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12489 $as_echo "$ac_try_echo") >&5
12490 (eval "$ac_link") 2>conftest.er1
12491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } && {
12497 test -z "$ac_c_werror_flag" ||
12498 test ! -s conftest.err
12499 } && test -s conftest$ac_exeext && {
12500 test "$cross_compiling" = yes ||
12501 $as_test_x conftest$ac_exeext
12502 }; then
12503 ac_cv_lib_dl_dlopen=yes
12504 else
12505 $as_echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 ac_cv_lib_dl_dlopen=no
12511 rm -rf conftest.dSYM
12512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12513 conftest$ac_exeext conftest.$ac_ext
12514 LIBS=$ac_check_lib_save_LIBS
12516 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12517 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12518 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12519 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12520 else
12521 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12522 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12523 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12524 $as_echo_n "(cached) " >&6
12525 else
12526 ac_check_lib_save_LIBS=$LIBS
12527 LIBS="-lsvld $LIBS"
12528 cat >conftest.$ac_ext <<_ACEOF
12529 /* confdefs.h. */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h. */
12535 /* Override any GCC internal prototype to avoid an error.
12536 Use char because int might match the return type of a GCC
12537 builtin and then its argument prototype would still apply. */
12538 #ifdef __cplusplus
12539 extern "C"
12540 #endif
12541 char dlopen ();
12543 main ()
12545 return dlopen ();
12547 return 0;
12549 _ACEOF
12550 rm -f conftest.$ac_objext conftest$ac_exeext
12551 if { (ac_try="$ac_link"
12552 case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12555 esac
12556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12557 $as_echo "$ac_try_echo") >&5
12558 (eval "$ac_link") 2>conftest.er1
12559 ac_status=$?
12560 grep -v '^ *+' conftest.er1 >conftest.err
12561 rm -f conftest.er1
12562 cat conftest.err >&5
12563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } && {
12565 test -z "$ac_c_werror_flag" ||
12566 test ! -s conftest.err
12567 } && test -s conftest$ac_exeext && {
12568 test "$cross_compiling" = yes ||
12569 $as_test_x conftest$ac_exeext
12570 }; then
12571 ac_cv_lib_svld_dlopen=yes
12572 else
12573 $as_echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12576 ac_cv_lib_svld_dlopen=no
12579 rm -rf conftest.dSYM
12580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12581 conftest$ac_exeext conftest.$ac_ext
12582 LIBS=$ac_check_lib_save_LIBS
12584 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12585 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12586 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12588 else
12589 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12590 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12591 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12592 $as_echo_n "(cached) " >&6
12593 else
12594 ac_check_lib_save_LIBS=$LIBS
12595 LIBS="-ldld $LIBS"
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h. */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12603 /* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12606 #ifdef __cplusplus
12607 extern "C"
12608 #endif
12609 char dld_link ();
12611 main ()
12613 return dld_link ();
12615 return 0;
12617 _ACEOF
12618 rm -f conftest.$ac_objext conftest$ac_exeext
12619 if { (ac_try="$ac_link"
12620 case "(($ac_try" in
12621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622 *) ac_try_echo=$ac_try;;
12623 esac
12624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12625 $as_echo "$ac_try_echo") >&5
12626 (eval "$ac_link") 2>conftest.er1
12627 ac_status=$?
12628 grep -v '^ *+' conftest.er1 >conftest.err
12629 rm -f conftest.er1
12630 cat conftest.err >&5
12631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } && {
12633 test -z "$ac_c_werror_flag" ||
12634 test ! -s conftest.err
12635 } && test -s conftest$ac_exeext && {
12636 test "$cross_compiling" = yes ||
12637 $as_test_x conftest$ac_exeext
12638 }; then
12639 ac_cv_lib_dld_dld_link=yes
12640 else
12641 $as_echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12644 ac_cv_lib_dld_dld_link=no
12647 rm -rf conftest.dSYM
12648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12649 conftest$ac_exeext conftest.$ac_ext
12650 LIBS=$ac_check_lib_save_LIBS
12652 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12653 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12654 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12655 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12674 esac
12676 if test "x$lt_cv_dlopen" != xno; then
12677 enable_dlopen=yes
12678 else
12679 enable_dlopen=no
12682 case $lt_cv_dlopen in
12683 dlopen)
12684 save_CPPFLAGS="$CPPFLAGS"
12685 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12687 save_LDFLAGS="$LDFLAGS"
12688 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12690 save_LIBS="$LIBS"
12691 LIBS="$lt_cv_dlopen_libs $LIBS"
12693 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12694 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12695 if test "${lt_cv_dlopen_self+set}" = set; then
12696 $as_echo_n "(cached) " >&6
12697 else
12698 if test "$cross_compiling" = yes; then :
12699 lt_cv_dlopen_self=cross
12700 else
12701 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12702 lt_status=$lt_dlunknown
12703 cat > conftest.$ac_ext <<_LT_EOF
12704 #line 12704 "configure"
12705 #include "confdefs.h"
12707 #if HAVE_DLFCN_H
12708 #include <dlfcn.h>
12709 #endif
12711 #include <stdio.h>
12713 #ifdef RTLD_GLOBAL
12714 # define LT_DLGLOBAL RTLD_GLOBAL
12715 #else
12716 # ifdef DL_GLOBAL
12717 # define LT_DLGLOBAL DL_GLOBAL
12718 # else
12719 # define LT_DLGLOBAL 0
12720 # endif
12721 #endif
12723 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12724 find out it does not work in some platform. */
12725 #ifndef LT_DLLAZY_OR_NOW
12726 # ifdef RTLD_LAZY
12727 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12728 # else
12729 # ifdef DL_LAZY
12730 # define LT_DLLAZY_OR_NOW DL_LAZY
12731 # else
12732 # ifdef RTLD_NOW
12733 # define LT_DLLAZY_OR_NOW RTLD_NOW
12734 # else
12735 # ifdef DL_NOW
12736 # define LT_DLLAZY_OR_NOW DL_NOW
12737 # else
12738 # define LT_DLLAZY_OR_NOW 0
12739 # endif
12740 # endif
12741 # endif
12742 # endif
12743 #endif
12745 void fnord() { int i=42;}
12746 int main ()
12748 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12749 int status = $lt_dlunknown;
12751 if (self)
12753 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12754 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12755 /* dlclose (self); */
12757 else
12758 puts (dlerror ());
12760 return status;
12762 _LT_EOF
12763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12764 (eval $ac_link) 2>&5
12765 ac_status=$?
12766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12768 (./conftest; exit; ) >&5 2>/dev/null
12769 lt_status=$?
12770 case x$lt_status in
12771 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12772 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12773 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12774 esac
12775 else :
12776 # compilation failed
12777 lt_cv_dlopen_self=no
12780 rm -fr conftest*
12784 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12785 $as_echo "$lt_cv_dlopen_self" >&6; }
12787 if test "x$lt_cv_dlopen_self" = xyes; then
12788 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12789 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12790 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12791 if test "${lt_cv_dlopen_self_static+set}" = set; then
12792 $as_echo_n "(cached) " >&6
12793 else
12794 if test "$cross_compiling" = yes; then :
12795 lt_cv_dlopen_self_static=cross
12796 else
12797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12798 lt_status=$lt_dlunknown
12799 cat > conftest.$ac_ext <<_LT_EOF
12800 #line 12800 "configure"
12801 #include "confdefs.h"
12803 #if HAVE_DLFCN_H
12804 #include <dlfcn.h>
12805 #endif
12807 #include <stdio.h>
12809 #ifdef RTLD_GLOBAL
12810 # define LT_DLGLOBAL RTLD_GLOBAL
12811 #else
12812 # ifdef DL_GLOBAL
12813 # define LT_DLGLOBAL DL_GLOBAL
12814 # else
12815 # define LT_DLGLOBAL 0
12816 # endif
12817 #endif
12819 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12820 find out it does not work in some platform. */
12821 #ifndef LT_DLLAZY_OR_NOW
12822 # ifdef RTLD_LAZY
12823 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12824 # else
12825 # ifdef DL_LAZY
12826 # define LT_DLLAZY_OR_NOW DL_LAZY
12827 # else
12828 # ifdef RTLD_NOW
12829 # define LT_DLLAZY_OR_NOW RTLD_NOW
12830 # else
12831 # ifdef DL_NOW
12832 # define LT_DLLAZY_OR_NOW DL_NOW
12833 # else
12834 # define LT_DLLAZY_OR_NOW 0
12835 # endif
12836 # endif
12837 # endif
12838 # endif
12839 #endif
12841 void fnord() { int i=42;}
12842 int main ()
12844 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12845 int status = $lt_dlunknown;
12847 if (self)
12849 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12850 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12851 /* dlclose (self); */
12853 else
12854 puts (dlerror ());
12856 return status;
12858 _LT_EOF
12859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12860 (eval $ac_link) 2>&5
12861 ac_status=$?
12862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12864 (./conftest; exit; ) >&5 2>/dev/null
12865 lt_status=$?
12866 case x$lt_status in
12867 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12868 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12869 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12870 esac
12871 else :
12872 # compilation failed
12873 lt_cv_dlopen_self_static=no
12876 rm -fr conftest*
12880 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12881 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12884 CPPFLAGS="$save_CPPFLAGS"
12885 LDFLAGS="$save_LDFLAGS"
12886 LIBS="$save_LIBS"
12888 esac
12890 case $lt_cv_dlopen_self in
12891 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12892 *) enable_dlopen_self=unknown ;;
12893 esac
12895 case $lt_cv_dlopen_self_static in
12896 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12897 *) enable_dlopen_self_static=unknown ;;
12898 esac
12917 striplib=
12918 old_striplib=
12919 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12920 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12921 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12922 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12923 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12924 { $as_echo "$as_me:$LINENO: result: yes" >&5
12925 $as_echo "yes" >&6; }
12926 else
12927 # FIXME - insert some real tests, host_os isn't really good enough
12928 case $host_os in
12929 darwin*)
12930 if test -n "$STRIP" ; then
12931 striplib="$STRIP -x"
12932 old_striplib="$STRIP -S"
12933 { $as_echo "$as_me:$LINENO: result: yes" >&5
12934 $as_echo "yes" >&6; }
12935 else
12936 { $as_echo "$as_me:$LINENO: result: no" >&5
12937 $as_echo "no" >&6; }
12941 { $as_echo "$as_me:$LINENO: result: no" >&5
12942 $as_echo "no" >&6; }
12944 esac
12958 # Report which library types will actually be built
12959 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12960 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12961 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12962 $as_echo "$can_build_shared" >&6; }
12964 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12965 $as_echo_n "checking whether to build shared libraries... " >&6; }
12966 test "$can_build_shared" = "no" && enable_shared=no
12968 # On AIX, shared libraries and static libraries use the same namespace, and
12969 # are all built from PIC.
12970 case $host_os in
12971 aix3*)
12972 test "$enable_shared" = yes && enable_static=no
12973 if test -n "$RANLIB"; then
12974 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12975 postinstall_cmds='$RANLIB $lib'
12979 aix[4-9]*)
12980 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12981 test "$enable_shared" = yes && enable_static=no
12984 esac
12985 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12986 $as_echo "$enable_shared" >&6; }
12988 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12989 $as_echo_n "checking whether to build static libraries... " >&6; }
12990 # Make sure either enable_shared or enable_static is yes.
12991 test "$enable_shared" = yes || enable_static=yes
12992 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12993 $as_echo "$enable_static" >&6; }
12999 ac_ext=c
13000 ac_cpp='$CPP $CPPFLAGS'
13001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13005 CC="$lt_save_CC"
13008 ac_ext=cpp
13009 ac_cpp='$CXXCPP $CPPFLAGS'
13010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13014 archive_cmds_need_lc_CXX=no
13015 allow_undefined_flag_CXX=
13016 always_export_symbols_CXX=no
13017 archive_expsym_cmds_CXX=
13018 compiler_needs_object_CXX=no
13019 export_dynamic_flag_spec_CXX=
13020 hardcode_direct_CXX=no
13021 hardcode_direct_absolute_CXX=no
13022 hardcode_libdir_flag_spec_CXX=
13023 hardcode_libdir_flag_spec_ld_CXX=
13024 hardcode_libdir_separator_CXX=
13025 hardcode_minus_L_CXX=no
13026 hardcode_shlibpath_var_CXX=unsupported
13027 hardcode_automatic_CXX=no
13028 inherit_rpath_CXX=no
13029 module_cmds_CXX=
13030 module_expsym_cmds_CXX=
13031 link_all_deplibs_CXX=unknown
13032 old_archive_cmds_CXX=$old_archive_cmds
13033 no_undefined_flag_CXX=
13034 whole_archive_flag_spec_CXX=
13035 enable_shared_with_static_runtimes_CXX=no
13037 # Source file extension for C++ test sources.
13038 ac_ext=cpp
13040 # Object file extension for compiled C++ test sources.
13041 objext=o
13042 objext_CXX=$objext
13044 # No sense in running all these tests if we already determined that
13045 # the CXX compiler isn't working. Some variables (like enable_shared)
13046 # are currently assumed to apply to all compilers on this platform,
13047 # and will be corrupted by setting them based on a non-working compiler.
13048 if test "$_lt_caught_CXX_error" != yes; then
13049 # Code to be used in simple compile tests
13050 lt_simple_compile_test_code="int some_variable = 0;"
13052 # Code to be used in simple link tests
13053 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13055 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13062 # If no C compiler was specified, use CC.
13063 LTCC=${LTCC-"$CC"}
13065 # If no C compiler flags were specified, use CFLAGS.
13066 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13068 # Allow CC to be a program name with arguments.
13069 compiler=$CC
13072 # save warnings/boilerplate of simple test code
13073 ac_outfile=conftest.$ac_objext
13074 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13075 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13076 _lt_compiler_boilerplate=`cat conftest.err`
13077 $RM conftest*
13079 ac_outfile=conftest.$ac_objext
13080 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13081 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13082 _lt_linker_boilerplate=`cat conftest.err`
13083 $RM -r conftest*
13086 # Allow CC to be a program name with arguments.
13087 lt_save_CC=$CC
13088 lt_save_LD=$LD
13089 lt_save_GCC=$GCC
13090 GCC=$GXX
13091 lt_save_with_gnu_ld=$with_gnu_ld
13092 lt_save_path_LD=$lt_cv_path_LD
13093 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13094 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13095 else
13096 $as_unset lt_cv_prog_gnu_ld
13098 if test -n "${lt_cv_path_LDCXX+set}"; then
13099 lt_cv_path_LD=$lt_cv_path_LDCXX
13100 else
13101 $as_unset lt_cv_path_LD
13103 test -z "${LDCXX+set}" || LD=$LDCXX
13104 CC=${CXX-"c++"}
13105 compiler=$CC
13106 compiler_CXX=$CC
13107 for cc_temp in $compiler""; do
13108 case $cc_temp in
13109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13111 \-*) ;;
13112 *) break;;
13113 esac
13114 done
13115 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13118 if test -n "$compiler"; then
13119 # We don't want -fno-exception when compiling C++ code, so set the
13120 # no_builtin_flag separately
13121 if test "$GXX" = yes; then
13122 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13123 else
13124 lt_prog_compiler_no_builtin_flag_CXX=
13127 if test "$GXX" = yes; then
13128 # Set up default GNU C++ configuration
13132 # Check whether --with-gnu-ld was given.
13133 if test "${with_gnu_ld+set}" = set; then
13134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13135 else
13136 with_gnu_ld=no
13139 ac_prog=ld
13140 if test "$GCC" = yes; then
13141 # Check if gcc -print-prog-name=ld gives a path.
13142 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13143 $as_echo_n "checking for ld used by $CC... " >&6; }
13144 case $host in
13145 *-*-mingw*)
13146 # gcc leaves a trailing carriage return which upsets mingw
13147 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13149 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13150 esac
13151 case $ac_prog in
13152 # Accept absolute paths.
13153 [\\/]* | ?:[\\/]*)
13154 re_direlt='/[^/][^/]*/\.\./'
13155 # Canonicalize the pathname of ld
13156 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13157 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13158 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13159 done
13160 test -z "$LD" && LD="$ac_prog"
13163 # If it fails, then pretend we aren't using GCC.
13164 ac_prog=ld
13167 # If it is relative, then search for the first ld in PATH.
13168 with_gnu_ld=unknown
13170 esac
13171 elif test "$with_gnu_ld" = yes; then
13172 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13173 $as_echo_n "checking for GNU ld... " >&6; }
13174 else
13175 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13176 $as_echo_n "checking for non-GNU ld... " >&6; }
13178 if test "${lt_cv_path_LD+set}" = set; then
13179 $as_echo_n "(cached) " >&6
13180 else
13181 if test -z "$LD"; then
13182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13183 for ac_dir in $PATH; do
13184 IFS="$lt_save_ifs"
13185 test -z "$ac_dir" && ac_dir=.
13186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13187 lt_cv_path_LD="$ac_dir/$ac_prog"
13188 # Check to see if the program is GNU ld. I'd rather use --version,
13189 # but apparently some variants of GNU ld only accept -v.
13190 # Break only if it was the GNU/non-GNU ld that we prefer.
13191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13192 *GNU* | *'with BFD'*)
13193 test "$with_gnu_ld" != no && break
13196 test "$with_gnu_ld" != yes && break
13198 esac
13200 done
13201 IFS="$lt_save_ifs"
13202 else
13203 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13207 LD="$lt_cv_path_LD"
13208 if test -n "$LD"; then
13209 { $as_echo "$as_me:$LINENO: result: $LD" >&5
13210 $as_echo "$LD" >&6; }
13211 else
13212 { $as_echo "$as_me:$LINENO: result: no" >&5
13213 $as_echo "no" >&6; }
13215 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13216 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13217 { (exit 1); exit 1; }; }
13218 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13219 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13220 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13221 $as_echo_n "(cached) " >&6
13222 else
13223 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13224 case `$LD -v 2>&1 </dev/null` in
13225 *GNU* | *'with BFD'*)
13226 lt_cv_prog_gnu_ld=yes
13229 lt_cv_prog_gnu_ld=no
13231 esac
13233 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13234 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13235 with_gnu_ld=$lt_cv_prog_gnu_ld
13243 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13244 # archiving commands below assume that GNU ld is being used.
13245 if test "$with_gnu_ld" = yes; then
13246 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13247 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13249 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13250 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13252 # If archive_cmds runs LD, not CC, wlarc should be empty
13253 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13254 # investigate it a little bit more. (MM)
13255 wlarc='${wl}'
13257 # ancient GNU ld didn't support --whole-archive et. al.
13258 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13259 $GREP 'no-whole-archive' > /dev/null; then
13260 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13261 else
13262 whole_archive_flag_spec_CXX=
13264 else
13265 with_gnu_ld=no
13266 wlarc=
13268 # A generic and very simple default shared library creation
13269 # command for GNU C++ for the case where it uses the native
13270 # linker, instead of GNU ld. If possible, this setting should
13271 # overridden to take advantage of the native linker features on
13272 # the platform it is being used on.
13273 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13276 # Commands to make compiler produce verbose output that lists
13277 # what "hidden" libraries, object files and flags are used when
13278 # linking a shared library.
13279 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13281 else
13282 GXX=no
13283 with_gnu_ld=no
13284 wlarc=
13287 # PORTME: fill in a description of your system's C++ link characteristics
13288 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13289 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13290 ld_shlibs_CXX=yes
13291 case $host_os in
13292 aix3*)
13293 # FIXME: insert proper C++ library support
13294 ld_shlibs_CXX=no
13296 aix[4-9]*)
13297 if test "$host_cpu" = ia64; then
13298 # On IA64, the linker does run time linking by default, so we don't
13299 # have to do anything special.
13300 aix_use_runtimelinking=no
13301 exp_sym_flag='-Bexport'
13302 no_entry_flag=""
13303 else
13304 aix_use_runtimelinking=no
13306 # Test if we are trying to use run time linking or normal
13307 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13308 # need to do runtime linking.
13309 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13310 for ld_flag in $LDFLAGS; do
13311 case $ld_flag in
13312 *-brtl*)
13313 aix_use_runtimelinking=yes
13314 break
13316 esac
13317 done
13319 esac
13321 exp_sym_flag='-bexport'
13322 no_entry_flag='-bnoentry'
13325 # When large executables or shared objects are built, AIX ld can
13326 # have problems creating the table of contents. If linking a library
13327 # or program results in "error TOC overflow" add -mminimal-toc to
13328 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13329 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13331 archive_cmds_CXX=''
13332 hardcode_direct_CXX=yes
13333 hardcode_direct_absolute_CXX=yes
13334 hardcode_libdir_separator_CXX=':'
13335 link_all_deplibs_CXX=yes
13336 file_list_spec_CXX='${wl}-f,'
13338 if test "$GXX" = yes; then
13339 case $host_os in aix4.[012]|aix4.[012].*)
13340 # We only want to do this on AIX 4.2 and lower, the check
13341 # below for broken collect2 doesn't work under 4.3+
13342 collect2name=`${CC} -print-prog-name=collect2`
13343 if test -f "$collect2name" &&
13344 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13345 then
13346 # We have reworked collect2
13348 else
13349 # We have old collect2
13350 hardcode_direct_CXX=unsupported
13351 # It fails to find uninstalled libraries when the uninstalled
13352 # path is not listed in the libpath. Setting hardcode_minus_L
13353 # to unsupported forces relinking
13354 hardcode_minus_L_CXX=yes
13355 hardcode_libdir_flag_spec_CXX='-L$libdir'
13356 hardcode_libdir_separator_CXX=
13358 esac
13359 shared_flag='-shared'
13360 if test "$aix_use_runtimelinking" = yes; then
13361 shared_flag="$shared_flag "'${wl}-G'
13363 else
13364 # not using gcc
13365 if test "$host_cpu" = ia64; then
13366 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13367 # chokes on -Wl,-G. The following line is correct:
13368 shared_flag='-G'
13369 else
13370 if test "$aix_use_runtimelinking" = yes; then
13371 shared_flag='${wl}-G'
13372 else
13373 shared_flag='${wl}-bM:SRE'
13378 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13379 # It seems that -bexpall does not export symbols beginning with
13380 # underscore (_), so it is better to generate a list of symbols to
13381 # export.
13382 always_export_symbols_CXX=yes
13383 if test "$aix_use_runtimelinking" = yes; then
13384 # Warning - without using the other runtime loading flags (-brtl),
13385 # -berok will link without error, but may produce a broken library.
13386 allow_undefined_flag_CXX='-berok'
13387 # Determine the default libpath from the value encoded in an empty
13388 # executable.
13389 cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h. */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13397 main ()
13401 return 0;
13403 _ACEOF
13404 rm -f conftest.$ac_objext conftest$ac_exeext
13405 if { (ac_try="$ac_link"
13406 case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13409 esac
13410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13411 $as_echo "$ac_try_echo") >&5
13412 (eval "$ac_link") 2>conftest.er1
13413 ac_status=$?
13414 grep -v '^ *+' conftest.er1 >conftest.err
13415 rm -f conftest.er1
13416 cat conftest.err >&5
13417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } && {
13419 test -z "$ac_cxx_werror_flag" ||
13420 test ! -s conftest.err
13421 } && test -s conftest$ac_exeext && {
13422 test "$cross_compiling" = yes ||
13423 $as_test_x conftest$ac_exeext
13424 }; then
13426 lt_aix_libpath_sed='
13427 /Import File Strings/,/^$/ {
13428 /^0/ {
13429 s/^0 *\(.*\)$/\1/
13433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13434 # Check for a 64-bit object if we didn't find anything.
13435 if test -z "$aix_libpath"; then
13436 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13438 else
13439 $as_echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13445 rm -rf conftest.dSYM
13446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13447 conftest$ac_exeext conftest.$ac_ext
13448 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13450 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13452 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13453 else
13454 if test "$host_cpu" = ia64; then
13455 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13456 allow_undefined_flag_CXX="-z nodefs"
13457 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13458 else
13459 # Determine the default libpath from the value encoded in an
13460 # empty executable.
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h. */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13469 main ()
13473 return 0;
13475 _ACEOF
13476 rm -f conftest.$ac_objext conftest$ac_exeext
13477 if { (ac_try="$ac_link"
13478 case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13481 esac
13482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13483 $as_echo "$ac_try_echo") >&5
13484 (eval "$ac_link") 2>conftest.er1
13485 ac_status=$?
13486 grep -v '^ *+' conftest.er1 >conftest.err
13487 rm -f conftest.er1
13488 cat conftest.err >&5
13489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } && {
13491 test -z "$ac_cxx_werror_flag" ||
13492 test ! -s conftest.err
13493 } && test -s conftest$ac_exeext && {
13494 test "$cross_compiling" = yes ||
13495 $as_test_x conftest$ac_exeext
13496 }; then
13498 lt_aix_libpath_sed='
13499 /Import File Strings/,/^$/ {
13500 /^0/ {
13501 s/^0 *\(.*\)$/\1/
13505 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13506 # Check for a 64-bit object if we didn't find anything.
13507 if test -z "$aix_libpath"; then
13508 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13510 else
13511 $as_echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13517 rm -rf conftest.dSYM
13518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13519 conftest$ac_exeext conftest.$ac_ext
13520 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13522 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13523 # Warning - without using the other run time loading flags,
13524 # -berok will link without error, but may produce a broken library.
13525 no_undefined_flag_CXX=' ${wl}-bernotok'
13526 allow_undefined_flag_CXX=' ${wl}-berok'
13527 # Exported symbols can be pulled into shared objects from archives
13528 whole_archive_flag_spec_CXX='$convenience'
13529 archive_cmds_need_lc_CXX=yes
13530 # This is similar to how AIX traditionally builds its shared
13531 # libraries.
13532 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13537 beos*)
13538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13539 allow_undefined_flag_CXX=unsupported
13540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13541 # support --undefined. This deserves some investigation. FIXME
13542 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13543 else
13544 ld_shlibs_CXX=no
13548 chorus*)
13549 case $cc_basename in
13551 # FIXME: insert proper C++ library support
13552 ld_shlibs_CXX=no
13554 esac
13557 cygwin* | mingw* | pw32* | cegcc*)
13558 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13559 # as there is no search path for DLLs.
13560 hardcode_libdir_flag_spec_CXX='-L$libdir'
13561 allow_undefined_flag_CXX=unsupported
13562 always_export_symbols_CXX=no
13563 enable_shared_with_static_runtimes_CXX=yes
13565 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13566 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13567 # If the export-symbols file already is a .def file (1st line
13568 # is EXPORTS), use it as is; otherwise, prepend...
13569 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13570 cp $export_symbols $output_objdir/$soname.def;
13571 else
13572 echo EXPORTS > $output_objdir/$soname.def;
13573 cat $export_symbols >> $output_objdir/$soname.def;
13575 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13576 else
13577 ld_shlibs_CXX=no
13580 darwin* | rhapsody*)
13583 archive_cmds_need_lc_CXX=no
13584 hardcode_direct_CXX=no
13585 hardcode_automatic_CXX=yes
13586 hardcode_shlibpath_var_CXX=unsupported
13587 whole_archive_flag_spec_CXX=''
13588 link_all_deplibs_CXX=yes
13589 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13590 case $cc_basename in
13591 ifort*) _lt_dar_can_shared=yes ;;
13592 *) _lt_dar_can_shared=$GCC ;;
13593 esac
13594 if test "$_lt_dar_can_shared" = "yes"; then
13595 output_verbose_link_cmd=echo
13596 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13597 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13598 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13599 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13600 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13601 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13602 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13605 else
13606 ld_shlibs_CXX=no
13611 dgux*)
13612 case $cc_basename in
13613 ec++*)
13614 # FIXME: insert proper C++ library support
13615 ld_shlibs_CXX=no
13617 ghcx*)
13618 # Green Hills C++ Compiler
13619 # FIXME: insert proper C++ library support
13620 ld_shlibs_CXX=no
13623 # FIXME: insert proper C++ library support
13624 ld_shlibs_CXX=no
13626 esac
13629 freebsd[12]*)
13630 # C++ shared libraries reported to be fairly broken before
13631 # switch to ELF
13632 ld_shlibs_CXX=no
13635 freebsd-elf*)
13636 archive_cmds_need_lc_CXX=no
13639 freebsd* | dragonfly*)
13640 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13641 # conventions
13642 ld_shlibs_CXX=yes
13645 gnu*)
13648 hpux9*)
13649 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13650 hardcode_libdir_separator_CXX=:
13651 export_dynamic_flag_spec_CXX='${wl}-E'
13652 hardcode_direct_CXX=yes
13653 hardcode_minus_L_CXX=yes # Not in the search PATH,
13654 # but as the default
13655 # location of the library.
13657 case $cc_basename in
13658 CC*)
13659 # FIXME: insert proper C++ library support
13660 ld_shlibs_CXX=no
13662 aCC*)
13663 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13664 # Commands to make compiler produce verbose output that lists
13665 # what "hidden" libraries, object files and flags are used when
13666 # linking a shared library.
13668 # There doesn't appear to be a way to prevent this compiler from
13669 # explicitly linking system object files so we need to strip them
13670 # from the output so that they don't get included in the library
13671 # dependencies.
13672 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13675 if test "$GXX" = yes; then
13676 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13677 else
13678 # FIXME: insert proper C++ library support
13679 ld_shlibs_CXX=no
13682 esac
13685 hpux10*|hpux11*)
13686 if test $with_gnu_ld = no; then
13687 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13688 hardcode_libdir_separator_CXX=:
13690 case $host_cpu in
13691 hppa*64*|ia64*)
13694 export_dynamic_flag_spec_CXX='${wl}-E'
13696 esac
13698 case $host_cpu in
13699 hppa*64*|ia64*)
13700 hardcode_direct_CXX=no
13701 hardcode_shlibpath_var_CXX=no
13704 hardcode_direct_CXX=yes
13705 hardcode_direct_absolute_CXX=yes
13706 hardcode_minus_L_CXX=yes # Not in the search PATH,
13707 # but as the default
13708 # location of the library.
13710 esac
13712 case $cc_basename in
13713 CC*)
13714 # FIXME: insert proper C++ library support
13715 ld_shlibs_CXX=no
13717 aCC*)
13718 case $host_cpu in
13719 hppa*64*)
13720 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13722 ia64*)
13723 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13726 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13728 esac
13729 # Commands to make compiler produce verbose output that lists
13730 # what "hidden" libraries, object files and flags are used when
13731 # linking a shared library.
13733 # There doesn't appear to be a way to prevent this compiler from
13734 # explicitly linking system object files so we need to strip them
13735 # from the output so that they don't get included in the library
13736 # dependencies.
13737 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13740 if test "$GXX" = yes; then
13741 if test $with_gnu_ld = no; then
13742 case $host_cpu in
13743 hppa*64*)
13744 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13746 ia64*)
13747 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13750 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13752 esac
13754 else
13755 # FIXME: insert proper C++ library support
13756 ld_shlibs_CXX=no
13759 esac
13762 interix[3-9]*)
13763 hardcode_direct_CXX=no
13764 hardcode_shlibpath_var_CXX=no
13765 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13766 export_dynamic_flag_spec_CXX='${wl}-E'
13767 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13768 # Instead, shared libraries are loaded at an image base (0x10000000 by
13769 # default) and relocated if they conflict, which is a slow very memory
13770 # consuming and fragmenting process. To avoid this, we pick a random,
13771 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13772 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13773 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13774 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13776 irix5* | irix6*)
13777 case $cc_basename in
13778 CC*)
13779 # SGI C++
13780 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13782 # Archives containing C++ object files must be created using
13783 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13784 # necessary to make sure instantiated templates are included
13785 # in the archive.
13786 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13789 if test "$GXX" = yes; then
13790 if test "$with_gnu_ld" = no; then
13791 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13792 else
13793 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13796 link_all_deplibs_CXX=yes
13798 esac
13799 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13800 hardcode_libdir_separator_CXX=:
13801 inherit_rpath_CXX=yes
13804 linux* | k*bsd*-gnu)
13805 case $cc_basename in
13806 KCC*)
13807 # Kuck and Associates, Inc. (KAI) C++ Compiler
13809 # KCC will only create a shared library if the output file
13810 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13811 # to its proper name (with version) after linking.
13812 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13813 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13814 # Commands to make compiler produce verbose output that lists
13815 # what "hidden" libraries, object files and flags are used when
13816 # linking a shared library.
13818 # There doesn't appear to be a way to prevent this compiler from
13819 # explicitly linking system object files so we need to strip them
13820 # from the output so that they don't get included in the library
13821 # dependencies.
13822 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13824 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13825 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13827 # Archives containing C++ object files must be created using
13828 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13829 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13831 icpc* | ecpc* )
13832 # Intel C++
13833 with_gnu_ld=yes
13834 # version 8.0 and above of icpc choke on multiply defined symbols
13835 # if we add $predep_objects and $postdep_objects, however 7.1 and
13836 # earlier do not add the objects themselves.
13837 case `$CC -V 2>&1` in
13838 *"Version 7."*)
13839 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13840 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13842 *) # Version 8.0 or newer
13843 tmp_idyn=
13844 case $host_cpu in
13845 ia64*) tmp_idyn=' -i_dynamic';;
13846 esac
13847 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13848 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13850 esac
13851 archive_cmds_need_lc_CXX=no
13852 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13853 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13854 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13856 pgCC* | pgcpp*)
13857 # Portland Group C++ compiler
13858 case `$CC -V` in
13859 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13860 prelink_cmds_CXX='tpldir=Template.dir~
13861 rm -rf $tpldir~
13862 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13863 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13864 old_archive_cmds_CXX='tpldir=Template.dir~
13865 rm -rf $tpldir~
13866 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13867 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13868 $RANLIB $oldlib'
13869 archive_cmds_CXX='tpldir=Template.dir~
13870 rm -rf $tpldir~
13871 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13872 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13873 archive_expsym_cmds_CXX='tpldir=Template.dir~
13874 rm -rf $tpldir~
13875 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13876 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13878 *) # Version 6 will use weak symbols
13879 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13880 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13882 esac
13884 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13885 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13886 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13888 cxx*)
13889 # Compaq C++
13890 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13891 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13893 runpath_var=LD_RUN_PATH
13894 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13895 hardcode_libdir_separator_CXX=:
13897 # Commands to make compiler produce verbose output that lists
13898 # what "hidden" libraries, object files and flags are used when
13899 # linking a shared library.
13901 # There doesn't appear to be a way to prevent this compiler from
13902 # explicitly linking system object files so we need to strip them
13903 # from the output so that they don't get included in the library
13904 # dependencies.
13905 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13907 xl*)
13908 # IBM XL 8.0 on PPC, with GNU ld
13909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13910 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13911 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13912 if test "x$supports_anon_versioning" = xyes; then
13913 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13914 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13915 echo "local: *; };" >> $output_objdir/$libname.ver~
13916 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13920 case `$CC -V 2>&1 | sed 5q` in
13921 *Sun\ C*)
13922 # Sun C++ 5.9
13923 no_undefined_flag_CXX=' -zdefs'
13924 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13925 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13926 hardcode_libdir_flag_spec_CXX='-R$libdir'
13927 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13928 compiler_needs_object_CXX=yes
13930 # Not sure whether something based on
13931 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13932 # would be better.
13933 output_verbose_link_cmd='echo'
13935 # Archives containing C++ object files must be created using
13936 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13937 # necessary to make sure instantiated templates are included
13938 # in the archive.
13939 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13941 esac
13943 esac
13946 lynxos*)
13947 # FIXME: insert proper C++ library support
13948 ld_shlibs_CXX=no
13951 m88k*)
13952 # FIXME: insert proper C++ library support
13953 ld_shlibs_CXX=no
13956 mvs*)
13957 case $cc_basename in
13958 cxx*)
13959 # FIXME: insert proper C++ library support
13960 ld_shlibs_CXX=no
13963 # FIXME: insert proper C++ library support
13964 ld_shlibs_CXX=no
13966 esac
13969 netbsd*)
13970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13971 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13972 wlarc=
13973 hardcode_libdir_flag_spec_CXX='-R$libdir'
13974 hardcode_direct_CXX=yes
13975 hardcode_shlibpath_var_CXX=no
13977 # Workaround some broken pre-1.5 toolchains
13978 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13981 *nto* | *qnx*)
13982 ld_shlibs_CXX=yes
13985 openbsd2*)
13986 # C++ shared libraries are fairly broken
13987 ld_shlibs_CXX=no
13990 openbsd*)
13991 if test -f /usr/libexec/ld.so; then
13992 hardcode_direct_CXX=yes
13993 hardcode_shlibpath_var_CXX=no
13994 hardcode_direct_absolute_CXX=yes
13995 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13996 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13997 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13998 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13999 export_dynamic_flag_spec_CXX='${wl}-E'
14000 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14002 output_verbose_link_cmd=echo
14003 else
14004 ld_shlibs_CXX=no
14008 osf3* | osf4* | osf5*)
14009 case $cc_basename in
14010 KCC*)
14011 # Kuck and Associates, Inc. (KAI) C++ Compiler
14013 # KCC will only create a shared library if the output file
14014 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14015 # to its proper name (with version) after linking.
14016 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14019 hardcode_libdir_separator_CXX=:
14021 # Archives containing C++ object files must be created using
14022 # the KAI C++ compiler.
14023 case $host in
14024 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14025 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14026 esac
14028 RCC*)
14029 # Rational C++ 2.4.1
14030 # FIXME: insert proper C++ library support
14031 ld_shlibs_CXX=no
14033 cxx*)
14034 case $host in
14035 osf3*)
14036 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14037 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14038 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14041 allow_undefined_flag_CXX=' -expect_unresolved \*'
14042 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14043 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14044 echo "-hidden">> $lib.exp~
14045 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14046 $RM $lib.exp'
14047 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14049 esac
14051 hardcode_libdir_separator_CXX=:
14053 # Commands to make compiler produce verbose output that lists
14054 # what "hidden" libraries, object files and flags are used when
14055 # linking a shared library.
14057 # There doesn't appear to be a way to prevent this compiler from
14058 # explicitly linking system object files so we need to strip them
14059 # from the output so that they don't get included in the library
14060 # dependencies.
14061 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14064 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14065 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14066 case $host in
14067 osf3*)
14068 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14071 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14073 esac
14075 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14076 hardcode_libdir_separator_CXX=:
14078 # Commands to make compiler produce verbose output that lists
14079 # what "hidden" libraries, object files and flags are used when
14080 # linking a shared library.
14081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14083 else
14084 # FIXME: insert proper C++ library support
14085 ld_shlibs_CXX=no
14088 esac
14091 psos*)
14092 # FIXME: insert proper C++ library support
14093 ld_shlibs_CXX=no
14096 sunos4*)
14097 case $cc_basename in
14098 CC*)
14099 # Sun C++ 4.x
14100 # FIXME: insert proper C++ library support
14101 ld_shlibs_CXX=no
14103 lcc*)
14104 # Lucid
14105 # FIXME: insert proper C++ library support
14106 ld_shlibs_CXX=no
14109 # FIXME: insert proper C++ library support
14110 ld_shlibs_CXX=no
14112 esac
14115 solaris*)
14116 case $cc_basename in
14117 CC*)
14118 # Sun C++ 4.2, 5.x and Centerline C++
14119 archive_cmds_need_lc_CXX=yes
14120 no_undefined_flag_CXX=' -zdefs'
14121 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14122 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14123 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14125 hardcode_libdir_flag_spec_CXX='-R$libdir'
14126 hardcode_shlibpath_var_CXX=no
14127 case $host_os in
14128 solaris2.[0-5] | solaris2.[0-5].*) ;;
14130 # The compiler driver will combine and reorder linker options,
14131 # but understands `-z linker_flag'.
14132 # Supported since Solaris 2.6 (maybe 2.5.1?)
14133 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14135 esac
14136 link_all_deplibs_CXX=yes
14138 output_verbose_link_cmd='echo'
14140 # Archives containing C++ object files must be created using
14141 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14142 # necessary to make sure instantiated templates are included
14143 # in the archive.
14144 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14146 gcx*)
14147 # Green Hills C++ Compiler
14148 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14150 # The C++ compiler must be used to create the archive.
14151 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14154 # GNU C++ compiler with Solaris linker
14155 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14156 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14157 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14158 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14159 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14160 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14162 # Commands to make compiler produce verbose output that lists
14163 # what "hidden" libraries, object files and flags are used when
14164 # linking a shared library.
14165 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14166 else
14167 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14168 # platform.
14169 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14170 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14171 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14173 # Commands to make compiler produce verbose output that lists
14174 # what "hidden" libraries, object files and flags are used when
14175 # linking a shared library.
14176 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14179 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14180 case $host_os in
14181 solaris2.[0-5] | solaris2.[0-5].*) ;;
14183 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14185 esac
14188 esac
14191 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14192 no_undefined_flag_CXX='${wl}-z,text'
14193 archive_cmds_need_lc_CXX=no
14194 hardcode_shlibpath_var_CXX=no
14195 runpath_var='LD_RUN_PATH'
14197 case $cc_basename in
14198 CC*)
14199 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14200 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14203 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14204 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14206 esac
14209 sysv5* | sco3.2v5* | sco5v6*)
14210 # Note: We can NOT use -z defs as we might desire, because we do not
14211 # link with -lc, and that would cause any symbols used from libc to
14212 # always be unresolved, which means just about no library would
14213 # ever link correctly. If we're not using GNU ld we use -z text
14214 # though, which does catch some bad symbols but isn't as heavy-handed
14215 # as -z defs.
14216 no_undefined_flag_CXX='${wl}-z,text'
14217 allow_undefined_flag_CXX='${wl}-z,nodefs'
14218 archive_cmds_need_lc_CXX=no
14219 hardcode_shlibpath_var_CXX=no
14220 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14221 hardcode_libdir_separator_CXX=':'
14222 link_all_deplibs_CXX=yes
14223 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14224 runpath_var='LD_RUN_PATH'
14226 case $cc_basename in
14227 CC*)
14228 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14229 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14232 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14233 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14235 esac
14238 tandem*)
14239 case $cc_basename in
14240 NCC*)
14241 # NonStop-UX NCC 3.20
14242 # FIXME: insert proper C++ library support
14243 ld_shlibs_CXX=no
14246 # FIXME: insert proper C++ library support
14247 ld_shlibs_CXX=no
14249 esac
14252 vxworks*)
14253 # FIXME: insert proper C++ library support
14254 ld_shlibs_CXX=no
14258 # FIXME: insert proper C++ library support
14259 ld_shlibs_CXX=no
14261 esac
14263 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14264 $as_echo "$ld_shlibs_CXX" >&6; }
14265 test "$ld_shlibs_CXX" = no && can_build_shared=no
14267 GCC_CXX="$GXX"
14268 LD_CXX="$LD"
14270 ## CAVEAT EMPTOR:
14271 ## There is no encapsulation within the following macros, do not change
14272 ## the running order or otherwise move them around unless you know exactly
14273 ## what you are doing...
14274 # Dependencies to place before and after the object being linked:
14275 predep_objects_CXX=
14276 postdep_objects_CXX=
14277 predeps_CXX=
14278 postdeps_CXX=
14279 compiler_lib_search_path_CXX=
14281 cat > conftest.$ac_ext <<_LT_EOF
14282 class Foo
14284 public:
14285 Foo (void) { a = 0; }
14286 private:
14287 int a;
14289 _LT_EOF
14291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14292 (eval $ac_compile) 2>&5
14293 ac_status=$?
14294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; then
14296 # Parse the compiler output and extract the necessary
14297 # objects, libraries and library flags.
14299 # Sentinel used to keep track of whether or not we are before
14300 # the conftest object file.
14301 pre_test_object_deps_done=no
14303 for p in `eval "$output_verbose_link_cmd"`; do
14304 case $p in
14306 -L* | -R* | -l*)
14307 # Some compilers place space between "-{L,R}" and the path.
14308 # Remove the space.
14309 if test $p = "-L" ||
14310 test $p = "-R"; then
14311 prev=$p
14312 continue
14313 else
14314 prev=
14317 if test "$pre_test_object_deps_done" = no; then
14318 case $p in
14319 -L* | -R*)
14320 # Internal compiler library paths should come after those
14321 # provided the user. The postdeps already come after the
14322 # user supplied libs so there is no need to process them.
14323 if test -z "$compiler_lib_search_path_CXX"; then
14324 compiler_lib_search_path_CXX="${prev}${p}"
14325 else
14326 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14329 # The "-l" case would never come before the object being
14330 # linked, so don't bother handling this case.
14331 esac
14332 else
14333 if test -z "$postdeps_CXX"; then
14334 postdeps_CXX="${prev}${p}"
14335 else
14336 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14341 *.$objext)
14342 # This assumes that the test object file only shows up
14343 # once in the compiler output.
14344 if test "$p" = "conftest.$objext"; then
14345 pre_test_object_deps_done=yes
14346 continue
14349 if test "$pre_test_object_deps_done" = no; then
14350 if test -z "$predep_objects_CXX"; then
14351 predep_objects_CXX="$p"
14352 else
14353 predep_objects_CXX="$predep_objects_CXX $p"
14355 else
14356 if test -z "$postdep_objects_CXX"; then
14357 postdep_objects_CXX="$p"
14358 else
14359 postdep_objects_CXX="$postdep_objects_CXX $p"
14364 *) ;; # Ignore the rest.
14366 esac
14367 done
14369 # Clean up.
14370 rm -f a.out a.exe
14371 else
14372 echo "libtool.m4: error: problem compiling CXX test program"
14375 $RM -f confest.$objext
14377 # PORTME: override above test on systems where it is broken
14378 case $host_os in
14379 interix[3-9]*)
14380 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14381 # hack all around it, let's just trust "g++" to DTRT.
14382 predep_objects_CXX=
14383 postdep_objects_CXX=
14384 postdeps_CXX=
14387 linux*)
14388 case `$CC -V 2>&1 | sed 5q` in
14389 *Sun\ C*)
14390 # Sun C++ 5.9
14392 # The more standards-conforming stlport4 library is
14393 # incompatible with the Cstd library. Avoid specifying
14394 # it if it's in CXXFLAGS. Ignore libCrun as
14395 # -library=stlport4 depends on it.
14396 case " $CXX $CXXFLAGS " in
14397 *" -library=stlport4 "*)
14398 solaris_use_stlport4=yes
14400 esac
14402 if test "$solaris_use_stlport4" != yes; then
14403 postdeps_CXX='-library=Cstd -library=Crun'
14406 esac
14409 solaris*)
14410 case $cc_basename in
14411 CC*)
14412 # The more standards-conforming stlport4 library is
14413 # incompatible with the Cstd library. Avoid specifying
14414 # it if it's in CXXFLAGS. Ignore libCrun as
14415 # -library=stlport4 depends on it.
14416 case " $CXX $CXXFLAGS " in
14417 *" -library=stlport4 "*)
14418 solaris_use_stlport4=yes
14420 esac
14422 # Adding this requires a known-good setup of shared libraries for
14423 # Sun compiler versions before 5.6, else PIC objects from an old
14424 # archive will be linked into the output, leading to subtle bugs.
14425 if test "$solaris_use_stlport4" != yes; then
14426 postdeps_CXX='-library=Cstd -library=Crun'
14429 esac
14431 esac
14434 case " $postdeps_CXX " in
14435 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14436 esac
14437 compiler_lib_search_dirs_CXX=
14438 if test -n "${compiler_lib_search_path_CXX}"; then
14439 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14472 lt_prog_compiler_wl_CXX=
14473 lt_prog_compiler_pic_CXX=
14474 lt_prog_compiler_static_CXX=
14476 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14477 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14479 # C++ specific cases for pic, static, wl, etc.
14480 if test "$GXX" = yes; then
14481 lt_prog_compiler_wl_CXX='-Wl,'
14482 lt_prog_compiler_static_CXX='-static'
14484 case $host_os in
14485 aix*)
14486 # All AIX code is PIC.
14487 if test "$host_cpu" = ia64; then
14488 # AIX 5 now supports IA64 processor
14489 lt_prog_compiler_static_CXX='-Bstatic'
14493 amigaos*)
14494 case $host_cpu in
14495 powerpc)
14496 # see comment about AmigaOS4 .so support
14497 lt_prog_compiler_pic_CXX='-fPIC'
14499 m68k)
14500 # FIXME: we need at least 68020 code to build shared libraries, but
14501 # adding the `-m68020' flag to GCC prevents building anything better,
14502 # like `-m68040'.
14503 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14505 esac
14508 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14509 # PIC is the default for these OSes.
14511 mingw* | cygwin* | os2* | pw32* | cegcc*)
14512 # This hack is so that the source file can tell whether it is being
14513 # built for inclusion in a dll (and should export symbols for example).
14514 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14515 # (--disable-auto-import) libraries
14516 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14518 darwin* | rhapsody*)
14519 # PIC is the default on this platform
14520 # Common symbols not allowed in MH_DYLIB files
14521 lt_prog_compiler_pic_CXX='-fno-common'
14523 *djgpp*)
14524 # DJGPP does not support shared libraries at all
14525 lt_prog_compiler_pic_CXX=
14527 interix[3-9]*)
14528 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14529 # Instead, we relocate shared libraries at runtime.
14531 sysv4*MP*)
14532 if test -d /usr/nec; then
14533 lt_prog_compiler_pic_CXX=-Kconform_pic
14536 hpux*)
14537 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14538 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14539 # sets the default TLS model and affects inlining.
14540 case $host_cpu in
14541 hppa*64*)
14544 lt_prog_compiler_pic_CXX='-fPIC'
14546 esac
14548 *qnx* | *nto*)
14549 # QNX uses GNU C++, but need to define -shared option too, otherwise
14550 # it will coredump.
14551 lt_prog_compiler_pic_CXX='-fPIC -shared'
14554 lt_prog_compiler_pic_CXX='-fPIC'
14556 esac
14557 else
14558 case $host_os in
14559 aix[4-9]*)
14560 # All AIX code is PIC.
14561 if test "$host_cpu" = ia64; then
14562 # AIX 5 now supports IA64 processor
14563 lt_prog_compiler_static_CXX='-Bstatic'
14564 else
14565 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14568 chorus*)
14569 case $cc_basename in
14570 cxch68*)
14571 # Green Hills C++ Compiler
14572 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14574 esac
14576 dgux*)
14577 case $cc_basename in
14578 ec++*)
14579 lt_prog_compiler_pic_CXX='-KPIC'
14581 ghcx*)
14582 # Green Hills C++ Compiler
14583 lt_prog_compiler_pic_CXX='-pic'
14587 esac
14589 freebsd* | dragonfly*)
14590 # FreeBSD uses GNU C++
14592 hpux9* | hpux10* | hpux11*)
14593 case $cc_basename in
14594 CC*)
14595 lt_prog_compiler_wl_CXX='-Wl,'
14596 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14597 if test "$host_cpu" != ia64; then
14598 lt_prog_compiler_pic_CXX='+Z'
14601 aCC*)
14602 lt_prog_compiler_wl_CXX='-Wl,'
14603 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14604 case $host_cpu in
14605 hppa*64*|ia64*)
14606 # +Z the default
14609 lt_prog_compiler_pic_CXX='+Z'
14611 esac
14615 esac
14617 interix*)
14618 # This is c89, which is MS Visual C++ (no shared libs)
14619 # Anyone wants to do a port?
14621 irix5* | irix6* | nonstopux*)
14622 case $cc_basename in
14623 CC*)
14624 lt_prog_compiler_wl_CXX='-Wl,'
14625 lt_prog_compiler_static_CXX='-non_shared'
14626 # CC pic flag -KPIC is the default.
14630 esac
14632 linux* | k*bsd*-gnu)
14633 case $cc_basename in
14634 KCC*)
14635 # KAI C++ Compiler
14636 lt_prog_compiler_wl_CXX='--backend -Wl,'
14637 lt_prog_compiler_pic_CXX='-fPIC'
14639 ecpc* )
14640 # old Intel C++ for x86_64 which still supported -KPIC.
14641 lt_prog_compiler_wl_CXX='-Wl,'
14642 lt_prog_compiler_pic_CXX='-KPIC'
14643 lt_prog_compiler_static_CXX='-static'
14645 icpc* )
14646 # Intel C++, used to be incompatible with GCC.
14647 # ICC 10 doesn't accept -KPIC any more.
14648 lt_prog_compiler_wl_CXX='-Wl,'
14649 lt_prog_compiler_pic_CXX='-fPIC'
14650 lt_prog_compiler_static_CXX='-static'
14652 pgCC* | pgcpp*)
14653 # Portland Group C++ compiler
14654 lt_prog_compiler_wl_CXX='-Wl,'
14655 lt_prog_compiler_pic_CXX='-fpic'
14656 lt_prog_compiler_static_CXX='-Bstatic'
14658 cxx*)
14659 # Compaq C++
14660 # Make sure the PIC flag is empty. It appears that all Alpha
14661 # Linux and Compaq Tru64 Unix objects are PIC.
14662 lt_prog_compiler_pic_CXX=
14663 lt_prog_compiler_static_CXX='-non_shared'
14665 xlc* | xlC*)
14666 # IBM XL 8.0 on PPC
14667 lt_prog_compiler_wl_CXX='-Wl,'
14668 lt_prog_compiler_pic_CXX='-qpic'
14669 lt_prog_compiler_static_CXX='-qstaticlink'
14672 case `$CC -V 2>&1 | sed 5q` in
14673 *Sun\ C*)
14674 # Sun C++ 5.9
14675 lt_prog_compiler_pic_CXX='-KPIC'
14676 lt_prog_compiler_static_CXX='-Bstatic'
14677 lt_prog_compiler_wl_CXX='-Qoption ld '
14679 esac
14681 esac
14683 lynxos*)
14685 m88k*)
14687 mvs*)
14688 case $cc_basename in
14689 cxx*)
14690 lt_prog_compiler_pic_CXX='-W c,exportall'
14694 esac
14696 netbsd*)
14698 *qnx* | *nto*)
14699 # QNX uses GNU C++, but need to define -shared option too, otherwise
14700 # it will coredump.
14701 lt_prog_compiler_pic_CXX='-fPIC -shared'
14703 osf3* | osf4* | osf5*)
14704 case $cc_basename in
14705 KCC*)
14706 lt_prog_compiler_wl_CXX='--backend -Wl,'
14708 RCC*)
14709 # Rational C++ 2.4.1
14710 lt_prog_compiler_pic_CXX='-pic'
14712 cxx*)
14713 # Digital/Compaq C++
14714 lt_prog_compiler_wl_CXX='-Wl,'
14715 # Make sure the PIC flag is empty. It appears that all Alpha
14716 # Linux and Compaq Tru64 Unix objects are PIC.
14717 lt_prog_compiler_pic_CXX=
14718 lt_prog_compiler_static_CXX='-non_shared'
14722 esac
14724 psos*)
14726 solaris*)
14727 case $cc_basename in
14728 CC*)
14729 # Sun C++ 4.2, 5.x and Centerline C++
14730 lt_prog_compiler_pic_CXX='-KPIC'
14731 lt_prog_compiler_static_CXX='-Bstatic'
14732 lt_prog_compiler_wl_CXX='-Qoption ld '
14734 gcx*)
14735 # Green Hills C++ Compiler
14736 lt_prog_compiler_pic_CXX='-PIC'
14740 esac
14742 sunos4*)
14743 case $cc_basename in
14744 CC*)
14745 # Sun C++ 4.x
14746 lt_prog_compiler_pic_CXX='-pic'
14747 lt_prog_compiler_static_CXX='-Bstatic'
14749 lcc*)
14750 # Lucid
14751 lt_prog_compiler_pic_CXX='-pic'
14755 esac
14757 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14758 case $cc_basename in
14759 CC*)
14760 lt_prog_compiler_wl_CXX='-Wl,'
14761 lt_prog_compiler_pic_CXX='-KPIC'
14762 lt_prog_compiler_static_CXX='-Bstatic'
14764 esac
14766 tandem*)
14767 case $cc_basename in
14768 NCC*)
14769 # NonStop-UX NCC 3.20
14770 lt_prog_compiler_pic_CXX='-KPIC'
14774 esac
14776 vxworks*)
14779 lt_prog_compiler_can_build_shared_CXX=no
14781 esac
14784 case $host_os in
14785 # For platforms which do not support PIC, -DPIC is meaningless:
14786 *djgpp*)
14787 lt_prog_compiler_pic_CXX=
14790 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14792 esac
14793 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14794 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14799 # Check to make sure the PIC flag actually works.
14801 if test -n "$lt_prog_compiler_pic_CXX"; then
14802 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14803 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14804 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14805 $as_echo_n "(cached) " >&6
14806 else
14807 lt_cv_prog_compiler_pic_works_CXX=no
14808 ac_outfile=conftest.$ac_objext
14809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14810 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14811 # Insert the option either (1) after the last *FLAGS variable, or
14812 # (2) before a word containing "conftest.", or (3) at the end.
14813 # Note that $ac_compile itself does not contain backslashes and begins
14814 # with a dollar sign (not a hyphen), so the echo should work correctly.
14815 # The option is referenced via a variable to avoid confusing sed.
14816 lt_compile=`echo "$ac_compile" | $SED \
14817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14819 -e 's:$: $lt_compiler_flag:'`
14820 (eval echo "\"\$as_me:14820: $lt_compile\"" >&5)
14821 (eval "$lt_compile" 2>conftest.err)
14822 ac_status=$?
14823 cat conftest.err >&5
14824 echo "$as_me:14824: \$? = $ac_status" >&5
14825 if (exit $ac_status) && test -s "$ac_outfile"; then
14826 # The compiler can only warn and ignore the option if not recognized
14827 # So say no if there are warnings other than the usual output.
14828 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14831 lt_cv_prog_compiler_pic_works_CXX=yes
14834 $RM conftest*
14837 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14838 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14840 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14841 case $lt_prog_compiler_pic_CXX in
14842 "" | " "*) ;;
14843 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14844 esac
14845 else
14846 lt_prog_compiler_pic_CXX=
14847 lt_prog_compiler_can_build_shared_CXX=no
14855 # Check to make sure the static flag actually works.
14857 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14858 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14859 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14860 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14861 $as_echo_n "(cached) " >&6
14862 else
14863 lt_cv_prog_compiler_static_works_CXX=no
14864 save_LDFLAGS="$LDFLAGS"
14865 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14866 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14867 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14868 # The linker can only warn and ignore the option if not recognized
14869 # So say no if there are warnings
14870 if test -s conftest.err; then
14871 # Append any errors to the config.log.
14872 cat conftest.err 1>&5
14873 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14875 if diff conftest.exp conftest.er2 >/dev/null; then
14876 lt_cv_prog_compiler_static_works_CXX=yes
14878 else
14879 lt_cv_prog_compiler_static_works_CXX=yes
14882 $RM -r conftest*
14883 LDFLAGS="$save_LDFLAGS"
14886 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14887 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14889 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14891 else
14892 lt_prog_compiler_static_CXX=
14898 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14899 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14900 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14901 $as_echo_n "(cached) " >&6
14902 else
14903 lt_cv_prog_compiler_c_o_CXX=no
14904 $RM -r conftest 2>/dev/null
14905 mkdir conftest
14906 cd conftest
14907 mkdir out
14908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14910 lt_compiler_flag="-o out/conftest2.$ac_objext"
14911 # Insert the option either (1) after the last *FLAGS variable, or
14912 # (2) before a word containing "conftest.", or (3) at the end.
14913 # Note that $ac_compile itself does not contain backslashes and begins
14914 # with a dollar sign (not a hyphen), so the echo should work correctly.
14915 lt_compile=`echo "$ac_compile" | $SED \
14916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14918 -e 's:$: $lt_compiler_flag:'`
14919 (eval echo "\"\$as_me:14919: $lt_compile\"" >&5)
14920 (eval "$lt_compile" 2>out/conftest.err)
14921 ac_status=$?
14922 cat out/conftest.err >&5
14923 echo "$as_me:14923: \$? = $ac_status" >&5
14924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14925 then
14926 # The compiler can only warn and ignore the option if not recognized
14927 # So say no if there are warnings
14928 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14931 lt_cv_prog_compiler_c_o_CXX=yes
14934 chmod u+w . 2>&5
14935 $RM conftest*
14936 # SGI C++ compiler will create directory out/ii_files/ for
14937 # template instantiation
14938 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14939 $RM out/* && rmdir out
14940 cd ..
14941 $RM -r conftest
14942 $RM conftest*
14945 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14946 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14950 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14951 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14952 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14953 $as_echo_n "(cached) " >&6
14954 else
14955 lt_cv_prog_compiler_c_o_CXX=no
14956 $RM -r conftest 2>/dev/null
14957 mkdir conftest
14958 cd conftest
14959 mkdir out
14960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14962 lt_compiler_flag="-o out/conftest2.$ac_objext"
14963 # Insert the option either (1) after the last *FLAGS variable, or
14964 # (2) before a word containing "conftest.", or (3) at the end.
14965 # Note that $ac_compile itself does not contain backslashes and begins
14966 # with a dollar sign (not a hyphen), so the echo should work correctly.
14967 lt_compile=`echo "$ac_compile" | $SED \
14968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14970 -e 's:$: $lt_compiler_flag:'`
14971 (eval echo "\"\$as_me:14971: $lt_compile\"" >&5)
14972 (eval "$lt_compile" 2>out/conftest.err)
14973 ac_status=$?
14974 cat out/conftest.err >&5
14975 echo "$as_me:14975: \$? = $ac_status" >&5
14976 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14977 then
14978 # The compiler can only warn and ignore the option if not recognized
14979 # So say no if there are warnings
14980 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14983 lt_cv_prog_compiler_c_o_CXX=yes
14986 chmod u+w . 2>&5
14987 $RM conftest*
14988 # SGI C++ compiler will create directory out/ii_files/ for
14989 # template instantiation
14990 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14991 $RM out/* && rmdir out
14992 cd ..
14993 $RM -r conftest
14994 $RM conftest*
14997 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14998 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15003 hard_links="nottested"
15004 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15005 # do not overwrite the value of need_locks provided by the user
15006 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15007 $as_echo_n "checking if we can lock with hard links... " >&6; }
15008 hard_links=yes
15009 $RM conftest*
15010 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15011 touch conftest.a
15012 ln conftest.a conftest.b 2>&5 || hard_links=no
15013 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15014 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15015 $as_echo "$hard_links" >&6; }
15016 if test "$hard_links" = no; then
15017 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15018 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15019 need_locks=warn
15021 else
15022 need_locks=no
15027 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15028 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15030 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15031 case $host_os in
15032 aix[4-9]*)
15033 # If we're using GNU nm, then we don't want the "-C" option.
15034 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15035 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15036 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15037 else
15038 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15041 pw32*)
15042 export_symbols_cmds_CXX="$ltdll_cmds"
15044 cygwin* | mingw* | cegcc*)
15045 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15048 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15050 esac
15051 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15053 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15054 $as_echo "$ld_shlibs_CXX" >&6; }
15055 test "$ld_shlibs_CXX" = no && can_build_shared=no
15057 with_gnu_ld_CXX=$with_gnu_ld
15065 # Do we need to explicitly link libc?
15067 case "x$archive_cmds_need_lc_CXX" in
15068 x|xyes)
15069 # Assume -lc should be added
15070 archive_cmds_need_lc_CXX=yes
15072 if test "$enable_shared" = yes && test "$GCC" = yes; then
15073 case $archive_cmds_CXX in
15074 *'~'*)
15075 # FIXME: we may have to deal with multi-command sequences.
15077 '$CC '*)
15078 # Test whether the compiler implicitly links with -lc since on some
15079 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15080 # to ld, don't add -lc before -lgcc.
15081 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15082 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15083 $RM conftest*
15084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15087 (eval $ac_compile) 2>&5
15088 ac_status=$?
15089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } 2>conftest.err; then
15091 soname=conftest
15092 lib=conftest
15093 libobjs=conftest.$ac_objext
15094 deplibs=
15095 wl=$lt_prog_compiler_wl_CXX
15096 pic_flag=$lt_prog_compiler_pic_CXX
15097 compiler_flags=-v
15098 linker_flags=-v
15099 verstring=
15100 output_objdir=.
15101 libname=conftest
15102 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15103 allow_undefined_flag_CXX=
15104 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15105 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15106 ac_status=$?
15107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }
15109 then
15110 archive_cmds_need_lc_CXX=no
15111 else
15112 archive_cmds_need_lc_CXX=yes
15114 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15115 else
15116 cat conftest.err 1>&5
15118 $RM conftest*
15119 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15120 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15122 esac
15125 esac
15190 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15191 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15193 library_names_spec=
15194 libname_spec='lib$name'
15195 soname_spec=
15196 shrext_cmds=".so"
15197 postinstall_cmds=
15198 postuninstall_cmds=
15199 finish_cmds=
15200 finish_eval=
15201 shlibpath_var=
15202 shlibpath_overrides_runpath=unknown
15203 version_type=none
15204 dynamic_linker="$host_os ld.so"
15205 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15206 need_lib_prefix=unknown
15207 hardcode_into_libs=no
15209 # when you set need_version to no, make sure it does not cause -set_version
15210 # flags to be left without arguments
15211 need_version=unknown
15213 case $host_os in
15214 aix3*)
15215 version_type=linux
15216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15217 shlibpath_var=LIBPATH
15219 # AIX 3 has no versioning support, so we append a major version to the name.
15220 soname_spec='${libname}${release}${shared_ext}$major'
15223 aix[4-9]*)
15224 version_type=linux
15225 need_lib_prefix=no
15226 need_version=no
15227 hardcode_into_libs=yes
15228 if test "$host_cpu" = ia64; then
15229 # AIX 5 supports IA64
15230 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15231 shlibpath_var=LD_LIBRARY_PATH
15232 else
15233 # With GCC up to 2.95.x, collect2 would create an import file
15234 # for dependence libraries. The import file would start with
15235 # the line `#! .'. This would cause the generated library to
15236 # depend on `.', always an invalid library. This was fixed in
15237 # development snapshots of GCC prior to 3.0.
15238 case $host_os in
15239 aix4 | aix4.[01] | aix4.[01].*)
15240 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15241 echo ' yes '
15242 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15244 else
15245 can_build_shared=no
15248 esac
15249 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15250 # soname into executable. Probably we can add versioning support to
15251 # collect2, so additional links can be useful in future.
15252 if test "$aix_use_runtimelinking" = yes; then
15253 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15254 # instead of lib<name>.a to let people know that these are not
15255 # typical AIX shared libraries.
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257 else
15258 # We preserve .a as extension for shared libraries through AIX4.2
15259 # and later when we are not doing run time linking.
15260 library_names_spec='${libname}${release}.a $libname.a'
15261 soname_spec='${libname}${release}${shared_ext}$major'
15263 shlibpath_var=LIBPATH
15267 amigaos*)
15268 case $host_cpu in
15269 powerpc)
15270 # Since July 2007 AmigaOS4 officially supports .so libraries.
15271 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 m68k)
15275 library_names_spec='$libname.ixlibrary $libname.a'
15276 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15277 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'
15279 esac
15282 beos*)
15283 library_names_spec='${libname}${shared_ext}'
15284 dynamic_linker="$host_os ld.so"
15285 shlibpath_var=LIBRARY_PATH
15288 bsdi[45]*)
15289 version_type=linux
15290 need_version=no
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15296 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15297 # the default ld.so.conf also contains /usr/contrib/lib and
15298 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15299 # libtool to hard-code these into programs
15302 cygwin* | mingw* | pw32* | cegcc*)
15303 version_type=windows
15304 shrext_cmds=".dll"
15305 need_version=no
15306 need_lib_prefix=no
15308 case $GCC,$host_os in
15309 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15310 library_names_spec='$libname.dll.a'
15311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15312 postinstall_cmds='base_file=`basename \${file}`~
15313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15314 dldir=$destdir/`dirname \$dlpath`~
15315 test -d \$dldir || mkdir -p \$dldir~
15316 $install_prog $dir/$dlname \$dldir/$dlname~
15317 chmod a+x \$dldir/$dlname~
15318 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15319 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15321 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15322 dlpath=$dir/\$dldll~
15323 $RM \$dlpath'
15324 shlibpath_overrides_runpath=yes
15326 case $host_os in
15327 cygwin*)
15328 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15329 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15332 mingw* | cegcc*)
15333 # MinGW DLLs use traditional 'lib' prefix
15334 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15335 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15336 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15337 # It is most probably a Windows format PATH printed by
15338 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15339 # path with ; separators, and with drive letters. We can handle the
15340 # drive letters (cygwin fileutils understands them), so leave them,
15341 # especially as we might pass files found there to a mingw objdump,
15342 # which wouldn't understand a cygwinified path. Ahh.
15343 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15344 else
15345 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15348 pw32*)
15349 # pw32 DLLs use 'pw' prefix rather than 'lib'
15350 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15352 esac
15356 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15358 esac
15359 dynamic_linker='Win32 ld.exe'
15360 # FIXME: first we should search . and the directory the executable is in
15361 shlibpath_var=PATH
15364 darwin* | rhapsody*)
15365 dynamic_linker="$host_os dyld"
15366 version_type=darwin
15367 need_lib_prefix=no
15368 need_version=no
15369 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15370 soname_spec='${libname}${release}${major}$shared_ext'
15371 shlibpath_overrides_runpath=yes
15372 shlibpath_var=DYLD_LIBRARY_PATH
15373 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15375 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15378 dgux*)
15379 version_type=linux
15380 need_lib_prefix=no
15381 need_version=no
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 shlibpath_var=LD_LIBRARY_PATH
15387 freebsd1*)
15388 dynamic_linker=no
15391 freebsd* | dragonfly*)
15392 # DragonFly does not have aout. When/if they implement a new
15393 # versioning mechanism, adjust this.
15394 if test -x /usr/bin/objformat; then
15395 objformat=`/usr/bin/objformat`
15396 else
15397 case $host_os in
15398 freebsd[123]*) objformat=aout ;;
15399 *) objformat=elf ;;
15400 esac
15402 version_type=freebsd-$objformat
15403 case $version_type in
15404 freebsd-elf*)
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15406 need_version=no
15407 need_lib_prefix=no
15409 freebsd-*)
15410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15411 need_version=yes
15413 esac
15414 shlibpath_var=LD_LIBRARY_PATH
15415 case $host_os in
15416 freebsd2*)
15417 shlibpath_overrides_runpath=yes
15419 freebsd3.[01]* | freebsdelf3.[01]*)
15420 shlibpath_overrides_runpath=yes
15421 hardcode_into_libs=yes
15423 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15424 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15425 shlibpath_overrides_runpath=no
15426 hardcode_into_libs=yes
15428 *) # from 4.6 on, and DragonFly
15429 shlibpath_overrides_runpath=yes
15430 hardcode_into_libs=yes
15432 esac
15435 gnu*)
15436 version_type=linux
15437 need_lib_prefix=no
15438 need_version=no
15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15440 soname_spec='${libname}${release}${shared_ext}$major'
15441 shlibpath_var=LD_LIBRARY_PATH
15442 hardcode_into_libs=yes
15445 hpux9* | hpux10* | hpux11*)
15446 # Give a soname corresponding to the major version so that dld.sl refuses to
15447 # link against other versions.
15448 version_type=sunos
15449 need_lib_prefix=no
15450 need_version=no
15451 case $host_cpu in
15452 ia64*)
15453 shrext_cmds='.so'
15454 hardcode_into_libs=yes
15455 dynamic_linker="$host_os dld.so"
15456 shlibpath_var=LD_LIBRARY_PATH
15457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 if test "X$HPUX_IA64_MODE" = X32; then
15461 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15462 else
15463 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15467 hppa*64*)
15468 shrext_cmds='.sl'
15469 hardcode_into_libs=yes
15470 dynamic_linker="$host_os dld.sl"
15471 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474 soname_spec='${libname}${release}${shared_ext}$major'
15475 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15479 shrext_cmds='.sl'
15480 dynamic_linker="$host_os dld.sl"
15481 shlibpath_var=SHLIB_PATH
15482 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15486 esac
15487 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15488 postinstall_cmds='chmod 555 $lib'
15491 interix[3-9]*)
15492 version_type=linux
15493 need_lib_prefix=no
15494 need_version=no
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15496 soname_spec='${libname}${release}${shared_ext}$major'
15497 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15498 shlibpath_var=LD_LIBRARY_PATH
15499 shlibpath_overrides_runpath=no
15500 hardcode_into_libs=yes
15503 irix5* | irix6* | nonstopux*)
15504 case $host_os in
15505 nonstopux*) version_type=nonstopux ;;
15507 if test "$lt_cv_prog_gnu_ld" = yes; then
15508 version_type=linux
15509 else
15510 version_type=irix
15511 fi ;;
15512 esac
15513 need_lib_prefix=no
15514 need_version=no
15515 soname_spec='${libname}${release}${shared_ext}$major'
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15517 case $host_os in
15518 irix5* | nonstopux*)
15519 libsuff= shlibsuff=
15522 case $LD in # libtool.m4 will add one of these switches to LD
15523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15524 libsuff= shlibsuff= libmagic=32-bit;;
15525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15526 libsuff=32 shlibsuff=N32 libmagic=N32;;
15527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15528 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15529 *) libsuff= shlibsuff= libmagic=never-match;;
15530 esac
15532 esac
15533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15534 shlibpath_overrides_runpath=no
15535 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15536 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15537 hardcode_into_libs=yes
15540 # No shared lib support for Linux oldld, aout, or coff.
15541 linux*oldld* | linux*aout* | linux*coff*)
15542 dynamic_linker=no
15545 # This must be Linux ELF.
15546 linux* | k*bsd*-gnu)
15547 version_type=linux
15548 need_lib_prefix=no
15549 need_version=no
15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15551 soname_spec='${libname}${release}${shared_ext}$major'
15552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15553 shlibpath_var=LD_LIBRARY_PATH
15554 shlibpath_overrides_runpath=no
15555 # Some binutils ld are patched to set DT_RUNPATH
15556 save_LDFLAGS=$LDFLAGS
15557 save_libdir=$libdir
15558 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15559 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15560 cat >conftest.$ac_ext <<_ACEOF
15561 /* confdefs.h. */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15568 main ()
15572 return 0;
15574 _ACEOF
15575 rm -f conftest.$ac_objext conftest$ac_exeext
15576 if { (ac_try="$ac_link"
15577 case "(($ac_try" in
15578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579 *) ac_try_echo=$ac_try;;
15580 esac
15581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15582 $as_echo "$ac_try_echo") >&5
15583 (eval "$ac_link") 2>conftest.er1
15584 ac_status=$?
15585 grep -v '^ *+' conftest.er1 >conftest.err
15586 rm -f conftest.er1
15587 cat conftest.err >&5
15588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } && {
15590 test -z "$ac_cxx_werror_flag" ||
15591 test ! -s conftest.err
15592 } && test -s conftest$ac_exeext && {
15593 test "$cross_compiling" = yes ||
15594 $as_test_x conftest$ac_exeext
15595 }; then
15596 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15597 shlibpath_overrides_runpath=yes
15600 else
15601 $as_echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15607 rm -rf conftest.dSYM
15608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15609 conftest$ac_exeext conftest.$ac_ext
15610 LDFLAGS=$save_LDFLAGS
15611 libdir=$save_libdir
15613 # This implies no fast_install, which is unacceptable.
15614 # Some rework will be needed to allow for fast_install
15615 # before this can be enabled.
15616 hardcode_into_libs=yes
15618 # Add ABI-specific directories to the system library path.
15619 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15621 # Append ld.so.conf contents to the search path
15622 if test -f /etc/ld.so.conf; then
15623 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15624 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15627 # We used to test for /lib/ld.so.1 and disable shared libraries on
15628 # powerpc, because MkLinux only supported shared libraries with the
15629 # GNU dynamic linker. Since this was broken with cross compilers,
15630 # most powerpc-linux boxes support dynamic linking these days and
15631 # people can always --disable-shared, the test was removed, and we
15632 # assume the GNU/Linux dynamic linker is in use.
15633 dynamic_linker='GNU/Linux ld.so'
15636 netbsd*)
15637 version_type=sunos
15638 need_lib_prefix=no
15639 need_version=no
15640 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15643 dynamic_linker='NetBSD (a.out) ld.so'
15644 else
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15646 soname_spec='${libname}${release}${shared_ext}$major'
15647 dynamic_linker='NetBSD ld.elf_so'
15649 shlibpath_var=LD_LIBRARY_PATH
15650 shlibpath_overrides_runpath=yes
15651 hardcode_into_libs=yes
15654 newsos6)
15655 version_type=linux
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657 shlibpath_var=LD_LIBRARY_PATH
15658 shlibpath_overrides_runpath=yes
15661 *nto* | *qnx*)
15662 version_type=qnx
15663 need_lib_prefix=no
15664 need_version=no
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666 soname_spec='${libname}${release}${shared_ext}$major'
15667 shlibpath_var=LD_LIBRARY_PATH
15668 shlibpath_overrides_runpath=no
15669 hardcode_into_libs=yes
15670 dynamic_linker='ldqnx.so'
15673 openbsd*)
15674 version_type=sunos
15675 sys_lib_dlsearch_path_spec="/usr/lib"
15676 need_lib_prefix=no
15677 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15678 case $host_os in
15679 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15680 *) need_version=no ;;
15681 esac
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15686 case $host_os in
15687 openbsd2.[89] | openbsd2.[89].*)
15688 shlibpath_overrides_runpath=no
15691 shlibpath_overrides_runpath=yes
15693 esac
15694 else
15695 shlibpath_overrides_runpath=yes
15699 os2*)
15700 libname_spec='$name'
15701 shrext_cmds=".dll"
15702 need_lib_prefix=no
15703 library_names_spec='$libname${shared_ext} $libname.a'
15704 dynamic_linker='OS/2 ld.exe'
15705 shlibpath_var=LIBPATH
15708 osf3* | osf4* | osf5*)
15709 version_type=osf
15710 need_lib_prefix=no
15711 need_version=no
15712 soname_spec='${libname}${release}${shared_ext}$major'
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15716 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15719 rdos*)
15720 dynamic_linker=no
15723 solaris*)
15724 version_type=linux
15725 need_lib_prefix=no
15726 need_version=no
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 soname_spec='${libname}${release}${shared_ext}$major'
15729 shlibpath_var=LD_LIBRARY_PATH
15730 shlibpath_overrides_runpath=yes
15731 hardcode_into_libs=yes
15732 # ldd complains unless libraries are executable
15733 postinstall_cmds='chmod +x $lib'
15736 sunos4*)
15737 version_type=sunos
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15739 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15740 shlibpath_var=LD_LIBRARY_PATH
15741 shlibpath_overrides_runpath=yes
15742 if test "$with_gnu_ld" = yes; then
15743 need_lib_prefix=no
15745 need_version=yes
15748 sysv4 | sysv4.3*)
15749 version_type=linux
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751 soname_spec='${libname}${release}${shared_ext}$major'
15752 shlibpath_var=LD_LIBRARY_PATH
15753 case $host_vendor in
15754 sni)
15755 shlibpath_overrides_runpath=no
15756 need_lib_prefix=no
15757 runpath_var=LD_RUN_PATH
15759 siemens)
15760 need_lib_prefix=no
15762 motorola)
15763 need_lib_prefix=no
15764 need_version=no
15765 shlibpath_overrides_runpath=no
15766 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15768 esac
15771 sysv4*MP*)
15772 if test -d /usr/nec ;then
15773 version_type=linux
15774 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15775 soname_spec='$libname${shared_ext}.$major'
15776 shlibpath_var=LD_LIBRARY_PATH
15780 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15781 version_type=freebsd-elf
15782 need_lib_prefix=no
15783 need_version=no
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15785 soname_spec='${libname}${release}${shared_ext}$major'
15786 shlibpath_var=LD_LIBRARY_PATH
15787 shlibpath_overrides_runpath=yes
15788 hardcode_into_libs=yes
15789 if test "$with_gnu_ld" = yes; then
15790 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15791 else
15792 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15793 case $host_os in
15794 sco3.2v5*)
15795 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15797 esac
15799 sys_lib_dlsearch_path_spec='/usr/lib'
15802 tpf*)
15803 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15804 version_type=linux
15805 need_lib_prefix=no
15806 need_version=no
15807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15808 shlibpath_var=LD_LIBRARY_PATH
15809 shlibpath_overrides_runpath=no
15810 hardcode_into_libs=yes
15813 uts4*)
15814 version_type=linux
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15816 soname_spec='${libname}${release}${shared_ext}$major'
15817 shlibpath_var=LD_LIBRARY_PATH
15821 dynamic_linker=no
15823 esac
15824 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15825 $as_echo "$dynamic_linker" >&6; }
15826 test "$dynamic_linker" = no && can_build_shared=no
15828 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15829 if test "$GCC" = yes; then
15830 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15833 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15834 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15836 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15837 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15875 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15876 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15877 hardcode_action_CXX=
15878 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15879 test -n "$runpath_var_CXX" ||
15880 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15882 # We can hardcode non-existent directories.
15883 if test "$hardcode_direct_CXX" != no &&
15884 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15885 # have to relink, otherwise we might link with an installed library
15886 # when we should be linking with a yet-to-be-installed one
15887 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15888 test "$hardcode_minus_L_CXX" != no; then
15889 # Linking always hardcodes the temporary library directory.
15890 hardcode_action_CXX=relink
15891 else
15892 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15893 hardcode_action_CXX=immediate
15895 else
15896 # We cannot hardcode anything, or else we can only hardcode existing
15897 # directories.
15898 hardcode_action_CXX=unsupported
15900 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15901 $as_echo "$hardcode_action_CXX" >&6; }
15903 if test "$hardcode_action_CXX" = relink ||
15904 test "$inherit_rpath_CXX" = yes; then
15905 # Fast installation is not supported
15906 enable_fast_install=no
15907 elif test "$shlibpath_overrides_runpath" = yes ||
15908 test "$enable_shared" = no; then
15909 # Fast installation is not necessary
15910 enable_fast_install=needless
15919 fi # test -n "$compiler"
15921 CC=$lt_save_CC
15922 LDCXX=$LD
15923 LD=$lt_save_LD
15924 GCC=$lt_save_GCC
15925 with_gnu_ld=$lt_save_with_gnu_ld
15926 lt_cv_path_LDCXX=$lt_cv_path_LD
15927 lt_cv_path_LD=$lt_save_path_LD
15928 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15929 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15930 fi # test "$_lt_caught_CXX_error" != yes
15932 ac_ext=c
15933 ac_cpp='$CPP $CPPFLAGS'
15934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15950 ac_config_commands="$ac_config_commands libtool"
15955 # Only expand once:
15958 cat >confcache <<\_ACEOF
15959 # This file is a shell script that caches the results of configure
15960 # tests run on this system so they can be shared between configure
15961 # scripts and configure runs, see configure's option --config-cache.
15962 # It is not useful on other systems. If it contains results you don't
15963 # want to keep, you may remove or edit it.
15965 # config.status only pays attention to the cache file if you give it
15966 # the --recheck option to rerun configure.
15968 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15969 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15970 # following values.
15972 _ACEOF
15974 # The following way of writing the cache mishandles newlines in values,
15975 # but we know of no workaround that is simple, portable, and efficient.
15976 # So, we kill variables containing newlines.
15977 # Ultrix sh set writes to stderr and can't be redirected directly,
15978 # and sets the high bit in the cache file unless we assign to the vars.
15980 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15981 eval ac_val=\$$ac_var
15982 case $ac_val in #(
15983 *${as_nl}*)
15984 case $ac_var in #(
15985 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15986 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15987 esac
15988 case $ac_var in #(
15989 _ | IFS | as_nl) ;; #(
15990 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15991 *) $as_unset $ac_var ;;
15992 esac ;;
15993 esac
15994 done
15996 (set) 2>&1 |
15997 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15998 *${as_nl}ac_space=\ *)
15999 # `set' does not quote correctly, so add quotes (double-quote
16000 # substitution turns \\\\ into \\, and sed turns \\ into \).
16001 sed -n \
16002 "s/'/'\\\\''/g;
16003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16004 ;; #(
16006 # `set' quotes correctly as required by POSIX, so do not add quotes.
16007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16009 esac |
16010 sort
16012 sed '
16013 /^ac_cv_env_/b end
16014 t clear
16015 :clear
16016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16017 t end
16018 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16019 :end' >>confcache
16020 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16021 if test -w "$cache_file"; then
16022 test "x$cache_file" != "x/dev/null" &&
16023 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16024 $as_echo "$as_me: updating cache $cache_file" >&6;}
16025 cat confcache >$cache_file
16026 else
16027 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16028 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16031 rm -f confcache
16033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16034 # Let make expand exec_prefix.
16035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16037 DEFS=-DHAVE_CONFIG_H
16039 ac_libobjs=
16040 ac_ltlibobjs=
16041 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16042 # 1. Remove the extension, and $U if already installed.
16043 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16044 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16045 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16046 # will be set to the directory where LIBOBJS objects are built.
16047 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16048 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16049 done
16050 LIBOBJS=$ac_libobjs
16052 LTLIBOBJS=$ac_ltlibobjs
16055 if test -n "$EXEEXT"; then
16056 am__EXEEXT_TRUE=
16057 am__EXEEXT_FALSE='#'
16058 else
16059 am__EXEEXT_TRUE='#'
16060 am__EXEEXT_FALSE=
16063 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16064 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16065 Usually this means the macro was only invoked conditionally." >&5
16066 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
16067 Usually this means the macro was only invoked conditionally." >&2;}
16068 { (exit 1); exit 1; }; }
16070 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16071 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16072 Usually this means the macro was only invoked conditionally." >&5
16073 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16074 Usually this means the macro was only invoked conditionally." >&2;}
16075 { (exit 1); exit 1; }; }
16077 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16078 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16079 Usually this means the macro was only invoked conditionally." >&5
16080 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16081 Usually this means the macro was only invoked conditionally." >&2;}
16082 { (exit 1); exit 1; }; }
16084 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16085 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16086 Usually this means the macro was only invoked conditionally." >&5
16087 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16088 Usually this means the macro was only invoked conditionally." >&2;}
16089 { (exit 1); exit 1; }; }
16092 : ${CONFIG_STATUS=./config.status}
16093 ac_write_fail=0
16094 ac_clean_files_save=$ac_clean_files
16095 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16096 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16097 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16098 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16099 #! $SHELL
16100 # Generated by $as_me.
16101 # Run this file to recreate the current configuration.
16102 # Compiler output produced by configure, useful for debugging
16103 # configure, is in config.log if it exists.
16105 debug=false
16106 ac_cs_recheck=false
16107 ac_cs_silent=false
16108 SHELL=\${CONFIG_SHELL-$SHELL}
16109 _ACEOF
16111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16112 ## --------------------- ##
16113 ## M4sh Initialization. ##
16114 ## --------------------- ##
16116 # Be more Bourne compatible
16117 DUALCASE=1; export DUALCASE # for MKS sh
16118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16119 emulate sh
16120 NULLCMD=:
16121 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16122 # is contrary to our usage. Disable this feature.
16123 alias -g '${1+"$@"}'='"$@"'
16124 setopt NO_GLOB_SUBST
16125 else
16126 case `(set -o) 2>/dev/null` in
16127 *posix*) set -o posix ;;
16128 esac
16135 # PATH needs CR
16136 # Avoid depending upon Character Ranges.
16137 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16138 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16139 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16140 as_cr_digits='0123456789'
16141 as_cr_alnum=$as_cr_Letters$as_cr_digits
16143 as_nl='
16145 export as_nl
16146 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16147 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16148 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16149 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16150 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16151 as_echo='printf %s\n'
16152 as_echo_n='printf %s'
16153 else
16154 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16155 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16156 as_echo_n='/usr/ucb/echo -n'
16157 else
16158 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16159 as_echo_n_body='eval
16160 arg=$1;
16161 case $arg in
16162 *"$as_nl"*)
16163 expr "X$arg" : "X\\(.*\\)$as_nl";
16164 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16165 esac;
16166 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16168 export as_echo_n_body
16169 as_echo_n='sh -c $as_echo_n_body as_echo'
16171 export as_echo_body
16172 as_echo='sh -c $as_echo_body as_echo'
16175 # The user is always right.
16176 if test "${PATH_SEPARATOR+set}" != set; then
16177 PATH_SEPARATOR=:
16178 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16179 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16180 PATH_SEPARATOR=';'
16184 # Support unset when possible.
16185 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16186 as_unset=unset
16187 else
16188 as_unset=false
16192 # IFS
16193 # We need space, tab and new line, in precisely that order. Quoting is
16194 # there to prevent editors from complaining about space-tab.
16195 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16196 # splitting by setting IFS to empty value.)
16197 IFS=" "" $as_nl"
16199 # Find who we are. Look in the path if we contain no directory separator.
16200 case $0 in
16201 *[\\/]* ) as_myself=$0 ;;
16202 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16203 for as_dir in $PATH
16205 IFS=$as_save_IFS
16206 test -z "$as_dir" && as_dir=.
16207 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16208 done
16209 IFS=$as_save_IFS
16212 esac
16213 # We did not find ourselves, most probably we were run as `sh COMMAND'
16214 # in which case we are not to be found in the path.
16215 if test "x$as_myself" = x; then
16216 as_myself=$0
16218 if test ! -f "$as_myself"; then
16219 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16220 { (exit 1); exit 1; }
16223 # Work around bugs in pre-3.0 UWIN ksh.
16224 for as_var in ENV MAIL MAILPATH
16225 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16226 done
16227 PS1='$ '
16228 PS2='> '
16229 PS4='+ '
16231 # NLS nuisances.
16232 LC_ALL=C
16233 export LC_ALL
16234 LANGUAGE=C
16235 export LANGUAGE
16237 # Required to use basename.
16238 if expr a : '\(a\)' >/dev/null 2>&1 &&
16239 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16240 as_expr=expr
16241 else
16242 as_expr=false
16245 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16246 as_basename=basename
16247 else
16248 as_basename=false
16252 # Name of the executable.
16253 as_me=`$as_basename -- "$0" ||
16254 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16255 X"$0" : 'X\(//\)$' \| \
16256 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16257 $as_echo X/"$0" |
16258 sed '/^.*\/\([^/][^/]*\)\/*$/{
16259 s//\1/
16262 /^X\/\(\/\/\)$/{
16263 s//\1/
16266 /^X\/\(\/\).*/{
16267 s//\1/
16270 s/.*/./; q'`
16272 # CDPATH.
16273 $as_unset CDPATH
16277 as_lineno_1=$LINENO
16278 as_lineno_2=$LINENO
16279 test "x$as_lineno_1" != "x$as_lineno_2" &&
16280 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16282 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16283 # uniformly replaced by the line number. The first 'sed' inserts a
16284 # line-number line after each line using $LINENO; the second 'sed'
16285 # does the real work. The second script uses 'N' to pair each
16286 # line-number line with the line containing $LINENO, and appends
16287 # trailing '-' during substitution so that $LINENO is not a special
16288 # case at line end.
16289 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16290 # scripts with optimization help from Paolo Bonzini. Blame Lee
16291 # E. McMahon (1931-1989) for sed's syntax. :-)
16292 sed -n '
16294 /[$]LINENO/=
16295 ' <$as_myself |
16296 sed '
16297 s/[$]LINENO.*/&-/
16298 t lineno
16300 :lineno
16302 :loop
16303 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16304 t loop
16305 s/-\n.*//
16306 ' >$as_me.lineno &&
16307 chmod +x "$as_me.lineno" ||
16308 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16309 { (exit 1); exit 1; }; }
16311 # Don't try to exec as it changes $[0], causing all sort of problems
16312 # (the dirname of $[0] is not the place where we might find the
16313 # original and so on. Autoconf is especially sensitive to this).
16314 . "./$as_me.lineno"
16315 # Exit status is that of the last command.
16316 exit
16320 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16321 as_dirname=dirname
16322 else
16323 as_dirname=false
16326 ECHO_C= ECHO_N= ECHO_T=
16327 case `echo -n x` in
16328 -n*)
16329 case `echo 'x\c'` in
16330 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16331 *) ECHO_C='\c';;
16332 esac;;
16334 ECHO_N='-n';;
16335 esac
16336 if expr a : '\(a\)' >/dev/null 2>&1 &&
16337 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16338 as_expr=expr
16339 else
16340 as_expr=false
16343 rm -f conf$$ conf$$.exe conf$$.file
16344 if test -d conf$$.dir; then
16345 rm -f conf$$.dir/conf$$.file
16346 else
16347 rm -f conf$$.dir
16348 mkdir conf$$.dir 2>/dev/null
16350 if (echo >conf$$.file) 2>/dev/null; then
16351 if ln -s conf$$.file conf$$ 2>/dev/null; then
16352 as_ln_s='ln -s'
16353 # ... but there are two gotchas:
16354 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16355 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16356 # In both cases, we have to default to `cp -p'.
16357 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16358 as_ln_s='cp -p'
16359 elif ln conf$$.file conf$$ 2>/dev/null; then
16360 as_ln_s=ln
16361 else
16362 as_ln_s='cp -p'
16364 else
16365 as_ln_s='cp -p'
16367 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16368 rmdir conf$$.dir 2>/dev/null
16370 if mkdir -p . 2>/dev/null; then
16371 as_mkdir_p=:
16372 else
16373 test -d ./-p && rmdir ./-p
16374 as_mkdir_p=false
16377 if test -x / >/dev/null 2>&1; then
16378 as_test_x='test -x'
16379 else
16380 if ls -dL / >/dev/null 2>&1; then
16381 as_ls_L_option=L
16382 else
16383 as_ls_L_option=
16385 as_test_x='
16386 eval sh -c '\''
16387 if test -d "$1"; then
16388 test -d "$1/.";
16389 else
16390 case $1 in
16391 -*)set "./$1";;
16392 esac;
16393 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16394 ???[sx]*):;;*)false;;esac;fi
16395 '\'' sh
16398 as_executable_p=$as_test_x
16400 # Sed expression to map a string onto a valid CPP name.
16401 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16403 # Sed expression to map a string onto a valid variable name.
16404 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16407 exec 6>&1
16409 # Save the log message, to keep $[0] and so on meaningful, and to
16410 # report actual input values of CONFIG_FILES etc. instead of their
16411 # values after options handling.
16412 ac_log="
16413 This file was extended by jellyfish $as_me 1.1.4, which was
16414 generated by GNU Autoconf 2.63. Invocation command line was
16416 CONFIG_FILES = $CONFIG_FILES
16417 CONFIG_HEADERS = $CONFIG_HEADERS
16418 CONFIG_LINKS = $CONFIG_LINKS
16419 CONFIG_COMMANDS = $CONFIG_COMMANDS
16420 $ $0 $@
16422 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16425 _ACEOF
16427 case $ac_config_files in *"
16428 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16429 esac
16431 case $ac_config_headers in *"
16432 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16433 esac
16436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16437 # Files that config.status was made for.
16438 config_files="$ac_config_files"
16439 config_headers="$ac_config_headers"
16440 config_commands="$ac_config_commands"
16442 _ACEOF
16444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16445 ac_cs_usage="\
16446 \`$as_me' instantiates files from templates according to the
16447 current configuration.
16449 Usage: $0 [OPTION]... [FILE]...
16451 -h, --help print this help, then exit
16452 -V, --version print version number and configuration settings, then exit
16453 -q, --quiet, --silent
16454 do not print progress messages
16455 -d, --debug don't remove temporary files
16456 --recheck update $as_me by reconfiguring in the same conditions
16457 --file=FILE[:TEMPLATE]
16458 instantiate the configuration file FILE
16459 --header=FILE[:TEMPLATE]
16460 instantiate the configuration header FILE
16462 Configuration files:
16463 $config_files
16465 Configuration headers:
16466 $config_headers
16468 Configuration commands:
16469 $config_commands
16471 Report bugs to <bug-autoconf@gnu.org>."
16473 _ACEOF
16474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16475 ac_cs_version="\\
16476 jellyfish config.status 1.1.4
16477 configured by $0, generated by GNU Autoconf 2.63,
16478 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16480 Copyright (C) 2008 Free Software Foundation, Inc.
16481 This config.status script is free software; the Free Software Foundation
16482 gives unlimited permission to copy, distribute and modify it."
16484 ac_pwd='$ac_pwd'
16485 srcdir='$srcdir'
16486 INSTALL='$INSTALL'
16487 MKDIR_P='$MKDIR_P'
16488 AWK='$AWK'
16489 test -n "\$AWK" || AWK=awk
16490 _ACEOF
16492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16493 # The default lists apply if the user does not specify any file.
16494 ac_need_defaults=:
16495 while test $# != 0
16497 case $1 in
16498 --*=*)
16499 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16500 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16501 ac_shift=:
16504 ac_option=$1
16505 ac_optarg=$2
16506 ac_shift=shift
16508 esac
16510 case $ac_option in
16511 # Handling of the options.
16512 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16513 ac_cs_recheck=: ;;
16514 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16515 $as_echo "$ac_cs_version"; exit ;;
16516 --debug | --debu | --deb | --de | --d | -d )
16517 debug=: ;;
16518 --file | --fil | --fi | --f )
16519 $ac_shift
16520 case $ac_optarg in
16521 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16522 esac
16523 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16524 ac_need_defaults=false;;
16525 --header | --heade | --head | --hea )
16526 $ac_shift
16527 case $ac_optarg in
16528 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16529 esac
16530 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16531 ac_need_defaults=false;;
16532 --he | --h)
16533 # Conflict between --help and --header
16534 { $as_echo "$as_me: error: ambiguous option: $1
16535 Try \`$0 --help' for more information." >&2
16536 { (exit 1); exit 1; }; };;
16537 --help | --hel | -h )
16538 $as_echo "$ac_cs_usage"; exit ;;
16539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16540 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16541 ac_cs_silent=: ;;
16543 # This is an error.
16544 -*) { $as_echo "$as_me: error: unrecognized option: $1
16545 Try \`$0 --help' for more information." >&2
16546 { (exit 1); exit 1; }; } ;;
16548 *) ac_config_targets="$ac_config_targets $1"
16549 ac_need_defaults=false ;;
16551 esac
16552 shift
16553 done
16555 ac_configure_extra_args=
16557 if $ac_cs_silent; then
16558 exec 6>/dev/null
16559 ac_configure_extra_args="$ac_configure_extra_args --silent"
16562 _ACEOF
16563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16564 if \$ac_cs_recheck; then
16565 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16566 shift
16567 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16568 CONFIG_SHELL='$SHELL'
16569 export CONFIG_SHELL
16570 exec "\$@"
16573 _ACEOF
16574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16575 exec 5>>config.log
16577 echo
16578 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16579 ## Running $as_me. ##
16580 _ASBOX
16581 $as_echo "$ac_log"
16582 } >&5
16584 _ACEOF
16585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16587 # INIT-COMMANDS
16589 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16592 # The HP-UX ksh and POSIX shell print the target directory to stdout
16593 # if CDPATH is set.
16594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16596 sed_quote_subst='$sed_quote_subst'
16597 double_quote_subst='$double_quote_subst'
16598 delay_variable_subst='$delay_variable_subst'
16599 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16600 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16601 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16602 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16603 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16604 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16605 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16606 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16607 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16608 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16609 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16610 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16611 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16612 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16613 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16614 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16615 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16616 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16617 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16618 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16619 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16620 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16621 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16622 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16623 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16624 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16625 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16626 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16627 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16628 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16629 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16630 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16631 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16632 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16633 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16634 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16635 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16636 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16637 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16638 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16639 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16640 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16641 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16642 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16643 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16644 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16645 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16646 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16647 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16648 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16649 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16650 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16651 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16652 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16653 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16654 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16655 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16656 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16657 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16658 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16659 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16660 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16661 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16662 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16663 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16664 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16665 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16666 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16667 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16668 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16669 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16670 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16671 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16672 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16673 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16674 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16675 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16676 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16677 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16678 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16679 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16680 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16681 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16682 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16683 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16684 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16685 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16686 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16687 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16688 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16689 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16690 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16691 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16692 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16693 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16694 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16695 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16696 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16697 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16698 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16699 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16700 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16701 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16702 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16703 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16704 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16705 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16706 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16707 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16708 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16709 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16710 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16711 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16712 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16713 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16714 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16715 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16716 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16717 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16718 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16719 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16720 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16721 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16722 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16723 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16724 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16725 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16726 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16727 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16728 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16729 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16730 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16731 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16732 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16733 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16734 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16735 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16736 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16737 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16738 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16739 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16740 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16741 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16742 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16743 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16744 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16745 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16746 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16747 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16748 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16749 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16750 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16751 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16752 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16753 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16754 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16755 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16756 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16757 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16758 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16759 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16760 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16761 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16762 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16763 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16764 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16765 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16766 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16767 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16768 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16769 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16771 LTCC='$LTCC'
16772 LTCFLAGS='$LTCFLAGS'
16773 compiler='$compiler_DEFAULT'
16775 # Quote evaled strings.
16776 for var in SED \
16777 GREP \
16778 EGREP \
16779 FGREP \
16780 LD \
16781 NM \
16782 LN_S \
16783 lt_SP2NL \
16784 lt_NL2SP \
16785 reload_flag \
16786 OBJDUMP \
16787 deplibs_check_method \
16788 file_magic_cmd \
16789 AR \
16790 AR_FLAGS \
16791 STRIP \
16792 RANLIB \
16793 CC \
16794 CFLAGS \
16795 compiler \
16796 lt_cv_sys_global_symbol_pipe \
16797 lt_cv_sys_global_symbol_to_cdecl \
16798 lt_cv_sys_global_symbol_to_c_name_address \
16799 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16800 SHELL \
16801 ECHO \
16802 lt_prog_compiler_no_builtin_flag \
16803 lt_prog_compiler_wl \
16804 lt_prog_compiler_pic \
16805 lt_prog_compiler_static \
16806 lt_cv_prog_compiler_c_o \
16807 need_locks \
16808 DSYMUTIL \
16809 NMEDIT \
16810 LIPO \
16811 OTOOL \
16812 OTOOL64 \
16813 shrext_cmds \
16814 export_dynamic_flag_spec \
16815 whole_archive_flag_spec \
16816 compiler_needs_object \
16817 with_gnu_ld \
16818 allow_undefined_flag \
16819 no_undefined_flag \
16820 hardcode_libdir_flag_spec \
16821 hardcode_libdir_flag_spec_ld \
16822 hardcode_libdir_separator \
16823 fix_srcfile_path \
16824 exclude_expsyms \
16825 include_expsyms \
16826 file_list_spec \
16827 variables_saved_for_relink \
16828 libname_spec \
16829 library_names_spec \
16830 soname_spec \
16831 finish_eval \
16832 old_striplib \
16833 striplib \
16834 compiler_lib_search_dirs \
16835 predep_objects \
16836 postdep_objects \
16837 predeps \
16838 postdeps \
16839 compiler_lib_search_path \
16840 LD_CXX \
16841 compiler_CXX \
16842 lt_prog_compiler_no_builtin_flag_CXX \
16843 lt_prog_compiler_wl_CXX \
16844 lt_prog_compiler_pic_CXX \
16845 lt_prog_compiler_static_CXX \
16846 lt_cv_prog_compiler_c_o_CXX \
16847 export_dynamic_flag_spec_CXX \
16848 whole_archive_flag_spec_CXX \
16849 compiler_needs_object_CXX \
16850 with_gnu_ld_CXX \
16851 allow_undefined_flag_CXX \
16852 no_undefined_flag_CXX \
16853 hardcode_libdir_flag_spec_CXX \
16854 hardcode_libdir_flag_spec_ld_CXX \
16855 hardcode_libdir_separator_CXX \
16856 fix_srcfile_path_CXX \
16857 exclude_expsyms_CXX \
16858 include_expsyms_CXX \
16859 file_list_spec_CXX \
16860 compiler_lib_search_dirs_CXX \
16861 predep_objects_CXX \
16862 postdep_objects_CXX \
16863 predeps_CXX \
16864 postdeps_CXX \
16865 compiler_lib_search_path_CXX; do
16866 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16867 *[\\\\\\\`\\"\\\$]*)
16868 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16871 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16873 esac
16874 done
16876 # Double-quote double-evaled strings.
16877 for var in reload_cmds \
16878 old_postinstall_cmds \
16879 old_postuninstall_cmds \
16880 old_archive_cmds \
16881 extract_expsyms_cmds \
16882 old_archive_from_new_cmds \
16883 old_archive_from_expsyms_cmds \
16884 archive_cmds \
16885 archive_expsym_cmds \
16886 module_cmds \
16887 module_expsym_cmds \
16888 export_symbols_cmds \
16889 prelink_cmds \
16890 postinstall_cmds \
16891 postuninstall_cmds \
16892 finish_cmds \
16893 sys_lib_search_path_spec \
16894 sys_lib_dlsearch_path_spec \
16895 old_archive_cmds_CXX \
16896 old_archive_from_new_cmds_CXX \
16897 old_archive_from_expsyms_cmds_CXX \
16898 archive_cmds_CXX \
16899 archive_expsym_cmds_CXX \
16900 module_cmds_CXX \
16901 module_expsym_cmds_CXX \
16902 export_symbols_cmds_CXX \
16903 prelink_cmds_CXX; do
16904 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16905 *[\\\\\\\`\\"\\\$]*)
16906 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16909 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16911 esac
16912 done
16914 # Fix-up fallback echo if it was mangled by the above quoting rules.
16915 case \$lt_ECHO in
16916 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16918 esac
16920 ac_aux_dir='$ac_aux_dir'
16921 xsi_shell='$xsi_shell'
16922 lt_shell_append='$lt_shell_append'
16924 # See if we are running on zsh, and set the options which allow our
16925 # commands through without removal of \ escapes INIT.
16926 if test -n "\${ZSH_VERSION+set}" ; then
16927 setopt NO_GLOB_SUBST
16931 PACKAGE='$PACKAGE'
16932 VERSION='$VERSION'
16933 TIMESTAMP='$TIMESTAMP'
16934 RM='$RM'
16935 ofile='$ofile'
16942 _ACEOF
16944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16946 # Handling of arguments.
16947 for ac_config_target in $ac_config_targets
16949 case $ac_config_target in
16950 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16951 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16952 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16953 "tests/compat.sh") CONFIG_FILES="$CONFIG_FILES tests/compat.sh" ;;
16954 "jellyfish-1.1.pc") CONFIG_FILES="$CONFIG_FILES jellyfish-1.1.pc" ;;
16955 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16957 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16958 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16959 { (exit 1); exit 1; }; };;
16960 esac
16961 done
16964 # If the user did not use the arguments to specify the items to instantiate,
16965 # then the envvar interface is used. Set only those that are not.
16966 # We use the long form for the default assignment because of an extremely
16967 # bizarre bug on SunOS 4.1.3.
16968 if $ac_need_defaults; then
16969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16970 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16971 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16974 # Have a temporary directory for convenience. Make it in the build tree
16975 # simply because there is no reason against having it here, and in addition,
16976 # creating and moving files from /tmp can sometimes cause problems.
16977 # Hook for its removal unless debugging.
16978 # Note that there is a small window in which the directory will not be cleaned:
16979 # after its creation but before its name has been assigned to `$tmp'.
16980 $debug ||
16982 tmp=
16983 trap 'exit_status=$?
16984 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16986 trap '{ (exit 1); exit 1; }' 1 2 13 15
16988 # Create a (secure) tmp directory for tmp files.
16991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16992 test -n "$tmp" && test -d "$tmp"
16993 } ||
16995 tmp=./conf$$-$RANDOM
16996 (umask 077 && mkdir "$tmp")
16997 } ||
16999 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17000 { (exit 1); exit 1; }
17003 # Set up the scripts for CONFIG_FILES section.
17004 # No need to generate them if there are no CONFIG_FILES.
17005 # This happens for instance with `./config.status config.h'.
17006 if test -n "$CONFIG_FILES"; then
17009 ac_cr=' '
17010 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17011 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17012 ac_cs_awk_cr='\\r'
17013 else
17014 ac_cs_awk_cr=$ac_cr
17017 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17018 _ACEOF
17022 echo "cat >conf$$subs.awk <<_ACEOF" &&
17023 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17024 echo "_ACEOF"
17025 } >conf$$subs.sh ||
17026 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17027 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17028 { (exit 1); exit 1; }; }
17029 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17030 ac_delim='%!_!# '
17031 for ac_last_try in false false false false false :; do
17032 . ./conf$$subs.sh ||
17033 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17034 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17035 { (exit 1); exit 1; }; }
17037 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17038 if test $ac_delim_n = $ac_delim_num; then
17039 break
17040 elif $ac_last_try; then
17041 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17042 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17043 { (exit 1); exit 1; }; }
17044 else
17045 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17047 done
17048 rm -f conf$$subs.sh
17050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17051 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17052 _ACEOF
17053 sed -n '
17055 s/^/S["/; s/!.*/"]=/
17058 s/^[^!]*!//
17059 :repl
17060 t repl
17061 s/'"$ac_delim"'$//
17062 t delim
17065 s/\(.\{148\}\).*/\1/
17066 t more1
17067 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17070 b repl
17071 :more1
17072 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17075 s/.\{148\}//
17076 t nl
17077 :delim
17079 s/\(.\{148\}\).*/\1/
17080 t more2
17081 s/["\\]/\\&/g; s/^/"/; s/$/"/
17084 :more2
17085 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17088 s/.\{148\}//
17089 t delim
17090 ' <conf$$subs.awk | sed '
17091 /^[^""]/{
17093 s/\n//
17095 ' >>$CONFIG_STATUS || ac_write_fail=1
17096 rm -f conf$$subs.awk
17097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17098 _ACAWK
17099 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17100 for (key in S) S_is_set[key] = 1
17101 FS = "\a"
17105 line = $ 0
17106 nfields = split(line, field, "@")
17107 substed = 0
17108 len = length(field[1])
17109 for (i = 2; i < nfields; i++) {
17110 key = field[i]
17111 keylen = length(key)
17112 if (S_is_set[key]) {
17113 value = S[key]
17114 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17115 len += length(value) + length(field[++i])
17116 substed = 1
17117 } else
17118 len += 1 + keylen
17121 print line
17124 _ACAWK
17125 _ACEOF
17126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17127 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17128 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17129 else
17131 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17132 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17133 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17134 { (exit 1); exit 1; }; }
17135 _ACEOF
17137 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17138 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17139 # trailing colons and then remove the whole line if VPATH becomes empty
17140 # (actually we leave an empty line to preserve line numbers).
17141 if test "x$srcdir" = x.; then
17142 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17143 s/:*\$(srcdir):*/:/
17144 s/:*\${srcdir}:*/:/
17145 s/:*@srcdir@:*/:/
17146 s/^\([^=]*=[ ]*\):*/\1/
17147 s/:*$//
17148 s/^[^=]*=[ ]*$//
17152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17153 fi # test -n "$CONFIG_FILES"
17155 # Set up the scripts for CONFIG_HEADERS section.
17156 # No need to generate them if there are no CONFIG_HEADERS.
17157 # This happens for instance with `./config.status Makefile'.
17158 if test -n "$CONFIG_HEADERS"; then
17159 cat >"$tmp/defines.awk" <<\_ACAWK ||
17160 BEGIN {
17161 _ACEOF
17163 # Transform confdefs.h into an awk script `defines.awk', embedded as
17164 # here-document in config.status, that substitutes the proper values into
17165 # config.h.in to produce config.h.
17167 # Create a delimiter string that does not exist in confdefs.h, to ease
17168 # handling of long lines.
17169 ac_delim='%!_!# '
17170 for ac_last_try in false false :; do
17171 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17172 if test -z "$ac_t"; then
17173 break
17174 elif $ac_last_try; then
17175 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17176 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17177 { (exit 1); exit 1; }; }
17178 else
17179 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17181 done
17183 # For the awk script, D is an array of macro values keyed by name,
17184 # likewise P contains macro parameters if any. Preserve backslash
17185 # newline sequences.
17187 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17188 sed -n '
17189 s/.\{148\}/&'"$ac_delim"'/g
17190 t rset
17191 :rset
17192 s/^[ ]*#[ ]*define[ ][ ]*/ /
17193 t def
17195 :def
17196 s/\\$//
17197 t bsnl
17198 s/["\\]/\\&/g
17199 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17200 D["\1"]=" \3"/p
17201 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17203 :bsnl
17204 s/["\\]/\\&/g
17205 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17206 D["\1"]=" \3\\\\\\n"\\/p
17207 t cont
17208 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17209 t cont
17211 :cont
17213 s/.\{148\}/&'"$ac_delim"'/g
17214 t clear
17215 :clear
17216 s/\\$//
17217 t bsnlc
17218 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17220 :bsnlc
17221 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17222 b cont
17223 ' <confdefs.h | sed '
17224 s/'"$ac_delim"'/"\\\
17225 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17228 for (key in D) D_is_set[key] = 1
17229 FS = "\a"
17231 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17232 line = \$ 0
17233 split(line, arg, " ")
17234 if (arg[1] == "#") {
17235 defundef = arg[2]
17236 mac1 = arg[3]
17237 } else {
17238 defundef = substr(arg[1], 2)
17239 mac1 = arg[2]
17241 split(mac1, mac2, "(") #)
17242 macro = mac2[1]
17243 prefix = substr(line, 1, index(line, defundef) - 1)
17244 if (D_is_set[macro]) {
17245 # Preserve the white space surrounding the "#".
17246 print prefix "define", macro P[macro] D[macro]
17247 next
17248 } else {
17249 # Replace #undef with comments. This is necessary, for example,
17250 # in the case of _POSIX_SOURCE, which is predefined and required
17251 # on some systems where configure will not decide to define it.
17252 if (defundef == "undef") {
17253 print "/*", prefix defundef, macro, "*/"
17254 next
17258 { print }
17259 _ACAWK
17260 _ACEOF
17261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17262 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17263 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17264 { (exit 1); exit 1; }; }
17265 fi # test -n "$CONFIG_HEADERS"
17268 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17269 shift
17270 for ac_tag
17272 case $ac_tag in
17273 :[FHLC]) ac_mode=$ac_tag; continue;;
17274 esac
17275 case $ac_mode$ac_tag in
17276 :[FHL]*:*);;
17277 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17278 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
17279 { (exit 1); exit 1; }; };;
17280 :[FH]-) ac_tag=-:-;;
17281 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17282 esac
17283 ac_save_IFS=$IFS
17284 IFS=:
17285 set x $ac_tag
17286 IFS=$ac_save_IFS
17287 shift
17288 ac_file=$1
17289 shift
17291 case $ac_mode in
17292 :L) ac_source=$1;;
17293 :[FH])
17294 ac_file_inputs=
17295 for ac_f
17297 case $ac_f in
17298 -) ac_f="$tmp/stdin";;
17299 *) # Look for the file first in the build tree, then in the source tree
17300 # (if the path is not absolute). The absolute path cannot be DOS-style,
17301 # because $ac_f cannot contain `:'.
17302 test -f "$ac_f" ||
17303 case $ac_f in
17304 [\\/$]*) false;;
17305 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17306 esac ||
17307 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17308 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17309 { (exit 1); exit 1; }; };;
17310 esac
17311 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17312 ac_file_inputs="$ac_file_inputs '$ac_f'"
17313 done
17315 # Let's still pretend it is `configure' which instantiates (i.e., don't
17316 # use $as_me), people would be surprised to read:
17317 # /* config.h. Generated by config.status. */
17318 configure_input='Generated from '`
17319 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17320 `' by configure.'
17321 if test x"$ac_file" != x-; then
17322 configure_input="$ac_file. $configure_input"
17323 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17324 $as_echo "$as_me: creating $ac_file" >&6;}
17326 # Neutralize special characters interpreted by sed in replacement strings.
17327 case $configure_input in #(
17328 *\&* | *\|* | *\\* )
17329 ac_sed_conf_input=`$as_echo "$configure_input" |
17330 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17331 *) ac_sed_conf_input=$configure_input;;
17332 esac
17334 case $ac_tag in
17335 *:-:* | *:-) cat >"$tmp/stdin" \
17336 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17337 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17338 { (exit 1); exit 1; }; } ;;
17339 esac
17341 esac
17343 ac_dir=`$as_dirname -- "$ac_file" ||
17344 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17345 X"$ac_file" : 'X\(//\)[^/]' \| \
17346 X"$ac_file" : 'X\(//\)$' \| \
17347 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17348 $as_echo X"$ac_file" |
17349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17350 s//\1/
17353 /^X\(\/\/\)[^/].*/{
17354 s//\1/
17357 /^X\(\/\/\)$/{
17358 s//\1/
17361 /^X\(\/\).*/{
17362 s//\1/
17365 s/.*/./; q'`
17366 { as_dir="$ac_dir"
17367 case $as_dir in #(
17368 -*) as_dir=./$as_dir;;
17369 esac
17370 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17371 as_dirs=
17372 while :; do
17373 case $as_dir in #(
17374 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17375 *) as_qdir=$as_dir;;
17376 esac
17377 as_dirs="'$as_qdir' $as_dirs"
17378 as_dir=`$as_dirname -- "$as_dir" ||
17379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17380 X"$as_dir" : 'X\(//\)[^/]' \| \
17381 X"$as_dir" : 'X\(//\)$' \| \
17382 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17383 $as_echo X"$as_dir" |
17384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17385 s//\1/
17388 /^X\(\/\/\)[^/].*/{
17389 s//\1/
17392 /^X\(\/\/\)$/{
17393 s//\1/
17396 /^X\(\/\).*/{
17397 s//\1/
17400 s/.*/./; q'`
17401 test -d "$as_dir" && break
17402 done
17403 test -z "$as_dirs" || eval "mkdir $as_dirs"
17404 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17405 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17406 { (exit 1); exit 1; }; }; }
17407 ac_builddir=.
17409 case "$ac_dir" in
17410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17412 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17413 # A ".." for each directory in $ac_dir_suffix.
17414 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17415 case $ac_top_builddir_sub in
17416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17418 esac ;;
17419 esac
17420 ac_abs_top_builddir=$ac_pwd
17421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17422 # for backward compatibility:
17423 ac_top_builddir=$ac_top_build_prefix
17425 case $srcdir in
17426 .) # We are building in place.
17427 ac_srcdir=.
17428 ac_top_srcdir=$ac_top_builddir_sub
17429 ac_abs_top_srcdir=$ac_pwd ;;
17430 [\\/]* | ?:[\\/]* ) # Absolute name.
17431 ac_srcdir=$srcdir$ac_dir_suffix;
17432 ac_top_srcdir=$srcdir
17433 ac_abs_top_srcdir=$srcdir ;;
17434 *) # Relative name.
17435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17436 ac_top_srcdir=$ac_top_build_prefix$srcdir
17437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17438 esac
17439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17442 case $ac_mode in
17445 # CONFIG_FILE
17448 case $INSTALL in
17449 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17450 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17451 esac
17452 ac_MKDIR_P=$MKDIR_P
17453 case $MKDIR_P in
17454 [\\/$]* | ?:[\\/]* ) ;;
17455 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17456 esac
17457 _ACEOF
17459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17460 # If the template does not know about datarootdir, expand it.
17461 # FIXME: This hack should be removed a few years after 2.60.
17462 ac_datarootdir_hack=; ac_datarootdir_seen=
17464 ac_sed_dataroot='
17465 /datarootdir/ {
17469 /@datadir@/p
17470 /@docdir@/p
17471 /@infodir@/p
17472 /@localedir@/p
17473 /@mandir@/p
17475 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17476 *datarootdir*) ac_datarootdir_seen=yes;;
17477 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17478 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17479 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17480 _ACEOF
17481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17482 ac_datarootdir_hack='
17483 s&@datadir@&$datadir&g
17484 s&@docdir@&$docdir&g
17485 s&@infodir@&$infodir&g
17486 s&@localedir@&$localedir&g
17487 s&@mandir@&$mandir&g
17488 s&\\\${datarootdir}&$datarootdir&g' ;;
17489 esac
17490 _ACEOF
17492 # Neutralize VPATH when `$srcdir' = `.'.
17493 # Shell code in configure.ac might set extrasub.
17494 # FIXME: do we really want to maintain this feature?
17495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17496 ac_sed_extra="$ac_vpsub
17497 $extrasub
17498 _ACEOF
17499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17502 s|@configure_input@|$ac_sed_conf_input|;t t
17503 s&@top_builddir@&$ac_top_builddir_sub&;t t
17504 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17505 s&@srcdir@&$ac_srcdir&;t t
17506 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17507 s&@top_srcdir@&$ac_top_srcdir&;t t
17508 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17509 s&@builddir@&$ac_builddir&;t t
17510 s&@abs_builddir@&$ac_abs_builddir&;t t
17511 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17512 s&@INSTALL@&$ac_INSTALL&;t t
17513 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17514 $ac_datarootdir_hack
17516 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17517 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17518 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17519 { (exit 1); exit 1; }; }
17521 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17522 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17523 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17524 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17525 which seems to be undefined. Please make sure it is defined." >&5
17526 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17527 which seems to be undefined. Please make sure it is defined." >&2;}
17529 rm -f "$tmp/stdin"
17530 case $ac_file in
17531 -) cat "$tmp/out" && rm -f "$tmp/out";;
17532 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17533 esac \
17534 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17535 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17536 { (exit 1); exit 1; }; }
17540 # CONFIG_HEADER
17542 if test x"$ac_file" != x-; then
17544 $as_echo "/* $configure_input */" \
17545 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17546 } >"$tmp/config.h" \
17547 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17548 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17549 { (exit 1); exit 1; }; }
17550 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17551 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17552 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17553 else
17554 rm -f "$ac_file"
17555 mv "$tmp/config.h" "$ac_file" \
17556 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17557 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17558 { (exit 1); exit 1; }; }
17560 else
17561 $as_echo "/* $configure_input */" \
17562 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17563 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
17564 $as_echo "$as_me: error: could not create -" >&2;}
17565 { (exit 1); exit 1; }; }
17567 # Compute "$ac_file"'s index in $config_headers.
17568 _am_arg="$ac_file"
17569 _am_stamp_count=1
17570 for _am_header in $config_headers :; do
17571 case $_am_header in
17572 $_am_arg | $_am_arg:* )
17573 break ;;
17575 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17576 esac
17577 done
17578 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17579 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17580 X"$_am_arg" : 'X\(//\)[^/]' \| \
17581 X"$_am_arg" : 'X\(//\)$' \| \
17582 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17583 $as_echo X"$_am_arg" |
17584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17585 s//\1/
17588 /^X\(\/\/\)[^/].*/{
17589 s//\1/
17592 /^X\(\/\/\)$/{
17593 s//\1/
17596 /^X\(\/\).*/{
17597 s//\1/
17600 s/.*/./; q'`/stamp-h$_am_stamp_count
17603 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17604 $as_echo "$as_me: executing $ac_file commands" >&6;}
17606 esac
17609 case $ac_file$ac_mode in
17610 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17611 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17612 # are listed without --file. Let's play safe and only enable the eval
17613 # if we detect the quoting.
17614 case $CONFIG_FILES in
17615 *\'*) eval set x "$CONFIG_FILES" ;;
17616 *) set x $CONFIG_FILES ;;
17617 esac
17618 shift
17619 for mf
17621 # Strip MF so we end up with the name of the file.
17622 mf=`echo "$mf" | sed -e 's/:.*$//'`
17623 # Check whether this is an Automake generated Makefile or not.
17624 # We used to match only the files named `Makefile.in', but
17625 # some people rename them; so instead we look at the file content.
17626 # Grep'ing the first line is not enough: some people post-process
17627 # each Makefile.in and add a new line on top of each file to say so.
17628 # Grep'ing the whole file is not good either: AIX grep has a line
17629 # limit of 2048, but all sed's we know have understand at least 4000.
17630 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17631 dirpart=`$as_dirname -- "$mf" ||
17632 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17633 X"$mf" : 'X\(//\)[^/]' \| \
17634 X"$mf" : 'X\(//\)$' \| \
17635 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17636 $as_echo X"$mf" |
17637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17638 s//\1/
17641 /^X\(\/\/\)[^/].*/{
17642 s//\1/
17645 /^X\(\/\/\)$/{
17646 s//\1/
17649 /^X\(\/\).*/{
17650 s//\1/
17653 s/.*/./; q'`
17654 else
17655 continue
17657 # Extract the definition of DEPDIR, am__include, and am__quote
17658 # from the Makefile without running `make'.
17659 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17660 test -z "$DEPDIR" && continue
17661 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17662 test -z "am__include" && continue
17663 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17664 # When using ansi2knr, U may be empty or an underscore; expand it
17665 U=`sed -n 's/^U = //p' < "$mf"`
17666 # Find all dependency output files, they are included files with
17667 # $(DEPDIR) in their names. We invoke sed twice because it is the
17668 # simplest approach to changing $(DEPDIR) to its actual value in the
17669 # expansion.
17670 for file in `sed -n "
17671 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17672 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17673 # Make sure the directory exists.
17674 test -f "$dirpart/$file" && continue
17675 fdir=`$as_dirname -- "$file" ||
17676 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17677 X"$file" : 'X\(//\)[^/]' \| \
17678 X"$file" : 'X\(//\)$' \| \
17679 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17680 $as_echo X"$file" |
17681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17682 s//\1/
17685 /^X\(\/\/\)[^/].*/{
17686 s//\1/
17689 /^X\(\/\/\)$/{
17690 s//\1/
17693 /^X\(\/\).*/{
17694 s//\1/
17697 s/.*/./; q'`
17698 { as_dir=$dirpart/$fdir
17699 case $as_dir in #(
17700 -*) as_dir=./$as_dir;;
17701 esac
17702 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17703 as_dirs=
17704 while :; do
17705 case $as_dir in #(
17706 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17707 *) as_qdir=$as_dir;;
17708 esac
17709 as_dirs="'$as_qdir' $as_dirs"
17710 as_dir=`$as_dirname -- "$as_dir" ||
17711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17712 X"$as_dir" : 'X\(//\)[^/]' \| \
17713 X"$as_dir" : 'X\(//\)$' \| \
17714 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17715 $as_echo X"$as_dir" |
17716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17717 s//\1/
17720 /^X\(\/\/\)[^/].*/{
17721 s//\1/
17724 /^X\(\/\/\)$/{
17725 s//\1/
17728 /^X\(\/\).*/{
17729 s//\1/
17732 s/.*/./; q'`
17733 test -d "$as_dir" && break
17734 done
17735 test -z "$as_dirs" || eval "mkdir $as_dirs"
17736 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17737 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17738 { (exit 1); exit 1; }; }; }
17739 # echo "creating $dirpart/$file"
17740 echo '# dummy' > "$dirpart/$file"
17741 done
17742 done
17745 "libtool":C)
17747 # See if we are running on zsh, and set the options which allow our
17748 # commands through without removal of \ escapes.
17749 if test -n "${ZSH_VERSION+set}" ; then
17750 setopt NO_GLOB_SUBST
17753 cfgfile="${ofile}T"
17754 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17755 $RM "$cfgfile"
17757 cat <<_LT_EOF >> "$cfgfile"
17758 #! $SHELL
17760 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17761 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17762 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17763 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17765 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17766 # 2006, 2007, 2008 Free Software Foundation, Inc.
17767 # Written by Gordon Matzigkeit, 1996
17769 # This file is part of GNU Libtool.
17771 # GNU Libtool is free software; you can redistribute it and/or
17772 # modify it under the terms of the GNU General Public License as
17773 # published by the Free Software Foundation; either version 2 of
17774 # the License, or (at your option) any later version.
17776 # As a special exception to the GNU General Public License,
17777 # if you distribute this file as part of a program or library that
17778 # is built using GNU Libtool, you may include this file under the
17779 # same distribution terms that you use for the rest of that program.
17781 # GNU Libtool is distributed in the hope that it will be useful,
17782 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17783 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17784 # GNU General Public License for more details.
17786 # You should have received a copy of the GNU General Public License
17787 # along with GNU Libtool; see the file COPYING. If not, a copy
17788 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17789 # obtained by writing to the Free Software Foundation, Inc.,
17790 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17793 # The names of the tagged configurations supported by this script.
17794 available_tags="CXX "
17796 # ### BEGIN LIBTOOL CONFIG
17798 # Which release of libtool.m4 was used?
17799 macro_version=$macro_version
17800 macro_revision=$macro_revision
17802 # Whether or not to build shared libraries.
17803 build_libtool_libs=$enable_shared
17805 # Whether or not to build static libraries.
17806 build_old_libs=$enable_static
17808 # What type of objects to build.
17809 pic_mode=$pic_mode
17811 # Whether or not to optimize for fast installation.
17812 fast_install=$enable_fast_install
17814 # The host system.
17815 host_alias=$host_alias
17816 host=$host
17817 host_os=$host_os
17819 # The build system.
17820 build_alias=$build_alias
17821 build=$build
17822 build_os=$build_os
17824 # A sed program that does not truncate output.
17825 SED=$lt_SED
17827 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17828 Xsed="\$SED -e 1s/^X//"
17830 # A grep program that handles long lines.
17831 GREP=$lt_GREP
17833 # An ERE matcher.
17834 EGREP=$lt_EGREP
17836 # A literal string matcher.
17837 FGREP=$lt_FGREP
17839 # A BSD- or MS-compatible name lister.
17840 NM=$lt_NM
17842 # Whether we need soft or hard links.
17843 LN_S=$lt_LN_S
17845 # What is the maximum length of a command?
17846 max_cmd_len=$max_cmd_len
17848 # Object file suffix (normally "o").
17849 objext=$ac_objext
17851 # Executable file suffix (normally "").
17852 exeext=$exeext
17854 # whether the shell understands "unset".
17855 lt_unset=$lt_unset
17857 # turn spaces into newlines.
17858 SP2NL=$lt_lt_SP2NL
17860 # turn newlines into spaces.
17861 NL2SP=$lt_lt_NL2SP
17863 # How to create reloadable object files.
17864 reload_flag=$lt_reload_flag
17865 reload_cmds=$lt_reload_cmds
17867 # An object symbol dumper.
17868 OBJDUMP=$lt_OBJDUMP
17870 # Method to check whether dependent libraries are shared objects.
17871 deplibs_check_method=$lt_deplibs_check_method
17873 # Command to use when deplibs_check_method == "file_magic".
17874 file_magic_cmd=$lt_file_magic_cmd
17876 # The archiver.
17877 AR=$lt_AR
17878 AR_FLAGS=$lt_AR_FLAGS
17880 # A symbol stripping program.
17881 STRIP=$lt_STRIP
17883 # Commands used to install an old-style archive.
17884 RANLIB=$lt_RANLIB
17885 old_postinstall_cmds=$lt_old_postinstall_cmds
17886 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17888 # A C compiler.
17889 LTCC=$lt_CC
17891 # LTCC compiler flags.
17892 LTCFLAGS=$lt_CFLAGS
17894 # Take the output of nm and produce a listing of raw symbols and C names.
17895 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17897 # Transform the output of nm in a proper C declaration.
17898 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17900 # Transform the output of nm in a C name address pair.
17901 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17903 # Transform the output of nm in a C name address pair when lib prefix is needed.
17904 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17906 # The name of the directory that contains temporary libtool files.
17907 objdir=$objdir
17909 # Shell to use when invoking shell scripts.
17910 SHELL=$lt_SHELL
17912 # An echo program that does not interpret backslashes.
17913 ECHO=$lt_ECHO
17915 # Used to examine libraries when file_magic_cmd begins with "file".
17916 MAGIC_CMD=$MAGIC_CMD
17918 # Must we lock files when doing compilation?
17919 need_locks=$lt_need_locks
17921 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17922 DSYMUTIL=$lt_DSYMUTIL
17924 # Tool to change global to local symbols on Mac OS X.
17925 NMEDIT=$lt_NMEDIT
17927 # Tool to manipulate fat objects and archives on Mac OS X.
17928 LIPO=$lt_LIPO
17930 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17931 OTOOL=$lt_OTOOL
17933 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17934 OTOOL64=$lt_OTOOL64
17936 # Old archive suffix (normally "a").
17937 libext=$libext
17939 # Shared library suffix (normally ".so").
17940 shrext_cmds=$lt_shrext_cmds
17942 # The commands to extract the exported symbol list from a shared archive.
17943 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17945 # Variables whose values should be saved in libtool wrapper scripts and
17946 # restored at link time.
17947 variables_saved_for_relink=$lt_variables_saved_for_relink
17949 # Do we need the "lib" prefix for modules?
17950 need_lib_prefix=$need_lib_prefix
17952 # Do we need a version for libraries?
17953 need_version=$need_version
17955 # Library versioning type.
17956 version_type=$version_type
17958 # Shared library runtime path variable.
17959 runpath_var=$runpath_var
17961 # Shared library path variable.
17962 shlibpath_var=$shlibpath_var
17964 # Is shlibpath searched before the hard-coded library search path?
17965 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17967 # Format of library name prefix.
17968 libname_spec=$lt_libname_spec
17970 # List of archive names. First name is the real one, the rest are links.
17971 # The last name is the one that the linker finds with -lNAME
17972 library_names_spec=$lt_library_names_spec
17974 # The coded name of the library, if different from the real name.
17975 soname_spec=$lt_soname_spec
17977 # Command to use after installation of a shared archive.
17978 postinstall_cmds=$lt_postinstall_cmds
17980 # Command to use after uninstallation of a shared archive.
17981 postuninstall_cmds=$lt_postuninstall_cmds
17983 # Commands used to finish a libtool library installation in a directory.
17984 finish_cmds=$lt_finish_cmds
17986 # As "finish_cmds", except a single script fragment to be evaled but
17987 # not shown.
17988 finish_eval=$lt_finish_eval
17990 # Whether we should hardcode library paths into libraries.
17991 hardcode_into_libs=$hardcode_into_libs
17993 # Compile-time system search path for libraries.
17994 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17996 # Run-time system search path for libraries.
17997 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17999 # Whether dlopen is supported.
18000 dlopen_support=$enable_dlopen
18002 # Whether dlopen of programs is supported.
18003 dlopen_self=$enable_dlopen_self
18005 # Whether dlopen of statically linked programs is supported.
18006 dlopen_self_static=$enable_dlopen_self_static
18008 # Commands to strip libraries.
18009 old_striplib=$lt_old_striplib
18010 striplib=$lt_striplib
18013 # The linker used to build libraries.
18014 LD=$lt_LD
18016 # Commands used to build an old-style archive.
18017 old_archive_cmds=$lt_old_archive_cmds
18019 # A language specific compiler.
18020 CC=$lt_compiler
18022 # Is the compiler the GNU compiler?
18023 with_gcc=$GCC
18025 # Compiler flag to turn off builtin functions.
18026 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18028 # How to pass a linker flag through the compiler.
18029 wl=$lt_lt_prog_compiler_wl
18031 # Additional compiler flags for building library objects.
18032 pic_flag=$lt_lt_prog_compiler_pic
18034 # Compiler flag to prevent dynamic linking.
18035 link_static_flag=$lt_lt_prog_compiler_static
18037 # Does compiler simultaneously support -c and -o options?
18038 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18040 # Whether or not to add -lc for building shared libraries.
18041 build_libtool_need_lc=$archive_cmds_need_lc
18043 # Whether or not to disallow shared libs when runtime libs are static.
18044 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18046 # Compiler flag to allow reflexive dlopens.
18047 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18049 # Compiler flag to generate shared objects directly from archives.
18050 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18052 # Whether the compiler copes with passing no objects directly.
18053 compiler_needs_object=$lt_compiler_needs_object
18055 # Create an old-style archive from a shared archive.
18056 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18058 # Create a temporary old-style archive to link instead of a shared archive.
18059 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18061 # Commands used to build a shared archive.
18062 archive_cmds=$lt_archive_cmds
18063 archive_expsym_cmds=$lt_archive_expsym_cmds
18065 # Commands used to build a loadable module if different from building
18066 # a shared archive.
18067 module_cmds=$lt_module_cmds
18068 module_expsym_cmds=$lt_module_expsym_cmds
18070 # Whether we are building with GNU ld or not.
18071 with_gnu_ld=$lt_with_gnu_ld
18073 # Flag that allows shared libraries with undefined symbols to be built.
18074 allow_undefined_flag=$lt_allow_undefined_flag
18076 # Flag that enforces no undefined symbols.
18077 no_undefined_flag=$lt_no_undefined_flag
18079 # Flag to hardcode \$libdir into a binary during linking.
18080 # This must work even if \$libdir does not exist
18081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18083 # If ld is used when linking, flag to hardcode \$libdir into a binary
18084 # during linking. This must work even if \$libdir does not exist.
18085 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18087 # Whether we need a single "-rpath" flag with a separated argument.
18088 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18090 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18091 # DIR into the resulting binary.
18092 hardcode_direct=$hardcode_direct
18094 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18095 # DIR into the resulting binary and the resulting library dependency is
18096 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18097 # library is relocated.
18098 hardcode_direct_absolute=$hardcode_direct_absolute
18100 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18101 # into the resulting binary.
18102 hardcode_minus_L=$hardcode_minus_L
18104 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18105 # into the resulting binary.
18106 hardcode_shlibpath_var=$hardcode_shlibpath_var
18108 # Set to "yes" if building a shared library automatically hardcodes DIR
18109 # into the library and all subsequent libraries and executables linked
18110 # against it.
18111 hardcode_automatic=$hardcode_automatic
18113 # Set to yes if linker adds runtime paths of dependent libraries
18114 # to runtime path list.
18115 inherit_rpath=$inherit_rpath
18117 # Whether libtool must link a program against all its dependency libraries.
18118 link_all_deplibs=$link_all_deplibs
18120 # Fix the shell variable \$srcfile for the compiler.
18121 fix_srcfile_path=$lt_fix_srcfile_path
18123 # Set to "yes" if exported symbols are required.
18124 always_export_symbols=$always_export_symbols
18126 # The commands to list exported symbols.
18127 export_symbols_cmds=$lt_export_symbols_cmds
18129 # Symbols that should not be listed in the preloaded symbols.
18130 exclude_expsyms=$lt_exclude_expsyms
18132 # Symbols that must always be exported.
18133 include_expsyms=$lt_include_expsyms
18135 # Commands necessary for linking programs (against libraries) with templates.
18136 prelink_cmds=$lt_prelink_cmds
18138 # Specify filename containing input files.
18139 file_list_spec=$lt_file_list_spec
18141 # How to hardcode a shared library path into an executable.
18142 hardcode_action=$hardcode_action
18144 # The directories searched by this compiler when creating a shared library.
18145 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18147 # Dependencies to place before and after the objects being linked to
18148 # create a shared library.
18149 predep_objects=$lt_predep_objects
18150 postdep_objects=$lt_postdep_objects
18151 predeps=$lt_predeps
18152 postdeps=$lt_postdeps
18154 # The library search path used internally by the compiler when linking
18155 # a shared library.
18156 compiler_lib_search_path=$lt_compiler_lib_search_path
18158 # ### END LIBTOOL CONFIG
18160 _LT_EOF
18162 case $host_os in
18163 aix3*)
18164 cat <<\_LT_EOF >> "$cfgfile"
18165 # AIX sometimes has problems with the GCC collect2 program. For some
18166 # reason, if we set the COLLECT_NAMES environment variable, the problems
18167 # vanish in a puff of smoke.
18168 if test "X${COLLECT_NAMES+set}" != Xset; then
18169 COLLECT_NAMES=
18170 export COLLECT_NAMES
18172 _LT_EOF
18174 esac
18177 ltmain="$ac_aux_dir/ltmain.sh"
18180 # We use sed instead of cat because bash on DJGPP gets confused if
18181 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18182 # text mode, it properly converts lines to CR/LF. This bash problem
18183 # is reportedly fixed, but why not run on old versions too?
18184 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18185 || (rm -f "$cfgfile"; exit 1)
18187 case $xsi_shell in
18188 yes)
18189 cat << \_LT_EOF >> "$cfgfile"
18191 # func_dirname file append nondir_replacement
18192 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18193 # otherwise set result to NONDIR_REPLACEMENT.
18194 func_dirname ()
18196 case ${1} in
18197 */*) func_dirname_result="${1%/*}${2}" ;;
18198 * ) func_dirname_result="${3}" ;;
18199 esac
18202 # func_basename file
18203 func_basename ()
18205 func_basename_result="${1##*/}"
18208 # func_dirname_and_basename file append nondir_replacement
18209 # perform func_basename and func_dirname in a single function
18210 # call:
18211 # dirname: Compute the dirname of FILE. If nonempty,
18212 # add APPEND to the result, otherwise set result
18213 # to NONDIR_REPLACEMENT.
18214 # value returned in "$func_dirname_result"
18215 # basename: Compute filename of FILE.
18216 # value retuned in "$func_basename_result"
18217 # Implementation must be kept synchronized with func_dirname
18218 # and func_basename. For efficiency, we do not delegate to
18219 # those functions but instead duplicate the functionality here.
18220 func_dirname_and_basename ()
18222 case ${1} in
18223 */*) func_dirname_result="${1%/*}${2}" ;;
18224 * ) func_dirname_result="${3}" ;;
18225 esac
18226 func_basename_result="${1##*/}"
18229 # func_stripname prefix suffix name
18230 # strip PREFIX and SUFFIX off of NAME.
18231 # PREFIX and SUFFIX must not contain globbing or regex special
18232 # characters, hashes, percent signs, but SUFFIX may contain a leading
18233 # dot (in which case that matches only a dot).
18234 func_stripname ()
18236 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18237 # positional parameters, so assign one to ordinary parameter first.
18238 func_stripname_result=${3}
18239 func_stripname_result=${func_stripname_result#"${1}"}
18240 func_stripname_result=${func_stripname_result%"${2}"}
18243 # func_opt_split
18244 func_opt_split ()
18246 func_opt_split_opt=${1%%=*}
18247 func_opt_split_arg=${1#*=}
18250 # func_lo2o object
18251 func_lo2o ()
18253 case ${1} in
18254 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18255 *) func_lo2o_result=${1} ;;
18256 esac
18259 # func_xform libobj-or-source
18260 func_xform ()
18262 func_xform_result=${1%.*}.lo
18265 # func_arith arithmetic-term...
18266 func_arith ()
18268 func_arith_result=$(( $* ))
18271 # func_len string
18272 # STRING may not start with a hyphen.
18273 func_len ()
18275 func_len_result=${#1}
18278 _LT_EOF
18280 *) # Bourne compatible functions.
18281 cat << \_LT_EOF >> "$cfgfile"
18283 # func_dirname file append nondir_replacement
18284 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18285 # otherwise set result to NONDIR_REPLACEMENT.
18286 func_dirname ()
18288 # Extract subdirectory from the argument.
18289 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18290 if test "X$func_dirname_result" = "X${1}"; then
18291 func_dirname_result="${3}"
18292 else
18293 func_dirname_result="$func_dirname_result${2}"
18297 # func_basename file
18298 func_basename ()
18300 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18304 # func_stripname prefix suffix name
18305 # strip PREFIX and SUFFIX off of NAME.
18306 # PREFIX and SUFFIX must not contain globbing or regex special
18307 # characters, hashes, percent signs, but SUFFIX may contain a leading
18308 # dot (in which case that matches only a dot).
18309 # func_strip_suffix prefix name
18310 func_stripname ()
18312 case ${2} in
18313 .*) func_stripname_result=`$ECHO "X${3}" \
18314 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18315 *) func_stripname_result=`$ECHO "X${3}" \
18316 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18317 esac
18320 # sed scripts:
18321 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18322 my_sed_long_arg='1s/^-[^=]*=//'
18324 # func_opt_split
18325 func_opt_split ()
18327 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18328 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18331 # func_lo2o object
18332 func_lo2o ()
18334 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18337 # func_xform libobj-or-source
18338 func_xform ()
18340 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18343 # func_arith arithmetic-term...
18344 func_arith ()
18346 func_arith_result=`expr "$@"`
18349 # func_len string
18350 # STRING may not start with a hyphen.
18351 func_len ()
18353 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18356 _LT_EOF
18357 esac
18359 case $lt_shell_append in
18360 yes)
18361 cat << \_LT_EOF >> "$cfgfile"
18363 # func_append var value
18364 # Append VALUE to the end of shell variable VAR.
18365 func_append ()
18367 eval "$1+=\$2"
18369 _LT_EOF
18372 cat << \_LT_EOF >> "$cfgfile"
18374 # func_append var value
18375 # Append VALUE to the end of shell variable VAR.
18376 func_append ()
18378 eval "$1=\$$1\$2"
18381 _LT_EOF
18383 esac
18386 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18387 || (rm -f "$cfgfile"; exit 1)
18389 mv -f "$cfgfile" "$ofile" ||
18390 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18391 chmod +x "$ofile"
18394 cat <<_LT_EOF >> "$ofile"
18396 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18398 # The linker used to build libraries.
18399 LD=$lt_LD_CXX
18401 # Commands used to build an old-style archive.
18402 old_archive_cmds=$lt_old_archive_cmds_CXX
18404 # A language specific compiler.
18405 CC=$lt_compiler_CXX
18407 # Is the compiler the GNU compiler?
18408 with_gcc=$GCC_CXX
18410 # Compiler flag to turn off builtin functions.
18411 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18413 # How to pass a linker flag through the compiler.
18414 wl=$lt_lt_prog_compiler_wl_CXX
18416 # Additional compiler flags for building library objects.
18417 pic_flag=$lt_lt_prog_compiler_pic_CXX
18419 # Compiler flag to prevent dynamic linking.
18420 link_static_flag=$lt_lt_prog_compiler_static_CXX
18422 # Does compiler simultaneously support -c and -o options?
18423 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18425 # Whether or not to add -lc for building shared libraries.
18426 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18428 # Whether or not to disallow shared libs when runtime libs are static.
18429 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18431 # Compiler flag to allow reflexive dlopens.
18432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18434 # Compiler flag to generate shared objects directly from archives.
18435 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18437 # Whether the compiler copes with passing no objects directly.
18438 compiler_needs_object=$lt_compiler_needs_object_CXX
18440 # Create an old-style archive from a shared archive.
18441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18443 # Create a temporary old-style archive to link instead of a shared archive.
18444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18446 # Commands used to build a shared archive.
18447 archive_cmds=$lt_archive_cmds_CXX
18448 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18450 # Commands used to build a loadable module if different from building
18451 # a shared archive.
18452 module_cmds=$lt_module_cmds_CXX
18453 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18455 # Whether we are building with GNU ld or not.
18456 with_gnu_ld=$lt_with_gnu_ld_CXX
18458 # Flag that allows shared libraries with undefined symbols to be built.
18459 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18461 # Flag that enforces no undefined symbols.
18462 no_undefined_flag=$lt_no_undefined_flag_CXX
18464 # Flag to hardcode \$libdir into a binary during linking.
18465 # This must work even if \$libdir does not exist
18466 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18468 # If ld is used when linking, flag to hardcode \$libdir into a binary
18469 # during linking. This must work even if \$libdir does not exist.
18470 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18472 # Whether we need a single "-rpath" flag with a separated argument.
18473 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18475 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18476 # DIR into the resulting binary.
18477 hardcode_direct=$hardcode_direct_CXX
18479 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18480 # DIR into the resulting binary and the resulting library dependency is
18481 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18482 # library is relocated.
18483 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18485 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18486 # into the resulting binary.
18487 hardcode_minus_L=$hardcode_minus_L_CXX
18489 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18490 # into the resulting binary.
18491 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18493 # Set to "yes" if building a shared library automatically hardcodes DIR
18494 # into the library and all subsequent libraries and executables linked
18495 # against it.
18496 hardcode_automatic=$hardcode_automatic_CXX
18498 # Set to yes if linker adds runtime paths of dependent libraries
18499 # to runtime path list.
18500 inherit_rpath=$inherit_rpath_CXX
18502 # Whether libtool must link a program against all its dependency libraries.
18503 link_all_deplibs=$link_all_deplibs_CXX
18505 # Fix the shell variable \$srcfile for the compiler.
18506 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18508 # Set to "yes" if exported symbols are required.
18509 always_export_symbols=$always_export_symbols_CXX
18511 # The commands to list exported symbols.
18512 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18514 # Symbols that should not be listed in the preloaded symbols.
18515 exclude_expsyms=$lt_exclude_expsyms_CXX
18517 # Symbols that must always be exported.
18518 include_expsyms=$lt_include_expsyms_CXX
18520 # Commands necessary for linking programs (against libraries) with templates.
18521 prelink_cmds=$lt_prelink_cmds_CXX
18523 # Specify filename containing input files.
18524 file_list_spec=$lt_file_list_spec_CXX
18526 # How to hardcode a shared library path into an executable.
18527 hardcode_action=$hardcode_action_CXX
18529 # The directories searched by this compiler when creating a shared library.
18530 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18532 # Dependencies to place before and after the objects being linked to
18533 # create a shared library.
18534 predep_objects=$lt_predep_objects_CXX
18535 postdep_objects=$lt_postdep_objects_CXX
18536 predeps=$lt_predeps_CXX
18537 postdeps=$lt_postdeps_CXX
18539 # The library search path used internally by the compiler when linking
18540 # a shared library.
18541 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18543 # ### END LIBTOOL TAG CONFIG: CXX
18544 _LT_EOF
18548 esac
18549 done # for ac_tag
18552 { (exit 0); exit 0; }
18553 _ACEOF
18554 chmod +x $CONFIG_STATUS
18555 ac_clean_files=$ac_clean_files_save
18557 test $ac_write_fail = 0 ||
18558 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18559 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18560 { (exit 1); exit 1; }; }
18563 # configure is writing to config.log, and then calls config.status.
18564 # config.status does its own redirection, appending to config.log.
18565 # Unfortunately, on DOS this fails, as config.log is still kept open
18566 # by configure, so config.status won't be able to write to it; its
18567 # output is simply discarded. So we exec the FD to /dev/null,
18568 # effectively closing config.log, so it can be properly (re)opened and
18569 # appended to by config.status. When coming back to configure, we
18570 # need to make the FD available again.
18571 if test "$no_create" != yes; then
18572 ac_cs_success=:
18573 ac_config_status_args=
18574 test "$silent" = yes &&
18575 ac_config_status_args="$ac_config_status_args --quiet"
18576 exec 5>/dev/null
18577 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18578 exec 5>>config.log
18579 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18580 # would make configure fail if this is the last instruction.
18581 $ac_cs_success || { (exit 1); exit 1; }
18583 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18584 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18585 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}