* elf32-xtensa.c (relax_section): Check for a reference to a discarded
[binutils.git] / gprof / configure
blob76d7e12f77d6f6cfa3694f0129788b8079af9718
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$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 # Zsh 3.x and 4.x performs 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 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$lt_ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 esac
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<_LT_EOF
583 _LT_EOF
584 exit 0
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598 then
599 break
601 done
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
608 else
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
617 IFS="$lt_save_ifs"
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 ECHO="$dir/echo"
623 break
625 done
626 IFS="$lt_save_ifs"
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
634 ECHO='print -r'
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
641 export CONFIG_SHELL
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 else
644 # Try using printf.
645 ECHO='printf %s\n'
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # Cool, printf works
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656 export CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
658 export SHELL
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 else
666 # maybe with a smaller string...
667 prev=:
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671 then
672 break
674 prev="$cmd"
675 done
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681 else
682 # Oops. We lost completely, so just stick with echo.
683 ECHO=echo
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709 # Initializations.
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
728 ac_unique_file="gprof.c"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 # include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 # include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 build
803 build_cpu
804 build_vendor
805 build_os
806 host
807 host_cpu
808 host_vendor
809 host_os
810 target
811 target_cpu
812 target_vendor
813 target_os
815 CFLAGS
816 LDFLAGS
817 CPPFLAGS
818 ac_ct_CC
819 EXEEXT
820 OBJEXT
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 DEPDIR
843 am__include
844 am__quote
845 AMDEP_TRUE
846 AMDEP_FALSE
847 AMDEPBACKSLASH
848 CCDEPMODE
849 am__fastdepCC_TRUE
850 am__fastdepCC_FALSE
851 LIBTOOL
853 GREP
854 EGREP
855 FGREP
857 DUMPBIN
858 ac_ct_DUMPBIN
860 LN_S
862 RANLIB
863 lt_ECHO
865 USE_NLS
866 LIBINTL
867 LIBINTL_DEP
868 INCINTL
869 XGETTEXT
870 GMSGFMT
871 POSUB
872 CATALOGS
873 DATADIRNAME
874 INSTOBJEXT
875 GENCAT
876 CATOBJEXT
877 MKINSTALLDIRS
878 MSGFMT
879 MSGMERGE
880 MAINTAINER_MODE_TRUE
881 MAINTAINER_MODE_FALSE
882 MAINT
883 GENINSRC_NEVER_TRUE
884 GENINSRC_NEVER_FALSE
885 WARN_CFLAGS
886 NO_WERROR
887 LIBOBJS
888 LTLIBOBJS'
889 ac_subst_files=''
890 ac_precious_vars='build_alias
891 host_alias
892 target_alias
894 CFLAGS
895 LDFLAGS
896 LIBS
897 CPPFLAGS
898 CPP'
901 # Initialize some variables set by options.
902 ac_init_help=
903 ac_init_version=false
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
906 cache_file=/dev/null
907 exec_prefix=NONE
908 no_create=
909 no_recursion=
910 prefix=NONE
911 program_prefix=NONE
912 program_suffix=NONE
913 program_transform_name=s,x,x,
914 silent=
915 site=
916 srcdir=
917 verbose=
918 x_includes=NONE
919 x_libraries=NONE
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
947 ac_prev=
948 ac_dashdash=
949 for ac_option
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
954 ac_prev=
955 continue
958 case $ac_option in
959 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *) ac_optarg=yes ;;
961 esac
963 # Accept the important Cygnus configure options, so we can diagnose typos.
965 case $ac_dashdash$ac_option in
967 ac_dashdash=yes ;;
969 -bindir | --bindir | --bindi | --bind | --bin | --bi)
970 ac_prev=bindir ;;
971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972 bindir=$ac_optarg ;;
974 -build | --build | --buil | --bui | --bu)
975 ac_prev=build_alias ;;
976 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977 build_alias=$ac_optarg ;;
979 -cache-file | --cache-file | --cache-fil | --cache-fi \
980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981 ac_prev=cache_file ;;
982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984 cache_file=$ac_optarg ;;
986 --config-cache | -C)
987 cache_file=config.cache ;;
989 -datadir | --datadir | --datadi | --datad)
990 ac_prev=datadir ;;
991 -datadir=* | --datadir=* | --datadi=* | --datad=*)
992 datadir=$ac_optarg ;;
994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995 | --dataroo | --dataro | --datar)
996 ac_prev=datarootdir ;;
997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999 datarootdir=$ac_optarg ;;
1001 -disable-* | --disable-*)
1002 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1005 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1006 { (exit 1); exit 1; }; }
1007 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1008 eval enable_$ac_feature=no ;;
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
1020 -enable-* | --enable-*)
1021 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1024 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1025 { (exit 1); exit 1; }; }
1026 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1027 eval enable_$ac_feature=\$ac_optarg ;;
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031 | --exec | --exe | --ex)
1032 ac_prev=exec_prefix ;;
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035 | --exec=* | --exe=* | --ex=*)
1036 exec_prefix=$ac_optarg ;;
1038 -gas | --gas | --ga | --g)
1039 # Obsolete; use --with-gas.
1040 with_gas=yes ;;
1042 -help | --help | --hel | --he | -h)
1043 ac_init_help=long ;;
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045 ac_init_help=recursive ;;
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047 ac_init_help=short ;;
1049 -host | --host | --hos | --ho)
1050 ac_prev=host_alias ;;
1051 -host=* | --host=* | --hos=* | --ho=*)
1052 host_alias=$ac_optarg ;;
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055 ac_prev=htmldir ;;
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057 | --ht=*)
1058 htmldir=$ac_optarg ;;
1060 -includedir | --includedir | --includedi | --included | --include \
1061 | --includ | --inclu | --incl | --inc)
1062 ac_prev=includedir ;;
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064 | --includ=* | --inclu=* | --incl=* | --inc=*)
1065 includedir=$ac_optarg ;;
1067 -infodir | --infodir | --infodi | --infod | --info | --inf)
1068 ac_prev=infodir ;;
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070 infodir=$ac_optarg ;;
1072 -libdir | --libdir | --libdi | --libd)
1073 ac_prev=libdir ;;
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075 libdir=$ac_optarg ;;
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078 | --libexe | --libex | --libe)
1079 ac_prev=libexecdir ;;
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081 | --libexe=* | --libex=* | --libe=*)
1082 libexecdir=$ac_optarg ;;
1084 -localedir | --localedir | --localedi | --localed | --locale)
1085 ac_prev=localedir ;;
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087 localedir=$ac_optarg ;;
1089 -localstatedir | --localstatedir | --localstatedi | --localstated \
1090 | --localstate | --localstat | --localsta | --localst | --locals)
1091 ac_prev=localstatedir ;;
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094 localstatedir=$ac_optarg ;;
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097 ac_prev=mandir ;;
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099 mandir=$ac_optarg ;;
1101 -nfp | --nfp | --nf)
1102 # Obsolete; use --without-fp.
1103 with_fp=no ;;
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106 | --no-cr | --no-c | -n)
1107 no_create=yes ;;
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 no_recursion=yes ;;
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115 | --oldin | --oldi | --old | --ol | --o)
1116 ac_prev=oldincludedir ;;
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120 oldincludedir=$ac_optarg ;;
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123 ac_prev=prefix ;;
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125 prefix=$ac_optarg ;;
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128 | --program-pre | --program-pr | --program-p)
1129 ac_prev=program_prefix ;;
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132 program_prefix=$ac_optarg ;;
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135 | --program-suf | --program-su | --program-s)
1136 ac_prev=program_suffix ;;
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139 program_suffix=$ac_optarg ;;
1141 -program-transform-name | --program-transform-name \
1142 | --program-transform-nam | --program-transform-na \
1143 | --program-transform-n | --program-transform- \
1144 | --program-transform | --program-transfor \
1145 | --program-transfo | --program-transf \
1146 | --program-trans | --program-tran \
1147 | --progr-tra | --program-tr | --program-t)
1148 ac_prev=program_transform_name ;;
1149 -program-transform-name=* | --program-transform-name=* \
1150 | --program-transform-nam=* | --program-transform-na=* \
1151 | --program-transform-n=* | --program-transform-=* \
1152 | --program-transform=* | --program-transfor=* \
1153 | --program-transfo=* | --program-transf=* \
1154 | --program-trans=* | --program-tran=* \
1155 | --progr-tra=* | --program-tr=* | --program-t=*)
1156 program_transform_name=$ac_optarg ;;
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159 ac_prev=pdfdir ;;
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161 pdfdir=$ac_optarg ;;
1163 -psdir | --psdir | --psdi | --psd | --ps)
1164 ac_prev=psdir ;;
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 psdir=$ac_optarg ;;
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1170 silent=yes ;;
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 ac_prev=sbindir ;;
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 | --sbi=* | --sb=*)
1176 sbindir=$ac_optarg ;;
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180 | --sharedst | --shareds | --shared | --share | --shar \
1181 | --sha | --sh)
1182 ac_prev=sharedstatedir ;;
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 | --sha=* | --sh=*)
1187 sharedstatedir=$ac_optarg ;;
1189 -site | --site | --sit)
1190 ac_prev=site ;;
1191 -site=* | --site=* | --sit=*)
1192 site=$ac_optarg ;;
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 ac_prev=srcdir ;;
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197 srcdir=$ac_optarg ;;
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200 | --syscon | --sysco | --sysc | --sys | --sy)
1201 ac_prev=sysconfdir ;;
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204 sysconfdir=$ac_optarg ;;
1206 -target | --target | --targe | --targ | --tar | --ta | --t)
1207 ac_prev=target_alias ;;
1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209 target_alias=$ac_optarg ;;
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 verbose=yes ;;
1214 -version | --version | --versio | --versi | --vers | -V)
1215 ac_init_version=: ;;
1217 -with-* | --with-*)
1218 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 { echo "$as_me: error: invalid package name: $ac_package" >&2
1222 { (exit 1); exit 1; }; }
1223 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224 eval with_$ac_package=\$ac_optarg ;;
1226 -without-* | --without-*)
1227 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 { echo "$as_me: error: invalid package name: $ac_package" >&2
1231 { (exit 1); exit 1; }; }
1232 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233 eval with_$ac_package=no ;;
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1253 -*) { echo "$as_me: error: unrecognized option: $ac_option
1254 Try \`$0 --help' for more information." >&2
1255 { (exit 1); exit 1; }; }
1258 *=*)
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1262 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1263 { (exit 1); exit 1; }; }
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1268 # FIXME: should be removed in autoconf 3.0.
1269 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275 esac
1276 done
1278 if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 { echo "$as_me: error: missing argument to $ac_option" >&2
1281 { (exit 1); exit 1; }; }
1284 # Be sure to have absolute directory names.
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir
1290 eval ac_val=\$$ac_var
1291 case $ac_val in
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294 esac
1295 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1296 { (exit 1); exit 1; }; }
1297 done
1299 # There might be people who depend on the old broken behavior: `$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1302 build=$build_alias
1303 host=$host_alias
1304 target=$target_alias
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1311 If a cross compiler is detected then cross compile mode will be used." >&2
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320 test "$silent" = yes && exec 6>/dev/null
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 { echo "$as_me: error: Working directory cannot be determined" >&2
1327 { (exit 1); exit 1; }; }
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 { echo "$as_me: error: pwd does not report name of working directory" >&2
1330 { (exit 1); exit 1; }; }
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$0" ||
1338 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$0" : 'X\(//\)[^/]' \| \
1340 X"$0" : 'X\(//\)$' \| \
1341 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1342 echo X"$0" |
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1351 /^X\(\/\/\)$/{
1352 s//\1/
1355 /^X\(\/\).*/{
1356 s//\1/
1359 s/.*/./; q'`
1360 srcdir=$ac_confdir
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 srcdir=..
1364 else
1365 ac_srcdir_defaulted=no
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1370 { (exit 1); exit 1; }; }
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373 ac_abs_confdir=`(
1374 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1375 { (exit 1); exit 1; }; }
1376 pwd)`
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 srcdir=.
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1384 case $srcdir in
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 esac
1387 for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 done
1395 # Report the --help message.
1397 if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1400 cat <<_ACEOF
1401 \`configure' configures this package to adapt to many kinds of systems.
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE. See below for descriptions of some of the useful variables.
1408 Defaults for the options are specified in brackets.
1410 Configuration:
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421 Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 [PREFIX]
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1432 For better control, use the options below.
1434 Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --libdir=DIR object code libraries [EPREFIX/lib]
1442 --includedir=DIR C header files [PREFIX/include]
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1446 --infodir=DIR info documentation [DATAROOTDIR/info]
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1448 --mandir=DIR man documentation [DATAROOTDIR/man]
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
1454 _ACEOF
1456 cat <<\_ACEOF
1458 Program names:
1459 --program-prefix=PREFIX prepend PREFIX to installed program names
1460 --program-suffix=SUFFIX append SUFFIX to installed program names
1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463 System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 --target=TARGET configure for building compilers for TARGET [HOST]
1467 _ACEOF
1470 if test -n "$ac_init_help"; then
1472 cat <<\_ACEOF
1474 Optional Features:
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --disable-dependency-tracking speeds up one-time build
1478 --enable-dependency-tracking do not reject slow dependency extractors
1479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-static[=PKGS] build static libraries [default=yes]
1481 --enable-fast-install[=PKGS]
1482 optimize for fast installation [default=yes]
1483 --disable-libtool-lock avoid locking (might break parallel builds)
1484 --disable-nls do not use Native Language Support
1485 --enable-maintainer-mode enable make rules and dependencies not useful
1486 (and sometimes confusing) to the casual installer
1487 --enable-werror treat compile warnings as errors
1488 --enable-build-warnings enable build-time compiler warnings
1490 Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-pic try to use only PIC/non-PIC objects [default=use
1494 both]
1495 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1505 CPP C preprocessor
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1510 _ACEOF
1511 ac_status=$?
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" || continue
1518 ac_builddir=.
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 configure
1571 generated by GNU Autoconf 2.61
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578 exit
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1584 It was created by $as_me, which was
1585 generated by GNU Autoconf 2.61. Invocation command line was
1587 $ $0 $@
1589 _ACEOF
1590 exec 5>>config.log
1592 cat <<_ASUNAME
1593 ## --------- ##
1594 ## Platform. ##
1595 ## --------- ##
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1606 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1610 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1614 _ASUNAME
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1622 done
1623 IFS=$as_save_IFS
1625 } >&5
1627 cat >&5 <<_ACEOF
1630 ## ----------- ##
1631 ## Core tests. ##
1632 ## ----------- ##
1634 _ACEOF
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1642 ac_configure_args=
1643 ac_configure_args0=
1644 ac_configure_args1=
1645 ac_must_keep_next=false
1646 for ac_pass in 1 2
1648 for ac_arg
1650 case $ac_arg in
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1654 continue ;;
1655 *\'*)
1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 esac
1658 case $ac_pass in
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1664 else
1665 case $ac_arg in
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 esac
1674 -* ) ac_must_keep_next=true ;;
1675 esac
1677 ac_configure_args="$ac_configure_args '$ac_arg'"
1679 esac
1680 done
1681 done
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log. We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1693 echo
1695 cat <<\_ASBOX
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1699 _ASBOX
1700 echo
1701 # The following way of writing the cache mishandles newlines in values,
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1705 case $ac_val in #(
1706 *${as_nl}*)
1707 case $ac_var in #(
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 esac
1711 case $ac_var in #(
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1714 esac ;;
1715 esac
1716 done
1717 (set) 2>&1 |
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1720 sed -n \
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 ;; #(
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727 esac |
1728 sort
1730 echo
1732 cat <<\_ASBOX
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1736 _ASBOX
1737 echo
1738 for ac_var in $ac_subst_vars
1740 eval ac_val=\$$ac_var
1741 case $ac_val in
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 esac
1744 echo "$ac_var='\''$ac_val'\''"
1745 done | sort
1746 echo
1748 if test -n "$ac_subst_files"; then
1749 cat <<\_ASBOX
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1753 _ASBOX
1754 echo
1755 for ac_var in $ac_subst_files
1757 eval ac_val=\$$ac_var
1758 case $ac_val in
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 esac
1761 echo "$ac_var='\''$ac_val'\''"
1762 done | sort
1763 echo
1766 if test -s confdefs.h; then
1767 cat <<\_ASBOX
1768 ## ----------- ##
1769 ## confdefs.h. ##
1770 ## ----------- ##
1771 _ASBOX
1772 echo
1773 cat confdefs.h
1774 echo
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1779 } >&5
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 exit $exit_status
1784 for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786 done
1787 ac_signal=0
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1792 # Predefined preprocessor variables.
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1796 _ACEOF
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801 _ACEOF
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1806 _ACEOF
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1811 _ACEOF
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816 _ACEOF
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825 else
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
1829 shift
1830 for ac_site_file
1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1836 . "$ac_site_file"
1838 done
1840 if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1846 case $cache_file in
1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
1849 esac
1851 else
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1854 >$cache_file
1857 # Check that the precious variables saved in the cache have kept the same
1858 # value.
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1866 set,)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,set)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,);;
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880 echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882 echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895 esac
1897 done
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1922 ac_ext=c
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931 ac_aux_dir=
1932 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933 if test -f "$ac_dir/install-sh"; then
1934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1936 break
1937 elif test -f "$ac_dir/install.sh"; then
1938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1940 break
1941 elif test -f "$ac_dir/shtool"; then
1942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1944 break
1946 done
1947 if test -z "$ac_aux_dir"; then
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962 # Make sure we can run config.sub.
1963 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1964 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1965 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1966 { (exit 1); exit 1; }; }
1968 { echo "$as_me:$LINENO: checking build system type" >&5
1969 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1970 if test "${ac_cv_build+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 ac_build_alias=$build_alias
1974 test "x$ac_build_alias" = x &&
1975 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1976 test "x$ac_build_alias" = x &&
1977 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1978 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1979 { (exit 1); exit 1; }; }
1980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1982 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1983 { (exit 1); exit 1; }; }
1986 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1987 echo "${ECHO_T}$ac_cv_build" >&6; }
1988 case $ac_cv_build in
1989 *-*-*) ;;
1990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1991 echo "$as_me: error: invalid value of canonical build" >&2;}
1992 { (exit 1); exit 1; }; };;
1993 esac
1994 build=$ac_cv_build
1995 ac_save_IFS=$IFS; IFS='-'
1996 set x $ac_cv_build
1997 shift
1998 build_cpu=$1
1999 build_vendor=$2
2000 shift; shift
2001 # Remember, the first character of IFS is used to create $*,
2002 # except with old shells:
2003 build_os=$*
2004 IFS=$ac_save_IFS
2005 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2008 { echo "$as_me:$LINENO: checking host system type" >&5
2009 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2010 if test "${ac_cv_host+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 if test "x$host_alias" = x; then
2014 ac_cv_host=$ac_cv_build
2015 else
2016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2017 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2018 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2019 { (exit 1); exit 1; }; }
2023 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2024 echo "${ECHO_T}$ac_cv_host" >&6; }
2025 case $ac_cv_host in
2026 *-*-*) ;;
2027 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2028 echo "$as_me: error: invalid value of canonical host" >&2;}
2029 { (exit 1); exit 1; }; };;
2030 esac
2031 host=$ac_cv_host
2032 ac_save_IFS=$IFS; IFS='-'
2033 set x $ac_cv_host
2034 shift
2035 host_cpu=$1
2036 host_vendor=$2
2037 shift; shift
2038 # Remember, the first character of IFS is used to create $*,
2039 # except with old shells:
2040 host_os=$*
2041 IFS=$ac_save_IFS
2042 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2045 { echo "$as_me:$LINENO: checking target system type" >&5
2046 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2047 if test "${ac_cv_target+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050 if test "x$target_alias" = x; then
2051 ac_cv_target=$ac_cv_host
2052 else
2053 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2054 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2055 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2056 { (exit 1); exit 1; }; }
2060 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2061 echo "${ECHO_T}$ac_cv_target" >&6; }
2062 case $ac_cv_target in
2063 *-*-*) ;;
2064 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2065 echo "$as_me: error: invalid value of canonical target" >&2;}
2066 { (exit 1); exit 1; }; };;
2067 esac
2068 target=$ac_cv_target
2069 ac_save_IFS=$IFS; IFS='-'
2070 set x $ac_cv_target
2071 shift
2072 target_cpu=$1
2073 target_vendor=$2
2074 shift; shift
2075 # Remember, the first character of IFS is used to create $*,
2076 # except with old shells:
2077 target_os=$*
2078 IFS=$ac_save_IFS
2079 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2082 # The aliases save the names the user supplied, while $host etc.
2083 # will get canonicalized.
2084 test -n "$target_alias" &&
2085 test "$program_prefix$program_suffix$program_transform_name" = \
2086 NONENONEs,x,x, &&
2087 program_prefix=${target_alias}-
2088 ac_ext=c
2089 ac_cpp='$CPP $CPPFLAGS'
2090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2093 if test -n "$ac_tool_prefix"; then
2094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2095 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2098 if test "${ac_cv_prog_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 if test -n "$CC"; then
2102 ac_cv_prog_CC="$CC" # Let the user override the test.
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2107 IFS=$as_save_IFS
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2111 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 break 2
2115 done
2116 done
2117 IFS=$as_save_IFS
2121 CC=$ac_cv_prog_CC
2122 if test -n "$CC"; then
2123 { echo "$as_me:$LINENO: result: $CC" >&5
2124 echo "${ECHO_T}$CC" >&6; }
2125 else
2126 { echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6; }
2132 if test -z "$ac_cv_prog_CC"; then
2133 ac_ct_CC=$CC
2134 # Extract the first word of "gcc", so it can be a program name with args.
2135 set dummy gcc; ac_word=$2
2136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 if test -n "$ac_ct_CC"; then
2142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 ac_cv_prog_ac_ct_CC="gcc"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 break 2
2155 done
2156 done
2157 IFS=$as_save_IFS
2161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2162 if test -n "$ac_ct_CC"; then
2163 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2164 echo "${ECHO_T}$ac_ct_CC" >&6; }
2165 else
2166 { echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6; }
2170 if test "x$ac_ct_CC" = x; then
2171 CC=""
2172 else
2173 case $cross_compiling:$ac_tool_warned in
2174 yes:)
2175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2176 whose name does not start with the host triplet. If you think this
2177 configuration is useful to you, please write to autoconf@gnu.org." >&5
2178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2179 whose name does not start with the host triplet. If you think this
2180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2181 ac_tool_warned=yes ;;
2182 esac
2183 CC=$ac_ct_CC
2185 else
2186 CC="$ac_cv_prog_CC"
2189 if test -z "$CC"; then
2190 if test -n "$ac_tool_prefix"; then
2191 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2192 set dummy ${ac_tool_prefix}cc; ac_word=$2
2193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2195 if test "${ac_cv_prog_CC+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2197 else
2198 if test -n "$CC"; then
2199 ac_cv_prog_CC="$CC" # Let the user override the test.
2200 else
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 for as_dir in $PATH
2204 IFS=$as_save_IFS
2205 test -z "$as_dir" && as_dir=.
2206 for ac_exec_ext in '' $ac_executable_extensions; do
2207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2208 ac_cv_prog_CC="${ac_tool_prefix}cc"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210 break 2
2212 done
2213 done
2214 IFS=$as_save_IFS
2218 CC=$ac_cv_prog_CC
2219 if test -n "$CC"; then
2220 { echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6; }
2222 else
2223 { echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6; }
2230 if test -z "$CC"; then
2231 # Extract the first word of "cc", so it can be a program name with args.
2232 set dummy cc; ac_word=$2
2233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2235 if test "${ac_cv_prog_CC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 if test -n "$CC"; then
2239 ac_cv_prog_CC="$CC" # Let the user override the test.
2240 else
2241 ac_prog_rejected=no
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2245 IFS=$as_save_IFS
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2250 ac_prog_rejected=yes
2251 continue
2253 ac_cv_prog_CC="cc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 break 2
2257 done
2258 done
2259 IFS=$as_save_IFS
2261 if test $ac_prog_rejected = yes; then
2262 # We found a bogon in the path, so make sure we never use it.
2263 set dummy $ac_cv_prog_CC
2264 shift
2265 if test $# != 0; then
2266 # We chose a different compiler from the bogus one.
2267 # However, it has the same basename, so the bogon will be chosen
2268 # first if we set CC to just the basename; use the full file name.
2269 shift
2270 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2275 CC=$ac_cv_prog_CC
2276 if test -n "$CC"; then
2277 { echo "$as_me:$LINENO: result: $CC" >&5
2278 echo "${ECHO_T}$CC" >&6; }
2279 else
2280 { echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6; }
2286 if test -z "$CC"; then
2287 if test -n "$ac_tool_prefix"; then
2288 for ac_prog in cl.exe
2290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_prog_CC+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2311 done
2312 done
2313 IFS=$as_save_IFS
2317 CC=$ac_cv_prog_CC
2318 if test -n "$CC"; then
2319 { echo "$as_me:$LINENO: result: $CC" >&5
2320 echo "${ECHO_T}$CC" >&6; }
2321 else
2322 { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2327 test -n "$CC" && break
2328 done
2330 if test -z "$CC"; then
2331 ac_ct_CC=$CC
2332 for ac_prog in cl.exe
2334 # Extract the first word of "$ac_prog", so it can be a program name with args.
2335 set dummy $ac_prog; ac_word=$2
2336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2338 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341 if test -n "$ac_ct_CC"; then
2342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2343 else
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351 ac_cv_prog_ac_ct_CC="$ac_prog"
2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2355 done
2356 done
2357 IFS=$as_save_IFS
2361 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2362 if test -n "$ac_ct_CC"; then
2363 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2364 echo "${ECHO_T}$ac_ct_CC" >&6; }
2365 else
2366 { echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6; }
2371 test -n "$ac_ct_CC" && break
2372 done
2374 if test "x$ac_ct_CC" = x; then
2375 CC=""
2376 else
2377 case $cross_compiling:$ac_tool_warned in
2378 yes:)
2379 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2380 whose name does not start with the host triplet. If you think this
2381 configuration is useful to you, please write to autoconf@gnu.org." >&5
2382 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2383 whose name does not start with the host triplet. If you think this
2384 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2385 ac_tool_warned=yes ;;
2386 esac
2387 CC=$ac_ct_CC
2394 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2395 See \`config.log' for more details." >&5
2396 echo "$as_me: error: no acceptable C compiler found in \$PATH
2397 See \`config.log' for more details." >&2;}
2398 { (exit 1); exit 1; }; }
2400 # Provide some information about the compiler.
2401 echo "$as_me:$LINENO: checking for C compiler version" >&5
2402 ac_compiler=`set X $ac_compile; echo $2`
2403 { (ac_try="$ac_compiler --version >&5"
2404 case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_compiler --version >&5") 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }
2413 { (ac_try="$ac_compiler -v >&5"
2414 case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2417 esac
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_compiler -v >&5") 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }
2423 { (ac_try="$ac_compiler -V >&5"
2424 case "(($ac_try" in
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2427 esac
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_compiler -V >&5") 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }
2434 cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h. */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2442 main ()
2446 return 0;
2448 _ACEOF
2449 ac_clean_files_save=$ac_clean_files
2450 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2451 # Try to create an executable without -o first, disregard a.out.
2452 # It will help us diagnose broken compilers, and finding out an intuition
2453 # of exeext.
2454 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2455 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2456 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2458 # List of possible output files, starting from the most likely.
2459 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2460 # only as a last resort. b.out is created by i960 compilers.
2461 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2463 # The IRIX 6 linker writes into existing files which may not be
2464 # executable, retaining their permissions. Remove them first so a
2465 # subsequent execution test works.
2466 ac_rmfiles=
2467 for ac_file in $ac_files
2469 case $ac_file in
2470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2471 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2472 esac
2473 done
2474 rm -f $ac_rmfiles
2476 if { (ac_try="$ac_link_default"
2477 case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480 esac
2481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482 (eval "$ac_link_default") 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; then
2486 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2487 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2488 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2489 # so that the user can short-circuit this test for compilers unknown to
2490 # Autoconf.
2491 for ac_file in $ac_files ''
2493 test -f "$ac_file" || continue
2494 case $ac_file in
2495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2497 [ab].out )
2498 # We found the default executable, but exeext='' is most
2499 # certainly right.
2500 break;;
2501 *.* )
2502 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2503 then :; else
2504 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2506 # We set ac_cv_exeext here because the later test for it is not
2507 # safe: cross compilers may not add the suffix if given an `-o'
2508 # argument, so we may need to know it at that point already.
2509 # Even if this section looks crufty: it has the advantage of
2510 # actually working.
2511 break;;
2513 break;;
2514 esac
2515 done
2516 test "$ac_cv_exeext" = no && ac_cv_exeext=
2518 else
2519 ac_file=''
2522 { echo "$as_me:$LINENO: result: $ac_file" >&5
2523 echo "${ECHO_T}$ac_file" >&6; }
2524 if test -z "$ac_file"; then
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2528 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2529 See \`config.log' for more details." >&5
2530 echo "$as_me: error: C compiler cannot create executables
2531 See \`config.log' for more details." >&2;}
2532 { (exit 77); exit 77; }; }
2535 ac_exeext=$ac_cv_exeext
2537 # Check that the compiler produces executables we can run. If not, either
2538 # the compiler is broken, or we cross compile.
2539 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2540 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2541 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2542 # If not cross compiling, check that we can run a simple program.
2543 if test "$cross_compiling" != yes; then
2544 if { ac_try='./$ac_file'
2545 { (case "(($ac_try" in
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2548 esac
2549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550 (eval "$ac_try") 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2554 cross_compiling=no
2555 else
2556 if test "$cross_compiling" = maybe; then
2557 cross_compiling=yes
2558 else
2559 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2560 If you meant to cross compile, use \`--host'.
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot run C compiled programs.
2563 If you meant to cross compile, use \`--host'.
2564 See \`config.log' for more details." >&2;}
2565 { (exit 1); exit 1; }; }
2569 { echo "$as_me:$LINENO: result: yes" >&5
2570 echo "${ECHO_T}yes" >&6; }
2572 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2573 ac_clean_files=$ac_clean_files_save
2574 # Check that the compiler produces executables we can run. If not, either
2575 # the compiler is broken, or we cross compile.
2576 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2577 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2578 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2579 echo "${ECHO_T}$cross_compiling" >&6; }
2581 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2582 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2583 if { (ac_try="$ac_link"
2584 case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587 esac
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_link") 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; then
2593 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2594 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2595 # work properly (i.e., refer to `conftest.exe'), while it won't with
2596 # `rm'.
2597 for ac_file in conftest.exe conftest conftest.*; do
2598 test -f "$ac_file" || continue
2599 case $ac_file in
2600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2601 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2602 break;;
2603 * ) break;;
2604 esac
2605 done
2606 else
2607 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2610 See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }
2614 rm -f conftest$ac_cv_exeext
2615 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2616 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2618 rm -f conftest.$ac_ext
2619 EXEEXT=$ac_cv_exeext
2620 ac_exeext=$EXEEXT
2621 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2622 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2623 if test "${ac_cv_objext+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h. */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2634 main ()
2638 return 0;
2640 _ACEOF
2641 rm -f conftest.o conftest.obj
2642 if { (ac_try="$ac_compile"
2643 case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646 esac
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compile") 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; then
2652 for ac_file in conftest.o conftest.obj conftest.*; do
2653 test -f "$ac_file" || continue;
2654 case $ac_file in
2655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2657 break;;
2658 esac
2659 done
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2664 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2667 See \`config.log' for more details." >&2;}
2668 { (exit 1); exit 1; }; }
2671 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2673 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2674 echo "${ECHO_T}$ac_cv_objext" >&6; }
2675 OBJEXT=$ac_cv_objext
2676 ac_objext=$OBJEXT
2677 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2678 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2679 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h. */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2690 main ()
2692 #ifndef __GNUC__
2693 choke me
2694 #endif
2697 return 0;
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (ac_try="$ac_compile"
2702 case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
2708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest.$ac_objext; then
2717 ac_compiler_gnu=yes
2718 else
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2722 ac_compiler_gnu=no
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2729 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2730 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2731 GCC=`test $ac_compiler_gnu = yes && echo yes`
2732 ac_test_CFLAGS=${CFLAGS+set}
2733 ac_save_CFLAGS=$CFLAGS
2734 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2735 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2736 if test "${ac_cv_prog_cc_g+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739 ac_save_c_werror_flag=$ac_c_werror_flag
2740 ac_c_werror_flag=yes
2741 ac_cv_prog_cc_g=no
2742 CFLAGS="-g"
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h. */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2751 main ()
2755 return 0;
2757 _ACEOF
2758 rm -f conftest.$ac_objext
2759 if { (ac_try="$ac_compile"
2760 case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763 esac
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compile") 2>conftest.er1
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } && {
2772 test -z "$ac_c_werror_flag" ||
2773 test ! -s conftest.err
2774 } && test -s conftest.$ac_objext; then
2775 ac_cv_prog_cc_g=yes
2776 else
2777 echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2780 CFLAGS=""
2781 cat >conftest.$ac_ext <<_ACEOF
2782 /* confdefs.h. */
2783 _ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h. */
2789 main ()
2793 return 0;
2795 _ACEOF
2796 rm -f conftest.$ac_objext
2797 if { (ac_try="$ac_compile"
2798 case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801 esac
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_compile") 2>conftest.er1
2804 ac_status=$?
2805 grep -v '^ *+' conftest.er1 >conftest.err
2806 rm -f conftest.er1
2807 cat conftest.err >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } && {
2810 test -z "$ac_c_werror_flag" ||
2811 test ! -s conftest.err
2812 } && test -s conftest.$ac_objext; then
2814 else
2815 echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2818 ac_c_werror_flag=$ac_save_c_werror_flag
2819 CFLAGS="-g"
2820 cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h. */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2828 main ()
2832 return 0;
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (ac_try="$ac_compile"
2837 case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840 esac
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_compile") 2>conftest.er1
2843 ac_status=$?
2844 grep -v '^ *+' conftest.er1 >conftest.err
2845 rm -f conftest.er1
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } && {
2849 test -z "$ac_c_werror_flag" ||
2850 test ! -s conftest.err
2851 } && test -s conftest.$ac_objext; then
2852 ac_cv_prog_cc_g=yes
2853 else
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 ac_c_werror_flag=$ac_save_c_werror_flag
2869 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2870 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2871 if test "$ac_test_CFLAGS" = set; then
2872 CFLAGS=$ac_save_CFLAGS
2873 elif test $ac_cv_prog_cc_g = yes; then
2874 if test "$GCC" = yes; then
2875 CFLAGS="-g -O2"
2876 else
2877 CFLAGS="-g"
2879 else
2880 if test "$GCC" = yes; then
2881 CFLAGS="-O2"
2882 else
2883 CFLAGS=
2886 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2887 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2888 if test "${ac_cv_prog_cc_c89+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 ac_cv_prog_cc_c89=no
2892 ac_save_CC=$CC
2893 cat >conftest.$ac_ext <<_ACEOF
2894 /* confdefs.h. */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2899 #include <stdarg.h>
2900 #include <stdio.h>
2901 #include <sys/types.h>
2902 #include <sys/stat.h>
2903 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2904 struct buf { int x; };
2905 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2906 static char *e (p, i)
2907 char **p;
2908 int i;
2910 return p[i];
2912 static char *f (char * (*g) (char **, int), char **p, ...)
2914 char *s;
2915 va_list v;
2916 va_start (v,p);
2917 s = g (p, va_arg (v,int));
2918 va_end (v);
2919 return s;
2922 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2923 function prototypes and stuff, but not '\xHH' hex character constants.
2924 These don't provoke an error unfortunately, instead are silently treated
2925 as 'x'. The following induces an error, until -std is added to get
2926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2927 array size at least. It's necessary to write '\x00'==0 to get something
2928 that's true only with -std. */
2929 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2931 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2932 inside strings and character constants. */
2933 #define FOO(x) 'x'
2934 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2936 int test (int i, double x);
2937 struct s1 {int (*f) (int a);};
2938 struct s2 {int (*f) (double a);};
2939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2940 int argc;
2941 char **argv;
2943 main ()
2945 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2947 return 0;
2949 _ACEOF
2950 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2951 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2953 CC="$ac_save_CC $ac_arg"
2954 rm -f conftest.$ac_objext
2955 if { (ac_try="$ac_compile"
2956 case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959 esac
2960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961 (eval "$ac_compile") 2>conftest.er1
2962 ac_status=$?
2963 grep -v '^ *+' conftest.er1 >conftest.err
2964 rm -f conftest.er1
2965 cat conftest.err >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } && {
2968 test -z "$ac_c_werror_flag" ||
2969 test ! -s conftest.err
2970 } && test -s conftest.$ac_objext; then
2971 ac_cv_prog_cc_c89=$ac_arg
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2979 rm -f core conftest.err conftest.$ac_objext
2980 test "x$ac_cv_prog_cc_c89" != "xno" && break
2981 done
2982 rm -f conftest.$ac_ext
2983 CC=$ac_save_CC
2986 # AC_CACHE_VAL
2987 case "x$ac_cv_prog_cc_c89" in
2989 { echo "$as_me:$LINENO: result: none needed" >&5
2990 echo "${ECHO_T}none needed" >&6; } ;;
2991 xno)
2992 { echo "$as_me:$LINENO: result: unsupported" >&5
2993 echo "${ECHO_T}unsupported" >&6; } ;;
2995 CC="$CC $ac_cv_prog_cc_c89"
2996 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2997 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2998 esac
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3009 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3010 if test "${ac_cv_search_strerror+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013 ac_func_search_save_LIBS=$LIBS
3014 cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h. */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3021 /* Override any GCC internal prototype to avoid an error.
3022 Use char because int might match the return type of a GCC
3023 builtin and then its argument prototype would still apply. */
3024 #ifdef __cplusplus
3025 extern "C"
3026 #endif
3027 char strerror ();
3029 main ()
3031 return strerror ();
3033 return 0;
3035 _ACEOF
3036 for ac_lib in '' cposix; do
3037 if test -z "$ac_lib"; then
3038 ac_res="none required"
3039 else
3040 ac_res=-l$ac_lib
3041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3043 rm -f conftest.$ac_objext conftest$ac_exeext
3044 if { (ac_try="$ac_link"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_link") 2>conftest.er1
3051 ac_status=$?
3052 grep -v '^ *+' conftest.er1 >conftest.err
3053 rm -f conftest.er1
3054 cat conftest.err >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } && {
3057 test -z "$ac_c_werror_flag" ||
3058 test ! -s conftest.err
3059 } && test -s conftest$ac_exeext &&
3060 $as_test_x conftest$ac_exeext; then
3061 ac_cv_search_strerror=$ac_res
3062 else
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3070 conftest$ac_exeext
3071 if test "${ac_cv_search_strerror+set}" = set; then
3072 break
3074 done
3075 if test "${ac_cv_search_strerror+set}" = set; then
3077 else
3078 ac_cv_search_strerror=no
3080 rm conftest.$ac_ext
3081 LIBS=$ac_func_search_save_LIBS
3083 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3084 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3085 ac_res=$ac_cv_search_strerror
3086 if test "$ac_res" != no; then
3087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3092 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3093 am__api_version="1.9"
3094 # Find a good install program. We prefer a C program (faster),
3095 # so one script is as good as another. But avoid the broken or
3096 # incompatible versions:
3097 # SysV /etc/install, /usr/sbin/install
3098 # SunOS /usr/etc/install
3099 # IRIX /sbin/install
3100 # AIX /bin/install
3101 # AmigaOS /C/install, which installs bootblocks on floppy discs
3102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3105 # OS/2's system install, which has a completely different semantic
3106 # ./install, which can be erroneously created by make from ./install.sh.
3107 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3108 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3109 if test -z "$INSTALL"; then
3110 if test "${ac_cv_path_install+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 # Account for people who put trailing slashes in PATH elements.
3119 case $as_dir/ in
3120 ./ | .// | /cC/* | \
3121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3122 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3123 /usr/ucb/* ) ;;
3125 # OSF1 and SCO ODT 3.0 have their own names for install.
3126 # Don't use installbsd from OSF since it installs stuff as root
3127 # by default.
3128 for ac_prog in ginstall scoinst install; do
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3131 if test $ac_prog = install &&
3132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3133 # AIX install. It has an incompatible calling convention.
3135 elif test $ac_prog = install &&
3136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3137 # program-specific install script used by HP pwplus--don't use.
3139 else
3140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3141 break 3
3144 done
3145 done
3147 esac
3148 done
3149 IFS=$as_save_IFS
3153 if test "${ac_cv_path_install+set}" = set; then
3154 INSTALL=$ac_cv_path_install
3155 else
3156 # As a last resort, use the slow shell script. Don't cache a
3157 # value for INSTALL within a source directory, because that will
3158 # break other packages using the cache if that directory is
3159 # removed, or if the value is a relative name.
3160 INSTALL=$ac_install_sh
3163 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3164 echo "${ECHO_T}$INSTALL" >&6; }
3166 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3167 # It thinks the first close brace ends the variable substitution.
3168 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3170 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3172 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3174 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3175 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
3176 # Just in case
3177 sleep 1
3178 echo timestamp > conftest.file
3179 # Do `set' in a subshell so we don't clobber the current shell's
3180 # arguments. Must try -L first in case configure is actually a
3181 # symlink; some systems play weird games with the mod time of symlinks
3182 # (eg FreeBSD returns the mod time of the symlink's containing
3183 # directory).
3184 if (
3185 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3186 if test "$*" = "X"; then
3187 # -L didn't work.
3188 set X `ls -t $srcdir/configure conftest.file`
3190 rm -f conftest.file
3191 if test "$*" != "X $srcdir/configure conftest.file" \
3192 && test "$*" != "X conftest.file $srcdir/configure"; then
3194 # If neither matched, then we have a broken ls. This can happen
3195 # if, for instance, CONFIG_SHELL is bash and it inherits a
3196 # broken ls alias from the environment. This has actually
3197 # happened. Such a system could not be considered "sane".
3198 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3199 alias in your environment" >&5
3200 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3201 alias in your environment" >&2;}
3202 { (exit 1); exit 1; }; }
3205 test "$2" = conftest.file
3207 then
3208 # Ok.
3210 else
3211 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3212 Check your system clock" >&5
3213 echo "$as_me: error: newly created file is older than distributed files!
3214 Check your system clock" >&2;}
3215 { (exit 1); exit 1; }; }
3217 { echo "$as_me:$LINENO: result: yes" >&5
3218 echo "${ECHO_T}yes" >&6; }
3219 test "$program_prefix" != NONE &&
3220 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3221 # Use a double $ so make ignores it.
3222 test "$program_suffix" != NONE &&
3223 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3224 # Double any \ or $. echo might interpret backslashes.
3225 # By default was `s,x,x', remove it if useless.
3226 cat <<\_ACEOF >conftest.sed
3227 s/[\\$]/&&/g;s/;s,x,x,$//
3228 _ACEOF
3229 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3230 rm -f conftest.sed
3232 # expand $ac_aux_dir to an absolute path
3233 am_aux_dir=`cd $ac_aux_dir && pwd`
3235 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3236 # Use eval to expand $SHELL
3237 if eval "$MISSING --run true"; then
3238 am_missing_run="$MISSING --run "
3239 else
3240 am_missing_run=
3241 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3242 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3245 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3246 # We used to keeping the `.' as first argument, in order to
3247 # allow $(mkdir_p) to be used without argument. As in
3248 # $(mkdir_p) $(somedir)
3249 # where $(somedir) is conditionally defined. However this is wrong
3250 # for two reasons:
3251 # 1. if the package is installed by a user who cannot write `.'
3252 # make install will fail,
3253 # 2. the above comment should most certainly read
3254 # $(mkdir_p) $(DESTDIR)$(somedir)
3255 # so it does not work when $(somedir) is undefined and
3256 # $(DESTDIR) is not.
3257 # To support the latter case, we have to write
3258 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3259 # so the `.' trick is pointless.
3260 mkdir_p='mkdir -p --'
3261 else
3262 # On NextStep and OpenStep, the `mkdir' command does not
3263 # recognize any option. It will interpret all options as
3264 # directories to create, and then abort because `.' already
3265 # exists.
3266 for d in ./-p ./--version;
3268 test -d $d && rmdir $d
3269 done
3270 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3271 if test -f "$ac_aux_dir/mkinstalldirs"; then
3272 mkdir_p='$(mkinstalldirs)'
3273 else
3274 mkdir_p='$(install_sh) -d'
3278 for ac_prog in gawk mawk nawk awk
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281 set dummy $ac_prog; ac_word=$2
3282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3284 if test "${ac_cv_prog_AWK+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 if test -n "$AWK"; then
3288 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_AWK="$ac_prog"
3298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3301 done
3302 done
3303 IFS=$as_save_IFS
3307 AWK=$ac_cv_prog_AWK
3308 if test -n "$AWK"; then
3309 { echo "$as_me:$LINENO: result: $AWK" >&5
3310 echo "${ECHO_T}$AWK" >&6; }
3311 else
3312 { echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6; }
3317 test -n "$AWK" && break
3318 done
3320 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3321 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3322 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3323 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 else
3326 cat >conftest.make <<\_ACEOF
3327 SHELL = /bin/sh
3328 all:
3329 @echo '@@@%%%=$(MAKE)=@@@%%%'
3330 _ACEOF
3331 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3332 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3333 *@@@%%%=?*=@@@%%%*)
3334 eval ac_cv_prog_make_${ac_make}_set=yes;;
3336 eval ac_cv_prog_make_${ac_make}_set=no;;
3337 esac
3338 rm -f conftest.make
3340 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3341 { echo "$as_me:$LINENO: result: yes" >&5
3342 echo "${ECHO_T}yes" >&6; }
3343 SET_MAKE=
3344 else
3345 { echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6; }
3347 SET_MAKE="MAKE=${MAKE-make}"
3350 rm -rf .tst 2>/dev/null
3351 mkdir .tst 2>/dev/null
3352 if test -d .tst; then
3353 am__leading_dot=.
3354 else
3355 am__leading_dot=_
3357 rmdir .tst 2>/dev/null
3359 DEPDIR="${am__leading_dot}deps"
3361 ac_config_commands="$ac_config_commands depfiles"
3364 am_make=${MAKE-make}
3365 cat > confinc << 'END'
3366 am__doit:
3367 @echo done
3368 .PHONY: am__doit
3370 # If we don't find an include directive, just comment out the code.
3371 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3372 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3373 am__include="#"
3374 am__quote=
3375 _am_result=none
3376 # First try GNU make style include.
3377 echo "include confinc" > confmf
3378 # We grep out `Entering directory' and `Leaving directory'
3379 # messages which can occur if `w' ends up in MAKEFLAGS.
3380 # In particular we don't look at `^make:' because GNU make might
3381 # be invoked under some other name (usually "gmake"), in which
3382 # case it prints its new name instead of `make'.
3383 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3384 am__include=include
3385 am__quote=
3386 _am_result=GNU
3388 # Now try BSD make style include.
3389 if test "$am__include" = "#"; then
3390 echo '.include "confinc"' > confmf
3391 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3392 am__include=.include
3393 am__quote="\""
3394 _am_result=BSD
3399 { echo "$as_me:$LINENO: result: $_am_result" >&5
3400 echo "${ECHO_T}$_am_result" >&6; }
3401 rm -f confinc confmf
3403 # Check whether --enable-dependency-tracking was given.
3404 if test "${enable_dependency_tracking+set}" = set; then
3405 enableval=$enable_dependency_tracking;
3408 if test "x$enable_dependency_tracking" != xno; then
3409 am_depcomp="$ac_aux_dir/depcomp"
3410 AMDEPBACKSLASH='\'
3414 if test "x$enable_dependency_tracking" != xno; then
3415 AMDEP_TRUE=
3416 AMDEP_FALSE='#'
3417 else
3418 AMDEP_TRUE='#'
3419 AMDEP_FALSE=
3424 # test to see if srcdir already configured
3425 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3426 test -f $srcdir/config.status; then
3427 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3428 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3429 { (exit 1); exit 1; }; }
3432 # test whether we have cygpath
3433 if test -z "$CYGPATH_W"; then
3434 if (cygpath --version) >/dev/null 2>/dev/null; then
3435 CYGPATH_W='cygpath -w'
3436 else
3437 CYGPATH_W=echo
3442 # Define the identity of the package.
3443 PACKAGE=gprof
3444 VERSION=${BFD_VERSION}
3447 cat >>confdefs.h <<_ACEOF
3448 #define PACKAGE "$PACKAGE"
3449 _ACEOF
3452 cat >>confdefs.h <<_ACEOF
3453 #define VERSION "$VERSION"
3454 _ACEOF
3456 # Some tools Automake needs.
3458 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3461 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3464 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3467 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3470 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3472 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3474 # Installed binaries are usually stripped using `strip' when the user
3475 # run `make install-strip'. However `strip' might not be the right
3476 # tool to use in cross-compilation environments, therefore Automake
3477 # will honor the `STRIP' environment variable to overrule this program.
3478 if test "$cross_compiling" != no; then
3479 if test -n "$ac_tool_prefix"; then
3480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3481 set dummy ${ac_tool_prefix}strip; ac_word=$2
3482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3484 if test "${ac_cv_prog_STRIP+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 if test -n "$STRIP"; then
3488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3501 done
3502 done
3503 IFS=$as_save_IFS
3507 STRIP=$ac_cv_prog_STRIP
3508 if test -n "$STRIP"; then
3509 { echo "$as_me:$LINENO: result: $STRIP" >&5
3510 echo "${ECHO_T}$STRIP" >&6; }
3511 else
3512 { echo "$as_me:$LINENO: result: no" >&5
3513 echo "${ECHO_T}no" >&6; }
3518 if test -z "$ac_cv_prog_STRIP"; then
3519 ac_ct_STRIP=$STRIP
3520 # Extract the first word of "strip", so it can be a program name with args.
3521 set dummy strip; ac_word=$2
3522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3524 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 if test -n "$ac_ct_STRIP"; then
3528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3537 ac_cv_prog_ac_ct_STRIP="strip"
3538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 break 2
3541 done
3542 done
3543 IFS=$as_save_IFS
3547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3548 if test -n "$ac_ct_STRIP"; then
3549 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3550 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3551 else
3552 { echo "$as_me:$LINENO: result: no" >&5
3553 echo "${ECHO_T}no" >&6; }
3556 if test "x$ac_ct_STRIP" = x; then
3557 STRIP=":"
3558 else
3559 case $cross_compiling:$ac_tool_warned in
3560 yes:)
3561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3562 whose name does not start with the host triplet. If you think this
3563 configuration is useful to you, please write to autoconf@gnu.org." >&5
3564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3565 whose name does not start with the host triplet. If you think this
3566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3567 ac_tool_warned=yes ;;
3568 esac
3569 STRIP=$ac_ct_STRIP
3571 else
3572 STRIP="$ac_cv_prog_STRIP"
3576 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3578 # We need awk for the "check" target. The system "awk" is bad on
3579 # some platforms.
3580 # Always define AMTAR for backward compatibility.
3582 AMTAR=${AMTAR-"${am_missing_run}tar"}
3584 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3589 depcc="$CC" am_compiler_list=
3591 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3592 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3593 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3597 # We make a subdir and do the tests there. Otherwise we can end up
3598 # making bogus files that we don't know about and never remove. For
3599 # instance it was reported that on HP-UX the gcc test will end up
3600 # making a dummy file named `D' -- because `-MD' means `put the output
3601 # in D'.
3602 mkdir conftest.dir
3603 # Copy depcomp to subdir because otherwise we won't find it if we're
3604 # using a relative directory.
3605 cp "$am_depcomp" conftest.dir
3606 cd conftest.dir
3607 # We will build objects and dependencies in a subdirectory because
3608 # it helps to detect inapplicable dependency modes. For instance
3609 # both Tru64's cc and ICC support -MD to output dependencies as a
3610 # side effect of compilation, but ICC will put the dependencies in
3611 # the current directory while Tru64 will put them in the object
3612 # directory.
3613 mkdir sub
3615 am_cv_CC_dependencies_compiler_type=none
3616 if test "$am_compiler_list" = ""; then
3617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3619 for depmode in $am_compiler_list; do
3620 # Setup a source with many dependencies, because some compilers
3621 # like to wrap large dependency lists on column 80 (with \), and
3622 # we should not choose a depcomp mode which is confused by this.
3624 # We need to recreate these files for each test, as the compiler may
3625 # overwrite some of them when testing with obscure command lines.
3626 # This happens at least with the AIX C compiler.
3627 : > sub/conftest.c
3628 for i in 1 2 3 4 5 6; do
3629 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3630 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3631 # Solaris 8's {/usr,}/bin/sh.
3632 touch sub/conftst$i.h
3633 done
3634 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3636 case $depmode in
3637 nosideeffect)
3638 # after this tag, mechanisms are not by side-effect, so they'll
3639 # only be used when explicitly requested
3640 if test "x$enable_dependency_tracking" = xyes; then
3641 continue
3642 else
3643 break
3646 none) break ;;
3647 esac
3648 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3649 # mode. It turns out that the SunPro C++ compiler does not properly
3650 # handle `-M -o', and we need to detect this.
3651 if depmode=$depmode \
3652 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3653 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3654 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3655 >/dev/null 2>conftest.err &&
3656 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3657 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3658 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3659 # icc doesn't choke on unknown options, it will just issue warnings
3660 # or remarks (even with -Werror). So we grep stderr for any message
3661 # that says an option was ignored or not supported.
3662 # When given -MP, icc 7.0 and 7.1 complain thusly:
3663 # icc: Command line warning: ignoring option '-M'; no argument required
3664 # The diagnosis changed in icc 8.0:
3665 # icc: Command line remark: option '-MP' not supported
3666 if (grep 'ignoring option' conftest.err ||
3667 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3668 am_cv_CC_dependencies_compiler_type=$depmode
3669 break
3672 done
3674 cd ..
3675 rm -rf conftest.dir
3676 else
3677 am_cv_CC_dependencies_compiler_type=none
3681 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3682 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3683 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3688 test "x$enable_dependency_tracking" != xno \
3689 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3690 am__fastdepCC_TRUE=
3691 am__fastdepCC_FALSE='#'
3692 else
3693 am__fastdepCC_TRUE='#'
3694 am__fastdepCC_FALSE=
3702 macro_version='2.1a'
3703 macro_revision='1.2435'
3716 ltmain="$ac_aux_dir/ltmain.sh"
3718 # Set options
3720 enable_dlopen=no
3723 enable_win32_dll=no
3726 # Check whether --enable-shared was given.
3727 if test "${enable_shared+set}" = set; then
3728 enableval=$enable_shared; p=${PACKAGE-default}
3729 case $enableval in
3730 yes) enable_shared=yes ;;
3731 no) enable_shared=no ;;
3733 enable_shared=no
3734 # Look at the argument we got. We use all the common list separators.
3735 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3736 for pkg in $enableval; do
3737 IFS="$lt_save_ifs"
3738 if test "X$pkg" = "X$p"; then
3739 enable_shared=yes
3741 done
3742 IFS="$lt_save_ifs"
3744 esac
3745 else
3746 enable_shared=yes
3757 # Check whether --enable-static was given.
3758 if test "${enable_static+set}" = set; then
3759 enableval=$enable_static; p=${PACKAGE-default}
3760 case $enableval in
3761 yes) enable_static=yes ;;
3762 no) enable_static=no ;;
3764 enable_static=no
3765 # Look at the argument we got. We use all the common list separators.
3766 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3767 for pkg in $enableval; do
3768 IFS="$lt_save_ifs"
3769 if test "X$pkg" = "X$p"; then
3770 enable_static=yes
3772 done
3773 IFS="$lt_save_ifs"
3775 esac
3776 else
3777 enable_static=yes
3789 # Check whether --with-pic was given.
3790 if test "${with_pic+set}" = set; then
3791 withval=$with_pic; pic_mode="$withval"
3792 else
3793 pic_mode=default
3797 test -z "$pic_mode" && pic_mode=default
3805 # Check whether --enable-fast-install was given.
3806 if test "${enable_fast_install+set}" = set; then
3807 enableval=$enable_fast_install; p=${PACKAGE-default}
3808 case $enableval in
3809 yes) enable_fast_install=yes ;;
3810 no) enable_fast_install=no ;;
3812 enable_fast_install=no
3813 # Look at the argument we got. We use all the common list separators.
3814 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3815 for pkg in $enableval; do
3816 IFS="$lt_save_ifs"
3817 if test "X$pkg" = "X$p"; then
3818 enable_fast_install=yes
3820 done
3821 IFS="$lt_save_ifs"
3823 esac
3824 else
3825 enable_fast_install=yes
3836 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3837 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3838 if test "${ac_cv_path_SED+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3842 for ac_i in 1 2 3 4 5 6 7; do
3843 ac_script="$ac_script$as_nl$ac_script"
3844 done
3845 echo "$ac_script" | sed 99q >conftest.sed
3846 $as_unset ac_script || ac_script=
3847 # Extract the first word of "sed gsed" to use in msg output
3848 if test -z "$SED"; then
3849 set dummy sed gsed; ac_prog_name=$2
3850 if test "${ac_cv_path_SED+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853 ac_path_SED_found=false
3854 # Loop through the user's path and test for each of PROGNAME-LIST
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_prog in sed gsed; do
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3863 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3864 # Check for GNU ac_path_SED and select it if it is found.
3865 # Check for GNU $ac_path_SED
3866 case `"$ac_path_SED" --version 2>&1` in
3867 *GNU*)
3868 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3870 ac_count=0
3871 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3872 while :
3874 cat "conftest.in" "conftest.in" >"conftest.tmp"
3875 mv "conftest.tmp" "conftest.in"
3876 cp "conftest.in" "conftest.nl"
3877 echo '' >> "conftest.nl"
3878 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3880 ac_count=`expr $ac_count + 1`
3881 if test $ac_count -gt ${ac_path_SED_max-0}; then
3882 # Best one so far, save it but keep looking for a better one
3883 ac_cv_path_SED="$ac_path_SED"
3884 ac_path_SED_max=$ac_count
3886 # 10*(2^10) chars as input seems more than enough
3887 test $ac_count -gt 10 && break
3888 done
3889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3890 esac
3893 $ac_path_SED_found && break 3
3894 done
3895 done
3897 done
3898 IFS=$as_save_IFS
3903 SED="$ac_cv_path_SED"
3904 if test -z "$SED"; then
3905 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3906 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3907 { (exit 1); exit 1; }; }
3910 else
3911 ac_cv_path_SED=$SED
3915 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3916 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3917 SED="$ac_cv_path_SED"
3918 rm -f conftest.sed
3920 test -z "$SED" && SED=sed
3921 Xsed="$SED -e 1s/^X//"
3933 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3934 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3935 if test "${ac_cv_path_GREP+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938 # Extract the first word of "grep ggrep" to use in msg output
3939 if test -z "$GREP"; then
3940 set dummy grep ggrep; ac_prog_name=$2
3941 if test "${ac_cv_path_GREP+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 ac_path_GREP_found=false
3945 # Loop through the user's path and test for each of PROGNAME-LIST
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_prog in grep ggrep; do
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3954 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3955 # Check for GNU ac_path_GREP and select it if it is found.
3956 # Check for GNU $ac_path_GREP
3957 case `"$ac_path_GREP" --version 2>&1` in
3958 *GNU*)
3959 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3961 ac_count=0
3962 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3963 while :
3965 cat "conftest.in" "conftest.in" >"conftest.tmp"
3966 mv "conftest.tmp" "conftest.in"
3967 cp "conftest.in" "conftest.nl"
3968 echo 'GREP' >> "conftest.nl"
3969 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971 ac_count=`expr $ac_count + 1`
3972 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3973 # Best one so far, save it but keep looking for a better one
3974 ac_cv_path_GREP="$ac_path_GREP"
3975 ac_path_GREP_max=$ac_count
3977 # 10*(2^10) chars as input seems more than enough
3978 test $ac_count -gt 10 && break
3979 done
3980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981 esac
3984 $ac_path_GREP_found && break 3
3985 done
3986 done
3988 done
3989 IFS=$as_save_IFS
3994 GREP="$ac_cv_path_GREP"
3995 if test -z "$GREP"; then
3996 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3997 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3998 { (exit 1); exit 1; }; }
4001 else
4002 ac_cv_path_GREP=$GREP
4007 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4008 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4009 GREP="$ac_cv_path_GREP"
4012 { echo "$as_me:$LINENO: checking for egrep" >&5
4013 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4014 if test "${ac_cv_path_EGREP+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4018 then ac_cv_path_EGREP="$GREP -E"
4019 else
4020 # Extract the first word of "egrep" to use in msg output
4021 if test -z "$EGREP"; then
4022 set dummy egrep; ac_prog_name=$2
4023 if test "${ac_cv_path_EGREP+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026 ac_path_EGREP_found=false
4027 # Loop through the user's path and test for each of PROGNAME-LIST
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_prog in egrep; do
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4036 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4037 # Check for GNU ac_path_EGREP and select it if it is found.
4038 # Check for GNU $ac_path_EGREP
4039 case `"$ac_path_EGREP" --version 2>&1` in
4040 *GNU*)
4041 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4043 ac_count=0
4044 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4045 while :
4047 cat "conftest.in" "conftest.in" >"conftest.tmp"
4048 mv "conftest.tmp" "conftest.in"
4049 cp "conftest.in" "conftest.nl"
4050 echo 'EGREP' >> "conftest.nl"
4051 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4053 ac_count=`expr $ac_count + 1`
4054 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4055 # Best one so far, save it but keep looking for a better one
4056 ac_cv_path_EGREP="$ac_path_EGREP"
4057 ac_path_EGREP_max=$ac_count
4059 # 10*(2^10) chars as input seems more than enough
4060 test $ac_count -gt 10 && break
4061 done
4062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4063 esac
4066 $ac_path_EGREP_found && break 3
4067 done
4068 done
4070 done
4071 IFS=$as_save_IFS
4076 EGREP="$ac_cv_path_EGREP"
4077 if test -z "$EGREP"; then
4078 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4079 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4080 { (exit 1); exit 1; }; }
4083 else
4084 ac_cv_path_EGREP=$EGREP
4090 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4091 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4092 EGREP="$ac_cv_path_EGREP"
4095 { echo "$as_me:$LINENO: checking for fgrep" >&5
4096 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4097 if test "${ac_cv_path_FGREP+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4101 then ac_cv_path_FGREP="$GREP -F"
4102 else
4103 # Extract the first word of "fgrep" to use in msg output
4104 if test -z "$FGREP"; then
4105 set dummy fgrep; ac_prog_name=$2
4106 if test "${ac_cv_path_FGREP+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109 ac_path_FGREP_found=false
4110 # Loop through the user's path and test for each of PROGNAME-LIST
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_prog in fgrep; do
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4119 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4120 # Check for GNU ac_path_FGREP and select it if it is found.
4121 # Check for GNU $ac_path_FGREP
4122 case `"$ac_path_FGREP" --version 2>&1` in
4123 *GNU*)
4124 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4126 ac_count=0
4127 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4128 while :
4130 cat "conftest.in" "conftest.in" >"conftest.tmp"
4131 mv "conftest.tmp" "conftest.in"
4132 cp "conftest.in" "conftest.nl"
4133 echo 'FGREP' >> "conftest.nl"
4134 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4136 ac_count=`expr $ac_count + 1`
4137 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4138 # Best one so far, save it but keep looking for a better one
4139 ac_cv_path_FGREP="$ac_path_FGREP"
4140 ac_path_FGREP_max=$ac_count
4142 # 10*(2^10) chars as input seems more than enough
4143 test $ac_count -gt 10 && break
4144 done
4145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146 esac
4149 $ac_path_FGREP_found && break 3
4150 done
4151 done
4153 done
4154 IFS=$as_save_IFS
4159 FGREP="$ac_cv_path_FGREP"
4160 if test -z "$FGREP"; then
4161 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4162 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4163 { (exit 1); exit 1; }; }
4166 else
4167 ac_cv_path_FGREP=$FGREP
4173 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4174 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4175 FGREP="$ac_cv_path_FGREP"
4178 test -z "$GREP" && GREP=grep
4198 # Check whether --with-gnu-ld was given.
4199 if test "${with_gnu_ld+set}" = set; then
4200 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4201 else
4202 with_gnu_ld=no
4205 ac_prog=ld
4206 if test "$GCC" = yes; then
4207 # Check if gcc -print-prog-name=ld gives a path.
4208 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4209 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4210 case $host in
4211 *-*-mingw*)
4212 # gcc leaves a trailing carriage return which upsets mingw
4213 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4215 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4216 esac
4217 case $ac_prog in
4218 # Accept absolute paths.
4219 [\\/]* | ?:[\\/]*)
4220 re_direlt='/[^/][^/]*/\.\./'
4221 # Canonicalize the pathname of ld
4222 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4223 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4224 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4225 done
4226 test -z "$LD" && LD="$ac_prog"
4229 # If it fails, then pretend we aren't using GCC.
4230 ac_prog=ld
4233 # If it is relative, then search for the first ld in PATH.
4234 with_gnu_ld=unknown
4236 esac
4237 elif test "$with_gnu_ld" = yes; then
4238 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4239 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4240 else
4241 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4242 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4244 if test "${lt_cv_path_LD+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 if test -z "$LD"; then
4248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4249 for ac_dir in $PATH; do
4250 IFS="$lt_save_ifs"
4251 test -z "$ac_dir" && ac_dir=.
4252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4253 lt_cv_path_LD="$ac_dir/$ac_prog"
4254 # Check to see if the program is GNU ld. I'd rather use --version,
4255 # but apparently some variants of GNU ld only accept -v.
4256 # Break only if it was the GNU/non-GNU ld that we prefer.
4257 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4258 *GNU* | *'with BFD'*)
4259 test "$with_gnu_ld" != no && break
4262 test "$with_gnu_ld" != yes && break
4264 esac
4266 done
4267 IFS="$lt_save_ifs"
4268 else
4269 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4273 LD="$lt_cv_path_LD"
4274 if test -n "$LD"; then
4275 { echo "$as_me:$LINENO: result: $LD" >&5
4276 echo "${ECHO_T}$LD" >&6; }
4277 else
4278 { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4281 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4282 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4283 { (exit 1); exit 1; }; }
4284 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4285 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4286 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4290 case `$LD -v 2>&1 </dev/null` in
4291 *GNU* | *'with BFD'*)
4292 lt_cv_prog_gnu_ld=yes
4295 lt_cv_prog_gnu_ld=no
4297 esac
4299 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4300 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4301 with_gnu_ld=$lt_cv_prog_gnu_ld
4312 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4313 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4314 if test "${lt_cv_path_NM+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 if test -n "$NM"; then
4318 # Let the user override the test.
4319 lt_cv_path_NM="$NM"
4320 else
4321 lt_nm_to_check="${ac_tool_prefix}nm"
4322 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4323 lt_nm_to_check="$lt_nm_to_check nm"
4325 for lt_tmp_nm in $lt_nm_to_check; do
4326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4327 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4328 IFS="$lt_save_ifs"
4329 test -z "$ac_dir" && ac_dir=.
4330 tmp_nm="$ac_dir/$lt_tmp_nm"
4331 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4332 # Check to see if the nm accepts a BSD-compat flag.
4333 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4334 # nm: unknown option "B" ignored
4335 # Tru64's nm complains that /dev/null is an invalid object file
4336 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4337 */dev/null* | *'Invalid file or object type'*)
4338 lt_cv_path_NM="$tmp_nm -B"
4339 break
4342 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4343 */dev/null*)
4344 lt_cv_path_NM="$tmp_nm -p"
4345 break
4348 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4349 continue # so that we can try to find one that supports BSD flags
4351 esac
4353 esac
4355 done
4356 IFS="$lt_save_ifs"
4357 done
4358 : ${lt_cv_path_NM=no}
4361 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4362 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4363 if test "$lt_cv_path_NM" != "no"; then
4364 NM="$lt_cv_path_NM"
4365 else
4366 # Didn't find any BSD compatible name lister, look for dumpbin.
4367 if test -n "$ac_tool_prefix"; then
4368 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4371 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4374 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377 if test -n "$DUMPBIN"; then
4378 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 break 2
4391 done
4392 done
4393 IFS=$as_save_IFS
4397 DUMPBIN=$ac_cv_prog_DUMPBIN
4398 if test -n "$DUMPBIN"; then
4399 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4400 echo "${ECHO_T}$DUMPBIN" >&6; }
4401 else
4402 { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }
4407 test -n "$DUMPBIN" && break
4408 done
4410 if test -z "$DUMPBIN"; then
4411 ac_ct_DUMPBIN=$DUMPBIN
4412 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4414 # Extract the first word of "$ac_prog", so it can be a program name with args.
4415 set dummy $ac_prog; ac_word=$2
4416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4418 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421 if test -n "$ac_ct_DUMPBIN"; then
4422 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4435 done
4436 done
4437 IFS=$as_save_IFS
4441 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4442 if test -n "$ac_ct_DUMPBIN"; then
4443 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4444 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4445 else
4446 { echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6; }
4451 test -n "$ac_ct_DUMPBIN" && break
4452 done
4454 if test "x$ac_ct_DUMPBIN" = x; then
4455 DUMPBIN=":"
4456 else
4457 case $cross_compiling:$ac_tool_warned in
4458 yes:)
4459 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4460 whose name does not start with the host triplet. If you think this
4461 configuration is useful to you, please write to autoconf@gnu.org." >&5
4462 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4463 whose name does not start with the host triplet. If you think this
4464 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4465 ac_tool_warned=yes ;;
4466 esac
4467 DUMPBIN=$ac_ct_DUMPBIN
4472 if test "$DUMPBIN" != ":"; then
4473 NM="$DUMPBIN"
4476 test -z "$NM" && NM=nm
4483 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4484 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4485 if test "${lt_cv_nm_interface+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488 lt_cv_nm_interface="BSD nm"
4489 echo "int some_variable = 0;" > conftest.$ac_ext
4490 (eval echo "\"\$as_me:4490: $ac_compile\"" >&5)
4491 (eval "$ac_compile" 2>conftest.err)
4492 cat conftest.err >&5
4493 (eval echo "\"\$as_me:4493: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4494 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4495 cat conftest.err >&5
4496 (eval echo "\"\$as_me:4496: output\"" >&5)
4497 cat conftest.out >&5
4498 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4499 lt_cv_nm_interface="MS dumpbin"
4501 rm -f conftest*
4503 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4504 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4506 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4507 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4508 LN_S=$as_ln_s
4509 if test "$LN_S" = "ln -s"; then
4510 { echo "$as_me:$LINENO: result: yes" >&5
4511 echo "${ECHO_T}yes" >&6; }
4512 else
4513 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4514 echo "${ECHO_T}no, using $LN_S" >&6; }
4517 # find the maximum length of command line arguments
4518 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4519 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4520 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4524 teststring="ABCD"
4526 case $build_os in
4527 msdosdjgpp*)
4528 # On DJGPP, this test can blow up pretty badly due to problems in libc
4529 # (any single argument exceeding 2000 bytes causes a buffer overrun
4530 # during glob expansion). Even if it were fixed, the result of this
4531 # check would be larger than it should be.
4532 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4535 gnu*)
4536 # Under GNU Hurd, this test is not required because there is
4537 # no limit to the length of command line arguments.
4538 # Libtool will interpret -1 as no limit whatsoever
4539 lt_cv_sys_max_cmd_len=-1;
4542 cygwin* | mingw*)
4543 # On Win9x/ME, this test blows up -- it succeeds, but takes
4544 # about 5 minutes as the teststring grows exponentially.
4545 # Worse, since 9x/ME are not pre-emptively multitasking,
4546 # you end up with a "frozen" computer, even though with patience
4547 # the test eventually succeeds (with a max line length of 256k).
4548 # Instead, let's just punt: use the minimum linelength reported by
4549 # all of the supported platforms: 8192 (on NT/2K/XP).
4550 lt_cv_sys_max_cmd_len=8192;
4553 amigaos*)
4554 # On AmigaOS with pdksh, this test takes hours, literally.
4555 # So we just punt and use a minimum line length of 8192.
4556 lt_cv_sys_max_cmd_len=8192;
4559 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4560 # This has been around since 386BSD, at least. Likely further.
4561 if test -x /sbin/sysctl; then
4562 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4563 elif test -x /usr/sbin/sysctl; then
4564 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4565 else
4566 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4568 # And add a safety zone
4569 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4573 interix*)
4574 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4575 lt_cv_sys_max_cmd_len=196608
4578 osf*)
4579 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4580 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4581 # nice to cause kernel panics so lets avoid the loop below.
4582 # First set a reasonable default.
4583 lt_cv_sys_max_cmd_len=16384
4585 if test -x /sbin/sysconfig; then
4586 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4587 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4588 esac
4591 sco3.2v5*)
4592 lt_cv_sys_max_cmd_len=102400
4594 sysv5* | sco5v6* | sysv4.2uw2*)
4595 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4596 if test -n "$kargmax"; then
4597 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4598 else
4599 lt_cv_sys_max_cmd_len=32768
4603 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4604 if test -n $lt_cv_sys_max_cmd_len; then
4605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4607 else
4608 # Make teststring a little bigger before we do anything with it.
4609 # a 1K string should be a reasonable start.
4610 for i in 1 2 3 4 5 6 7 8 ; do
4611 teststring=$teststring$teststring
4612 done
4613 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4614 # If test is not a shell built-in, we'll probably end up computing a
4615 # maximum length that is only half of the actual maximum length, but
4616 # we can't tell.
4617 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4618 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4619 test $i != 17 # 1/2 MB should be enough
4621 i=`expr $i + 1`
4622 teststring=$teststring$teststring
4623 done
4624 # Only check the string length outside the loop.
4625 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4626 teststring=
4627 # Add a significant safety factor because C++ compilers can tack on
4628 # massive amounts of additional arguments before passing them to the
4629 # linker. It appears as though 1/2 is a usable value.
4630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4633 esac
4637 if test -n $lt_cv_sys_max_cmd_len ; then
4638 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4639 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4640 else
4641 { echo "$as_me:$LINENO: result: none" >&5
4642 echo "${ECHO_T}none" >&6; }
4644 max_cmd_len=$lt_cv_sys_max_cmd_len
4652 : ${CP="cp -f"}
4653 : ${MV="mv -f"}
4654 : ${RM="rm -f"}
4656 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4657 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4658 # Try some XSI features
4659 xsi_shell=no
4660 ( _lt_dummy="a/b/c"
4661 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4662 = c,a/b,, ) >/dev/null 2>&1 \
4663 && xsi_shell=yes
4664 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4665 echo "${ECHO_T}$xsi_shell" >&6; }
4668 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4669 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4670 lt_shell_append=no
4671 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4672 >/dev/null 2>&1 \
4673 && lt_shell_append=yes
4674 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4675 echo "${ECHO_T}$lt_shell_append" >&6; }
4678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4679 lt_unset=unset
4680 else
4681 lt_unset=false
4688 # test EBCDIC or ASCII
4689 case `echo X|tr X '\101'` in
4690 A) # ASCII based system
4691 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4692 lt_SP2NL='tr \040 \012'
4693 lt_NL2SP='tr \015\012 \040\040'
4695 *) # EBCDIC based system
4696 lt_SP2NL='tr \100 \n'
4697 lt_NL2SP='tr \r\n \100\100'
4699 esac
4709 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4710 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4711 if test "${lt_cv_ld_reload_flag+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714 lt_cv_ld_reload_flag='-r'
4716 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4717 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4718 reload_flag=$lt_cv_ld_reload_flag
4719 case $reload_flag in
4720 "" | " "*) ;;
4721 *) reload_flag=" $reload_flag" ;;
4722 esac
4723 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4724 case $host_os in
4725 darwin*)
4726 if test "$GCC" = yes; then
4727 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4728 else
4729 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4732 esac
4743 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4744 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4745 if test "${lt_cv_deplibs_check_method+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 lt_cv_file_magic_cmd='$MAGIC_CMD'
4749 lt_cv_file_magic_test_file=
4750 lt_cv_deplibs_check_method='unknown'
4751 # Need to set the preceding variable on all platforms that support
4752 # interlibrary dependencies.
4753 # 'none' -- dependencies not supported.
4754 # `unknown' -- same as none, but documents that we really don't know.
4755 # 'pass_all' -- all dependencies passed with no checks.
4756 # 'test_compile' -- check by making test program.
4757 # 'file_magic [[regex]]' -- check by looking for files in library path
4758 # which responds to the $file_magic_cmd with a given extended regex.
4759 # If you have `file' or equivalent on your system and you're not sure
4760 # whether `pass_all' will *always* work, you probably want this one.
4762 case $host_os in
4763 aix4* | aix5*)
4764 lt_cv_deplibs_check_method=pass_all
4767 beos*)
4768 lt_cv_deplibs_check_method=pass_all
4771 bsdi[45]*)
4772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4773 lt_cv_file_magic_cmd='/usr/bin/file -L'
4774 lt_cv_file_magic_test_file=/shlib/libc.so
4777 cygwin*)
4778 # func_win32_libid is a shell function defined in ltmain.sh
4779 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4780 lt_cv_file_magic_cmd='func_win32_libid'
4783 mingw* | pw32*)
4784 # Base MSYS/MinGW do not provide the 'file' command needed by
4785 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4786 # unless we find 'file', for example because we are cross-compiling.
4787 if ( file / ) >/dev/null 2>&1; then
4788 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4789 lt_cv_file_magic_cmd='func_win32_libid'
4790 else
4791 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4792 lt_cv_file_magic_cmd='$OBJDUMP -f'
4796 darwin* | rhapsody*)
4797 lt_cv_deplibs_check_method=pass_all
4800 freebsd* | dragonfly*)
4801 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4802 case $host_cpu in
4803 i*86 )
4804 # Not sure whether the presence of OpenBSD here was a mistake.
4805 # Let's accept both of them until this is cleared up.
4806 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4807 lt_cv_file_magic_cmd=/usr/bin/file
4808 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4810 esac
4811 else
4812 lt_cv_deplibs_check_method=pass_all
4816 gnu*)
4817 lt_cv_deplibs_check_method=pass_all
4820 hpux10.20* | hpux11*)
4821 lt_cv_file_magic_cmd=/usr/bin/file
4822 case $host_cpu in
4823 ia64*)
4824 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4825 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4827 hppa*64*)
4828 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]'
4829 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4832 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4833 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4835 esac
4838 interix[3-9]*)
4839 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4843 irix5* | irix6* | nonstopux*)
4844 case $LD in
4845 *-32|*"-32 ") libmagic=32-bit;;
4846 *-n32|*"-n32 ") libmagic=N32;;
4847 *-64|*"-64 ") libmagic=64-bit;;
4848 *) libmagic=never-match;;
4849 esac
4850 lt_cv_deplibs_check_method=pass_all
4853 # This must be Linux ELF.
4854 linux* | k*bsd*-gnu)
4855 lt_cv_deplibs_check_method=pass_all
4858 netbsd*)
4859 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4860 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4861 else
4862 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4866 newos6*)
4867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4868 lt_cv_file_magic_cmd=/usr/bin/file
4869 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4872 *nto* | *qnx*)
4873 lt_cv_deplibs_check_method=pass_all
4876 openbsd*)
4877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4879 else
4880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4884 osf3* | osf4* | osf5*)
4885 lt_cv_deplibs_check_method=pass_all
4888 rdos*)
4889 lt_cv_deplibs_check_method=pass_all
4892 solaris*)
4893 lt_cv_deplibs_check_method=pass_all
4896 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4897 lt_cv_deplibs_check_method=pass_all
4900 sysv4 | sysv4.3*)
4901 case $host_vendor in
4902 motorola)
4903 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]'
4904 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4906 ncr)
4907 lt_cv_deplibs_check_method=pass_all
4909 sequent)
4910 lt_cv_file_magic_cmd='/bin/file'
4911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4913 sni)
4914 lt_cv_file_magic_cmd='/bin/file'
4915 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4916 lt_cv_file_magic_test_file=/lib/libc.so
4918 siemens)
4919 lt_cv_deplibs_check_method=pass_all
4922 lt_cv_deplibs_check_method=pass_all
4924 esac
4927 tpf*)
4928 lt_cv_deplibs_check_method=pass_all
4930 esac
4933 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4934 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4935 file_magic_cmd=$lt_cv_file_magic_cmd
4936 deplibs_check_method=$lt_cv_deplibs_check_method
4937 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4950 if test -n "$ac_tool_prefix"; then
4951 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4952 set dummy ${ac_tool_prefix}ar; ac_word=$2
4953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4955 if test "${ac_cv_prog_AR+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958 if test -n "$AR"; then
4959 ac_cv_prog_AR="$AR" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_prog_AR="${ac_tool_prefix}ar"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4972 done
4973 done
4974 IFS=$as_save_IFS
4978 AR=$ac_cv_prog_AR
4979 if test -n "$AR"; then
4980 { echo "$as_me:$LINENO: result: $AR" >&5
4981 echo "${ECHO_T}$AR" >&6; }
4982 else
4983 { echo "$as_me:$LINENO: result: no" >&5
4984 echo "${ECHO_T}no" >&6; }
4989 if test -z "$ac_cv_prog_AR"; then
4990 ac_ct_AR=$AR
4991 # Extract the first word of "ar", so it can be a program name with args.
4992 set dummy ar; ac_word=$2
4993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998 if test -n "$ac_ct_AR"; then
4999 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_prog_ac_ct_AR="ar"
5009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5012 done
5013 done
5014 IFS=$as_save_IFS
5018 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5019 if test -n "$ac_ct_AR"; then
5020 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5021 echo "${ECHO_T}$ac_ct_AR" >&6; }
5022 else
5023 { echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6; }
5027 if test "x$ac_ct_AR" = x; then
5028 AR="false"
5029 else
5030 case $cross_compiling:$ac_tool_warned in
5031 yes:)
5032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5033 whose name does not start with the host triplet. If you think this
5034 configuration is useful to you, please write to autoconf@gnu.org." >&5
5035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5036 whose name does not start with the host triplet. If you think this
5037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5038 ac_tool_warned=yes ;;
5039 esac
5040 AR=$ac_ct_AR
5042 else
5043 AR="$ac_cv_prog_AR"
5046 test -z "$AR" && AR=ar
5047 test -z "$AR_FLAGS" && AR_FLAGS=cru
5059 if test -n "$ac_tool_prefix"; then
5060 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5061 set dummy ${ac_tool_prefix}strip; ac_word=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_prog_STRIP+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 if test -n "$STRIP"; then
5068 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5081 done
5082 done
5083 IFS=$as_save_IFS
5087 STRIP=$ac_cv_prog_STRIP
5088 if test -n "$STRIP"; then
5089 { echo "$as_me:$LINENO: result: $STRIP" >&5
5090 echo "${ECHO_T}$STRIP" >&6; }
5091 else
5092 { echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6; }
5098 if test -z "$ac_cv_prog_STRIP"; then
5099 ac_ct_STRIP=$STRIP
5100 # Extract the first word of "strip", so it can be a program name with args.
5101 set dummy strip; ac_word=$2
5102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5104 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107 if test -n "$ac_ct_STRIP"; then
5108 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5109 else
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_prog_ac_ct_STRIP="strip"
5118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5121 done
5122 done
5123 IFS=$as_save_IFS
5127 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5128 if test -n "$ac_ct_STRIP"; then
5129 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5130 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5131 else
5132 { echo "$as_me:$LINENO: result: no" >&5
5133 echo "${ECHO_T}no" >&6; }
5136 if test "x$ac_ct_STRIP" = x; then
5137 STRIP=":"
5138 else
5139 case $cross_compiling:$ac_tool_warned in
5140 yes:)
5141 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5142 whose name does not start with the host triplet. If you think this
5143 configuration is useful to you, please write to autoconf@gnu.org." >&5
5144 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5145 whose name does not start with the host triplet. If you think this
5146 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5147 ac_tool_warned=yes ;;
5148 esac
5149 STRIP=$ac_ct_STRIP
5151 else
5152 STRIP="$ac_cv_prog_STRIP"
5155 test -z "$STRIP" && STRIP=:
5162 if test -n "$ac_tool_prefix"; then
5163 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5164 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5167 if test "${ac_cv_prog_RANLIB+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170 if test -n "$RANLIB"; then
5171 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5184 done
5185 done
5186 IFS=$as_save_IFS
5190 RANLIB=$ac_cv_prog_RANLIB
5191 if test -n "$RANLIB"; then
5192 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5193 echo "${ECHO_T}$RANLIB" >&6; }
5194 else
5195 { echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6; }
5201 if test -z "$ac_cv_prog_RANLIB"; then
5202 ac_ct_RANLIB=$RANLIB
5203 # Extract the first word of "ranlib", so it can be a program name with args.
5204 set dummy ranlib; ac_word=$2
5205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 if test -n "$ac_ct_RANLIB"; then
5211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_ac_ct_RANLIB="ranlib"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5224 done
5225 done
5226 IFS=$as_save_IFS
5230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5231 if test -n "$ac_ct_RANLIB"; then
5232 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5233 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5234 else
5235 { echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6; }
5239 if test "x$ac_ct_RANLIB" = x; then
5240 RANLIB=":"
5241 else
5242 case $cross_compiling:$ac_tool_warned in
5243 yes:)
5244 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5245 whose name does not start with the host triplet. If you think this
5246 configuration is useful to you, please write to autoconf@gnu.org." >&5
5247 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5248 whose name does not start with the host triplet. If you think this
5249 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5250 ac_tool_warned=yes ;;
5251 esac
5252 RANLIB=$ac_ct_RANLIB
5254 else
5255 RANLIB="$ac_cv_prog_RANLIB"
5258 test -z "$RANLIB" && RANLIB=:
5265 # Determine commands to create old-style static archives.
5266 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5267 old_postinstall_cmds='chmod 644 $oldlib'
5268 old_postuninstall_cmds=
5270 if test -n "$RANLIB"; then
5271 case $host_os in
5272 openbsd*)
5273 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5276 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5278 esac
5279 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5315 # If no C compiler was specified, use CC.
5316 LTCC=${LTCC-"$CC"}
5318 # If no C compiler flags were specified, use CFLAGS.
5319 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5321 # Allow CC to be a program name with arguments.
5322 compiler=$CC
5325 # Check for command to grab the raw symbol name followed by C symbol from nm.
5326 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5327 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5328 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5332 # These are sane defaults that work on at least a few old systems.
5333 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5335 # Character class describing NM global symbol codes.
5336 symcode='[BCDEGRST]'
5338 # Regexp to match symbols that can be accessed directly from C.
5339 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5341 # Define system-specific variables.
5342 case $host_os in
5343 aix*)
5344 symcode='[BCDT]'
5346 cygwin* | mingw* | pw32*)
5347 symcode='[ABCDGISTW]'
5349 hpux*)
5350 if test "$host_cpu" = ia64; then
5351 symcode='[ABCDEGRST]'
5354 irix* | nonstopux*)
5355 symcode='[BCDEGRST]'
5357 osf*)
5358 symcode='[BCDEGQRST]'
5360 solaris*)
5361 symcode='[BDRT]'
5363 sco3.2v5*)
5364 symcode='[DT]'
5366 sysv4.2uw2*)
5367 symcode='[DT]'
5369 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5370 symcode='[ABDT]'
5372 sysv4)
5373 symcode='[DFNSTU]'
5375 esac
5377 # If we're using GNU nm, then use its standard symbol codes.
5378 case `$NM -V 2>&1` in
5379 *GNU* | *'with BFD'*)
5380 symcode='[ABCDGIRSTW]' ;;
5381 esac
5383 # Transform an extracted symbol line into a proper C declaration.
5384 # Some systems (esp. on ia64) link data and code symbols differently,
5385 # so use this general approach.
5386 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5388 # Transform an extracted symbol line into symbol name and symbol address
5389 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5391 # Handle CRLF in mingw tool chain
5392 opt_cr=
5393 case $build_os in
5394 mingw*)
5395 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5397 esac
5399 # Try without a prefix underscore, then with it.
5400 for ac_symprfx in "" "_"; do
5402 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5403 symxfrm="\\1 $ac_symprfx\\2 \\2"
5405 # Write the raw and C identifiers.
5406 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5407 # Fake it for dumpbin and say T for any non-static function
5408 # and D for any global variable.
5409 # Also find C++ and __fastcall symbols from MSVC++,
5410 # which start with @ or ?.
5411 lt_cv_sys_global_symbol_pipe="$AWK '"\
5412 " {last_section=section; section=\$ 3};"\
5413 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5414 " \$ 0!~/External *\|/{next};"\
5415 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5416 " {if(hide[section]) next};"\
5417 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5418 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5419 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5420 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5421 " ' prfx=^$ac_symprfx"
5422 else
5423 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5426 # Check to see that the pipe works correctly.
5427 pipe_works=no
5429 rm -f conftest*
5430 cat > conftest.$ac_ext <<_LT_EOF
5431 #ifdef __cplusplus
5432 extern "C" {
5433 #endif
5434 char nm_test_var;
5435 void nm_test_func(void);
5436 void nm_test_func(void){}
5437 #ifdef __cplusplus
5439 #endif
5440 int main(){nm_test_var='a';nm_test_func();return(0);}
5441 _LT_EOF
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444 (eval $ac_compile) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; then
5448 # Now try to grab the symbols.
5449 nlist=conftest.nm
5450 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5451 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } && test -s "$nlist"; then
5455 # Try sorting and uniquifying the output.
5456 if sort "$nlist" | uniq > "$nlist"T; then
5457 mv -f "$nlist"T "$nlist"
5458 else
5459 rm -f "$nlist"T
5462 # Make sure that we snagged all the symbols we need.
5463 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5464 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5465 cat <<_LT_EOF > conftest.$ac_ext
5466 #ifdef __cplusplus
5467 extern "C" {
5468 #endif
5470 _LT_EOF
5471 # Now generate the symbol file.
5472 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5474 cat <<_LT_EOF >> conftest.$ac_ext
5476 /* The mapping between symbol names and symbols. */
5477 const struct {
5478 const char *name;
5479 void *address;
5481 lt__PROGRAM__LTX_preloaded_symbols[] =
5483 { "@PROGRAM@", (void *) 0 },
5484 _LT_EOF
5485 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5486 cat <<\_LT_EOF >> conftest.$ac_ext
5487 {0, (void *) 0}
5490 /* This works around a problem in FreeBSD linker */
5491 #ifdef FREEBSD_WORKAROUND
5492 static const void *lt_preloaded_setup() {
5493 return lt__PROGRAM__LTX_preloaded_symbols;
5495 #endif
5497 #ifdef __cplusplus
5499 #endif
5500 _LT_EOF
5501 # Now try linking the two files.
5502 mv conftest.$ac_objext conftstm.$ac_objext
5503 lt_save_LIBS="$LIBS"
5504 lt_save_CFLAGS="$CFLAGS"
5505 LIBS="conftstm.$ac_objext"
5506 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5508 (eval $ac_link) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5512 pipe_works=yes
5514 LIBS="$lt_save_LIBS"
5515 CFLAGS="$lt_save_CFLAGS"
5516 else
5517 echo "cannot find nm_test_func in $nlist" >&5
5519 else
5520 echo "cannot find nm_test_var in $nlist" >&5
5522 else
5523 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5525 else
5526 echo "$progname: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5529 rm -f conftest* conftst*
5531 # Do not use the global_symbol_pipe unless it works.
5532 if test "$pipe_works" = yes; then
5533 break
5534 else
5535 lt_cv_sys_global_symbol_pipe=
5537 done
5541 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5542 lt_cv_sys_global_symbol_to_cdecl=
5544 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5545 { echo "$as_me:$LINENO: result: failed" >&5
5546 echo "${ECHO_T}failed" >&6; }
5547 else
5548 { echo "$as_me:$LINENO: result: ok" >&5
5549 echo "${ECHO_T}ok" >&6; }
5568 # Check whether --enable-libtool-lock was given.
5569 if test "${enable_libtool_lock+set}" = set; then
5570 enableval=$enable_libtool_lock;
5573 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5575 # Some flags need to be propagated to the compiler or linker for good
5576 # libtool support.
5577 case $host in
5578 ia64-*-hpux*)
5579 # Find out which ABI we are using.
5580 echo 'int i;' > conftest.$ac_ext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; then
5586 case `/usr/bin/file conftest.$ac_objext` in
5587 *ELF-32*)
5588 HPUX_IA64_MODE="32"
5590 *ELF-64*)
5591 HPUX_IA64_MODE="64"
5593 esac
5595 rm -rf conftest*
5597 *-*-irix6*)
5598 # Find out which ABI we are using.
5599 echo '#line 5599 "configure"' > conftest.$ac_ext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601 (eval $ac_compile) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; then
5605 if test "$lt_cv_prog_gnu_ld" = yes; then
5606 case `/usr/bin/file conftest.$ac_objext` in
5607 *32-bit*)
5608 LD="${LD-ld} -melf32bsmip"
5610 *N32*)
5611 LD="${LD-ld} -melf32bmipn32"
5613 *64-bit*)
5614 LD="${LD-ld} -melf64bmip"
5616 esac
5617 else
5618 case `/usr/bin/file conftest.$ac_objext` in
5619 *32-bit*)
5620 LD="${LD-ld} -32"
5622 *N32*)
5623 LD="${LD-ld} -n32"
5625 *64-bit*)
5626 LD="${LD-ld} -64"
5628 esac
5631 rm -rf conftest*
5634 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5635 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5636 # Find out which ABI we are using.
5637 echo 'int i;' > conftest.$ac_ext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5639 (eval $ac_compile) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; then
5643 case `/usr/bin/file conftest.o` in
5644 *32-bit*)
5645 case $host in
5646 x86_64-*kfreebsd*-gnu)
5647 LD="${LD-ld} -m elf_i386_fbsd"
5649 x86_64-*linux*)
5650 LD="${LD-ld} -m elf_i386"
5652 ppc64-*linux*|powerpc64-*linux*)
5653 LD="${LD-ld} -m elf32ppclinux"
5655 s390x-*linux*)
5656 LD="${LD-ld} -m elf_s390"
5658 sparc64-*linux*)
5659 LD="${LD-ld} -m elf32_sparc"
5661 esac
5663 *64-bit*)
5664 case $host in
5665 x86_64-*kfreebsd*-gnu)
5666 LD="${LD-ld} -m elf_x86_64_fbsd"
5668 x86_64-*linux*)
5669 LD="${LD-ld} -m elf_x86_64"
5671 ppc*-*linux*|powerpc*-*linux*)
5672 LD="${LD-ld} -m elf64ppc"
5674 s390*-*linux*|s390*-*tpf*)
5675 LD="${LD-ld} -m elf64_s390"
5677 sparc*-*linux*)
5678 LD="${LD-ld} -m elf64_sparc"
5680 esac
5682 esac
5684 rm -rf conftest*
5687 *-*-sco3.2v5*)
5688 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5689 SAVE_CFLAGS="$CFLAGS"
5690 CFLAGS="$CFLAGS -belf"
5691 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5692 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5693 if test "${lt_cv_cc_needs_belf+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696 ac_ext=c
5697 ac_cpp='$CPP $CPPFLAGS'
5698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5702 cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h. */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5710 main ()
5714 return 0;
5716 _ACEOF
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (ac_try="$ac_link"
5719 case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_link") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest$ac_exeext &&
5734 $as_test_x conftest$ac_exeext; then
5735 lt_cv_cc_needs_belf=yes
5736 else
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 lt_cv_cc_needs_belf=no
5743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5744 conftest$ac_exeext conftest.$ac_ext
5745 ac_ext=c
5746 ac_cpp='$CPP $CPPFLAGS'
5747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5752 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5753 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5754 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5755 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5756 CFLAGS="$SAVE_CFLAGS"
5759 sparc*-*solaris*)
5760 # Find out which ABI we are using.
5761 echo 'int i;' > conftest.$ac_ext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; then
5767 case `/usr/bin/file conftest.o` in
5768 *64-bit*)
5769 case $lt_cv_prog_gnu_ld in
5770 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5771 *) LD="${LD-ld} -64" ;;
5772 esac
5774 esac
5776 rm -rf conftest*
5778 esac
5780 need_locks="$enable_libtool_lock"
5782 ac_ext=c
5783 ac_cpp='$CPP $CPPFLAGS'
5784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5787 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5788 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5789 # On Suns, sometimes $CPP names a directory.
5790 if test -n "$CPP" && test -d "$CPP"; then
5791 CPP=
5793 if test -z "$CPP"; then
5794 if test "${ac_cv_prog_CPP+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 # Double quotes because CPP needs to be expanded
5798 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5800 ac_preproc_ok=false
5801 for ac_c_preproc_warn_flag in '' yes
5803 # Use a header file that comes with gcc, so configuring glibc
5804 # with a fresh cross-compiler works.
5805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5806 # <limits.h> exists even on freestanding compilers.
5807 # On the NeXT, cc -E runs the code through the compiler's parser,
5808 # not just through cpp. "Syntax error" is here to catch this case.
5809 cat >conftest.$ac_ext <<_ACEOF
5810 /* confdefs.h. */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 #ifdef __STDC__
5816 # include <limits.h>
5817 #else
5818 # include <assert.h>
5819 #endif
5820 Syntax error
5821 _ACEOF
5822 if { (ac_try="$ac_cpp conftest.$ac_ext"
5823 case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826 esac
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev/null && {
5835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5836 test ! -s conftest.err
5837 }; then
5839 else
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5843 # Broken: fails on valid input.
5844 continue
5847 rm -f conftest.err conftest.$ac_ext
5849 # OK, works on sane cases. Now check whether nonexistent headers
5850 # can be detected and how.
5851 cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h. */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 #include <ac_nonexistent.h>
5858 _ACEOF
5859 if { (ac_try="$ac_cpp conftest.$ac_ext"
5860 case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } >/dev/null && {
5872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 }; then
5875 # Broken: success on invalid input.
5876 continue
5877 else
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 # Passes both tests.
5882 ac_preproc_ok=:
5883 break
5886 rm -f conftest.err conftest.$ac_ext
5888 done
5889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5890 rm -f conftest.err conftest.$ac_ext
5891 if $ac_preproc_ok; then
5892 break
5895 done
5896 ac_cv_prog_CPP=$CPP
5899 CPP=$ac_cv_prog_CPP
5900 else
5901 ac_cv_prog_CPP=$CPP
5903 { echo "$as_me:$LINENO: result: $CPP" >&5
5904 echo "${ECHO_T}$CPP" >&6; }
5905 ac_preproc_ok=false
5906 for ac_c_preproc_warn_flag in '' yes
5908 # Use a header file that comes with gcc, so configuring glibc
5909 # with a fresh cross-compiler works.
5910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911 # <limits.h> exists even on freestanding compilers.
5912 # On the NeXT, cc -E runs the code through the compiler's parser,
5913 # not just through cpp. "Syntax error" is here to catch this case.
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 #ifdef __STDC__
5921 # include <limits.h>
5922 #else
5923 # include <assert.h>
5924 #endif
5925 Syntax error
5926 _ACEOF
5927 if { (ac_try="$ac_cpp conftest.$ac_ext"
5928 case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } >/dev/null && {
5940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 }; then
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 # Broken: fails on valid input.
5949 continue
5952 rm -f conftest.err conftest.$ac_ext
5954 # OK, works on sane cases. Now check whether nonexistent headers
5955 # can be detected and how.
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h. */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 #include <ac_nonexistent.h>
5963 _ACEOF
5964 if { (ac_try="$ac_cpp conftest.$ac_ext"
5965 case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } >/dev/null && {
5977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5978 test ! -s conftest.err
5979 }; then
5980 # Broken: success on invalid input.
5981 continue
5982 else
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 # Passes both tests.
5987 ac_preproc_ok=:
5988 break
5991 rm -f conftest.err conftest.$ac_ext
5993 done
5994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5995 rm -f conftest.err conftest.$ac_ext
5996 if $ac_preproc_ok; then
5998 else
5999 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6000 See \`config.log' for more details." >&5
6001 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6002 See \`config.log' for more details." >&2;}
6003 { (exit 1); exit 1; }; }
6006 ac_ext=c
6007 ac_cpp='$CPP $CPPFLAGS'
6008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6013 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6014 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6015 if test "${ac_cv_header_stdc+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #include <stdlib.h>
6025 #include <stdarg.h>
6026 #include <string.h>
6027 #include <float.h>
6030 main ()
6034 return 0;
6036 _ACEOF
6037 rm -f conftest.$ac_objext
6038 if { (ac_try="$ac_compile"
6039 case "(($ac_try" in
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6042 esac
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_compile") 2>conftest.er1
6045 ac_status=$?
6046 grep -v '^ *+' conftest.er1 >conftest.err
6047 rm -f conftest.er1
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && {
6051 test -z "$ac_c_werror_flag" ||
6052 test ! -s conftest.err
6053 } && test -s conftest.$ac_objext; then
6054 ac_cv_header_stdc=yes
6055 else
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6059 ac_cv_header_stdc=no
6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064 if test $ac_cv_header_stdc = yes; then
6065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6066 cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h. */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 #include <string.h>
6074 _ACEOF
6075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6076 $EGREP "memchr" >/dev/null 2>&1; then
6078 else
6079 ac_cv_header_stdc=no
6081 rm -f conftest*
6085 if test $ac_cv_header_stdc = yes; then
6086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6087 cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h. */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6093 #include <stdlib.h>
6095 _ACEOF
6096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6097 $EGREP "free" >/dev/null 2>&1; then
6099 else
6100 ac_cv_header_stdc=no
6102 rm -f conftest*
6106 if test $ac_cv_header_stdc = yes; then
6107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6108 if test "$cross_compiling" = yes; then
6110 else
6111 cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h. */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 #include <ctype.h>
6118 #include <stdlib.h>
6119 #if ((' ' & 0x0FF) == 0x020)
6120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6122 #else
6123 # define ISLOWER(c) \
6124 (('a' <= (c) && (c) <= 'i') \
6125 || ('j' <= (c) && (c) <= 'r') \
6126 || ('s' <= (c) && (c) <= 'z'))
6127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6128 #endif
6130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6132 main ()
6134 int i;
6135 for (i = 0; i < 256; i++)
6136 if (XOR (islower (i), ISLOWER (i))
6137 || toupper (i) != TOUPPER (i))
6138 return 2;
6139 return 0;
6141 _ACEOF
6142 rm -f conftest$ac_exeext
6143 if { (ac_try="$ac_link"
6144 case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147 esac
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_link") 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6153 { (case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156 esac
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_try") 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6163 else
6164 echo "$as_me: program exited with status $ac_status" >&5
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 ( exit $ac_status )
6169 ac_cv_header_stdc=no
6171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6177 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6178 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6179 if test $ac_cv_header_stdc = yes; then
6181 cat >>confdefs.h <<\_ACEOF
6182 #define STDC_HEADERS 1
6183 _ACEOF
6187 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6197 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6198 inttypes.h stdint.h unistd.h
6200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206 cat >conftest.$ac_ext <<_ACEOF
6207 /* confdefs.h. */
6208 _ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6212 $ac_includes_default
6214 #include <$ac_header>
6215 _ACEOF
6216 rm -f conftest.$ac_objext
6217 if { (ac_try="$ac_compile"
6218 case "(($ac_try" in
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6221 esac
6222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$ac_compile") 2>conftest.er1
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } && {
6230 test -z "$ac_c_werror_flag" ||
6231 test ! -s conftest.err
6232 } && test -s conftest.$ac_objext; then
6233 eval "$as_ac_Header=yes"
6234 else
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6238 eval "$as_ac_Header=no"
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 ac_res=`eval echo '${'$as_ac_Header'}'`
6244 { echo "$as_me:$LINENO: result: $ac_res" >&5
6245 echo "${ECHO_T}$ac_res" >&6; }
6246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6247 cat >>confdefs.h <<_ACEOF
6248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6249 _ACEOF
6253 done
6257 for ac_header in dlfcn.h
6259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h. */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6271 $ac_includes_default
6273 #include <$ac_header>
6274 _ACEOF
6275 rm -f conftest.$ac_objext
6276 if { (ac_try="$ac_compile"
6277 case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_compile") 2>conftest.er1
6283 ac_status=$?
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } && {
6289 test -z "$ac_c_werror_flag" ||
6290 test ! -s conftest.err
6291 } && test -s conftest.$ac_objext; then
6292 eval "$as_ac_Header=yes"
6293 else
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6297 eval "$as_ac_Header=no"
6300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302 ac_res=`eval echo '${'$as_ac_Header'}'`
6303 { echo "$as_me:$LINENO: result: $ac_res" >&5
6304 echo "${ECHO_T}$ac_res" >&6; }
6305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6306 cat >>confdefs.h <<_ACEOF
6307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6308 _ACEOF
6312 done
6316 # This can be used to rebuild libtool when needed
6317 LIBTOOL_DEPS="$ltmain"
6319 # Always use our own libtool.
6320 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6346 test -z "$LN_S" && LN_S="ln -s"
6361 if test -n "${ZSH_VERSION+set}" ; then
6362 setopt NO_GLOB_SUBST
6365 { echo "$as_me:$LINENO: checking for objdir" >&5
6366 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6367 if test "${lt_cv_objdir+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 rm -f .libs 2>/dev/null
6371 mkdir .libs 2>/dev/null
6372 if test -d .libs; then
6373 lt_cv_objdir=.libs
6374 else
6375 # MS-DOS does not allow filenames that begin with a dot.
6376 lt_cv_objdir=_libs
6378 rmdir .libs 2>/dev/null
6380 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6381 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6382 objdir=$lt_cv_objdir
6388 cat >>confdefs.h <<_ACEOF
6389 #define LT_OBJDIR "$lt_cv_objdir/"
6390 _ACEOF
6408 case $host_os in
6409 aix3*)
6410 # AIX sometimes has problems with the GCC collect2 program. For some
6411 # reason, if we set the COLLECT_NAMES environment variable, the problems
6412 # vanish in a puff of smoke.
6413 if test "X${COLLECT_NAMES+set}" != Xset; then
6414 COLLECT_NAMES=
6415 export COLLECT_NAMES
6418 esac
6420 # Sed substitution that helps us do robust quoting. It backslashifies
6421 # metacharacters that are still active within double-quoted strings.
6422 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6424 # Same as above, but do not quote variable references.
6425 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6427 # Sed substitution to delay expansion of an escaped shell variable in a
6428 # double_quote_subst'ed string.
6429 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6431 # Sed substitution to delay expansion of an escaped single quote.
6432 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6434 # Sed substitution to avoid accidental globbing in evaled expressions
6435 no_glob_subst='s/\*/\\\*/g'
6437 # Global variables:
6438 ofile=libtool
6439 can_build_shared=yes
6441 # All known linkers require a `.a' archive for static linking (except MSVC,
6442 # which needs '.lib').
6443 libext=a
6445 with_gnu_ld="$lt_cv_prog_gnu_ld"
6447 old_CC="$CC"
6448 old_CFLAGS="$CFLAGS"
6450 # Set sane defaults for various variables
6451 test -z "$CC" && CC=cc
6452 test -z "$LTCC" && LTCC=$CC
6453 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6454 test -z "$LD" && LD=ld
6455 test -z "$ac_objext" && ac_objext=o
6457 for cc_temp in $compiler""; do
6458 case $cc_temp in
6459 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6460 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6461 \-*) ;;
6462 *) break;;
6463 esac
6464 done
6465 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6468 # Only perform the check for file, if the check method requires it
6469 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6470 case $deplibs_check_method in
6471 file_magic*)
6472 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6473 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6474 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6475 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478 case $MAGIC_CMD in
6479 [\\/*] | ?:[\\/]*)
6480 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6483 lt_save_MAGIC_CMD="$MAGIC_CMD"
6484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6485 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6486 for ac_dir in $ac_dummy; do
6487 IFS="$lt_save_ifs"
6488 test -z "$ac_dir" && ac_dir=.
6489 if test -f $ac_dir/${ac_tool_prefix}file; then
6490 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6491 if test -n "$file_magic_test_file"; then
6492 case $deplibs_check_method in
6493 "file_magic "*)
6494 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6496 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6497 $EGREP "$file_magic_regex" > /dev/null; then
6499 else
6500 cat <<_LT_EOF 1>&2
6502 *** Warning: the command libtool uses to detect shared libraries,
6503 *** $file_magic_cmd, produces output that libtool cannot recognize.
6504 *** The result is that libtool may fail to recognize shared libraries
6505 *** as such. This will affect the creation of libtool libraries that
6506 *** depend on shared libraries, but programs linked with such libtool
6507 *** libraries will work regardless of this problem. Nevertheless, you
6508 *** may want to report the problem to your system manager and/or to
6509 *** bug-libtool@gnu.org
6511 _LT_EOF
6512 fi ;;
6513 esac
6515 break
6517 done
6518 IFS="$lt_save_ifs"
6519 MAGIC_CMD="$lt_save_MAGIC_CMD"
6521 esac
6524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6525 if test -n "$MAGIC_CMD"; then
6526 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6527 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6528 else
6529 { echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6; }
6537 if test -z "$lt_cv_path_MAGIC_CMD"; then
6538 if test -n "$ac_tool_prefix"; then
6539 { echo "$as_me:$LINENO: checking for file" >&5
6540 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6541 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544 case $MAGIC_CMD in
6545 [\\/*] | ?:[\\/]*)
6546 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6549 lt_save_MAGIC_CMD="$MAGIC_CMD"
6550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6551 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6552 for ac_dir in $ac_dummy; do
6553 IFS="$lt_save_ifs"
6554 test -z "$ac_dir" && ac_dir=.
6555 if test -f $ac_dir/file; then
6556 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6557 if test -n "$file_magic_test_file"; then
6558 case $deplibs_check_method in
6559 "file_magic "*)
6560 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6562 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6563 $EGREP "$file_magic_regex" > /dev/null; then
6565 else
6566 cat <<_LT_EOF 1>&2
6568 *** Warning: the command libtool uses to detect shared libraries,
6569 *** $file_magic_cmd, produces output that libtool cannot recognize.
6570 *** The result is that libtool may fail to recognize shared libraries
6571 *** as such. This will affect the creation of libtool libraries that
6572 *** depend on shared libraries, but programs linked with such libtool
6573 *** libraries will work regardless of this problem. Nevertheless, you
6574 *** may want to report the problem to your system manager and/or to
6575 *** bug-libtool@gnu.org
6577 _LT_EOF
6578 fi ;;
6579 esac
6581 break
6583 done
6584 IFS="$lt_save_ifs"
6585 MAGIC_CMD="$lt_save_MAGIC_CMD"
6587 esac
6590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6591 if test -n "$MAGIC_CMD"; then
6592 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6593 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6594 else
6595 { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6600 else
6601 MAGIC_CMD=:
6607 esac
6609 # Use C for the default configuration in the libtool script
6611 lt_save_CC="$CC"
6612 ac_ext=c
6613 ac_cpp='$CPP $CPPFLAGS'
6614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6619 # Source file extension for C test sources.
6620 ac_ext=c
6622 # Object file extension for compiled C test sources.
6623 objext=o
6624 objext=$objext
6626 # Code to be used in simple compile tests
6627 lt_simple_compile_test_code="int some_variable = 0;"
6629 # Code to be used in simple link tests
6630 lt_simple_link_test_code='int main(){return(0);}'
6638 # If no C compiler was specified, use CC.
6639 LTCC=${LTCC-"$CC"}
6641 # If no C compiler flags were specified, use CFLAGS.
6642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6644 # Allow CC to be a program name with arguments.
6645 compiler=$CC
6647 # Save the default compiler, since it gets overwritten when the other
6648 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6649 compiler_DEFAULT=$CC
6651 # save warnings/boilerplate of simple test code
6652 ac_outfile=conftest.$ac_objext
6653 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6654 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6655 _lt_compiler_boilerplate=`cat conftest.err`
6656 $RM conftest*
6658 ac_outfile=conftest.$ac_objext
6659 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6660 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6661 _lt_linker_boilerplate=`cat conftest.err`
6662 $RM conftest*
6665 ## CAVEAT EMPTOR:
6666 ## There is no encapsulation within the following macros, do not change
6667 ## the running order or otherwise move them around unless you know exactly
6668 ## what you are doing...
6669 if test -n "$compiler"; then
6671 lt_prog_compiler_no_builtin_flag=
6673 if test "$GCC" = yes; then
6674 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6676 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6677 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6678 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 else
6681 lt_cv_prog_compiler_rtti_exceptions=no
6682 ac_outfile=conftest.$ac_objext
6683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6684 lt_compiler_flag="-fno-rtti -fno-exceptions"
6685 # Insert the option either (1) after the last *FLAGS variable, or
6686 # (2) before a word containing "conftest.", or (3) at the end.
6687 # Note that $ac_compile itself does not contain backslashes and begins
6688 # with a dollar sign (not a hyphen), so the echo should work correctly.
6689 # The option is referenced via a variable to avoid confusing sed.
6690 lt_compile=`echo "$ac_compile" | $SED \
6691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6693 -e 's:$: $lt_compiler_flag:'`
6694 (eval echo "\"\$as_me:6694: $lt_compile\"" >&5)
6695 (eval "$lt_compile" 2>conftest.err)
6696 ac_status=$?
6697 cat conftest.err >&5
6698 echo "$as_me:6698: \$? = $ac_status" >&5
6699 if (exit $ac_status) && test -s "$ac_outfile"; then
6700 # The compiler can only warn and ignore the option if not recognized
6701 # So say no if there are warnings other than the usual output.
6702 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6704 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6705 lt_cv_prog_compiler_rtti_exceptions=yes
6708 $RM conftest*
6711 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6712 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6714 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6715 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6716 else
6727 lt_prog_compiler_wl=
6728 lt_prog_compiler_pic=
6729 lt_prog_compiler_static=
6731 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6732 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6734 if test "$GCC" = yes; then
6735 lt_prog_compiler_wl='-Wl,'
6736 lt_prog_compiler_static='-static'
6738 case $host_os in
6739 aix*)
6740 # All AIX code is PIC.
6741 if test "$host_cpu" = ia64; then
6742 # AIX 5 now supports IA64 processor
6743 lt_prog_compiler_static='-Bstatic'
6747 amigaos*)
6748 if test "$host_cpu" = m68k; then
6749 # FIXME: we need at least 68020 code to build shared libraries, but
6750 # adding the `-m68020' flag to GCC prevents building anything better,
6751 # like `-m68040'.
6752 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6756 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6757 # PIC is the default for these OSes.
6760 mingw* | cygwin* | pw32* | os2*)
6761 # This hack is so that the source file can tell whether it is being
6762 # built for inclusion in a dll (and should export symbols for example).
6763 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6764 # (--disable-auto-import) libraries
6765 lt_prog_compiler_pic='-DDLL_EXPORT'
6768 darwin* | rhapsody*)
6769 # PIC is the default on this platform
6770 # Common symbols not allowed in MH_DYLIB files
6771 lt_prog_compiler_pic='-fno-common'
6774 hpux*)
6775 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6776 # not for PA HP-UX.
6777 case $host_cpu in
6778 hppa*64*|ia64*)
6779 # +Z the default
6782 lt_prog_compiler_pic='-fPIC'
6784 esac
6787 interix[3-9]*)
6788 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6789 # Instead, we relocate shared libraries at runtime.
6792 msdosdjgpp*)
6793 # Just because we use GCC doesn't mean we suddenly get shared libraries
6794 # on systems that don't support them.
6795 lt_prog_compiler_can_build_shared=no
6796 enable_shared=no
6799 *nto* | *qnx*)
6800 # QNX uses GNU C++, but need to define -shared option too, otherwise
6801 # it will coredump.
6802 lt_prog_compiler_pic='-fPIC -shared'
6805 sysv4*MP*)
6806 if test -d /usr/nec; then
6807 lt_prog_compiler_pic=-Kconform_pic
6812 lt_prog_compiler_pic='-fPIC'
6814 esac
6815 else
6816 # PORTME Check for flag to pass linker flags through the system compiler.
6817 case $host_os in
6818 aix*)
6819 lt_prog_compiler_wl='-Wl,'
6820 if test "$host_cpu" = ia64; then
6821 # AIX 5 now supports IA64 processor
6822 lt_prog_compiler_static='-Bstatic'
6823 else
6824 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6827 darwin*)
6828 # PIC is the default on this platform
6829 # Common symbols not allowed in MH_DYLIB files
6830 case $cc_basename in
6831 xlc*)
6832 lt_prog_compiler_pic='-qnocommon'
6833 lt_prog_compiler_wl='-Wl,'
6835 esac
6838 mingw* | cygwin* | pw32* | os2*)
6839 # This hack is so that the source file can tell whether it is being
6840 # built for inclusion in a dll (and should export symbols for example).
6841 lt_prog_compiler_pic='-DDLL_EXPORT'
6844 hpux9* | hpux10* | hpux11*)
6845 lt_prog_compiler_wl='-Wl,'
6846 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6847 # not for PA HP-UX.
6848 case $host_cpu in
6849 hppa*64*|ia64*)
6850 # +Z the default
6853 lt_prog_compiler_pic='+Z'
6855 esac
6856 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6857 lt_prog_compiler_static='${wl}-a ${wl}archive'
6860 irix5* | irix6* | nonstopux*)
6861 lt_prog_compiler_wl='-Wl,'
6862 # PIC (with -KPIC) is the default.
6863 lt_prog_compiler_static='-non_shared'
6866 linux* | k*bsd*-gnu)
6867 case $cc_basename in
6868 icc* | ecc*)
6869 lt_prog_compiler_wl='-Wl,'
6870 lt_prog_compiler_pic='-KPIC'
6871 lt_prog_compiler_static='-static'
6873 pgcc* | pgf77* | pgf90* | pgf95*)
6874 # Portland Group compilers (*not* the Pentium gcc compiler,
6875 # which looks to be a dead project)
6876 lt_prog_compiler_wl='-Wl,'
6877 lt_prog_compiler_pic='-fpic'
6878 lt_prog_compiler_static='-Bstatic'
6880 ccc*)
6881 lt_prog_compiler_wl='-Wl,'
6882 # All Alpha code is PIC.
6883 lt_prog_compiler_static='-non_shared'
6886 case `$CC -V 2>&1 | sed 5q` in
6887 *Sun\ C*)
6888 # Sun C 5.9
6889 lt_prog_compiler_pic='-KPIC'
6890 lt_prog_compiler_static='-Bstatic'
6891 lt_prog_compiler_wl='-Wl,'
6893 *Sun\ F*)
6894 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6895 lt_prog_compiler_pic='-KPIC'
6896 lt_prog_compiler_static='-Bstatic'
6897 lt_prog_compiler_wl=''
6899 esac
6901 esac
6904 newsos6)
6905 lt_prog_compiler_pic='-KPIC'
6906 lt_prog_compiler_static='-Bstatic'
6909 *nto* | *qnx*)
6910 # QNX uses GNU C++, but need to define -shared option too, otherwise
6911 # it will coredump.
6912 lt_prog_compiler_pic='-fPIC -shared'
6915 osf3* | osf4* | osf5*)
6916 lt_prog_compiler_wl='-Wl,'
6917 # All OSF/1 code is PIC.
6918 lt_prog_compiler_static='-non_shared'
6921 rdos*)
6922 lt_prog_compiler_static='-non_shared'
6925 solaris*)
6926 lt_prog_compiler_pic='-KPIC'
6927 lt_prog_compiler_static='-Bstatic'
6928 case $cc_basename in
6929 f77* | f90* | f95*)
6930 lt_prog_compiler_wl='-Qoption ld ';;
6932 lt_prog_compiler_wl='-Wl,';;
6933 esac
6936 sunos4*)
6937 lt_prog_compiler_wl='-Qoption ld '
6938 lt_prog_compiler_pic='-PIC'
6939 lt_prog_compiler_static='-Bstatic'
6942 sysv4 | sysv4.2uw2* | sysv4.3*)
6943 lt_prog_compiler_wl='-Wl,'
6944 lt_prog_compiler_pic='-KPIC'
6945 lt_prog_compiler_static='-Bstatic'
6948 sysv4*MP*)
6949 if test -d /usr/nec ;then
6950 lt_prog_compiler_pic='-Kconform_pic'
6951 lt_prog_compiler_static='-Bstatic'
6955 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6956 lt_prog_compiler_wl='-Wl,'
6957 lt_prog_compiler_pic='-KPIC'
6958 lt_prog_compiler_static='-Bstatic'
6961 unicos*)
6962 lt_prog_compiler_wl='-Wl,'
6963 lt_prog_compiler_can_build_shared=no
6966 uts4*)
6967 lt_prog_compiler_pic='-pic'
6968 lt_prog_compiler_static='-Bstatic'
6972 lt_prog_compiler_can_build_shared=no
6974 esac
6977 case $host_os in
6978 # For platforms which do not support PIC, -DPIC is meaningless:
6979 *djgpp*)
6980 lt_prog_compiler_pic=
6983 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6985 esac
6986 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6987 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6995 # Check to make sure the PIC flag actually works.
6997 if test -n "$lt_prog_compiler_pic"; then
6998 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6999 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7000 if test "${lt_prog_compiler_pic_works+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 lt_prog_compiler_pic_works=no
7004 ac_outfile=conftest.$ac_objext
7005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7006 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7007 # Insert the option either (1) after the last *FLAGS variable, or
7008 # (2) before a word containing "conftest.", or (3) at the end.
7009 # Note that $ac_compile itself does not contain backslashes and begins
7010 # with a dollar sign (not a hyphen), so the echo should work correctly.
7011 # The option is referenced via a variable to avoid confusing sed.
7012 lt_compile=`echo "$ac_compile" | $SED \
7013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7015 -e 's:$: $lt_compiler_flag:'`
7016 (eval echo "\"\$as_me:7016: $lt_compile\"" >&5)
7017 (eval "$lt_compile" 2>conftest.err)
7018 ac_status=$?
7019 cat conftest.err >&5
7020 echo "$as_me:7020: \$? = $ac_status" >&5
7021 if (exit $ac_status) && test -s "$ac_outfile"; then
7022 # The compiler can only warn and ignore the option if not recognized
7023 # So say no if there are warnings other than the usual output.
7024 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7027 lt_prog_compiler_pic_works=yes
7030 $RM conftest*
7033 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7034 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7036 if test x"$lt_prog_compiler_pic_works" = xyes; then
7037 case $lt_prog_compiler_pic in
7038 "" | " "*) ;;
7039 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7040 esac
7041 else
7042 lt_prog_compiler_pic=
7043 lt_prog_compiler_can_build_shared=no
7054 # Check to make sure the static flag actually works.
7056 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7057 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7058 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7059 if test "${lt_prog_compiler_static_works+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062 lt_prog_compiler_static_works=no
7063 save_LDFLAGS="$LDFLAGS"
7064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7065 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7067 # The linker can only warn and ignore the option if not recognized
7068 # So say no if there are warnings
7069 if test -s conftest.err; then
7070 # Append any errors to the config.log.
7071 cat conftest.err 1>&5
7072 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7074 if diff conftest.exp conftest.er2 >/dev/null; then
7075 lt_prog_compiler_static_works=yes
7077 else
7078 lt_prog_compiler_static_works=yes
7081 $RM conftest*
7082 LDFLAGS="$save_LDFLAGS"
7085 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7086 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7088 if test x"$lt_prog_compiler_static_works" = xyes; then
7090 else
7091 lt_prog_compiler_static=
7100 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7101 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7102 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 lt_cv_prog_compiler_c_o=no
7106 $RM -r conftest 2>/dev/null
7107 mkdir conftest
7108 cd conftest
7109 mkdir out
7110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7112 lt_compiler_flag="-o out/conftest2.$ac_objext"
7113 # Insert the option either (1) after the last *FLAGS variable, or
7114 # (2) before a word containing "conftest.", or (3) at the end.
7115 # Note that $ac_compile itself does not contain backslashes and begins
7116 # with a dollar sign (not a hyphen), so the echo should work correctly.
7117 lt_compile=`echo "$ac_compile" | $SED \
7118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7120 -e 's:$: $lt_compiler_flag:'`
7121 (eval echo "\"\$as_me:7121: $lt_compile\"" >&5)
7122 (eval "$lt_compile" 2>out/conftest.err)
7123 ac_status=$?
7124 cat out/conftest.err >&5
7125 echo "$as_me:7125: \$? = $ac_status" >&5
7126 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7127 then
7128 # The compiler can only warn and ignore the option if not recognized
7129 # So say no if there are warnings
7130 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7131 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7132 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7133 lt_cv_prog_compiler_c_o=yes
7136 chmod u+w . 2>&5
7137 $RM conftest*
7138 # SGI C++ compiler will create directory out/ii_files/ for
7139 # template instantiation
7140 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7141 $RM out/* && rmdir out
7142 cd ..
7143 $RM -r conftest
7144 $RM conftest*
7147 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7148 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7155 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7156 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7157 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160 lt_cv_prog_compiler_c_o=no
7161 $RM -r conftest 2>/dev/null
7162 mkdir conftest
7163 cd conftest
7164 mkdir out
7165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7167 lt_compiler_flag="-o out/conftest2.$ac_objext"
7168 # Insert the option either (1) after the last *FLAGS variable, or
7169 # (2) before a word containing "conftest.", or (3) at the end.
7170 # Note that $ac_compile itself does not contain backslashes and begins
7171 # with a dollar sign (not a hyphen), so the echo should work correctly.
7172 lt_compile=`echo "$ac_compile" | $SED \
7173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7175 -e 's:$: $lt_compiler_flag:'`
7176 (eval echo "\"\$as_me:7176: $lt_compile\"" >&5)
7177 (eval "$lt_compile" 2>out/conftest.err)
7178 ac_status=$?
7179 cat out/conftest.err >&5
7180 echo "$as_me:7180: \$? = $ac_status" >&5
7181 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7182 then
7183 # The compiler can only warn and ignore the option if not recognized
7184 # So say no if there are warnings
7185 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7186 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7187 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7188 lt_cv_prog_compiler_c_o=yes
7191 chmod u+w . 2>&5
7192 $RM conftest*
7193 # SGI C++ compiler will create directory out/ii_files/ for
7194 # template instantiation
7195 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7196 $RM out/* && rmdir out
7197 cd ..
7198 $RM -r conftest
7199 $RM conftest*
7202 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7203 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7208 hard_links="nottested"
7209 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7210 # do not overwrite the value of need_locks provided by the user
7211 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7212 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7213 hard_links=yes
7214 $RM conftest*
7215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7216 touch conftest.a
7217 ln conftest.a conftest.b 2>&5 || hard_links=no
7218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7219 { echo "$as_me:$LINENO: result: $hard_links" >&5
7220 echo "${ECHO_T}$hard_links" >&6; }
7221 if test "$hard_links" = no; then
7222 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7223 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7224 need_locks=warn
7226 else
7227 need_locks=no
7235 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7236 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7238 runpath_var=
7239 allow_undefined_flag=
7240 always_export_symbols=no
7241 archive_cmds=
7242 archive_expsym_cmds=
7243 compiler_needs_object=no
7244 enable_shared_with_static_runtimes=no
7245 export_dynamic_flag_spec=
7246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7247 hardcode_automatic=no
7248 hardcode_direct=no
7249 hardcode_direct_absolute=no
7250 hardcode_libdir_flag_spec=
7251 hardcode_libdir_flag_spec_ld=
7252 hardcode_libdir_separator=
7253 hardcode_minus_L=no
7254 hardcode_shlibpath_var=unsupported
7255 inherit_rpath=no
7256 link_all_deplibs=unknown
7257 module_cmds=
7258 module_expsym_cmds=
7259 old_archive_from_new_cmds=
7260 old_archive_from_expsyms_cmds=
7261 thread_safe_flag_spec=
7262 whole_archive_flag_spec=
7263 # include_expsyms should be a list of space-separated symbols to be *always*
7264 # included in the symbol list
7265 include_expsyms=
7266 # exclude_expsyms can be an extended regexp of symbols to exclude
7267 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7268 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7269 # as well as any symbol that contains `d'.
7270 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7271 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7272 # platforms (ab)use it in PIC code, but their linkers get confused if
7273 # the symbol is explicitly referenced. Since portable code cannot
7274 # rely on this symbol name, it's probably fine to never include it in
7275 # preloaded symbol tables.
7276 extract_expsyms_cmds=
7278 case $host_os in
7279 cygwin* | mingw* | pw32*)
7280 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7281 # When not using gcc, we currently assume that we are using
7282 # Microsoft Visual C++.
7283 if test "$GCC" != yes; then
7284 with_gnu_ld=no
7287 interix*)
7288 # we just hope/assume this is gcc and not c89 (= MSVC++)
7289 with_gnu_ld=yes
7291 openbsd*)
7292 with_gnu_ld=no
7294 esac
7296 ld_shlibs=yes
7297 if test "$with_gnu_ld" = yes; then
7298 # If archive_cmds runs LD, not CC, wlarc should be empty
7299 wlarc='${wl}'
7301 # Set some defaults for GNU ld with shared library support. These
7302 # are reset later if shared libraries are not supported. Putting them
7303 # here allows them to be overridden if necessary.
7304 runpath_var=LD_RUN_PATH
7305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7306 export_dynamic_flag_spec='${wl}--export-dynamic'
7307 # ancient GNU ld didn't support --whole-archive et. al.
7308 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7309 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7310 else
7311 whole_archive_flag_spec=
7313 supports_anon_versioning=no
7314 case `$LD -v 2>&1` in
7315 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7318 *\ 2.11.*) ;; # other 2.11 versions
7319 *) supports_anon_versioning=yes ;;
7320 esac
7322 # See if GNU ld supports shared libraries.
7323 case $host_os in
7324 aix3* | aix4* | aix5*)
7325 # On AIX/PPC, the GNU linker is very broken
7326 if test "$host_cpu" != ia64; then
7327 ld_shlibs=no
7328 cat <<_LT_EOF 1>&2
7330 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7331 *** to be unable to reliably create shared libraries on AIX.
7332 *** Therefore, libtool is disabling shared libraries support. If you
7333 *** really care for shared libraries, you may want to modify your PATH
7334 *** so that a non-GNU linker is found, and then restart.
7336 _LT_EOF
7340 amigaos*)
7341 if test "$host_cpu" = m68k; then
7342 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)'
7343 hardcode_libdir_flag_spec='-L$libdir'
7344 hardcode_minus_L=yes
7347 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7348 # that the semantics of dynamic libraries on AmigaOS, at least up
7349 # to version 4, is to share data among multiple programs linked
7350 # with the same dynamic library. Since this doesn't match the
7351 # behavior of shared libraries on other platforms, we can't use
7352 # them.
7353 ld_shlibs=no
7356 beos*)
7357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7358 allow_undefined_flag=unsupported
7359 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7360 # support --undefined. This deserves some investigation. FIXME
7361 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7362 else
7363 ld_shlibs=no
7367 cygwin* | mingw* | pw32*)
7368 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7369 # as there is no search path for DLLs.
7370 hardcode_libdir_flag_spec='-L$libdir'
7371 allow_undefined_flag=unsupported
7372 always_export_symbols=no
7373 enable_shared_with_static_runtimes=yes
7374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7376 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7378 # If the export-symbols file already is a .def file (1st line
7379 # is EXPORTS), use it as is; otherwise, prepend...
7380 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7381 cp $export_symbols $output_objdir/$soname.def;
7382 else
7383 echo EXPORTS > $output_objdir/$soname.def;
7384 cat $export_symbols >> $output_objdir/$soname.def;
7386 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7387 else
7388 ld_shlibs=no
7392 interix[3-9]*)
7393 hardcode_direct=no
7394 hardcode_shlibpath_var=no
7395 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7396 export_dynamic_flag_spec='${wl}-E'
7397 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7398 # Instead, shared libraries are loaded at an image base (0x10000000 by
7399 # default) and relocated if they conflict, which is a slow very memory
7400 # consuming and fragmenting process. To avoid this, we pick a random,
7401 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7402 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7403 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7404 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'
7407 gnu* | linux* | tpf* | k*bsd*-gnu)
7408 tmp_diet=no
7409 if test "$host_os" = linux-dietlibc; then
7410 case $cc_basename in
7411 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7412 esac
7414 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7415 && test "$tmp_diet" = no
7416 then
7417 tmp_addflag=
7418 case $cc_basename,$host_cpu in
7419 pgcc*) # Portland Group C compiler
7420 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'
7421 tmp_addflag=' $pic_flag'
7423 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7424 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'
7425 tmp_addflag=' $pic_flag -Mnomain' ;;
7426 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7427 tmp_addflag=' -i_dynamic' ;;
7428 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7429 tmp_addflag=' -i_dynamic -nofor_main' ;;
7430 ifc* | ifort*) # Intel Fortran compiler
7431 tmp_addflag=' -nofor_main' ;;
7432 esac
7433 case `$CC -V 2>&1 | sed 5q` in
7434 *Sun\ C*) # Sun C 5.9
7435 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'
7436 compiler_needs_object=yes
7437 tmp_sharedflag='-G' ;;
7438 *Sun\ F*) # Sun Fortran 8.3
7439 tmp_sharedflag='-G' ;;
7441 tmp_sharedflag='-shared' ;;
7442 esac
7443 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7445 if test "x$supports_anon_versioning" = xyes; then
7446 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7448 echo "local: *; };" >> $output_objdir/$libname.ver~
7449 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7451 else
7452 ld_shlibs=no
7456 netbsd*)
7457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7458 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7459 wlarc=
7460 else
7461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7462 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7466 solaris*)
7467 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7468 ld_shlibs=no
7469 cat <<_LT_EOF 1>&2
7471 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7472 *** create shared libraries on Solaris systems. Therefore, libtool
7473 *** is disabling shared libraries support. We urge you to upgrade GNU
7474 *** binutils to release 2.9.1 or newer. Another option is to modify
7475 *** your PATH or compiler configuration so that the native linker is
7476 *** used, and then restart.
7478 _LT_EOF
7479 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7482 else
7483 ld_shlibs=no
7487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7488 case `$LD -v 2>&1` in
7489 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7490 ld_shlibs=no
7491 cat <<_LT_EOF 1>&2
7493 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7494 *** reliably create shared libraries on SCO systems. Therefore, libtool
7495 *** is disabling shared libraries support. We urge you to upgrade GNU
7496 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7497 *** your PATH or compiler configuration so that the native linker is
7498 *** used, and then restart.
7500 _LT_EOF
7503 # For security reasons, it is highly recommended that you always
7504 # use absolute paths for naming shared libraries, and exclude the
7505 # DT_RUNPATH tag from executables and libraries. But doing so
7506 # requires that you compile everything twice, which is a pain.
7507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7511 else
7512 ld_shlibs=no
7515 esac
7518 sunos4*)
7519 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7520 wlarc=
7521 hardcode_direct=yes
7522 hardcode_shlibpath_var=no
7526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7528 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7529 else
7530 ld_shlibs=no
7533 esac
7535 if test "$ld_shlibs" = no; then
7536 runpath_var=
7537 hardcode_libdir_flag_spec=
7538 export_dynamic_flag_spec=
7539 whole_archive_flag_spec=
7541 else
7542 # PORTME fill in a description of your system's linker (not GNU ld)
7543 case $host_os in
7544 aix3*)
7545 allow_undefined_flag=unsupported
7546 always_export_symbols=yes
7547 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'
7548 # Note: this linker hardcodes the directories in LIBPATH if there
7549 # are no directories specified by -L.
7550 hardcode_minus_L=yes
7551 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7552 # Neither direct hardcoding nor static linking is supported with a
7553 # broken collect2.
7554 hardcode_direct=unsupported
7558 aix4* | aix5*)
7559 if test "$host_cpu" = ia64; then
7560 # On IA64, the linker does run time linking by default, so we don't
7561 # have to do anything special.
7562 aix_use_runtimelinking=no
7563 exp_sym_flag='-Bexport'
7564 no_entry_flag=""
7565 else
7566 # If we're using GNU nm, then we don't want the "-C" option.
7567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7568 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7569 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'
7570 else
7571 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'
7573 aix_use_runtimelinking=no
7575 # Test if we are trying to use run time linking or normal
7576 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7577 # need to do runtime linking.
7578 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7579 for ld_flag in $LDFLAGS; do
7580 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7581 aix_use_runtimelinking=yes
7582 break
7584 done
7586 esac
7588 exp_sym_flag='-bexport'
7589 no_entry_flag='-bnoentry'
7592 # When large executables or shared objects are built, AIX ld can
7593 # have problems creating the table of contents. If linking a library
7594 # or program results in "error TOC overflow" add -mminimal-toc to
7595 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7596 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7598 archive_cmds=''
7599 hardcode_direct=yes
7600 hardcode_direct_absolute=yes
7601 hardcode_libdir_separator=':'
7602 link_all_deplibs=yes
7603 file_list_spec='${wl}-f,'
7605 if test "$GCC" = yes; then
7606 case $host_os in aix4.[012]|aix4.[012].*)
7607 # We only want to do this on AIX 4.2 and lower, the check
7608 # below for broken collect2 doesn't work under 4.3+
7609 collect2name=`${CC} -print-prog-name=collect2`
7610 if test -f "$collect2name" &&
7611 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7612 then
7613 # We have reworked collect2
7615 else
7616 # We have old collect2
7617 hardcode_direct=unsupported
7618 # It fails to find uninstalled libraries when the uninstalled
7619 # path is not listed in the libpath. Setting hardcode_minus_L
7620 # to unsupported forces relinking
7621 hardcode_minus_L=yes
7622 hardcode_libdir_flag_spec='-L$libdir'
7623 hardcode_libdir_separator=
7626 esac
7627 shared_flag='-shared'
7628 if test "$aix_use_runtimelinking" = yes; then
7629 shared_flag="$shared_flag "'${wl}-G'
7631 else
7632 # not using gcc
7633 if test "$host_cpu" = ia64; then
7634 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7635 # chokes on -Wl,-G. The following line is correct:
7636 shared_flag='-G'
7637 else
7638 if test "$aix_use_runtimelinking" = yes; then
7639 shared_flag='${wl}-G'
7640 else
7641 shared_flag='${wl}-bM:SRE'
7646 # It seems that -bexpall does not export symbols beginning with
7647 # underscore (_), so it is better to generate a list of symbols to export.
7648 always_export_symbols=yes
7649 if test "$aix_use_runtimelinking" = yes; then
7650 # Warning - without using the other runtime loading flags (-brtl),
7651 # -berok will link without error, but may produce a broken library.
7652 allow_undefined_flag='-berok'
7653 # Determine the default libpath from the value encoded in an
7654 # empty executable.
7655 cat >conftest.$ac_ext <<_ACEOF
7656 /* confdefs.h. */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7663 main ()
7667 return 0;
7669 _ACEOF
7670 rm -f conftest.$ac_objext conftest$ac_exeext
7671 if { (ac_try="$ac_link"
7672 case "(($ac_try" in
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7675 esac
7676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7677 (eval "$ac_link") 2>conftest.er1
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } && {
7684 test -z "$ac_c_werror_flag" ||
7685 test ! -s conftest.err
7686 } && test -s conftest$ac_exeext &&
7687 $as_test_x conftest$ac_exeext; then
7689 lt_aix_libpath_sed='
7690 /Import File Strings/,/^$/ {
7691 /^0/ {
7692 s/^0 *\(.*\)$/\1/
7696 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7697 # Check for a 64-bit object if we didn't find anything.
7698 if test -z "$aix_libpath"; then
7699 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7701 else
7702 echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7709 conftest$ac_exeext conftest.$ac_ext
7710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7712 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7713 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"
7714 else
7715 if test "$host_cpu" = ia64; then
7716 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7717 allow_undefined_flag="-z nodefs"
7718 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"
7719 else
7720 # Determine the default libpath from the value encoded in an
7721 # empty executable.
7722 cat >conftest.$ac_ext <<_ACEOF
7723 /* confdefs.h. */
7724 _ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7730 main ()
7734 return 0;
7736 _ACEOF
7737 rm -f conftest.$ac_objext conftest$ac_exeext
7738 if { (ac_try="$ac_link"
7739 case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742 esac
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_link") 2>conftest.er1
7745 ac_status=$?
7746 grep -v '^ *+' conftest.er1 >conftest.err
7747 rm -f conftest.er1
7748 cat conftest.err >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } && {
7751 test -z "$ac_c_werror_flag" ||
7752 test ! -s conftest.err
7753 } && test -s conftest$ac_exeext &&
7754 $as_test_x conftest$ac_exeext; then
7756 lt_aix_libpath_sed='
7757 /Import File Strings/,/^$/ {
7758 /^0/ {
7759 s/^0 *\(.*\)$/\1/
7763 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7764 # Check for a 64-bit object if we didn't find anything.
7765 if test -z "$aix_libpath"; then
7766 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7768 else
7769 echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7776 conftest$ac_exeext conftest.$ac_ext
7777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7779 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7780 # Warning - without using the other run time loading flags,
7781 # -berok will link without error, but may produce a broken library.
7782 no_undefined_flag=' ${wl}-bernotok'
7783 allow_undefined_flag=' ${wl}-berok'
7784 # Exported symbols can be pulled into shared objects from archives
7785 whole_archive_flag_spec='$convenience'
7786 archive_cmds_need_lc=yes
7787 # This is similar to how AIX traditionally builds its shared libraries.
7788 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'
7793 amigaos*)
7794 if test "$host_cpu" = m68k; then
7795 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)'
7796 hardcode_libdir_flag_spec='-L$libdir'
7797 hardcode_minus_L=yes
7799 # see comment about different semantics on the GNU ld section
7800 ld_shlibs=no
7803 bsdi[45]*)
7804 export_dynamic_flag_spec=-rdynamic
7807 cygwin* | mingw* | pw32*)
7808 # When not using gcc, we currently assume that we are using
7809 # Microsoft Visual C++.
7810 # hardcode_libdir_flag_spec is actually meaningless, as there is
7811 # no search path for DLLs.
7812 hardcode_libdir_flag_spec=' '
7813 allow_undefined_flag=unsupported
7814 # Tell ltmain to make .lib files, not .a files.
7815 libext=lib
7816 # Tell ltmain to make .dll files, not .so files.
7817 shrext_cmds=".dll"
7818 # FIXME: Setting linknames here is a bad hack.
7819 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7820 # The linker will automatically build a .lib file if we build a DLL.
7821 old_archive_from_new_cmds='true'
7822 # FIXME: Should let the user specify the lib program.
7823 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7824 fix_srcfile_path='`cygpath -w "$srcfile"`'
7825 enable_shared_with_static_runtimes=yes
7828 darwin* | rhapsody*)
7829 case $host_os in
7830 rhapsody* | darwin1.[012])
7831 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7833 *) # Darwin 1.3 on
7834 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7835 10.[012])
7836 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7838 10.*)
7839 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7841 esac
7843 esac
7844 archive_cmds_need_lc=no
7845 hardcode_direct=no
7846 hardcode_automatic=yes
7847 hardcode_shlibpath_var=unsupported
7848 whole_archive_flag_spec=''
7849 link_all_deplibs=yes
7850 if test "$GCC" = yes ; then
7851 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854 lt_cv_apple_cc_single_mod=no
7855 if test -z "${LT_MULTI_MODULE}"; then
7856 # By default we will add the -single_module flag. You can override
7857 # by either setting the environment variable LT_MULTI_MODULE
7858 # non-empty at configure time, or by adding -multi-module to the
7859 # link flags.
7860 echo "int foo(void){return 1;}" > conftest.c
7861 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7862 -dynamiclib ${wl}-single_module conftest.c
7863 if test -f libconftest.dylib; then
7864 lt_cv_apple_cc_single_mod=yes
7865 rm libconftest.dylib
7867 rm conftest.$ac_ext
7871 output_verbose_link_cmd=echo
7872 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7873 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7874 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7875 else
7876 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7877 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7879 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7880 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7881 else
7882 case $cc_basename in
7883 xlc*)
7884 output_verbose_link_cmd=echo
7885 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7886 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7887 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7888 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7889 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7892 ld_shlibs=no
7894 esac
7898 dgux*)
7899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7900 hardcode_libdir_flag_spec='-L$libdir'
7901 hardcode_shlibpath_var=no
7904 freebsd1*)
7905 ld_shlibs=no
7908 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7909 # support. Future versions do this automatically, but an explicit c++rt0.o
7910 # does not break anything, and helps significantly (at the cost of a little
7911 # extra space).
7912 freebsd2.2*)
7913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7914 hardcode_libdir_flag_spec='-R$libdir'
7915 hardcode_direct=yes
7916 hardcode_shlibpath_var=no
7919 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7920 freebsd2*)
7921 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7922 hardcode_direct=yes
7923 hardcode_minus_L=yes
7924 hardcode_shlibpath_var=no
7927 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7928 freebsd* | dragonfly*)
7929 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7930 hardcode_libdir_flag_spec='-R$libdir'
7931 hardcode_direct=yes
7932 hardcode_shlibpath_var=no
7935 hpux9*)
7936 if test "$GCC" = yes; then
7937 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'
7938 else
7939 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'
7941 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7942 hardcode_libdir_separator=:
7943 hardcode_direct=yes
7945 # hardcode_minus_L: Not really in the search PATH,
7946 # but as the default location of the library.
7947 hardcode_minus_L=yes
7948 export_dynamic_flag_spec='${wl}-E'
7951 hpux10*)
7952 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7953 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7954 else
7955 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7957 if test "$with_gnu_ld" = no; then
7958 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7959 hardcode_libdir_flag_spec_ld='+b $libdir'
7960 hardcode_libdir_separator=:
7961 hardcode_direct=yes
7962 hardcode_direct_absolute=yes
7963 export_dynamic_flag_spec='${wl}-E'
7964 # hardcode_minus_L: Not really in the search PATH,
7965 # but as the default location of the library.
7966 hardcode_minus_L=yes
7970 hpux11*)
7971 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7972 case $host_cpu in
7973 hppa*64*)
7974 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7976 ia64*)
7977 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7980 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7982 esac
7983 else
7984 case $host_cpu in
7985 hppa*64*)
7986 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7988 ia64*)
7989 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7992 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7994 esac
7996 if test "$with_gnu_ld" = no; then
7997 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7998 hardcode_libdir_separator=:
8000 case $host_cpu in
8001 hppa*64*|ia64*)
8002 hardcode_direct=no
8003 hardcode_shlibpath_var=no
8006 hardcode_direct=yes
8007 hardcode_direct_absolute=yes
8008 export_dynamic_flag_spec='${wl}-E'
8010 # hardcode_minus_L: Not really in the search PATH,
8011 # but as the default location of the library.
8012 hardcode_minus_L=yes
8014 esac
8018 irix5* | irix6* | nonstopux*)
8019 if test "$GCC" = yes; then
8020 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'
8021 # Try to use the -exported_symbol ld option, if it does not
8022 # work, assume that -exports_file does not work either and
8023 # implicitly export all symbols.
8024 save_LDFLAGS="$LDFLAGS"
8025 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8026 cat >conftest.$ac_ext <<_ACEOF
8027 int foo(void) {}
8028 _ACEOF
8029 rm -f conftest.$ac_objext conftest$ac_exeext
8030 if { (ac_try="$ac_link"
8031 case "(($ac_try" in
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8034 esac
8035 eval "echo \"\$as_me:$LINENO: $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 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 $as_test_x conftest$ac_exeext; then
8047 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'
8049 else
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8057 conftest$ac_exeext conftest.$ac_ext
8058 LDFLAGS="$save_LDFLAGS"
8059 else
8060 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'
8061 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'
8063 archive_cmds_need_lc='no'
8064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8065 hardcode_libdir_separator=:
8066 inherit_rpath=yes
8067 link_all_deplibs=yes
8070 netbsd*)
8071 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8073 else
8074 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8076 hardcode_libdir_flag_spec='-R$libdir'
8077 hardcode_direct=yes
8078 hardcode_shlibpath_var=no
8081 newsos6)
8082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8083 hardcode_direct=yes
8084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8085 hardcode_libdir_separator=:
8086 hardcode_shlibpath_var=no
8089 *nto* | *qnx*)
8092 openbsd*)
8093 hardcode_direct=yes
8094 hardcode_shlibpath_var=no
8095 hardcode_direct_absolute=yes
8096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8097 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8098 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8099 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8100 export_dynamic_flag_spec='${wl}-E'
8101 else
8102 case $host_os in
8103 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8105 hardcode_libdir_flag_spec='-R$libdir'
8108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8111 esac
8115 os2*)
8116 hardcode_libdir_flag_spec='-L$libdir'
8117 hardcode_minus_L=yes
8118 allow_undefined_flag=unsupported
8119 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'
8120 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8123 osf3*)
8124 if test "$GCC" = yes; then
8125 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8126 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'
8127 else
8128 allow_undefined_flag=' -expect_unresolved \*'
8129 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'
8131 archive_cmds_need_lc='no'
8132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8133 hardcode_libdir_separator=:
8136 osf4* | osf5*) # as osf3* with the addition of -msym flag
8137 if test "$GCC" = yes; then
8138 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8139 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'
8140 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8141 else
8142 allow_undefined_flag=' -expect_unresolved \*'
8143 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'
8144 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~
8145 $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'
8147 # Both c and cxx compiler support -rpath directly
8148 hardcode_libdir_flag_spec='-rpath $libdir'
8150 archive_cmds_need_lc='no'
8151 hardcode_libdir_separator=:
8154 solaris*)
8155 no_undefined_flag=' -z defs'
8156 if test "$GCC" = yes; then
8157 wlarc='${wl}'
8158 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8160 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8161 else
8162 case `$CC -V 2>&1` in
8163 *"Compilers 5.0"*)
8164 wlarc=''
8165 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8166 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8167 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8170 wlarc='${wl}'
8171 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8173 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8175 esac
8177 hardcode_libdir_flag_spec='-R$libdir'
8178 hardcode_shlibpath_var=no
8179 case $host_os in
8180 solaris2.[0-5] | solaris2.[0-5].*) ;;
8182 # The compiler driver will combine and reorder linker options,
8183 # but understands `-z linker_flag'. GCC discards it without `$wl',
8184 # but is careful enough not to reorder.
8185 # Supported since Solaris 2.6 (maybe 2.5.1?)
8186 if test "$GCC" = yes; then
8187 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8188 else
8189 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8192 esac
8193 link_all_deplibs=yes
8196 sunos4*)
8197 if test "x$host_vendor" = xsequent; then
8198 # Use $CC to link under sequent, because it throws in some extra .o
8199 # files that make .init and .fini sections work.
8200 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8201 else
8202 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8204 hardcode_libdir_flag_spec='-L$libdir'
8205 hardcode_direct=yes
8206 hardcode_minus_L=yes
8207 hardcode_shlibpath_var=no
8210 sysv4)
8211 case $host_vendor in
8212 sni)
8213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8214 hardcode_direct=yes # is this really true???
8216 siemens)
8217 ## LD is ld it makes a PLAMLIB
8218 ## CC just makes a GrossModule.
8219 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8220 reload_cmds='$CC -r -o $output$reload_objs'
8221 hardcode_direct=no
8223 motorola)
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8227 esac
8228 runpath_var='LD_RUN_PATH'
8229 hardcode_shlibpath_var=no
8232 sysv4.3*)
8233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8234 hardcode_shlibpath_var=no
8235 export_dynamic_flag_spec='-Bexport'
8238 sysv4*MP*)
8239 if test -d /usr/nec; then
8240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8241 hardcode_shlibpath_var=no
8242 runpath_var=LD_RUN_PATH
8243 hardcode_runpath_var=yes
8244 ld_shlibs=yes
8248 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8249 no_undefined_flag='${wl}-z,text'
8250 archive_cmds_need_lc=no
8251 hardcode_shlibpath_var=no
8252 runpath_var='LD_RUN_PATH'
8254 if test "$GCC" = yes; then
8255 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8256 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8257 else
8258 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8259 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8263 sysv5* | sco3.2v5* | sco5v6*)
8264 # Note: We can NOT use -z defs as we might desire, because we do not
8265 # link with -lc, and that would cause any symbols used from libc to
8266 # always be unresolved, which means just about no library would
8267 # ever link correctly. If we're not using GNU ld we use -z text
8268 # though, which does catch some bad symbols but isn't as heavy-handed
8269 # as -z defs.
8270 no_undefined_flag='${wl}-z,text'
8271 allow_undefined_flag='${wl}-z,nodefs'
8272 archive_cmds_need_lc=no
8273 hardcode_shlibpath_var=no
8274 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8275 hardcode_libdir_separator=':'
8276 link_all_deplibs=yes
8277 export_dynamic_flag_spec='${wl}-Bexport'
8278 runpath_var='LD_RUN_PATH'
8280 if test "$GCC" = yes; then
8281 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8282 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8283 else
8284 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8285 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8289 uts4*)
8290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8291 hardcode_libdir_flag_spec='-L$libdir'
8292 hardcode_shlibpath_var=no
8296 ld_shlibs=no
8298 esac
8300 if test x$host_vendor = xsni; then
8301 case $host in
8302 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8303 export_dynamic_flag_spec='${wl}-Blargedynsym'
8305 esac
8309 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8310 echo "${ECHO_T}$ld_shlibs" >&6; }
8311 test "$ld_shlibs" = no && can_build_shared=no
8313 with_gnu_ld=$with_gnu_ld
8330 # Do we need to explicitly link libc?
8332 case "x$archive_cmds_need_lc" in
8333 x|xyes)
8334 # Assume -lc should be added
8335 archive_cmds_need_lc=yes
8337 if test "$enable_shared" = yes && test "$GCC" = yes; then
8338 case $archive_cmds in
8339 *'~'*)
8340 # FIXME: we may have to deal with multi-command sequences.
8342 '$CC '*)
8343 # Test whether the compiler implicitly links with -lc since on some
8344 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8345 # to ld, don't add -lc before -lgcc.
8346 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8347 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8348 $RM conftest*
8349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352 (eval $ac_compile) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } 2>conftest.err; then
8356 soname=conftest
8357 lib=conftest
8358 libobjs=conftest.$ac_objext
8359 deplibs=
8360 wl=$lt_prog_compiler_wl
8361 pic_flag=$lt_prog_compiler_pic
8362 compiler_flags=-v
8363 linker_flags=-v
8364 verstring=
8365 output_objdir=.
8366 libname=conftest
8367 lt_save_allow_undefined_flag=$allow_undefined_flag
8368 allow_undefined_flag=
8369 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8370 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }
8374 then
8375 archive_cmds_need_lc=no
8376 else
8377 archive_cmds_need_lc=yes
8379 allow_undefined_flag=$lt_save_allow_undefined_flag
8380 else
8381 cat conftest.err 1>&5
8383 $RM conftest*
8384 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8385 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8387 esac
8390 esac
8548 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8549 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8550 withGCC=$GCC
8551 if test "$withGCC" = yes; then
8552 case $host_os in
8553 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8554 *) lt_awk_arg="/^libraries:/" ;;
8555 esac
8556 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8557 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8558 # if the path contains ";" then we assume it to be the separator
8559 # otherwise default to the standard path separator (i.e. ":") - it is
8560 # assumed that no part of a normal pathname contains ";" but that should
8561 # okay in the real world where ";" in dirpaths is itself problematic.
8562 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8563 else
8564 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8566 # Ok, now we have the path, separated by spaces, we can step through it
8567 # and add multilib dir if necessary.
8568 lt_tmp_lt_search_path_spec=
8569 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8570 for lt_sys_path in $lt_search_path_spec; do
8571 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8572 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8573 else
8574 test -d "$lt_sys_path" && \
8575 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8577 done
8578 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8579 BEGIN {RS=" "; FS="/|\n";} {
8580 lt_foo="";
8581 lt_count=0;
8582 for (lt_i = NF; lt_i > 0; lt_i--) {
8583 if ($lt_i != "" && $lt_i != ".") {
8584 if ($lt_i == "..") {
8585 lt_count++;
8586 } else {
8587 if (lt_count == 0) {
8588 lt_foo="/" $lt_i lt_foo;
8589 } else {
8590 lt_count--;
8595 if (lt_foo != "") { lt_freq[lt_foo]++; }
8596 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8598 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8599 else
8600 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8602 library_names_spec=
8603 libname_spec='lib$name'
8604 soname_spec=
8605 shrext_cmds=".so"
8606 postinstall_cmds=
8607 postuninstall_cmds=
8608 finish_cmds=
8609 finish_eval=
8610 shlibpath_var=
8611 shlibpath_overrides_runpath=unknown
8612 version_type=none
8613 dynamic_linker="$host_os ld.so"
8614 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8615 need_lib_prefix=unknown
8616 hardcode_into_libs=no
8618 # when you set need_version to no, make sure it does not cause -set_version
8619 # flags to be left without arguments
8620 need_version=unknown
8622 case $host_os in
8623 aix3*)
8624 version_type=linux
8625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8626 shlibpath_var=LIBPATH
8628 # AIX 3 has no versioning support, so we append a major version to the name.
8629 soname_spec='${libname}${release}${shared_ext}$major'
8632 aix4* | aix5*)
8633 version_type=linux
8634 need_lib_prefix=no
8635 need_version=no
8636 hardcode_into_libs=yes
8637 if test "$host_cpu" = ia64; then
8638 # AIX 5 supports IA64
8639 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8640 shlibpath_var=LD_LIBRARY_PATH
8641 else
8642 # With GCC up to 2.95.x, collect2 would create an import file
8643 # for dependence libraries. The import file would start with
8644 # the line `#! .'. This would cause the generated library to
8645 # depend on `.', always an invalid library. This was fixed in
8646 # development snapshots of GCC prior to 3.0.
8647 case $host_os in
8648 aix4 | aix4.[01] | aix4.[01].*)
8649 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8650 echo ' yes '
8651 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8653 else
8654 can_build_shared=no
8657 esac
8658 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8659 # soname into executable. Probably we can add versioning support to
8660 # collect2, so additional links can be useful in future.
8661 if test "$aix_use_runtimelinking" = yes; then
8662 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8663 # instead of lib<name>.a to let people know that these are not
8664 # typical AIX shared libraries.
8665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8666 else
8667 # We preserve .a as extension for shared libraries through AIX4.2
8668 # and later when we are not doing run time linking.
8669 library_names_spec='${libname}${release}.a $libname.a'
8670 soname_spec='${libname}${release}${shared_ext}$major'
8672 shlibpath_var=LIBPATH
8676 amigaos*)
8677 if test "$host_cpu" = m68k; then
8678 library_names_spec='$libname.ixlibrary $libname.a'
8679 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8680 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'
8681 else
8682 dynamic_linker=no
8686 beos*)
8687 library_names_spec='${libname}${shared_ext}'
8688 dynamic_linker="$host_os ld.so"
8689 shlibpath_var=LIBRARY_PATH
8692 bsdi[45]*)
8693 version_type=linux
8694 need_version=no
8695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8696 soname_spec='${libname}${release}${shared_ext}$major'
8697 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8698 shlibpath_var=LD_LIBRARY_PATH
8699 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8700 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8701 # the default ld.so.conf also contains /usr/contrib/lib and
8702 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8703 # libtool to hard-code these into programs
8706 cygwin* | mingw* | pw32*)
8707 version_type=windows
8708 shrext_cmds=".dll"
8709 need_version=no
8710 need_lib_prefix=no
8712 case $withGCC,$host_os in
8713 yes,cygwin* | yes,mingw* | yes,pw32*)
8714 library_names_spec='$libname.dll.a'
8715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8716 postinstall_cmds='base_file=`basename \${file}`~
8717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8718 dldir=$destdir/`dirname \$dlpath`~
8719 test -d \$dldir || mkdir -p \$dldir~
8720 $install_prog $dir/$dlname \$dldir/$dlname~
8721 chmod a+x \$dldir/$dlname~
8722 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8723 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8726 dlpath=$dir/\$dldll~
8727 $RM \$dlpath'
8728 shlibpath_overrides_runpath=yes
8730 case $host_os in
8731 cygwin*)
8732 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8733 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8734 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8736 mingw*)
8737 # MinGW DLLs use traditional 'lib' prefix
8738 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8739 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8740 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8741 # It is most probably a Windows format PATH printed by
8742 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8743 # path with ; separators, and with drive letters. We can handle the
8744 # drive letters (cygwin fileutils understands them), so leave them,
8745 # especially as we might pass files found there to a mingw objdump,
8746 # which wouldn't understand a cygwinified path. Ahh.
8747 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8748 else
8749 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8752 pw32*)
8753 # pw32 DLLs use 'pw' prefix rather than 'lib'
8754 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8756 esac
8760 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8762 esac
8763 dynamic_linker='Win32 ld.exe'
8764 # FIXME: first we should search . and the directory the executable is in
8765 shlibpath_var=PATH
8768 darwin* | rhapsody*)
8769 dynamic_linker="$host_os dyld"
8770 version_type=darwin
8771 need_lib_prefix=no
8772 need_version=no
8773 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8774 soname_spec='${libname}${release}${major}$shared_ext'
8775 shlibpath_overrides_runpath=yes
8776 shlibpath_var=DYLD_LIBRARY_PATH
8777 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8779 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8783 dgux*)
8784 version_type=linux
8785 need_lib_prefix=no
8786 need_version=no
8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8788 soname_spec='${libname}${release}${shared_ext}$major'
8789 shlibpath_var=LD_LIBRARY_PATH
8792 freebsd1*)
8793 dynamic_linker=no
8796 freebsd* | dragonfly*)
8797 # DragonFly does not have aout. When/if they implement a new
8798 # versioning mechanism, adjust this.
8799 if test -x /usr/bin/objformat; then
8800 objformat=`/usr/bin/objformat`
8801 else
8802 case $host_os in
8803 freebsd[123]*) objformat=aout ;;
8804 *) objformat=elf ;;
8805 esac
8807 version_type=freebsd-$objformat
8808 case $version_type in
8809 freebsd-elf*)
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8811 need_version=no
8812 need_lib_prefix=no
8814 freebsd-*)
8815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8816 need_version=yes
8818 esac
8819 shlibpath_var=LD_LIBRARY_PATH
8820 case $host_os in
8821 freebsd2*)
8822 shlibpath_overrides_runpath=yes
8824 freebsd3.[01]* | freebsdelf3.[01]*)
8825 shlibpath_overrides_runpath=yes
8826 hardcode_into_libs=yes
8828 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8829 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8830 shlibpath_overrides_runpath=no
8831 hardcode_into_libs=yes
8833 *) # from 4.6 on, and DragonFly
8834 shlibpath_overrides_runpath=yes
8835 hardcode_into_libs=yes
8837 esac
8840 gnu*)
8841 version_type=linux
8842 need_lib_prefix=no
8843 need_version=no
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 shlibpath_var=LD_LIBRARY_PATH
8847 hardcode_into_libs=yes
8850 hpux9* | hpux10* | hpux11*)
8851 # Give a soname corresponding to the major version so that dld.sl refuses to
8852 # link against other versions.
8853 version_type=sunos
8854 need_lib_prefix=no
8855 need_version=no
8856 case $host_cpu in
8857 ia64*)
8858 shrext_cmds='.so'
8859 hardcode_into_libs=yes
8860 dynamic_linker="$host_os dld.so"
8861 shlibpath_var=LD_LIBRARY_PATH
8862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 if test "X$HPUX_IA64_MODE" = X32; then
8866 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8867 else
8868 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8872 hppa*64*)
8873 shrext_cmds='.sl'
8874 hardcode_into_libs=yes
8875 dynamic_linker="$host_os dld.sl"
8876 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8877 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8880 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8884 shrext_cmds='.sl'
8885 dynamic_linker="$host_os dld.sl"
8886 shlibpath_var=SHLIB_PATH
8887 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8889 soname_spec='${libname}${release}${shared_ext}$major'
8891 esac
8892 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8893 postinstall_cmds='chmod 555 $lib'
8896 interix[3-9]*)
8897 version_type=linux
8898 need_lib_prefix=no
8899 need_version=no
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8903 shlibpath_var=LD_LIBRARY_PATH
8904 shlibpath_overrides_runpath=no
8905 hardcode_into_libs=yes
8908 irix5* | irix6* | nonstopux*)
8909 case $host_os in
8910 nonstopux*) version_type=nonstopux ;;
8912 if test "$lt_cv_prog_gnu_ld" = yes; then
8913 version_type=linux
8914 else
8915 version_type=irix
8916 fi ;;
8917 esac
8918 need_lib_prefix=no
8919 need_version=no
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8922 case $host_os in
8923 irix5* | nonstopux*)
8924 libsuff= shlibsuff=
8927 case $LD in # libtool.m4 will add one of these switches to LD
8928 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8929 libsuff= shlibsuff= libmagic=32-bit;;
8930 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8931 libsuff=32 shlibsuff=N32 libmagic=N32;;
8932 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8933 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8934 *) libsuff= shlibsuff= libmagic=never-match;;
8935 esac
8937 esac
8938 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8939 shlibpath_overrides_runpath=no
8940 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8941 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8942 hardcode_into_libs=yes
8945 # No shared lib support for Linux oldld, aout, or coff.
8946 linux*oldld* | linux*aout* | linux*coff*)
8947 dynamic_linker=no
8950 # This must be Linux ELF.
8951 linux* | k*bsd*-gnu)
8952 version_type=linux
8953 need_lib_prefix=no
8954 need_version=no
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956 soname_spec='${libname}${release}${shared_ext}$major'
8957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 shlibpath_overrides_runpath=no
8960 # Some binutils ld are patched to set DT_RUNPATH
8961 save_LDFLAGS=$LDFLAGS
8962 save_libdir=$libdir
8963 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8964 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8965 cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h. */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8973 main ()
8977 return 0;
8979 _ACEOF
8980 rm -f conftest.$ac_objext conftest$ac_exeext
8981 if { (ac_try="$ac_link"
8982 case "(($ac_try" in
8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8985 esac
8986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987 (eval "$ac_link") 2>conftest.er1
8988 ac_status=$?
8989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } && {
8994 test -z "$ac_c_werror_flag" ||
8995 test ! -s conftest.err
8996 } && test -s conftest$ac_exeext &&
8997 $as_test_x conftest$ac_exeext; then
8998 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8999 shlibpath_overrides_runpath=yes
9002 else
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9010 conftest$ac_exeext conftest.$ac_ext
9011 LDFLAGS=$save_LDFLAGS
9012 libdir=$save_libdir
9014 # This implies no fast_install, which is unacceptable.
9015 # Some rework will be needed to allow for fast_install
9016 # before this can be enabled.
9017 hardcode_into_libs=yes
9019 # Append ld.so.conf contents to the search path
9020 if test -f /etc/ld.so.conf; then
9021 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9022 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9025 # We used to test for /lib/ld.so.1 and disable shared libraries on
9026 # powerpc, because MkLinux only supported shared libraries with the
9027 # GNU dynamic linker. Since this was broken with cross compilers,
9028 # most powerpc-linux boxes support dynamic linking these days and
9029 # people can always --disable-shared, the test was removed, and we
9030 # assume the GNU/Linux dynamic linker is in use.
9031 dynamic_linker='GNU/Linux ld.so'
9034 netbsd*)
9035 version_type=sunos
9036 need_lib_prefix=no
9037 need_version=no
9038 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9041 dynamic_linker='NetBSD (a.out) ld.so'
9042 else
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 dynamic_linker='NetBSD ld.elf_so'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9049 hardcode_into_libs=yes
9052 newsos6)
9053 version_type=linux
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes
9059 *nto* | *qnx*)
9060 version_type=qnx
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=no
9067 hardcode_into_libs=yes
9068 dynamic_linker='ldqnx.so'
9071 openbsd*)
9072 version_type=sunos
9073 sys_lib_dlsearch_path_spec="/usr/lib"
9074 need_lib_prefix=no
9075 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9076 case $host_os in
9077 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9078 *) need_version=no ;;
9079 esac
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9084 case $host_os in
9085 openbsd2.[89] | openbsd2.[89].*)
9086 shlibpath_overrides_runpath=no
9089 shlibpath_overrides_runpath=yes
9091 esac
9092 else
9093 shlibpath_overrides_runpath=yes
9097 os2*)
9098 libname_spec='$name'
9099 shrext_cmds=".dll"
9100 need_lib_prefix=no
9101 library_names_spec='$libname${shared_ext} $libname.a'
9102 dynamic_linker='OS/2 ld.exe'
9103 shlibpath_var=LIBPATH
9106 osf3* | osf4* | osf5*)
9107 version_type=osf
9108 need_lib_prefix=no
9109 need_version=no
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9114 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9117 rdos*)
9118 dynamic_linker=no
9121 solaris*)
9122 version_type=linux
9123 need_lib_prefix=no
9124 need_version=no
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 shlibpath_overrides_runpath=yes
9129 hardcode_into_libs=yes
9130 # ldd complains unless libraries are executable
9131 postinstall_cmds='chmod +x $lib'
9134 sunos4*)
9135 version_type=sunos
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9138 shlibpath_var=LD_LIBRARY_PATH
9139 shlibpath_overrides_runpath=yes
9140 if test "$with_gnu_ld" = yes; then
9141 need_lib_prefix=no
9143 need_version=yes
9146 sysv4 | sysv4.3*)
9147 version_type=linux
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 case $host_vendor in
9152 sni)
9153 shlibpath_overrides_runpath=no
9154 need_lib_prefix=no
9155 runpath_var=LD_RUN_PATH
9157 siemens)
9158 need_lib_prefix=no
9160 motorola)
9161 need_lib_prefix=no
9162 need_version=no
9163 shlibpath_overrides_runpath=no
9164 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9166 esac
9169 sysv4*MP*)
9170 if test -d /usr/nec ;then
9171 version_type=linux
9172 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9173 soname_spec='$libname${shared_ext}.$major'
9174 shlibpath_var=LD_LIBRARY_PATH
9178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9179 version_type=freebsd-elf
9180 need_lib_prefix=no
9181 need_version=no
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 shlibpath_overrides_runpath=yes
9186 hardcode_into_libs=yes
9187 if test "$with_gnu_ld" = yes; then
9188 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9189 else
9190 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9191 case $host_os in
9192 sco3.2v5*)
9193 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9195 esac
9197 sys_lib_dlsearch_path_spec='/usr/lib'
9200 tpf*)
9201 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9202 version_type=linux
9203 need_lib_prefix=no
9204 need_version=no
9205 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 shlibpath_overrides_runpath=no
9208 hardcode_into_libs=yes
9211 uts4*)
9212 version_type=linux
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 shlibpath_var=LD_LIBRARY_PATH
9219 dynamic_linker=no
9221 esac
9222 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9223 echo "${ECHO_T}$dynamic_linker" >&6; }
9224 test "$dynamic_linker" = no && can_build_shared=no
9226 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9227 if test "$GCC" = yes; then
9228 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9317 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9318 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9319 hardcode_action=
9320 if test -n "$hardcode_libdir_flag_spec" ||
9321 test -n "$runpath_var" ||
9322 test "X$hardcode_automatic" = "Xyes" ; then
9324 # We can hardcode non-existent directories.
9325 if test "$hardcode_direct" != no &&
9326 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9327 # have to relink, otherwise we might link with an installed library
9328 # when we should be linking with a yet-to-be-installed one
9329 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9330 test "$hardcode_minus_L" != no; then
9331 # Linking always hardcodes the temporary library directory.
9332 hardcode_action=relink
9333 else
9334 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9335 hardcode_action=immediate
9337 else
9338 # We cannot hardcode anything, or else we can only hardcode existing
9339 # directories.
9340 hardcode_action=unsupported
9342 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9343 echo "${ECHO_T}$hardcode_action" >&6; }
9345 if test "$hardcode_action" = relink ||
9346 test "$inherit_rpath" = yes; then
9347 # Fast installation is not supported
9348 enable_fast_install=no
9349 elif test "$shlibpath_overrides_runpath" = yes ||
9350 test "$enable_shared" = no; then
9351 # Fast installation is not necessary
9352 enable_fast_install=needless
9360 if test "x$enable_dlopen" != xyes; then
9361 enable_dlopen=unknown
9362 enable_dlopen_self=unknown
9363 enable_dlopen_self_static=unknown
9364 else
9365 lt_cv_dlopen=no
9366 lt_cv_dlopen_libs=
9368 case $host_os in
9369 beos*)
9370 lt_cv_dlopen="load_add_on"
9371 lt_cv_dlopen_libs=
9372 lt_cv_dlopen_self=yes
9375 mingw* | pw32*)
9376 lt_cv_dlopen="LoadLibrary"
9377 lt_cv_dlopen_libs=
9380 cygwin*)
9381 lt_cv_dlopen="dlopen"
9382 lt_cv_dlopen_libs=
9385 darwin*)
9386 # if libdl is installed we need to link against it
9387 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9388 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9389 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9392 ac_check_lib_save_LIBS=$LIBS
9393 LIBS="-ldl $LIBS"
9394 cat >conftest.$ac_ext <<_ACEOF
9395 /* confdefs.h. */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9401 /* Override any GCC internal prototype to avoid an error.
9402 Use char because int might match the return type of a GCC
9403 builtin and then its argument prototype would still apply. */
9404 #ifdef __cplusplus
9405 extern "C"
9406 #endif
9407 char dlopen ();
9409 main ()
9411 return dlopen ();
9413 return 0;
9415 _ACEOF
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (ac_try="$ac_link"
9418 case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9421 esac
9422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423 (eval "$ac_link") 2>conftest.er1
9424 ac_status=$?
9425 grep -v '^ *+' conftest.er1 >conftest.err
9426 rm -f conftest.er1
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } && {
9430 test -z "$ac_c_werror_flag" ||
9431 test ! -s conftest.err
9432 } && test -s conftest$ac_exeext &&
9433 $as_test_x conftest$ac_exeext; then
9434 ac_cv_lib_dl_dlopen=yes
9435 else
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 ac_cv_lib_dl_dlopen=no
9442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9443 conftest$ac_exeext conftest.$ac_ext
9444 LIBS=$ac_check_lib_save_LIBS
9446 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9447 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9448 if test $ac_cv_lib_dl_dlopen = yes; then
9449 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9450 else
9452 lt_cv_dlopen="dyld"
9453 lt_cv_dlopen_libs=
9454 lt_cv_dlopen_self=yes
9461 { echo "$as_me:$LINENO: checking for shl_load" >&5
9462 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9463 if test "${ac_cv_func_shl_load+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 else
9466 cat >conftest.$ac_ext <<_ACEOF
9467 /* confdefs.h. */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9472 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9474 #define shl_load innocuous_shl_load
9476 /* System header to define __stub macros and hopefully few prototypes,
9477 which can conflict with char shl_load (); below.
9478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9479 <limits.h> exists even on freestanding compilers. */
9481 #ifdef __STDC__
9482 # include <limits.h>
9483 #else
9484 # include <assert.h>
9485 #endif
9487 #undef shl_load
9489 /* Override any GCC internal prototype to avoid an error.
9490 Use char because int might match the return type of a GCC
9491 builtin and then its argument prototype would still apply. */
9492 #ifdef __cplusplus
9493 extern "C"
9494 #endif
9495 char shl_load ();
9496 /* The GNU C library defines this for functions which it implements
9497 to always fail with ENOSYS. Some functions are actually named
9498 something starting with __ and the normal name is an alias. */
9499 #if defined __stub_shl_load || defined __stub___shl_load
9500 choke me
9501 #endif
9504 main ()
9506 return shl_load ();
9508 return 0;
9510 _ACEOF
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (ac_try="$ac_link"
9513 case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9516 esac
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_link") 2>conftest.er1
9519 ac_status=$?
9520 grep -v '^ *+' conftest.er1 >conftest.err
9521 rm -f conftest.er1
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } && {
9525 test -z "$ac_c_werror_flag" ||
9526 test ! -s conftest.err
9527 } && test -s conftest$ac_exeext &&
9528 $as_test_x conftest$ac_exeext; then
9529 ac_cv_func_shl_load=yes
9530 else
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_cv_func_shl_load=no
9537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9538 conftest$ac_exeext conftest.$ac_ext
9540 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9541 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9542 if test $ac_cv_func_shl_load = yes; then
9543 lt_cv_dlopen="shl_load"
9544 else
9545 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9546 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9547 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 else
9550 ac_check_lib_save_LIBS=$LIBS
9551 LIBS="-ldld $LIBS"
9552 cat >conftest.$ac_ext <<_ACEOF
9553 /* confdefs.h. */
9554 _ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9559 /* Override any GCC internal prototype to avoid an error.
9560 Use char because int might match the return type of a GCC
9561 builtin and then its argument prototype would still apply. */
9562 #ifdef __cplusplus
9563 extern "C"
9564 #endif
9565 char shl_load ();
9567 main ()
9569 return shl_load ();
9571 return 0;
9573 _ACEOF
9574 rm -f conftest.$ac_objext conftest$ac_exeext
9575 if { (ac_try="$ac_link"
9576 case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9579 esac
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_link") 2>conftest.er1
9582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } && {
9588 test -z "$ac_c_werror_flag" ||
9589 test ! -s conftest.err
9590 } && test -s conftest$ac_exeext &&
9591 $as_test_x conftest$ac_exeext; then
9592 ac_cv_lib_dld_shl_load=yes
9593 else
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 ac_cv_lib_dld_shl_load=no
9600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9601 conftest$ac_exeext conftest.$ac_ext
9602 LIBS=$ac_check_lib_save_LIBS
9604 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9605 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9606 if test $ac_cv_lib_dld_shl_load = yes; then
9607 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9608 else
9609 { echo "$as_me:$LINENO: checking for dlopen" >&5
9610 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9611 if test "${ac_cv_func_dlopen+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 else
9614 cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h. */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9622 #define dlopen innocuous_dlopen
9624 /* System header to define __stub macros and hopefully few prototypes,
9625 which can conflict with char dlopen (); below.
9626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9627 <limits.h> exists even on freestanding compilers. */
9629 #ifdef __STDC__
9630 # include <limits.h>
9631 #else
9632 # include <assert.h>
9633 #endif
9635 #undef dlopen
9637 /* Override any GCC internal prototype to avoid an error.
9638 Use char because int might match the return type of a GCC
9639 builtin and then its argument prototype would still apply. */
9640 #ifdef __cplusplus
9641 extern "C"
9642 #endif
9643 char dlopen ();
9644 /* The GNU C library defines this for functions which it implements
9645 to always fail with ENOSYS. Some functions are actually named
9646 something starting with __ and the normal name is an alias. */
9647 #if defined __stub_dlopen || defined __stub___dlopen
9648 choke me
9649 #endif
9652 main ()
9654 return dlopen ();
9656 return 0;
9658 _ACEOF
9659 rm -f conftest.$ac_objext conftest$ac_exeext
9660 if { (ac_try="$ac_link"
9661 case "(($ac_try" in
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9664 esac
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_link") 2>conftest.er1
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } && {
9673 test -z "$ac_c_werror_flag" ||
9674 test ! -s conftest.err
9675 } && test -s conftest$ac_exeext &&
9676 $as_test_x conftest$ac_exeext; then
9677 ac_cv_func_dlopen=yes
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9682 ac_cv_func_dlopen=no
9685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9686 conftest$ac_exeext conftest.$ac_ext
9688 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9689 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9690 if test $ac_cv_func_dlopen = yes; then
9691 lt_cv_dlopen="dlopen"
9692 else
9693 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9694 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9695 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 else
9698 ac_check_lib_save_LIBS=$LIBS
9699 LIBS="-ldl $LIBS"
9700 cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h. */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9707 /* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9710 #ifdef __cplusplus
9711 extern "C"
9712 #endif
9713 char dlopen ();
9715 main ()
9717 return dlopen ();
9719 return 0;
9721 _ACEOF
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (ac_try="$ac_link"
9724 case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9727 esac
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_link") 2>conftest.er1
9730 ac_status=$?
9731 grep -v '^ *+' conftest.er1 >conftest.err
9732 rm -f conftest.er1
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } && {
9736 test -z "$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 } && test -s conftest$ac_exeext &&
9739 $as_test_x conftest$ac_exeext; then
9740 ac_cv_lib_dl_dlopen=yes
9741 else
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9745 ac_cv_lib_dl_dlopen=no
9748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9749 conftest$ac_exeext conftest.$ac_ext
9750 LIBS=$ac_check_lib_save_LIBS
9752 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9753 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9754 if test $ac_cv_lib_dl_dlopen = yes; then
9755 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9756 else
9757 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9758 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9759 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762 ac_check_lib_save_LIBS=$LIBS
9763 LIBS="-lsvld $LIBS"
9764 cat >conftest.$ac_ext <<_ACEOF
9765 /* confdefs.h. */
9766 _ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9771 /* Override any GCC internal prototype to avoid an error.
9772 Use char because int might match the return type of a GCC
9773 builtin and then its argument prototype would still apply. */
9774 #ifdef __cplusplus
9775 extern "C"
9776 #endif
9777 char dlopen ();
9779 main ()
9781 return dlopen ();
9783 return 0;
9785 _ACEOF
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (ac_try="$ac_link"
9788 case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_link") 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest$ac_exeext &&
9803 $as_test_x conftest$ac_exeext; then
9804 ac_cv_lib_svld_dlopen=yes
9805 else
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 ac_cv_lib_svld_dlopen=no
9812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9813 conftest$ac_exeext conftest.$ac_ext
9814 LIBS=$ac_check_lib_save_LIBS
9816 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9817 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9818 if test $ac_cv_lib_svld_dlopen = yes; then
9819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9820 else
9821 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9822 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9823 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 else
9826 ac_check_lib_save_LIBS=$LIBS
9827 LIBS="-ldld $LIBS"
9828 cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h. */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9835 /* Override any GCC internal prototype to avoid an error.
9836 Use char because int might match the return type of a GCC
9837 builtin and then its argument prototype would still apply. */
9838 #ifdef __cplusplus
9839 extern "C"
9840 #endif
9841 char dld_link ();
9843 main ()
9845 return dld_link ();
9847 return 0;
9849 _ACEOF
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (ac_try="$ac_link"
9852 case "(($ac_try" in
9853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854 *) ac_try_echo=$ac_try;;
9855 esac
9856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857 (eval "$ac_link") 2>conftest.er1
9858 ac_status=$?
9859 grep -v '^ *+' conftest.er1 >conftest.err
9860 rm -f conftest.er1
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } && {
9864 test -z "$ac_c_werror_flag" ||
9865 test ! -s conftest.err
9866 } && test -s conftest$ac_exeext &&
9867 $as_test_x conftest$ac_exeext; then
9868 ac_cv_lib_dld_dld_link=yes
9869 else
9870 echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9873 ac_cv_lib_dld_dld_link=no
9876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9877 conftest$ac_exeext conftest.$ac_ext
9878 LIBS=$ac_check_lib_save_LIBS
9880 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9881 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9882 if test $ac_cv_lib_dld_dld_link = yes; then
9883 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9902 esac
9904 if test "x$lt_cv_dlopen" != xno; then
9905 enable_dlopen=yes
9906 else
9907 enable_dlopen=no
9910 case $lt_cv_dlopen in
9911 dlopen)
9912 save_CPPFLAGS="$CPPFLAGS"
9913 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9915 save_LDFLAGS="$LDFLAGS"
9916 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9918 save_LIBS="$LIBS"
9919 LIBS="$lt_cv_dlopen_libs $LIBS"
9921 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9922 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9923 if test "${lt_cv_dlopen_self+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926 if test "$cross_compiling" = yes; then :
9927 lt_cv_dlopen_self=cross
9928 else
9929 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9930 lt_status=$lt_dlunknown
9931 cat > conftest.$ac_ext <<_LT_EOF
9932 #line 9932 "configure"
9933 #include "confdefs.h"
9935 #if HAVE_DLFCN_H
9936 #include <dlfcn.h>
9937 #endif
9939 #include <stdio.h>
9941 #ifdef RTLD_GLOBAL
9942 # define LT_DLGLOBAL RTLD_GLOBAL
9943 #else
9944 # ifdef DL_GLOBAL
9945 # define LT_DLGLOBAL DL_GLOBAL
9946 # else
9947 # define LT_DLGLOBAL 0
9948 # endif
9949 #endif
9951 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9952 find out it does not work in some platform. */
9953 #ifndef LT_DLLAZY_OR_NOW
9954 # ifdef RTLD_LAZY
9955 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9956 # else
9957 # ifdef DL_LAZY
9958 # define LT_DLLAZY_OR_NOW DL_LAZY
9959 # else
9960 # ifdef RTLD_NOW
9961 # define LT_DLLAZY_OR_NOW RTLD_NOW
9962 # else
9963 # ifdef DL_NOW
9964 # define LT_DLLAZY_OR_NOW DL_NOW
9965 # else
9966 # define LT_DLLAZY_OR_NOW 0
9967 # endif
9968 # endif
9969 # endif
9970 # endif
9971 #endif
9973 #ifdef __cplusplus
9974 extern "C" void exit (int);
9975 #endif
9977 void fnord() { int i=42;}
9978 int main ()
9980 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9981 int status = $lt_dlunknown;
9983 if (self)
9985 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9986 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9987 /* dlclose (self); */
9989 else
9990 puts (dlerror ());
9992 exit (status);
9994 _LT_EOF
9995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9996 (eval $ac_link) 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10000 (./conftest; exit; ) >&5 2>/dev/null
10001 lt_status=$?
10002 case x$lt_status in
10003 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10004 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10005 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10006 esac
10007 else :
10008 # compilation failed
10009 lt_cv_dlopen_self=no
10012 rm -fr conftest*
10016 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10017 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10019 if test "x$lt_cv_dlopen_self" = xyes; then
10020 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10021 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10022 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10023 if test "${lt_cv_dlopen_self_static+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026 if test "$cross_compiling" = yes; then :
10027 lt_cv_dlopen_self_static=cross
10028 else
10029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10030 lt_status=$lt_dlunknown
10031 cat > conftest.$ac_ext <<_LT_EOF
10032 #line 10032 "configure"
10033 #include "confdefs.h"
10035 #if HAVE_DLFCN_H
10036 #include <dlfcn.h>
10037 #endif
10039 #include <stdio.h>
10041 #ifdef RTLD_GLOBAL
10042 # define LT_DLGLOBAL RTLD_GLOBAL
10043 #else
10044 # ifdef DL_GLOBAL
10045 # define LT_DLGLOBAL DL_GLOBAL
10046 # else
10047 # define LT_DLGLOBAL 0
10048 # endif
10049 #endif
10051 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10052 find out it does not work in some platform. */
10053 #ifndef LT_DLLAZY_OR_NOW
10054 # ifdef RTLD_LAZY
10055 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10056 # else
10057 # ifdef DL_LAZY
10058 # define LT_DLLAZY_OR_NOW DL_LAZY
10059 # else
10060 # ifdef RTLD_NOW
10061 # define LT_DLLAZY_OR_NOW RTLD_NOW
10062 # else
10063 # ifdef DL_NOW
10064 # define LT_DLLAZY_OR_NOW DL_NOW
10065 # else
10066 # define LT_DLLAZY_OR_NOW 0
10067 # endif
10068 # endif
10069 # endif
10070 # endif
10071 #endif
10073 #ifdef __cplusplus
10074 extern "C" void exit (int);
10075 #endif
10077 void fnord() { int i=42;}
10078 int main ()
10080 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10081 int status = $lt_dlunknown;
10083 if (self)
10085 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10086 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10087 /* dlclose (self); */
10089 else
10090 puts (dlerror ());
10092 exit (status);
10094 _LT_EOF
10095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10096 (eval $ac_link) 2>&5
10097 ac_status=$?
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10100 (./conftest; exit; ) >&5 2>/dev/null
10101 lt_status=$?
10102 case x$lt_status in
10103 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10104 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10105 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10106 esac
10107 else :
10108 # compilation failed
10109 lt_cv_dlopen_self_static=no
10112 rm -fr conftest*
10116 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10117 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10120 CPPFLAGS="$save_CPPFLAGS"
10121 LDFLAGS="$save_LDFLAGS"
10122 LIBS="$save_LIBS"
10124 esac
10126 case $lt_cv_dlopen_self in
10127 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10128 *) enable_dlopen_self=unknown ;;
10129 esac
10131 case $lt_cv_dlopen_self_static in
10132 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10133 *) enable_dlopen_self_static=unknown ;;
10134 esac
10153 striplib=
10154 old_striplib=
10155 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10156 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10157 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10158 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10159 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10160 { echo "$as_me:$LINENO: result: yes" >&5
10161 echo "${ECHO_T}yes" >&6; }
10162 else
10163 # FIXME - insert some real tests, host_os isn't really good enough
10164 case $host_os in
10165 darwin*)
10166 if test -n "$STRIP" ; then
10167 striplib="$STRIP -x"
10168 old_striplib="$STRIP -S"
10169 { echo "$as_me:$LINENO: result: yes" >&5
10170 echo "${ECHO_T}yes" >&6; }
10171 else
10172 { echo "$as_me:$LINENO: result: no" >&5
10173 echo "${ECHO_T}no" >&6; }
10177 { echo "$as_me:$LINENO: result: no" >&5
10178 echo "${ECHO_T}no" >&6; }
10180 esac
10194 # Report which library types will actually be built
10195 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10196 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10197 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10198 echo "${ECHO_T}$can_build_shared" >&6; }
10200 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10201 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10202 test "$can_build_shared" = "no" && enable_shared=no
10204 # On AIX, shared libraries and static libraries use the same namespace, and
10205 # are all built from PIC.
10206 case $host_os in
10207 aix3*)
10208 test "$enable_shared" = yes && enable_static=no
10209 if test -n "$RANLIB"; then
10210 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10211 postinstall_cmds='$RANLIB $lib'
10215 aix4* | aix5*)
10216 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10217 test "$enable_shared" = yes && enable_static=no
10220 esac
10221 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10222 echo "${ECHO_T}$enable_shared" >&6; }
10224 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10225 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10226 # Make sure either enable_shared or enable_static is yes.
10227 test "$enable_shared" = yes || enable_static=yes
10228 { echo "$as_me:$LINENO: result: $enable_static" >&5
10229 echo "${ECHO_T}$enable_static" >&6; }
10235 ac_ext=c
10236 ac_cpp='$CPP $CPPFLAGS'
10237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10241 CC="$lt_save_CC"
10255 ac_config_commands="$ac_config_commands libtool"
10260 # Only expand once:
10264 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
10267 ac_ext=c
10268 ac_cpp='$CPP $CPPFLAGS'
10269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10272 if test -n "$ac_tool_prefix"; then
10273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10274 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10277 if test "${ac_cv_prog_CC+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280 if test -n "$CC"; then
10281 ac_cv_prog_CC="$CC" # Let the user override the test.
10282 else
10283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284 for as_dir in $PATH
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10290 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10294 done
10295 done
10296 IFS=$as_save_IFS
10300 CC=$ac_cv_prog_CC
10301 if test -n "$CC"; then
10302 { echo "$as_me:$LINENO: result: $CC" >&5
10303 echo "${ECHO_T}$CC" >&6; }
10304 else
10305 { echo "$as_me:$LINENO: result: no" >&5
10306 echo "${ECHO_T}no" >&6; }
10311 if test -z "$ac_cv_prog_CC"; then
10312 ac_ct_CC=$CC
10313 # Extract the first word of "gcc", so it can be a program name with args.
10314 set dummy gcc; ac_word=$2
10315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320 if test -n "$ac_ct_CC"; then
10321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10322 else
10323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324 for as_dir in $PATH
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10330 ac_cv_prog_ac_ct_CC="gcc"
10331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 break 2
10334 done
10335 done
10336 IFS=$as_save_IFS
10340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10341 if test -n "$ac_ct_CC"; then
10342 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10343 echo "${ECHO_T}$ac_ct_CC" >&6; }
10344 else
10345 { echo "$as_me:$LINENO: result: no" >&5
10346 echo "${ECHO_T}no" >&6; }
10349 if test "x$ac_ct_CC" = x; then
10350 CC=""
10351 else
10352 case $cross_compiling:$ac_tool_warned in
10353 yes:)
10354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10355 whose name does not start with the host triplet. If you think this
10356 configuration is useful to you, please write to autoconf@gnu.org." >&5
10357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10358 whose name does not start with the host triplet. If you think this
10359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10360 ac_tool_warned=yes ;;
10361 esac
10362 CC=$ac_ct_CC
10364 else
10365 CC="$ac_cv_prog_CC"
10368 if test -z "$CC"; then
10369 if test -n "$ac_tool_prefix"; then
10370 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10371 set dummy ${ac_tool_prefix}cc; ac_word=$2
10372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10374 if test "${ac_cv_prog_CC+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377 if test -n "$CC"; then
10378 ac_cv_prog_CC="$CC" # Let the user override the test.
10379 else
10380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381 for as_dir in $PATH
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_prog_CC="${ac_tool_prefix}cc"
10388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10391 done
10392 done
10393 IFS=$as_save_IFS
10397 CC=$ac_cv_prog_CC
10398 if test -n "$CC"; then
10399 { echo "$as_me:$LINENO: result: $CC" >&5
10400 echo "${ECHO_T}$CC" >&6; }
10401 else
10402 { echo "$as_me:$LINENO: result: no" >&5
10403 echo "${ECHO_T}no" >&6; }
10409 if test -z "$CC"; then
10410 # Extract the first word of "cc", so it can be a program name with args.
10411 set dummy cc; ac_word=$2
10412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10414 if test "${ac_cv_prog_CC+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417 if test -n "$CC"; then
10418 ac_cv_prog_CC="$CC" # Let the user override the test.
10419 else
10420 ac_prog_rejected=no
10421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10422 for as_dir in $PATH
10424 IFS=$as_save_IFS
10425 test -z "$as_dir" && as_dir=.
10426 for ac_exec_ext in '' $ac_executable_extensions; do
10427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10428 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10429 ac_prog_rejected=yes
10430 continue
10432 ac_cv_prog_CC="cc"
10433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10434 break 2
10436 done
10437 done
10438 IFS=$as_save_IFS
10440 if test $ac_prog_rejected = yes; then
10441 # We found a bogon in the path, so make sure we never use it.
10442 set dummy $ac_cv_prog_CC
10443 shift
10444 if test $# != 0; then
10445 # We chose a different compiler from the bogus one.
10446 # However, it has the same basename, so the bogon will be chosen
10447 # first if we set CC to just the basename; use the full file name.
10448 shift
10449 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10454 CC=$ac_cv_prog_CC
10455 if test -n "$CC"; then
10456 { echo "$as_me:$LINENO: result: $CC" >&5
10457 echo "${ECHO_T}$CC" >&6; }
10458 else
10459 { echo "$as_me:$LINENO: result: no" >&5
10460 echo "${ECHO_T}no" >&6; }
10465 if test -z "$CC"; then
10466 if test -n "$ac_tool_prefix"; then
10467 for ac_prog in cl.exe
10469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10473 if test "${ac_cv_prog_CC+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476 if test -n "$CC"; then
10477 ac_cv_prog_CC="$CC" # Let the user override the test.
10478 else
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480 for as_dir in $PATH
10482 IFS=$as_save_IFS
10483 test -z "$as_dir" && as_dir=.
10484 for ac_exec_ext in '' $ac_executable_extensions; do
10485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10486 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10488 break 2
10490 done
10491 done
10492 IFS=$as_save_IFS
10496 CC=$ac_cv_prog_CC
10497 if test -n "$CC"; then
10498 { echo "$as_me:$LINENO: result: $CC" >&5
10499 echo "${ECHO_T}$CC" >&6; }
10500 else
10501 { echo "$as_me:$LINENO: result: no" >&5
10502 echo "${ECHO_T}no" >&6; }
10506 test -n "$CC" && break
10507 done
10509 if test -z "$CC"; then
10510 ac_ct_CC=$CC
10511 for ac_prog in cl.exe
10513 # Extract the first word of "$ac_prog", so it can be a program name with args.
10514 set dummy $ac_prog; ac_word=$2
10515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520 if test -n "$ac_ct_CC"; then
10521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10522 else
10523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524 for as_dir in $PATH
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10530 ac_cv_prog_ac_ct_CC="$ac_prog"
10531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10534 done
10535 done
10536 IFS=$as_save_IFS
10540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10541 if test -n "$ac_ct_CC"; then
10542 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10543 echo "${ECHO_T}$ac_ct_CC" >&6; }
10544 else
10545 { echo "$as_me:$LINENO: result: no" >&5
10546 echo "${ECHO_T}no" >&6; }
10550 test -n "$ac_ct_CC" && break
10551 done
10553 if test "x$ac_ct_CC" = x; then
10554 CC=""
10555 else
10556 case $cross_compiling:$ac_tool_warned in
10557 yes:)
10558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10559 whose name does not start with the host triplet. If you think this
10560 configuration is useful to you, please write to autoconf@gnu.org." >&5
10561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10562 whose name does not start with the host triplet. If you think this
10563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10564 ac_tool_warned=yes ;;
10565 esac
10566 CC=$ac_ct_CC
10573 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10574 See \`config.log' for more details." >&5
10575 echo "$as_me: error: no acceptable C compiler found in \$PATH
10576 See \`config.log' for more details." >&2;}
10577 { (exit 1); exit 1; }; }
10579 # Provide some information about the compiler.
10580 echo "$as_me:$LINENO: checking for C compiler version" >&5
10581 ac_compiler=`set X $ac_compile; echo $2`
10582 { (ac_try="$ac_compiler --version >&5"
10583 case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586 esac
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_compiler --version >&5") 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }
10592 { (ac_try="$ac_compiler -v >&5"
10593 case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10596 esac
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_compiler -v >&5") 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }
10602 { (ac_try="$ac_compiler -V >&5"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_compiler -V >&5") 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }
10613 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10614 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
10615 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 else
10618 cat >conftest.$ac_ext <<_ACEOF
10619 /* confdefs.h. */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10626 main ()
10628 #ifndef __GNUC__
10629 choke me
10630 #endif
10633 return 0;
10635 _ACEOF
10636 rm -f conftest.$ac_objext
10637 if { (ac_try="$ac_compile"
10638 case "(($ac_try" in
10639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640 *) ac_try_echo=$ac_try;;
10641 esac
10642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643 (eval "$ac_compile") 2>conftest.er1
10644 ac_status=$?
10645 grep -v '^ *+' conftest.er1 >conftest.err
10646 rm -f conftest.er1
10647 cat conftest.err >&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } && {
10650 test -z "$ac_c_werror_flag" ||
10651 test ! -s conftest.err
10652 } && test -s conftest.$ac_objext; then
10653 ac_compiler_gnu=yes
10654 else
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10658 ac_compiler_gnu=no
10661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10665 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10666 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
10667 GCC=`test $ac_compiler_gnu = yes && echo yes`
10668 ac_test_CFLAGS=${CFLAGS+set}
10669 ac_save_CFLAGS=$CFLAGS
10670 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10671 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
10672 if test "${ac_cv_prog_cc_g+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675 ac_save_c_werror_flag=$ac_c_werror_flag
10676 ac_c_werror_flag=yes
10677 ac_cv_prog_cc_g=no
10678 CFLAGS="-g"
10679 cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h. */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10687 main ()
10691 return 0;
10693 _ACEOF
10694 rm -f conftest.$ac_objext
10695 if { (ac_try="$ac_compile"
10696 case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10699 esac
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_compile") 2>conftest.er1
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } && {
10708 test -z "$ac_c_werror_flag" ||
10709 test ! -s conftest.err
10710 } && test -s conftest.$ac_objext; then
10711 ac_cv_prog_cc_g=yes
10712 else
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 CFLAGS=""
10717 cat >conftest.$ac_ext <<_ACEOF
10718 /* confdefs.h. */
10719 _ACEOF
10720 cat confdefs.h >>conftest.$ac_ext
10721 cat >>conftest.$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10725 main ()
10729 return 0;
10731 _ACEOF
10732 rm -f conftest.$ac_objext
10733 if { (ac_try="$ac_compile"
10734 case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10737 esac
10738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_compile") 2>conftest.er1
10740 ac_status=$?
10741 grep -v '^ *+' conftest.er1 >conftest.err
10742 rm -f conftest.er1
10743 cat conftest.err >&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } && {
10746 test -z "$ac_c_werror_flag" ||
10747 test ! -s conftest.err
10748 } && test -s conftest.$ac_objext; then
10750 else
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10754 ac_c_werror_flag=$ac_save_c_werror_flag
10755 CFLAGS="-g"
10756 cat >conftest.$ac_ext <<_ACEOF
10757 /* confdefs.h. */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10764 main ()
10768 return 0;
10770 _ACEOF
10771 rm -f conftest.$ac_objext
10772 if { (ac_try="$ac_compile"
10773 case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10776 esac
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_compile") 2>conftest.er1
10779 ac_status=$?
10780 grep -v '^ *+' conftest.er1 >conftest.err
10781 rm -f conftest.er1
10782 cat conftest.err >&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } && {
10785 test -z "$ac_c_werror_flag" ||
10786 test ! -s conftest.err
10787 } && test -s conftest.$ac_objext; then
10788 ac_cv_prog_cc_g=yes
10789 else
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10803 ac_c_werror_flag=$ac_save_c_werror_flag
10805 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10806 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
10807 if test "$ac_test_CFLAGS" = set; then
10808 CFLAGS=$ac_save_CFLAGS
10809 elif test $ac_cv_prog_cc_g = yes; then
10810 if test "$GCC" = yes; then
10811 CFLAGS="-g -O2"
10812 else
10813 CFLAGS="-g"
10815 else
10816 if test "$GCC" = yes; then
10817 CFLAGS="-O2"
10818 else
10819 CFLAGS=
10822 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
10823 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
10824 if test "${ac_cv_prog_cc_c89+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 else
10827 ac_cv_prog_cc_c89=no
10828 ac_save_CC=$CC
10829 cat >conftest.$ac_ext <<_ACEOF
10830 /* confdefs.h. */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h. */
10835 #include <stdarg.h>
10836 #include <stdio.h>
10837 #include <sys/types.h>
10838 #include <sys/stat.h>
10839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10840 struct buf { int x; };
10841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10842 static char *e (p, i)
10843 char **p;
10844 int i;
10846 return p[i];
10848 static char *f (char * (*g) (char **, int), char **p, ...)
10850 char *s;
10851 va_list v;
10852 va_start (v,p);
10853 s = g (p, va_arg (v,int));
10854 va_end (v);
10855 return s;
10858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10859 function prototypes and stuff, but not '\xHH' hex character constants.
10860 These don't provoke an error unfortunately, instead are silently treated
10861 as 'x'. The following induces an error, until -std is added to get
10862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10863 array size at least. It's necessary to write '\x00'==0 to get something
10864 that's true only with -std. */
10865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10868 inside strings and character constants. */
10869 #define FOO(x) 'x'
10870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10872 int test (int i, double x);
10873 struct s1 {int (*f) (int a);};
10874 struct s2 {int (*f) (double a);};
10875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10876 int argc;
10877 char **argv;
10879 main ()
10881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10883 return 0;
10885 _ACEOF
10886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10889 CC="$ac_save_CC $ac_arg"
10890 rm -f conftest.$ac_objext
10891 if { (ac_try="$ac_compile"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895 esac
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_compile") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest.$ac_objext; then
10907 ac_cv_prog_cc_c89=$ac_arg
10908 else
10909 echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10915 rm -f core conftest.err conftest.$ac_objext
10916 test "x$ac_cv_prog_cc_c89" != "xno" && break
10917 done
10918 rm -f conftest.$ac_ext
10919 CC=$ac_save_CC
10922 # AC_CACHE_VAL
10923 case "x$ac_cv_prog_cc_c89" in
10925 { echo "$as_me:$LINENO: result: none needed" >&5
10926 echo "${ECHO_T}none needed" >&6; } ;;
10927 xno)
10928 { echo "$as_me:$LINENO: result: unsupported" >&5
10929 echo "${ECHO_T}unsupported" >&6; } ;;
10931 CC="$CC $ac_cv_prog_cc_c89"
10932 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
10933 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
10934 esac
10937 ac_ext=c
10938 ac_cpp='$CPP $CPPFLAGS'
10939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10943 # Find a good install program. We prefer a C program (faster),
10944 # so one script is as good as another. But avoid the broken or
10945 # incompatible versions:
10946 # SysV /etc/install, /usr/sbin/install
10947 # SunOS /usr/etc/install
10948 # IRIX /sbin/install
10949 # AIX /bin/install
10950 # AmigaOS /C/install, which installs bootblocks on floppy discs
10951 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10952 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10953 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10954 # OS/2's system install, which has a completely different semantic
10955 # ./install, which can be erroneously created by make from ./install.sh.
10956 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10957 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
10958 if test -z "$INSTALL"; then
10959 if test "${ac_cv_path_install+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963 for as_dir in $PATH
10965 IFS=$as_save_IFS
10966 test -z "$as_dir" && as_dir=.
10967 # Account for people who put trailing slashes in PATH elements.
10968 case $as_dir/ in
10969 ./ | .// | /cC/* | \
10970 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10971 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10972 /usr/ucb/* ) ;;
10974 # OSF1 and SCO ODT 3.0 have their own names for install.
10975 # Don't use installbsd from OSF since it installs stuff as root
10976 # by default.
10977 for ac_prog in ginstall scoinst install; do
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10980 if test $ac_prog = install &&
10981 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10982 # AIX install. It has an incompatible calling convention.
10984 elif test $ac_prog = install &&
10985 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10986 # program-specific install script used by HP pwplus--don't use.
10988 else
10989 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10990 break 3
10993 done
10994 done
10996 esac
10997 done
10998 IFS=$as_save_IFS
11002 if test "${ac_cv_path_install+set}" = set; then
11003 INSTALL=$ac_cv_path_install
11004 else
11005 # As a last resort, use the slow shell script. Don't cache a
11006 # value for INSTALL within a source directory, because that will
11007 # break other packages using the cache if that directory is
11008 # removed, or if the value is a relative name.
11009 INSTALL=$ac_install_sh
11012 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11013 echo "${ECHO_T}$INSTALL" >&6; }
11015 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11016 # It thinks the first close brace ends the variable substitution.
11017 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11019 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11021 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11025 for ac_func in setmode
11027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h. */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11041 #define $ac_func innocuous_$ac_func
11043 /* System header to define __stub macros and hopefully few prototypes,
11044 which can conflict with char $ac_func (); below.
11045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11046 <limits.h> exists even on freestanding compilers. */
11048 #ifdef __STDC__
11049 # include <limits.h>
11050 #else
11051 # include <assert.h>
11052 #endif
11054 #undef $ac_func
11056 /* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
11059 #ifdef __cplusplus
11060 extern "C"
11061 #endif
11062 char $ac_func ();
11063 /* The GNU C library defines this for functions which it implements
11064 to always fail with ENOSYS. Some functions are actually named
11065 something starting with __ and the normal name is an alias. */
11066 #if defined __stub_$ac_func || defined __stub___$ac_func
11067 choke me
11068 #endif
11071 main ()
11073 return $ac_func ();
11075 return 0;
11077 _ACEOF
11078 rm -f conftest.$ac_objext conftest$ac_exeext
11079 if { (ac_try="$ac_link"
11080 case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11083 esac
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_link") 2>conftest.er1
11086 ac_status=$?
11087 grep -v '^ *+' conftest.er1 >conftest.err
11088 rm -f conftest.er1
11089 cat conftest.err >&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } && {
11092 test -z "$ac_c_werror_flag" ||
11093 test ! -s conftest.err
11094 } && test -s conftest$ac_exeext &&
11095 $as_test_x conftest$ac_exeext; then
11096 eval "$as_ac_var=yes"
11097 else
11098 echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11101 eval "$as_ac_var=no"
11104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11105 conftest$ac_exeext conftest.$ac_ext
11107 ac_res=`eval echo '${'$as_ac_var'}'`
11108 { echo "$as_me:$LINENO: result: $ac_res" >&5
11109 echo "${ECHO_T}$ac_res" >&6; }
11110 if test `eval echo '${'$as_ac_var'}'` = yes; then
11111 cat >>confdefs.h <<_ACEOF
11112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11113 _ACEOF
11116 done
11119 ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi"
11120 # If we haven't got the data from the intl directory,
11121 # assume NLS is disabled.
11122 USE_NLS=no
11123 LIBINTL=
11124 LIBINTL_DEP=
11125 INCINTL=
11126 XGETTEXT=
11127 GMSGFMT=
11128 POSUB=
11130 if test -f ../intl/config.intl; then
11131 . ../intl/config.intl
11133 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11134 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
11135 if test x"$USE_NLS" != xyes; then
11136 { echo "$as_me:$LINENO: result: no" >&5
11137 echo "${ECHO_T}no" >&6; }
11138 else
11139 { echo "$as_me:$LINENO: result: yes" >&5
11140 echo "${ECHO_T}yes" >&6; }
11142 cat >>confdefs.h <<\_ACEOF
11143 #define ENABLE_NLS 1
11144 _ACEOF
11147 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11148 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
11149 # Look for .po and .gmo files in the source directory.
11150 CATALOGS=
11151 XLINGUAS=
11152 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11153 # If there aren't any .gmo files the shell will give us the
11154 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11155 # weeded out.
11156 case "$cat" in *\**)
11157 continue;;
11158 esac
11159 # The quadruple backslash is collapsed to a double backslash
11160 # by the backticks, then collapsed again by the double quotes,
11161 # leaving us with one backslash in the sed expression (right
11162 # before the dot that mustn't act as a wildcard).
11163 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11164 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11165 # The user is allowed to set LINGUAS to a list of languages to
11166 # install catalogs for. If it's empty that means "all of them."
11167 if test "x$LINGUAS" = x; then
11168 CATALOGS="$CATALOGS $cat"
11169 XLINGUAS="$XLINGUAS $lang"
11170 else
11171 case "$LINGUAS" in *$lang*)
11172 CATALOGS="$CATALOGS $cat"
11173 XLINGUAS="$XLINGUAS $lang"
11175 esac
11177 done
11178 LINGUAS="$XLINGUAS"
11179 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
11180 echo "${ECHO_T}$LINGUAS" >&6; }
11183 DATADIRNAME=share
11185 INSTOBJEXT=.mo
11187 GENCAT=gencat
11189 CATOBJEXT=.gmo
11193 MKINSTALLDIRS=
11194 if test -n "$ac_aux_dir"; then
11195 case "$ac_aux_dir" in
11196 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11197 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11198 esac
11200 if test -z "$MKINSTALLDIRS"; then
11201 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11206 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11207 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
11208 # Check whether --enable-nls was given.
11209 if test "${enable_nls+set}" = set; then
11210 enableval=$enable_nls; USE_NLS=$enableval
11211 else
11212 USE_NLS=yes
11215 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11216 echo "${ECHO_T}$USE_NLS" >&6; }
11223 # Prepare PATH_SEPARATOR.
11224 # The user is always right.
11225 if test "${PATH_SEPARATOR+set}" != set; then
11226 echo "#! /bin/sh" >conf$$.sh
11227 echo "exit 0" >>conf$$.sh
11228 chmod +x conf$$.sh
11229 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11230 PATH_SEPARATOR=';'
11231 else
11232 PATH_SEPARATOR=:
11234 rm -f conf$$.sh
11237 # Find out how to test for executable files. Don't use a zero-byte file,
11238 # as systems may use methods other than mode bits to determine executability.
11239 cat >conf$$.file <<_ASEOF
11240 #! /bin/sh
11241 exit 0
11242 _ASEOF
11243 chmod +x conf$$.file
11244 if test -x conf$$.file >/dev/null 2>&1; then
11245 ac_executable_p="test -x"
11246 else
11247 ac_executable_p="test -f"
11249 rm -f conf$$.file
11251 # Extract the first word of "msgfmt", so it can be a program name with args.
11252 set dummy msgfmt; ac_word=$2
11253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11255 if test "${ac_cv_path_MSGFMT+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258 case "$MSGFMT" in
11259 [\\/]* | ?:[\\/]*)
11260 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11263 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11264 for ac_dir in $PATH; do
11265 IFS="$ac_save_IFS"
11266 test -z "$ac_dir" && ac_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11269 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11270 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11271 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11272 break 2
11275 done
11276 done
11277 IFS="$ac_save_IFS"
11278 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11280 esac
11282 MSGFMT="$ac_cv_path_MSGFMT"
11283 if test "$MSGFMT" != ":"; then
11284 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
11285 echo "${ECHO_T}$MSGFMT" >&6; }
11286 else
11287 { echo "$as_me:$LINENO: result: no" >&5
11288 echo "${ECHO_T}no" >&6; }
11291 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11292 set dummy gmsgfmt; ac_word=$2
11293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11295 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298 case $GMSGFMT in
11299 [\\/]* | ?:[\\/]*)
11300 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11306 IFS=$as_save_IFS
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
11309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11310 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11312 break 2
11314 done
11315 done
11316 IFS=$as_save_IFS
11318 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11320 esac
11322 GMSGFMT=$ac_cv_path_GMSGFMT
11323 if test -n "$GMSGFMT"; then
11324 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11325 echo "${ECHO_T}$GMSGFMT" >&6; }
11326 else
11327 { echo "$as_me:$LINENO: result: no" >&5
11328 echo "${ECHO_T}no" >&6; }
11334 # Prepare PATH_SEPARATOR.
11335 # The user is always right.
11336 if test "${PATH_SEPARATOR+set}" != set; then
11337 echo "#! /bin/sh" >conf$$.sh
11338 echo "exit 0" >>conf$$.sh
11339 chmod +x conf$$.sh
11340 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11341 PATH_SEPARATOR=';'
11342 else
11343 PATH_SEPARATOR=:
11345 rm -f conf$$.sh
11348 # Find out how to test for executable files. Don't use a zero-byte file,
11349 # as systems may use methods other than mode bits to determine executability.
11350 cat >conf$$.file <<_ASEOF
11351 #! /bin/sh
11352 exit 0
11353 _ASEOF
11354 chmod +x conf$$.file
11355 if test -x conf$$.file >/dev/null 2>&1; then
11356 ac_executable_p="test -x"
11357 else
11358 ac_executable_p="test -f"
11360 rm -f conf$$.file
11362 # Extract the first word of "xgettext", so it can be a program name with args.
11363 set dummy xgettext; ac_word=$2
11364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11366 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369 case "$XGETTEXT" in
11370 [\\/]* | ?:[\\/]*)
11371 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11374 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11375 for ac_dir in $PATH; do
11376 IFS="$ac_save_IFS"
11377 test -z "$ac_dir" && ac_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11380 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11381 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11382 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11383 break 2
11386 done
11387 done
11388 IFS="$ac_save_IFS"
11389 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11391 esac
11393 XGETTEXT="$ac_cv_path_XGETTEXT"
11394 if test "$XGETTEXT" != ":"; then
11395 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11396 echo "${ECHO_T}$XGETTEXT" >&6; }
11397 else
11398 { echo "$as_me:$LINENO: result: no" >&5
11399 echo "${ECHO_T}no" >&6; }
11402 rm -f messages.po
11405 # Prepare PATH_SEPARATOR.
11406 # The user is always right.
11407 if test "${PATH_SEPARATOR+set}" != set; then
11408 echo "#! /bin/sh" >conf$$.sh
11409 echo "exit 0" >>conf$$.sh
11410 chmod +x conf$$.sh
11411 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11412 PATH_SEPARATOR=';'
11413 else
11414 PATH_SEPARATOR=:
11416 rm -f conf$$.sh
11419 # Find out how to test for executable files. Don't use a zero-byte file,
11420 # as systems may use methods other than mode bits to determine executability.
11421 cat >conf$$.file <<_ASEOF
11422 #! /bin/sh
11423 exit 0
11424 _ASEOF
11425 chmod +x conf$$.file
11426 if test -x conf$$.file >/dev/null 2>&1; then
11427 ac_executable_p="test -x"
11428 else
11429 ac_executable_p="test -f"
11431 rm -f conf$$.file
11433 # Extract the first word of "msgmerge", so it can be a program name with args.
11434 set dummy msgmerge; ac_word=$2
11435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11437 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440 case "$MSGMERGE" in
11441 [\\/]* | ?:[\\/]*)
11442 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11445 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11446 for ac_dir in $PATH; do
11447 IFS="$ac_save_IFS"
11448 test -z "$ac_dir" && ac_dir=.
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11451 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11452 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11453 break 2
11456 done
11457 done
11458 IFS="$ac_save_IFS"
11459 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11461 esac
11463 MSGMERGE="$ac_cv_path_MSGMERGE"
11464 if test "$MSGMERGE" != ":"; then
11465 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11466 echo "${ECHO_T}$MSGMERGE" >&6; }
11467 else
11468 { echo "$as_me:$LINENO: result: no" >&5
11469 echo "${ECHO_T}no" >&6; }
11473 if test "$GMSGFMT" != ":"; then
11474 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11475 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11477 else
11478 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11479 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11480 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11481 GMSGFMT=":"
11485 if test "$XGETTEXT" != ":"; then
11486 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11487 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11489 else
11490 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11491 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
11492 XGETTEXT=":"
11494 rm -f messages.po
11497 ac_config_commands="$ac_config_commands default-1"
11501 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11502 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
11503 # Check whether --enable-maintainer-mode was given.
11504 if test "${enable_maintainer_mode+set}" = set; then
11505 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11506 else
11507 USE_MAINTAINER_MODE=no
11510 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11511 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
11514 if test $USE_MAINTAINER_MODE = yes; then
11515 MAINTAINER_MODE_TRUE=
11516 MAINTAINER_MODE_FALSE='#'
11517 else
11518 MAINTAINER_MODE_TRUE='#'
11519 MAINTAINER_MODE_FALSE=
11522 MAINT=$MAINTAINER_MODE_TRUE
11527 if false; then
11528 GENINSRC_NEVER_TRUE=
11529 GENINSRC_NEVER_FALSE='#'
11530 else
11531 GENINSRC_NEVER_TRUE='#'
11532 GENINSRC_NEVER_FALSE=
11538 for ac_header in sys/gmon_out.h
11540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 ac_res=`eval echo '${'$as_ac_Header'}'`
11548 { echo "$as_me:$LINENO: result: $ac_res" >&5
11549 echo "${ECHO_T}$ac_res" >&6; }
11550 else
11551 # Is the header compilable?
11552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11554 cat >conftest.$ac_ext <<_ACEOF
11555 /* confdefs.h. */
11556 _ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h. */
11560 $ac_includes_default
11561 #include <$ac_header>
11562 _ACEOF
11563 rm -f conftest.$ac_objext
11564 if { (ac_try="$ac_compile"
11565 case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11568 esac
11569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570 (eval "$ac_compile") 2>conftest.er1
11571 ac_status=$?
11572 grep -v '^ *+' conftest.er1 >conftest.err
11573 rm -f conftest.er1
11574 cat conftest.err >&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } && {
11577 test -z "$ac_c_werror_flag" ||
11578 test ! -s conftest.err
11579 } && test -s conftest.$ac_objext; then
11580 ac_header_compiler=yes
11581 else
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11585 ac_header_compiler=no
11588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11590 echo "${ECHO_T}$ac_header_compiler" >&6; }
11592 # Is the header present?
11593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11595 cat >conftest.$ac_ext <<_ACEOF
11596 /* confdefs.h. */
11597 _ACEOF
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h. */
11601 #include <$ac_header>
11602 _ACEOF
11603 if { (ac_try="$ac_cpp conftest.$ac_ext"
11604 case "(($ac_try" in
11605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606 *) ac_try_echo=$ac_try;;
11607 esac
11608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } >/dev/null && {
11616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11617 test ! -s conftest.err
11618 }; then
11619 ac_header_preproc=yes
11620 else
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11624 ac_header_preproc=no
11627 rm -f conftest.err conftest.$ac_ext
11628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11629 echo "${ECHO_T}$ac_header_preproc" >&6; }
11631 # So? What about this header?
11632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11633 yes:no: )
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11638 ac_header_preproc=yes
11640 no:yes:* )
11641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11655 esac
11656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 else
11661 eval "$as_ac_Header=\$ac_header_preproc"
11663 ac_res=`eval echo '${'$as_ac_Header'}'`
11664 { echo "$as_me:$LINENO: result: $ac_res" >&5
11665 echo "${ECHO_T}$ac_res" >&6; }
11668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11669 cat >>confdefs.h <<_ACEOF
11670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11671 _ACEOF
11675 done
11678 { echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11679 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6; }
11680 if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683 cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h. */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11689 #include <unistd.h>
11691 main ()
11693 extern int getopt (int, char *const*, const char *);
11695 return 0;
11697 _ACEOF
11698 rm -f conftest.$ac_objext
11699 if { (ac_try="$ac_compile"
11700 case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11703 esac
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_compile") 2>conftest.er1
11706 ac_status=$?
11707 grep -v '^ *+' conftest.er1 >conftest.err
11708 rm -f conftest.er1
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } && {
11712 test -z "$ac_c_werror_flag" ||
11713 test ! -s conftest.err
11714 } && test -s conftest.$ac_objext; then
11715 gprof_cv_decl_getopt_unistd_h=yes
11716 else
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11720 gprof_cv_decl_getopt_unistd_h=no
11723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11726 { echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
11727 echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6; }
11728 if test $gprof_cv_decl_getopt_unistd_h = yes; then
11730 cat >>confdefs.h <<\_ACEOF
11731 #define HAVE_DECL_GETOPT 1
11732 _ACEOF
11736 # Some systems have fabs only in -lm, not in -lc.
11737 { echo "$as_me:$LINENO: checking for library containing fabs" >&5
11738 echo $ECHO_N "checking for library containing fabs... $ECHO_C" >&6; }
11739 if test "${ac_cv_search_fabs+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 else
11742 ac_func_search_save_LIBS=$LIBS
11743 cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h. */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11750 /* Override any GCC internal prototype to avoid an error.
11751 Use char because int might match the return type of a GCC
11752 builtin and then its argument prototype would still apply. */
11753 #ifdef __cplusplus
11754 extern "C"
11755 #endif
11756 char fabs ();
11758 main ()
11760 return fabs ();
11762 return 0;
11764 _ACEOF
11765 for ac_lib in '' m; do
11766 if test -z "$ac_lib"; then
11767 ac_res="none required"
11768 else
11769 ac_res=-l$ac_lib
11770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (ac_try="$ac_link"
11774 case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11777 esac
11778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11779 (eval "$ac_link") 2>conftest.er1
11780 ac_status=$?
11781 grep -v '^ *+' conftest.er1 >conftest.err
11782 rm -f conftest.er1
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } && {
11786 test -z "$ac_c_werror_flag" ||
11787 test ! -s conftest.err
11788 } && test -s conftest$ac_exeext &&
11789 $as_test_x conftest$ac_exeext; then
11790 ac_cv_search_fabs=$ac_res
11791 else
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11799 conftest$ac_exeext
11800 if test "${ac_cv_search_fabs+set}" = set; then
11801 break
11803 done
11804 if test "${ac_cv_search_fabs+set}" = set; then
11806 else
11807 ac_cv_search_fabs=no
11809 rm conftest.$ac_ext
11810 LIBS=$ac_func_search_save_LIBS
11812 { echo "$as_me:$LINENO: result: $ac_cv_search_fabs" >&5
11813 echo "${ECHO_T}$ac_cv_search_fabs" >&6; }
11814 ac_res=$ac_cv_search_fabs
11815 if test "$ac_res" != no; then
11816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11822 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11824 # Check whether --enable-werror was given.
11825 if test "${enable_werror+set}" = set; then
11826 enableval=$enable_werror; case "${enableval}" in
11827 yes | y) ERROR_ON_WARNING="yes" ;;
11828 no | n) ERROR_ON_WARNING="no" ;;
11829 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11830 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11831 { (exit 1); exit 1; }; } ;;
11832 esac
11836 # Enable -Werror by default when using gcc
11837 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11838 ERROR_ON_WARNING=yes
11841 NO_WERROR=
11842 if test "${ERROR_ON_WARNING}" = yes ; then
11843 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11844 NO_WERROR="-Wno-error"
11847 if test "${GCC}" = yes ; then
11848 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11851 # Check whether --enable-build-warnings was given.
11852 if test "${enable_build_warnings+set}" = set; then
11853 enableval=$enable_build_warnings; case "${enableval}" in
11854 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11855 no) if test "${GCC}" = yes ; then
11856 WARN_CFLAGS="-w"
11857 fi;;
11858 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11859 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11860 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11861 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11862 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11863 esac
11867 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11868 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11879 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11881 cat >confcache <<\_ACEOF
11882 # This file is a shell script that caches the results of configure
11883 # tests run on this system so they can be shared between configure
11884 # scripts and configure runs, see configure's option --config-cache.
11885 # It is not useful on other systems. If it contains results you don't
11886 # want to keep, you may remove or edit it.
11888 # config.status only pays attention to the cache file if you give it
11889 # the --recheck option to rerun configure.
11891 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11892 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11893 # following values.
11895 _ACEOF
11897 # The following way of writing the cache mishandles newlines in values,
11898 # but we know of no workaround that is simple, portable, and efficient.
11899 # So, we kill variables containing newlines.
11900 # Ultrix sh set writes to stderr and can't be redirected directly,
11901 # and sets the high bit in the cache file unless we assign to the vars.
11903 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11904 eval ac_val=\$$ac_var
11905 case $ac_val in #(
11906 *${as_nl}*)
11907 case $ac_var in #(
11908 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11909 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11910 esac
11911 case $ac_var in #(
11912 _ | IFS | as_nl) ;; #(
11913 *) $as_unset $ac_var ;;
11914 esac ;;
11915 esac
11916 done
11918 (set) 2>&1 |
11919 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11920 *${as_nl}ac_space=\ *)
11921 # `set' does not quote correctly, so add quotes (double-quote
11922 # substitution turns \\\\ into \\, and sed turns \\ into \).
11923 sed -n \
11924 "s/'/'\\\\''/g;
11925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11926 ;; #(
11928 # `set' quotes correctly as required by POSIX, so do not add quotes.
11929 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11931 esac |
11932 sort
11934 sed '
11935 /^ac_cv_env_/b end
11936 t clear
11937 :clear
11938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11939 t end
11940 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11941 :end' >>confcache
11942 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11943 if test -w "$cache_file"; then
11944 test "x$cache_file" != "x/dev/null" &&
11945 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11946 echo "$as_me: updating cache $cache_file" >&6;}
11947 cat confcache >$cache_file
11948 else
11949 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11950 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11953 rm -f confcache
11955 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11956 # Let make expand exec_prefix.
11957 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11959 DEFS=-DHAVE_CONFIG_H
11961 ac_libobjs=
11962 ac_ltlibobjs=
11963 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11964 # 1. Remove the extension, and $U if already installed.
11965 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11966 ac_i=`echo "$ac_i" | sed "$ac_script"`
11967 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11968 # will be set to the directory where LIBOBJS objects are built.
11969 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11970 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11971 done
11972 LIBOBJS=$ac_libobjs
11974 LTLIBOBJS=$ac_ltlibobjs
11977 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11978 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11979 Usually this means the macro was only invoked conditionally." >&5
11980 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11981 Usually this means the macro was only invoked conditionally." >&2;}
11982 { (exit 1); exit 1; }; }
11984 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11985 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11986 Usually this means the macro was only invoked conditionally." >&5
11987 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11988 Usually this means the macro was only invoked conditionally." >&2;}
11989 { (exit 1); exit 1; }; }
11991 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11992 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11993 Usually this means the macro was only invoked conditionally." >&5
11994 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11995 Usually this means the macro was only invoked conditionally." >&2;}
11996 { (exit 1); exit 1; }; }
11998 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
11999 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12000 Usually this means the macro was only invoked conditionally." >&5
12001 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12002 Usually this means the macro was only invoked conditionally." >&2;}
12003 { (exit 1); exit 1; }; }
12006 : ${CONFIG_STATUS=./config.status}
12007 ac_clean_files_save=$ac_clean_files
12008 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12009 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12010 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12011 cat >$CONFIG_STATUS <<_ACEOF
12012 #! $SHELL
12013 # Generated by $as_me.
12014 # Run this file to recreate the current configuration.
12015 # Compiler output produced by configure, useful for debugging
12016 # configure, is in config.log if it exists.
12018 debug=false
12019 ac_cs_recheck=false
12020 ac_cs_silent=false
12021 SHELL=\${CONFIG_SHELL-$SHELL}
12022 _ACEOF
12024 cat >>$CONFIG_STATUS <<\_ACEOF
12025 ## --------------------- ##
12026 ## M4sh Initialization. ##
12027 ## --------------------- ##
12029 # Be more Bourne compatible
12030 DUALCASE=1; export DUALCASE # for MKS sh
12031 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12032 emulate sh
12033 NULLCMD=:
12034 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12035 # is contrary to our usage. Disable this feature.
12036 alias -g '${1+"$@"}'='"$@"'
12037 setopt NO_GLOB_SUBST
12038 else
12039 case `(set -o) 2>/dev/null` in
12040 *posix*) set -o posix ;;
12041 esac
12048 # PATH needs CR
12049 # Avoid depending upon Character Ranges.
12050 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12051 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12052 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12053 as_cr_digits='0123456789'
12054 as_cr_alnum=$as_cr_Letters$as_cr_digits
12056 # The user is always right.
12057 if test "${PATH_SEPARATOR+set}" != set; then
12058 echo "#! /bin/sh" >conf$$.sh
12059 echo "exit 0" >>conf$$.sh
12060 chmod +x conf$$.sh
12061 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12062 PATH_SEPARATOR=';'
12063 else
12064 PATH_SEPARATOR=:
12066 rm -f conf$$.sh
12069 # Support unset when possible.
12070 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12071 as_unset=unset
12072 else
12073 as_unset=false
12077 # IFS
12078 # We need space, tab and new line, in precisely that order. Quoting is
12079 # there to prevent editors from complaining about space-tab.
12080 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12081 # splitting by setting IFS to empty value.)
12082 as_nl='
12084 IFS=" "" $as_nl"
12086 # Find who we are. Look in the path if we contain no directory separator.
12087 case $0 in
12088 *[\\/]* ) as_myself=$0 ;;
12089 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12090 for as_dir in $PATH
12092 IFS=$as_save_IFS
12093 test -z "$as_dir" && as_dir=.
12094 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12095 done
12096 IFS=$as_save_IFS
12099 esac
12100 # We did not find ourselves, most probably we were run as `sh COMMAND'
12101 # in which case we are not to be found in the path.
12102 if test "x$as_myself" = x; then
12103 as_myself=$0
12105 if test ! -f "$as_myself"; then
12106 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12107 { (exit 1); exit 1; }
12110 # Work around bugs in pre-3.0 UWIN ksh.
12111 for as_var in ENV MAIL MAILPATH
12112 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12113 done
12114 PS1='$ '
12115 PS2='> '
12116 PS4='+ '
12118 # NLS nuisances.
12119 for as_var in \
12120 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12121 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12122 LC_TELEPHONE LC_TIME
12124 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12125 eval $as_var=C; export $as_var
12126 else
12127 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12129 done
12131 # Required to use basename.
12132 if expr a : '\(a\)' >/dev/null 2>&1 &&
12133 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12134 as_expr=expr
12135 else
12136 as_expr=false
12139 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12140 as_basename=basename
12141 else
12142 as_basename=false
12146 # Name of the executable.
12147 as_me=`$as_basename -- "$0" ||
12148 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12149 X"$0" : 'X\(//\)$' \| \
12150 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12151 echo X/"$0" |
12152 sed '/^.*\/\([^/][^/]*\)\/*$/{
12153 s//\1/
12156 /^X\/\(\/\/\)$/{
12157 s//\1/
12160 /^X\/\(\/\).*/{
12161 s//\1/
12164 s/.*/./; q'`
12166 # CDPATH.
12167 $as_unset CDPATH
12171 as_lineno_1=$LINENO
12172 as_lineno_2=$LINENO
12173 test "x$as_lineno_1" != "x$as_lineno_2" &&
12174 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12176 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12177 # uniformly replaced by the line number. The first 'sed' inserts a
12178 # line-number line after each line using $LINENO; the second 'sed'
12179 # does the real work. The second script uses 'N' to pair each
12180 # line-number line with the line containing $LINENO, and appends
12181 # trailing '-' during substitution so that $LINENO is not a special
12182 # case at line end.
12183 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12184 # scripts with optimization help from Paolo Bonzini. Blame Lee
12185 # E. McMahon (1931-1989) for sed's syntax. :-)
12186 sed -n '
12188 /[$]LINENO/=
12189 ' <$as_myself |
12190 sed '
12191 s/[$]LINENO.*/&-/
12192 t lineno
12194 :lineno
12196 :loop
12197 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12198 t loop
12199 s/-\n.*//
12200 ' >$as_me.lineno &&
12201 chmod +x "$as_me.lineno" ||
12202 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12203 { (exit 1); exit 1; }; }
12205 # Don't try to exec as it changes $[0], causing all sort of problems
12206 # (the dirname of $[0] is not the place where we might find the
12207 # original and so on. Autoconf is especially sensitive to this).
12208 . "./$as_me.lineno"
12209 # Exit status is that of the last command.
12210 exit
12214 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12215 as_dirname=dirname
12216 else
12217 as_dirname=false
12220 ECHO_C= ECHO_N= ECHO_T=
12221 case `echo -n x` in
12222 -n*)
12223 case `echo 'x\c'` in
12224 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12225 *) ECHO_C='\c';;
12226 esac;;
12228 ECHO_N='-n';;
12229 esac
12231 if expr a : '\(a\)' >/dev/null 2>&1 &&
12232 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12233 as_expr=expr
12234 else
12235 as_expr=false
12238 rm -f conf$$ conf$$.exe conf$$.file
12239 if test -d conf$$.dir; then
12240 rm -f conf$$.dir/conf$$.file
12241 else
12242 rm -f conf$$.dir
12243 mkdir conf$$.dir
12245 echo >conf$$.file
12246 if ln -s conf$$.file conf$$ 2>/dev/null; then
12247 as_ln_s='ln -s'
12248 # ... but there are two gotchas:
12249 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12250 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12251 # In both cases, we have to default to `cp -p'.
12252 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12253 as_ln_s='cp -p'
12254 elif ln conf$$.file conf$$ 2>/dev/null; then
12255 as_ln_s=ln
12256 else
12257 as_ln_s='cp -p'
12259 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12260 rmdir conf$$.dir 2>/dev/null
12262 if mkdir -p . 2>/dev/null; then
12263 as_mkdir_p=:
12264 else
12265 test -d ./-p && rmdir ./-p
12266 as_mkdir_p=false
12269 if test -x / >/dev/null 2>&1; then
12270 as_test_x='test -x'
12271 else
12272 if ls -dL / >/dev/null 2>&1; then
12273 as_ls_L_option=L
12274 else
12275 as_ls_L_option=
12277 as_test_x='
12278 eval sh -c '\''
12279 if test -d "$1"; then
12280 test -d "$1/.";
12281 else
12282 case $1 in
12283 -*)set "./$1";;
12284 esac;
12285 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12286 ???[sx]*):;;*)false;;esac;fi
12287 '\'' sh
12290 as_executable_p=$as_test_x
12292 # Sed expression to map a string onto a valid CPP name.
12293 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12295 # Sed expression to map a string onto a valid variable name.
12296 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12299 exec 6>&1
12301 # Save the log message, to keep $[0] and so on meaningful, and to
12302 # report actual input values of CONFIG_FILES etc. instead of their
12303 # values after options handling.
12304 ac_log="
12305 This file was extended by $as_me, which was
12306 generated by GNU Autoconf 2.61. Invocation command line was
12308 CONFIG_FILES = $CONFIG_FILES
12309 CONFIG_HEADERS = $CONFIG_HEADERS
12310 CONFIG_LINKS = $CONFIG_LINKS
12311 CONFIG_COMMANDS = $CONFIG_COMMANDS
12312 $ $0 $@
12314 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12317 _ACEOF
12319 cat >>$CONFIG_STATUS <<_ACEOF
12320 # Files that config.status was made for.
12321 config_files="$ac_config_files"
12322 config_headers="$ac_config_headers"
12323 config_commands="$ac_config_commands"
12325 _ACEOF
12327 cat >>$CONFIG_STATUS <<\_ACEOF
12328 ac_cs_usage="\
12329 \`$as_me' instantiates files from templates according to the
12330 current configuration.
12332 Usage: $0 [OPTIONS] [FILE]...
12334 -h, --help print this help, then exit
12335 -V, --version print version number and configuration settings, then exit
12336 -q, --quiet do not print progress messages
12337 -d, --debug don't remove temporary files
12338 --recheck update $as_me by reconfiguring in the same conditions
12339 --file=FILE[:TEMPLATE]
12340 instantiate the configuration file FILE
12341 --header=FILE[:TEMPLATE]
12342 instantiate the configuration header FILE
12344 Configuration files:
12345 $config_files
12347 Configuration headers:
12348 $config_headers
12350 Configuration commands:
12351 $config_commands
12353 Report bugs to <bug-autoconf@gnu.org>."
12355 _ACEOF
12356 cat >>$CONFIG_STATUS <<_ACEOF
12357 ac_cs_version="\\
12358 config.status
12359 configured by $0, generated by GNU Autoconf 2.61,
12360 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12362 Copyright (C) 2006 Free Software Foundation, Inc.
12363 This config.status script is free software; the Free Software Foundation
12364 gives unlimited permission to copy, distribute and modify it."
12366 ac_pwd='$ac_pwd'
12367 srcdir='$srcdir'
12368 INSTALL='$INSTALL'
12369 _ACEOF
12371 cat >>$CONFIG_STATUS <<\_ACEOF
12372 # If no file are specified by the user, then we need to provide default
12373 # value. By we need to know if files were specified by the user.
12374 ac_need_defaults=:
12375 while test $# != 0
12377 case $1 in
12378 --*=*)
12379 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12380 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12381 ac_shift=:
12384 ac_option=$1
12385 ac_optarg=$2
12386 ac_shift=shift
12388 esac
12390 case $ac_option in
12391 # Handling of the options.
12392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12393 ac_cs_recheck=: ;;
12394 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12395 echo "$ac_cs_version"; exit ;;
12396 --debug | --debu | --deb | --de | --d | -d )
12397 debug=: ;;
12398 --file | --fil | --fi | --f )
12399 $ac_shift
12400 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12401 ac_need_defaults=false;;
12402 --header | --heade | --head | --hea )
12403 $ac_shift
12404 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12405 ac_need_defaults=false;;
12406 --he | --h)
12407 # Conflict between --help and --header
12408 { echo "$as_me: error: ambiguous option: $1
12409 Try \`$0 --help' for more information." >&2
12410 { (exit 1); exit 1; }; };;
12411 --help | --hel | -h )
12412 echo "$ac_cs_usage"; exit ;;
12413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12414 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12415 ac_cs_silent=: ;;
12417 # This is an error.
12418 -*) { echo "$as_me: error: unrecognized option: $1
12419 Try \`$0 --help' for more information." >&2
12420 { (exit 1); exit 1; }; } ;;
12422 *) ac_config_targets="$ac_config_targets $1"
12423 ac_need_defaults=false ;;
12425 esac
12426 shift
12427 done
12429 ac_configure_extra_args=
12431 if $ac_cs_silent; then
12432 exec 6>/dev/null
12433 ac_configure_extra_args="$ac_configure_extra_args --silent"
12436 _ACEOF
12437 cat >>$CONFIG_STATUS <<_ACEOF
12438 if \$ac_cs_recheck; then
12439 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12440 CONFIG_SHELL=$SHELL
12441 export CONFIG_SHELL
12442 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12445 _ACEOF
12446 cat >>$CONFIG_STATUS <<\_ACEOF
12447 exec 5>>config.log
12449 echo
12450 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12451 ## Running $as_me. ##
12452 _ASBOX
12453 echo "$ac_log"
12454 } >&5
12456 _ACEOF
12457 cat >>$CONFIG_STATUS <<_ACEOF
12459 # INIT-COMMANDS
12461 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12464 # The HP-UX ksh and POSIX shell print the target directory to stdout
12465 # if CDPATH is set.
12466 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12468 sed_quote_subst='$sed_quote_subst'
12469 double_quote_subst='$double_quote_subst'
12470 delay_variable_subst='$delay_variable_subst'
12471 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12472 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12473 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12474 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12475 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12476 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12477 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12478 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12479 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12480 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12481 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12482 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12483 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12484 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12485 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12486 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12487 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12488 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12489 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12490 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12491 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12492 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12493 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12494 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12495 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12496 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12497 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12498 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12499 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12500 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12501 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12502 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12503 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12504 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12505 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12506 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12507 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12508 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12509 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12510 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12511 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12512 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12513 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12514 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"`'
12515 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12516 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12517 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12518 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12519 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12520 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12521 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12522 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12523 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12524 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12525 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12526 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12527 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12528 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12529 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12530 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12531 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12532 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12533 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12534 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12535 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12536 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12537 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12538 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12539 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12540 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12541 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12542 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12543 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12544 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12545 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12546 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12547 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12548 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12549 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12550 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12551 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12552 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12553 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12554 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12555 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12556 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12557 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12558 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12559 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12560 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12561 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12562 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12563 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12564 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12565 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12566 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12567 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12568 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12569 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12570 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12571 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12572 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12573 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12574 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12575 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12576 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12577 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12578 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12579 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12580 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12581 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12583 LTCC='$LTCC'
12584 LTCFLAGS='$LTCFLAGS'
12585 compiler='$compiler_DEFAULT'
12587 # Quote evaled strings.
12588 for var in SED \
12589 GREP \
12590 EGREP \
12591 FGREP \
12592 LD \
12593 NM \
12594 LN_S \
12595 lt_SP2NL \
12596 lt_NL2SP \
12597 reload_flag \
12598 deplibs_check_method \
12599 file_magic_cmd \
12600 AR \
12601 AR_FLAGS \
12602 STRIP \
12603 RANLIB \
12604 CC \
12605 CFLAGS \
12606 compiler \
12607 lt_cv_sys_global_symbol_pipe \
12608 lt_cv_sys_global_symbol_to_cdecl \
12609 lt_cv_sys_global_symbol_to_c_name_address \
12610 SHELL \
12611 ECHO \
12612 lt_prog_compiler_no_builtin_flag \
12613 lt_prog_compiler_wl \
12614 lt_prog_compiler_pic \
12615 lt_prog_compiler_static \
12616 lt_cv_prog_compiler_c_o \
12617 need_locks \
12618 shrext_cmds \
12619 export_dynamic_flag_spec \
12620 whole_archive_flag_spec \
12621 compiler_needs_object \
12622 with_gnu_ld \
12623 allow_undefined_flag \
12624 no_undefined_flag \
12625 hardcode_libdir_flag_spec \
12626 hardcode_libdir_flag_spec_ld \
12627 hardcode_libdir_separator \
12628 fix_srcfile_path \
12629 exclude_expsyms \
12630 include_expsyms \
12631 file_list_spec \
12632 variables_saved_for_relink \
12633 libname_spec \
12634 library_names_spec \
12635 soname_spec \
12636 finish_eval \
12637 old_striplib \
12638 striplib; do
12639 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12640 *[\\\\\\\`\\"\\\$]*)
12641 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12644 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12646 esac
12647 done
12649 # Double-quote double-evaled strings.
12650 for var in reload_cmds \
12651 old_postinstall_cmds \
12652 old_postuninstall_cmds \
12653 old_archive_cmds \
12654 extract_expsyms_cmds \
12655 old_archive_from_new_cmds \
12656 old_archive_from_expsyms_cmds \
12657 archive_cmds \
12658 archive_expsym_cmds \
12659 module_cmds \
12660 module_expsym_cmds \
12661 export_symbols_cmds \
12662 prelink_cmds \
12663 postinstall_cmds \
12664 postuninstall_cmds \
12665 finish_cmds \
12666 sys_lib_search_path_spec \
12667 sys_lib_dlsearch_path_spec; do
12668 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12669 *[\\\\\\\`\\"\\\$]*)
12670 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12673 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12675 esac
12676 done
12678 # Fix-up fallback echo if it was mangled by the above quoting rules.
12679 case \$lt_ECHO in
12680 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12682 esac
12684 ac_aux_dir='$ac_aux_dir'
12685 xsi_shell='$xsi_shell'
12686 lt_shell_append='$lt_shell_append'
12688 # See if we are running on zsh, and set the options which allow our
12689 # commands through without removal of \ escapes INIT.
12690 if test -n "\${ZSH_VERSION+set}" ; then
12691 setopt NO_GLOB_SUBST
12695 PACKAGE='$PACKAGE'
12696 VERSION='$VERSION'
12697 TIMESTAMP='$TIMESTAMP'
12698 RM='$RM'
12699 ofile='$ofile'
12703 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12704 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12705 # from automake.
12706 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12707 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12708 LINGUAS="${LINGUAS-%UNSET%}"
12711 _ACEOF
12713 cat >>$CONFIG_STATUS <<\_ACEOF
12715 # Handling of arguments.
12716 for ac_config_target in $ac_config_targets
12718 case $ac_config_target in
12719 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12720 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12721 "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
12722 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12723 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12724 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12726 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12727 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12728 { (exit 1); exit 1; }; };;
12729 esac
12730 done
12733 # If the user did not use the arguments to specify the items to instantiate,
12734 # then the envvar interface is used. Set only those that are not.
12735 # We use the long form for the default assignment because of an extremely
12736 # bizarre bug on SunOS 4.1.3.
12737 if $ac_need_defaults; then
12738 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12739 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12740 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12743 # Have a temporary directory for convenience. Make it in the build tree
12744 # simply because there is no reason against having it here, and in addition,
12745 # creating and moving files from /tmp can sometimes cause problems.
12746 # Hook for its removal unless debugging.
12747 # Note that there is a small window in which the directory will not be cleaned:
12748 # after its creation but before its name has been assigned to `$tmp'.
12749 $debug ||
12751 tmp=
12752 trap 'exit_status=$?
12753 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12755 trap '{ (exit 1); exit 1; }' 1 2 13 15
12757 # Create a (secure) tmp directory for tmp files.
12760 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12761 test -n "$tmp" && test -d "$tmp"
12762 } ||
12764 tmp=./conf$$-$RANDOM
12765 (umask 077 && mkdir "$tmp")
12766 } ||
12768 echo "$me: cannot create a temporary directory in ." >&2
12769 { (exit 1); exit 1; }
12773 # Set up the sed scripts for CONFIG_FILES section.
12776 # No need to generate the scripts if there are no CONFIG_FILES.
12777 # This happens for instance when ./config.status config.h
12778 if test -n "$CONFIG_FILES"; then
12780 _ACEOF
12784 ac_delim='%!_!# '
12785 for ac_last_try in false false false false false :; do
12786 cat >conf$$subs.sed <<_ACEOF
12787 SHELL!$SHELL$ac_delim
12788 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12789 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12790 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12791 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12792 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12793 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12794 exec_prefix!$exec_prefix$ac_delim
12795 prefix!$prefix$ac_delim
12796 program_transform_name!$program_transform_name$ac_delim
12797 bindir!$bindir$ac_delim
12798 sbindir!$sbindir$ac_delim
12799 libexecdir!$libexecdir$ac_delim
12800 datarootdir!$datarootdir$ac_delim
12801 datadir!$datadir$ac_delim
12802 sysconfdir!$sysconfdir$ac_delim
12803 sharedstatedir!$sharedstatedir$ac_delim
12804 localstatedir!$localstatedir$ac_delim
12805 includedir!$includedir$ac_delim
12806 oldincludedir!$oldincludedir$ac_delim
12807 docdir!$docdir$ac_delim
12808 infodir!$infodir$ac_delim
12809 htmldir!$htmldir$ac_delim
12810 dvidir!$dvidir$ac_delim
12811 pdfdir!$pdfdir$ac_delim
12812 psdir!$psdir$ac_delim
12813 libdir!$libdir$ac_delim
12814 localedir!$localedir$ac_delim
12815 mandir!$mandir$ac_delim
12816 DEFS!$DEFS$ac_delim
12817 ECHO_C!$ECHO_C$ac_delim
12818 ECHO_N!$ECHO_N$ac_delim
12819 ECHO_T!$ECHO_T$ac_delim
12820 LIBS!$LIBS$ac_delim
12821 build_alias!$build_alias$ac_delim
12822 host_alias!$host_alias$ac_delim
12823 target_alias!$target_alias$ac_delim
12824 build!$build$ac_delim
12825 build_cpu!$build_cpu$ac_delim
12826 build_vendor!$build_vendor$ac_delim
12827 build_os!$build_os$ac_delim
12828 host!$host$ac_delim
12829 host_cpu!$host_cpu$ac_delim
12830 host_vendor!$host_vendor$ac_delim
12831 host_os!$host_os$ac_delim
12832 target!$target$ac_delim
12833 target_cpu!$target_cpu$ac_delim
12834 target_vendor!$target_vendor$ac_delim
12835 target_os!$target_os$ac_delim
12836 CC!$CC$ac_delim
12837 CFLAGS!$CFLAGS$ac_delim
12838 LDFLAGS!$LDFLAGS$ac_delim
12839 CPPFLAGS!$CPPFLAGS$ac_delim
12840 ac_ct_CC!$ac_ct_CC$ac_delim
12841 EXEEXT!$EXEEXT$ac_delim
12842 OBJEXT!$OBJEXT$ac_delim
12843 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12844 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12845 INSTALL_DATA!$INSTALL_DATA$ac_delim
12846 CYGPATH_W!$CYGPATH_W$ac_delim
12847 PACKAGE!$PACKAGE$ac_delim
12848 VERSION!$VERSION$ac_delim
12849 ACLOCAL!$ACLOCAL$ac_delim
12850 AUTOCONF!$AUTOCONF$ac_delim
12851 AUTOMAKE!$AUTOMAKE$ac_delim
12852 AUTOHEADER!$AUTOHEADER$ac_delim
12853 MAKEINFO!$MAKEINFO$ac_delim
12854 install_sh!$install_sh$ac_delim
12855 STRIP!$STRIP$ac_delim
12856 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12857 mkdir_p!$mkdir_p$ac_delim
12858 AWK!$AWK$ac_delim
12859 SET_MAKE!$SET_MAKE$ac_delim
12860 am__leading_dot!$am__leading_dot$ac_delim
12861 AMTAR!$AMTAR$ac_delim
12862 am__tar!$am__tar$ac_delim
12863 am__untar!$am__untar$ac_delim
12864 DEPDIR!$DEPDIR$ac_delim
12865 am__include!$am__include$ac_delim
12866 am__quote!$am__quote$ac_delim
12867 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12868 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12869 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12870 CCDEPMODE!$CCDEPMODE$ac_delim
12871 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12872 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12873 LIBTOOL!$LIBTOOL$ac_delim
12874 SED!$SED$ac_delim
12875 GREP!$GREP$ac_delim
12876 EGREP!$EGREP$ac_delim
12877 FGREP!$FGREP$ac_delim
12878 LD!$LD$ac_delim
12879 DUMPBIN!$DUMPBIN$ac_delim
12880 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
12881 NM!$NM$ac_delim
12882 LN_S!$LN_S$ac_delim
12883 AR!$AR$ac_delim
12884 _ACEOF
12886 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12887 break
12888 elif $ac_last_try; then
12889 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12890 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12891 { (exit 1); exit 1; }; }
12892 else
12893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12895 done
12897 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12898 if test -n "$ac_eof"; then
12899 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12900 ac_eof=`expr $ac_eof + 1`
12903 cat >>$CONFIG_STATUS <<_ACEOF
12904 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12906 _ACEOF
12907 sed '
12908 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12909 s/^/s,@/; s/!/@,|#_!!_#|/
12912 s/'"$ac_delim"'$/,g/; t
12913 s/$/\\/; p
12914 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12915 ' >>$CONFIG_STATUS <conf$$subs.sed
12916 rm -f conf$$subs.sed
12917 cat >>$CONFIG_STATUS <<_ACEOF
12918 CEOF$ac_eof
12919 _ACEOF
12922 ac_delim='%!_!# '
12923 for ac_last_try in false false false false false :; do
12924 cat >conf$$subs.sed <<_ACEOF
12925 RANLIB!$RANLIB$ac_delim
12926 lt_ECHO!$lt_ECHO$ac_delim
12927 CPP!$CPP$ac_delim
12928 USE_NLS!$USE_NLS$ac_delim
12929 LIBINTL!$LIBINTL$ac_delim
12930 LIBINTL_DEP!$LIBINTL_DEP$ac_delim
12931 INCINTL!$INCINTL$ac_delim
12932 XGETTEXT!$XGETTEXT$ac_delim
12933 GMSGFMT!$GMSGFMT$ac_delim
12934 POSUB!$POSUB$ac_delim
12935 CATALOGS!$CATALOGS$ac_delim
12936 DATADIRNAME!$DATADIRNAME$ac_delim
12937 INSTOBJEXT!$INSTOBJEXT$ac_delim
12938 GENCAT!$GENCAT$ac_delim
12939 CATOBJEXT!$CATOBJEXT$ac_delim
12940 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
12941 MSGFMT!$MSGFMT$ac_delim
12942 MSGMERGE!$MSGMERGE$ac_delim
12943 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
12944 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
12945 MAINT!$MAINT$ac_delim
12946 GENINSRC_NEVER_TRUE!$GENINSRC_NEVER_TRUE$ac_delim
12947 GENINSRC_NEVER_FALSE!$GENINSRC_NEVER_FALSE$ac_delim
12948 WARN_CFLAGS!$WARN_CFLAGS$ac_delim
12949 NO_WERROR!$NO_WERROR$ac_delim
12950 LIBOBJS!$LIBOBJS$ac_delim
12951 LTLIBOBJS!$LTLIBOBJS$ac_delim
12952 _ACEOF
12954 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
12955 break
12956 elif $ac_last_try; then
12957 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12958 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12959 { (exit 1); exit 1; }; }
12960 else
12961 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12963 done
12965 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12966 if test -n "$ac_eof"; then
12967 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12968 ac_eof=`expr $ac_eof + 1`
12971 cat >>$CONFIG_STATUS <<_ACEOF
12972 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12973 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12974 _ACEOF
12975 sed '
12976 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12977 s/^/s,@/; s/!/@,|#_!!_#|/
12980 s/'"$ac_delim"'$/,g/; t
12981 s/$/\\/; p
12982 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12983 ' >>$CONFIG_STATUS <conf$$subs.sed
12984 rm -f conf$$subs.sed
12985 cat >>$CONFIG_STATUS <<_ACEOF
12986 :end
12987 s/|#_!!_#|//g
12988 CEOF$ac_eof
12989 _ACEOF
12992 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12993 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12994 # trailing colons and then remove the whole line if VPATH becomes empty
12995 # (actually we leave an empty line to preserve line numbers).
12996 if test "x$srcdir" = x.; then
12997 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12998 s/:*\$(srcdir):*/:/
12999 s/:*\${srcdir}:*/:/
13000 s/:*@srcdir@:*/:/
13001 s/^\([^=]*=[ ]*\):*/\1/
13002 s/:*$//
13003 s/^[^=]*=[ ]*$//
13007 cat >>$CONFIG_STATUS <<\_ACEOF
13008 fi # test -n "$CONFIG_FILES"
13011 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13013 case $ac_tag in
13014 :[FHLC]) ac_mode=$ac_tag; continue;;
13015 esac
13016 case $ac_mode$ac_tag in
13017 :[FHL]*:*);;
13018 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13019 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13020 { (exit 1); exit 1; }; };;
13021 :[FH]-) ac_tag=-:-;;
13022 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13023 esac
13024 ac_save_IFS=$IFS
13025 IFS=:
13026 set x $ac_tag
13027 IFS=$ac_save_IFS
13028 shift
13029 ac_file=$1
13030 shift
13032 case $ac_mode in
13033 :L) ac_source=$1;;
13034 :[FH])
13035 ac_file_inputs=
13036 for ac_f
13038 case $ac_f in
13039 -) ac_f="$tmp/stdin";;
13040 *) # Look for the file first in the build tree, then in the source tree
13041 # (if the path is not absolute). The absolute path cannot be DOS-style,
13042 # because $ac_f cannot contain `:'.
13043 test -f "$ac_f" ||
13044 case $ac_f in
13045 [\\/$]*) false;;
13046 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13047 esac ||
13048 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13049 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13050 { (exit 1); exit 1; }; };;
13051 esac
13052 ac_file_inputs="$ac_file_inputs $ac_f"
13053 done
13055 # Let's still pretend it is `configure' which instantiates (i.e., don't
13056 # use $as_me), people would be surprised to read:
13057 # /* config.h. Generated by config.status. */
13058 configure_input="Generated from "`IFS=:
13059 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13060 if test x"$ac_file" != x-; then
13061 configure_input="$ac_file. $configure_input"
13062 { echo "$as_me:$LINENO: creating $ac_file" >&5
13063 echo "$as_me: creating $ac_file" >&6;}
13066 case $ac_tag in
13067 *:-:* | *:-) cat >"$tmp/stdin";;
13068 esac
13070 esac
13072 ac_dir=`$as_dirname -- "$ac_file" ||
13073 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13074 X"$ac_file" : 'X\(//\)[^/]' \| \
13075 X"$ac_file" : 'X\(//\)$' \| \
13076 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13077 echo X"$ac_file" |
13078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13079 s//\1/
13082 /^X\(\/\/\)[^/].*/{
13083 s//\1/
13086 /^X\(\/\/\)$/{
13087 s//\1/
13090 /^X\(\/\).*/{
13091 s//\1/
13094 s/.*/./; q'`
13095 { as_dir="$ac_dir"
13096 case $as_dir in #(
13097 -*) as_dir=./$as_dir;;
13098 esac
13099 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13100 as_dirs=
13101 while :; do
13102 case $as_dir in #(
13103 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13104 *) as_qdir=$as_dir;;
13105 esac
13106 as_dirs="'$as_qdir' $as_dirs"
13107 as_dir=`$as_dirname -- "$as_dir" ||
13108 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13109 X"$as_dir" : 'X\(//\)[^/]' \| \
13110 X"$as_dir" : 'X\(//\)$' \| \
13111 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13112 echo X"$as_dir" |
13113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13114 s//\1/
13117 /^X\(\/\/\)[^/].*/{
13118 s//\1/
13121 /^X\(\/\/\)$/{
13122 s//\1/
13125 /^X\(\/\).*/{
13126 s//\1/
13129 s/.*/./; q'`
13130 test -d "$as_dir" && break
13131 done
13132 test -z "$as_dirs" || eval "mkdir $as_dirs"
13133 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13134 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13135 { (exit 1); exit 1; }; }; }
13136 ac_builddir=.
13138 case "$ac_dir" in
13139 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13141 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13142 # A ".." for each directory in $ac_dir_suffix.
13143 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13144 case $ac_top_builddir_sub in
13145 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13146 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13147 esac ;;
13148 esac
13149 ac_abs_top_builddir=$ac_pwd
13150 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13151 # for backward compatibility:
13152 ac_top_builddir=$ac_top_build_prefix
13154 case $srcdir in
13155 .) # We are building in place.
13156 ac_srcdir=.
13157 ac_top_srcdir=$ac_top_builddir_sub
13158 ac_abs_top_srcdir=$ac_pwd ;;
13159 [\\/]* | ?:[\\/]* ) # Absolute name.
13160 ac_srcdir=$srcdir$ac_dir_suffix;
13161 ac_top_srcdir=$srcdir
13162 ac_abs_top_srcdir=$srcdir ;;
13163 *) # Relative name.
13164 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13165 ac_top_srcdir=$ac_top_build_prefix$srcdir
13166 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13167 esac
13168 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13171 case $ac_mode in
13174 # CONFIG_FILE
13177 case $INSTALL in
13178 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13179 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13180 esac
13181 _ACEOF
13183 cat >>$CONFIG_STATUS <<\_ACEOF
13184 # If the template does not know about datarootdir, expand it.
13185 # FIXME: This hack should be removed a few years after 2.60.
13186 ac_datarootdir_hack=; ac_datarootdir_seen=
13188 case `sed -n '/datarootdir/ {
13192 /@datadir@/p
13193 /@docdir@/p
13194 /@infodir@/p
13195 /@localedir@/p
13196 /@mandir@/p
13197 ' $ac_file_inputs` in
13198 *datarootdir*) ac_datarootdir_seen=yes;;
13199 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13200 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13201 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13202 _ACEOF
13203 cat >>$CONFIG_STATUS <<_ACEOF
13204 ac_datarootdir_hack='
13205 s&@datadir@&$datadir&g
13206 s&@docdir@&$docdir&g
13207 s&@infodir@&$infodir&g
13208 s&@localedir@&$localedir&g
13209 s&@mandir@&$mandir&g
13210 s&\\\${datarootdir}&$datarootdir&g' ;;
13211 esac
13212 _ACEOF
13214 # Neutralize VPATH when `$srcdir' = `.'.
13215 # Shell code in configure.ac might set extrasub.
13216 # FIXME: do we really want to maintain this feature?
13217 cat >>$CONFIG_STATUS <<_ACEOF
13218 sed "$ac_vpsub
13219 $extrasub
13220 _ACEOF
13221 cat >>$CONFIG_STATUS <<\_ACEOF
13223 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13224 s&@configure_input@&$configure_input&;t t
13225 s&@top_builddir@&$ac_top_builddir_sub&;t t
13226 s&@srcdir@&$ac_srcdir&;t t
13227 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13228 s&@top_srcdir@&$ac_top_srcdir&;t t
13229 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13230 s&@builddir@&$ac_builddir&;t t
13231 s&@abs_builddir@&$ac_abs_builddir&;t t
13232 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13233 s&@INSTALL@&$ac_INSTALL&;t t
13234 $ac_datarootdir_hack
13235 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13237 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13238 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13239 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13240 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13241 which seems to be undefined. Please make sure it is defined." >&5
13242 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13243 which seems to be undefined. Please make sure it is defined." >&2;}
13245 rm -f "$tmp/stdin"
13246 case $ac_file in
13247 -) cat "$tmp/out"; rm -f "$tmp/out";;
13248 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13249 esac
13253 # CONFIG_HEADER
13255 _ACEOF
13257 # Transform confdefs.h into a sed script `conftest.defines', that
13258 # substitutes the proper values into config.h.in to produce config.h.
13259 rm -f conftest.defines conftest.tail
13260 # First, append a space to every undef/define line, to ease matching.
13261 echo 's/$/ /' >conftest.defines
13262 # Then, protect against being on the right side of a sed subst, or in
13263 # an unquoted here document, in config.status. If some macros were
13264 # called several times there might be several #defines for the same
13265 # symbol, which is useless. But do not sort them, since the last
13266 # AC_DEFINE must be honored.
13267 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13268 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13269 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13270 # PARAMS is the parameter list in the macro definition--in most cases, it's
13271 # just an empty string.
13272 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13273 ac_dB='\\)[ (].*,\\1define\\2'
13274 ac_dC=' '
13275 ac_dD=' ,'
13277 uniq confdefs.h |
13278 sed -n '
13279 t rset
13280 :rset
13281 s/^[ ]*#[ ]*define[ ][ ]*//
13282 t ok
13285 s/[\\&,]/\\&/g
13286 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13287 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13288 ' >>conftest.defines
13290 # Remove the space that was appended to ease matching.
13291 # Then replace #undef with comments. This is necessary, for
13292 # example, in the case of _POSIX_SOURCE, which is predefined and required
13293 # on some systems where configure will not decide to define it.
13294 # (The regexp can be short, since the line contains either #define or #undef.)
13295 echo 's/ $//
13296 s,^[ #]*u.*,/* & */,' >>conftest.defines
13298 # Break up conftest.defines:
13299 ac_max_sed_lines=50
13301 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13302 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13303 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13304 # et cetera.
13305 ac_in='$ac_file_inputs'
13306 ac_out='"$tmp/out1"'
13307 ac_nxt='"$tmp/out2"'
13309 while :
13311 # Write a here document:
13312 cat >>$CONFIG_STATUS <<_ACEOF
13313 # First, check the format of the line:
13314 cat >"\$tmp/defines.sed" <<\\CEOF
13315 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13316 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13318 :def
13319 _ACEOF
13320 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13321 echo 'CEOF
13322 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13323 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13324 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13325 grep . conftest.tail >/dev/null || break
13326 rm -f conftest.defines
13327 mv conftest.tail conftest.defines
13328 done
13329 rm -f conftest.defines conftest.tail
13331 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13332 cat >>$CONFIG_STATUS <<\_ACEOF
13333 if test x"$ac_file" != x-; then
13334 echo "/* $configure_input */" >"$tmp/config.h"
13335 cat "$ac_result" >>"$tmp/config.h"
13336 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13337 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13338 echo "$as_me: $ac_file is unchanged" >&6;}
13339 else
13340 rm -f $ac_file
13341 mv "$tmp/config.h" $ac_file
13343 else
13344 echo "/* $configure_input */"
13345 cat "$ac_result"
13347 rm -f "$tmp/out12"
13348 # Compute $ac_file's index in $config_headers.
13349 _am_stamp_count=1
13350 for _am_header in $config_headers :; do
13351 case $_am_header in
13352 $ac_file | $ac_file:* )
13353 break ;;
13355 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13356 esac
13357 done
13358 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
13359 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13360 X$ac_file : 'X\(//\)[^/]' \| \
13361 X$ac_file : 'X\(//\)$' \| \
13362 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
13363 echo X$ac_file |
13364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13365 s//\1/
13368 /^X\(\/\/\)[^/].*/{
13369 s//\1/
13372 /^X\(\/\/\)$/{
13373 s//\1/
13376 /^X\(\/\).*/{
13377 s//\1/
13380 s/.*/./; q'`/stamp-h$_am_stamp_count
13383 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13384 echo "$as_me: executing $ac_file commands" >&6;}
13386 esac
13389 case $ac_file$ac_mode in
13390 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13391 # Strip MF so we end up with the name of the file.
13392 mf=`echo "$mf" | sed -e 's/:.*$//'`
13393 # Check whether this is an Automake generated Makefile or not.
13394 # We used to match only the files named `Makefile.in', but
13395 # some people rename them; so instead we look at the file content.
13396 # Grep'ing the first line is not enough: some people post-process
13397 # each Makefile.in and add a new line on top of each file to say so.
13398 # So let's grep whole file.
13399 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13400 dirpart=`$as_dirname -- "$mf" ||
13401 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13402 X"$mf" : 'X\(//\)[^/]' \| \
13403 X"$mf" : 'X\(//\)$' \| \
13404 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13405 echo X"$mf" |
13406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13407 s//\1/
13410 /^X\(\/\/\)[^/].*/{
13411 s//\1/
13414 /^X\(\/\/\)$/{
13415 s//\1/
13418 /^X\(\/\).*/{
13419 s//\1/
13422 s/.*/./; q'`
13423 else
13424 continue
13426 # Extract the definition of DEPDIR, am__include, and am__quote
13427 # from the Makefile without running `make'.
13428 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13429 test -z "$DEPDIR" && continue
13430 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13431 test -z "am__include" && continue
13432 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13433 # When using ansi2knr, U may be empty or an underscore; expand it
13434 U=`sed -n 's/^U = //p' < "$mf"`
13435 # Find all dependency output files, they are included files with
13436 # $(DEPDIR) in their names. We invoke sed twice because it is the
13437 # simplest approach to changing $(DEPDIR) to its actual value in the
13438 # expansion.
13439 for file in `sed -n "
13440 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13441 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13442 # Make sure the directory exists.
13443 test -f "$dirpart/$file" && continue
13444 fdir=`$as_dirname -- "$file" ||
13445 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13446 X"$file" : 'X\(//\)[^/]' \| \
13447 X"$file" : 'X\(//\)$' \| \
13448 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13449 echo X"$file" |
13450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13451 s//\1/
13454 /^X\(\/\/\)[^/].*/{
13455 s//\1/
13458 /^X\(\/\/\)$/{
13459 s//\1/
13462 /^X\(\/\).*/{
13463 s//\1/
13466 s/.*/./; q'`
13467 { as_dir=$dirpart/$fdir
13468 case $as_dir in #(
13469 -*) as_dir=./$as_dir;;
13470 esac
13471 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13472 as_dirs=
13473 while :; do
13474 case $as_dir in #(
13475 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13476 *) as_qdir=$as_dir;;
13477 esac
13478 as_dirs="'$as_qdir' $as_dirs"
13479 as_dir=`$as_dirname -- "$as_dir" ||
13480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13481 X"$as_dir" : 'X\(//\)[^/]' \| \
13482 X"$as_dir" : 'X\(//\)$' \| \
13483 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13484 echo X"$as_dir" |
13485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13486 s//\1/
13489 /^X\(\/\/\)[^/].*/{
13490 s//\1/
13493 /^X\(\/\/\)$/{
13494 s//\1/
13497 /^X\(\/\).*/{
13498 s//\1/
13501 s/.*/./; q'`
13502 test -d "$as_dir" && break
13503 done
13504 test -z "$as_dirs" || eval "mkdir $as_dirs"
13505 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13506 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13507 { (exit 1); exit 1; }; }; }
13508 # echo "creating $dirpart/$file"
13509 echo '# dummy' > "$dirpart/$file"
13510 done
13511 done
13513 "libtool":C)
13515 # See if we are running on zsh, and set the options which allow our
13516 # commands through without removal of \ escapes.
13517 if test -n "${ZSH_VERSION+set}" ; then
13518 setopt NO_GLOB_SUBST
13521 cfgfile="${ofile}T"
13522 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13523 $RM "$cfgfile"
13525 cat <<_LT_EOF >> "$cfgfile"
13526 #! $SHELL
13528 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13529 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13530 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13531 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13533 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13534 # 2006, 2007 Free Software Foundation, Inc.
13536 # This file is part of GNU Libtool:
13537 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13539 # This program is free software; you can redistribute it and/or modify
13540 # it under the terms of the GNU General Public License as published by
13541 # the Free Software Foundation; either version 2 of the License, or
13542 # (at your option) any later version.
13544 # This program is distributed in the hope that it will be useful, but
13545 # WITHOUT ANY WARRANTY; without even the implied warranty of
13546 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13547 # General Public License for more details.
13549 # You should have received a copy of the GNU General Public License
13550 # along with this program; if not, a copy can be downloaded from
13551 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13552 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13553 # MA 02110-1301, USA.
13555 # As a special exception to the GNU General Public License, if you
13556 # distribute this file as part of a program that contains a
13557 # configuration script generated by Autoconf, you may include it under
13558 # the same distribution terms that you use for the rest of that program.
13561 # The names of the tagged configurations supported by this script.
13562 available_tags=""
13564 # ### BEGIN LIBTOOL CONFIG
13566 # Which release of libtool.m4 was used?
13567 macro_version=$macro_version
13568 macro_revision=$macro_revision
13570 # Whether or not to build shared libraries.
13571 build_libtool_libs=$enable_shared
13573 # Whether or not to build static libraries.
13574 build_old_libs=$enable_static
13576 # What type of objects to build.
13577 pic_mode=$pic_mode
13579 # Whether or not to optimize for fast installation.
13580 fast_install=$enable_fast_install
13582 # The host system.
13583 host_alias=$host_alias
13584 host=$host
13585 host_os=$host_os
13587 # The build system.
13588 build_alias=$build_alias
13589 build=$build
13590 build_os=$build_os
13592 # A sed program that does not truncate output.
13593 SED=$lt_SED
13595 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13596 Xsed="\$SED -e 1s/^X//"
13598 # A grep program that handles long lines.
13599 GREP=$lt_GREP
13601 # An ERE matcher.
13602 EGREP=$lt_EGREP
13604 # A literal string matcher.
13605 FGREP=$lt_FGREP
13607 # A BSD- or MS-compatible name lister.
13608 NM=$lt_NM
13610 # Whether we need soft or hard links.
13611 LN_S=$lt_LN_S
13613 # What is the maximum length of a command?
13614 max_cmd_len=$max_cmd_len
13616 # Object file suffix (normally "o").
13617 objext=$ac_objext
13619 # Executable file suffix (normally "").
13620 exeext=$exeext
13622 # whether the shell understands "unset".
13623 lt_unset=$lt_unset
13625 # turn spaces into newlines.
13626 SP2NL=$lt_lt_SP2NL
13628 # turn newlines into spaces.
13629 NL2SP=$lt_lt_NL2SP
13631 # How to create reloadable object files.
13632 reload_flag=$lt_reload_flag
13633 reload_cmds=$lt_reload_cmds
13635 # Method to check whether dependent libraries are shared objects.
13636 deplibs_check_method=$lt_deplibs_check_method
13638 # Command to use when deplibs_check_method == "file_magic".
13639 file_magic_cmd=$lt_file_magic_cmd
13641 # The archiver.
13642 AR=$lt_AR
13643 AR_FLAGS=$lt_AR_FLAGS
13645 # A symbol stripping program.
13646 STRIP=$lt_STRIP
13648 # Commands used to install an old-style archive.
13649 RANLIB=$lt_RANLIB
13650 old_postinstall_cmds=$lt_old_postinstall_cmds
13651 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13653 # A C compiler.
13654 LTCC=$lt_CC
13656 # LTCC compiler flags.
13657 LTCFLAGS=$lt_CFLAGS
13659 # Take the output of nm and produce a listing of raw symbols and C names.
13660 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13662 # Transform the output of nm in a proper C declaration.
13663 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13665 # Transform the output of nm in a C name address pair.
13666 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13668 # The name of the directory that contains temporary libtool files.
13669 objdir=$objdir
13671 # Shell to use when invoking shell scripts.
13672 SHELL=$lt_SHELL
13674 # An echo program that does not interpret backslashes.
13675 ECHO=$lt_ECHO
13677 # Used to examine libraries when file_magic_cmd begins with "file".
13678 MAGIC_CMD=$MAGIC_CMD
13680 # Must we lock files when doing compilation?
13681 need_locks=$lt_need_locks
13683 # Old archive suffix (normally "a").
13684 libext=$libext
13686 # Shared library suffix (normally ".so").
13687 shrext_cmds=$lt_shrext_cmds
13689 # The commands to extract the exported symbol list from a shared archive.
13690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13692 # Variables whose values should be saved in libtool wrapper scripts and
13693 # restored at link time.
13694 variables_saved_for_relink=$lt_variables_saved_for_relink
13696 # Do we need the "lib" prefix for modules?
13697 need_lib_prefix=$need_lib_prefix
13699 # Do we need a version for libraries?
13700 need_version=$need_version
13702 # Library versioning type.
13703 version_type=$version_type
13705 # Shared library runtime path variable.
13706 runpath_var=$runpath_var
13708 # Shared library path variable.
13709 shlibpath_var=$shlibpath_var
13711 # Is shlibpath searched before the hard-coded library search path?
13712 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13714 # Format of library name prefix.
13715 libname_spec=$lt_libname_spec
13717 # List of archive names. First name is the real one, the rest are links.
13718 # The last name is the one that the linker finds with -lNAME
13719 library_names_spec=$lt_library_names_spec
13721 # The coded name of the library, if different from the real name.
13722 soname_spec=$lt_soname_spec
13724 # Command to use after installation of a shared archive.
13725 postinstall_cmds=$lt_postinstall_cmds
13727 # Command to use after uninstallation of a shared archive.
13728 postuninstall_cmds=$lt_postuninstall_cmds
13730 # Commands used to finish a libtool library installation in a directory.
13731 finish_cmds=$lt_finish_cmds
13733 # As "finish_cmds", except a single script fragment to be evaled but
13734 # not shown.
13735 finish_eval=$lt_finish_eval
13737 # Whether we should hardcode library paths into libraries.
13738 hardcode_into_libs=$hardcode_into_libs
13740 # Compile-time system search path for libraries.
13741 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13743 # Run-time system search path for libraries.
13744 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13746 # Whether dlopen is supported.
13747 dlopen_support=$enable_dlopen
13749 # Whether dlopen of programs is supported.
13750 dlopen_self=$enable_dlopen_self
13752 # Whether dlopen of statically linked programs is supported.
13753 dlopen_self_static=$enable_dlopen_self_static
13755 # Commands to strip libraries.
13756 old_striplib=$lt_old_striplib
13757 striplib=$lt_striplib
13760 # The linker used to build libraries.
13761 LD=$lt_LD
13763 # Commands used to build an old-style archive.
13764 old_archive_cmds=$lt_old_archive_cmds
13766 # A language specific compiler.
13767 CC=$lt_compiler
13769 # Is the compiler the GNU compiler?
13770 with_gcc=$GCC
13772 # Compiler flag to turn off builtin functions.
13773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13775 # How to pass a linker flag through the compiler.
13776 wl=$lt_lt_prog_compiler_wl
13778 # Additional compiler flags for building library objects.
13779 pic_flag=$lt_lt_prog_compiler_pic
13781 # Compiler flag to prevent dynamic linking.
13782 link_static_flag=$lt_lt_prog_compiler_static
13784 # Does compiler simultaneously support -c and -o options?
13785 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13787 # Whether or not to add -lc for building shared libraries.
13788 build_libtool_need_lc=$archive_cmds_need_lc
13790 # Whether or not to disallow shared libs when runtime libs are static.
13791 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13793 # Compiler flag to allow reflexive dlopens.
13794 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13796 # Compiler flag to generate shared objects directly from archives.
13797 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13799 # Whether the compiler copes with passing no objects directly.
13800 compiler_needs_object=$lt_compiler_needs_object
13802 # Create an old-style archive from a shared archive.
13803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13805 # Create a temporary old-style archive to link instead of a shared archive.
13806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13808 # Commands used to build a shared archive.
13809 archive_cmds=$lt_archive_cmds
13810 archive_expsym_cmds=$lt_archive_expsym_cmds
13812 # Commands used to build a loadable module if different from building
13813 # a shared archive.
13814 module_cmds=$lt_module_cmds
13815 module_expsym_cmds=$lt_module_expsym_cmds
13817 # Whether we are building with GNU ld or not.
13818 with_gnu_ld=$lt_with_gnu_ld
13820 # Flag that allows shared libraries with undefined symbols to be built.
13821 allow_undefined_flag=$lt_allow_undefined_flag
13823 # Flag that enforces no undefined symbols.
13824 no_undefined_flag=$lt_no_undefined_flag
13826 # Flag to hardcode \$libdir into a binary during linking.
13827 # This must work even if \$libdir does not exist
13828 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13830 # If ld is used when linking, flag to hardcode \$libdir into a binary
13831 # during linking. This must work even if \$libdir does not exist.
13832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13834 # Whether we need a single "-rpath" flag with a separated argument.
13835 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13837 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13838 # DIR into the resulting binary.
13839 hardcode_direct=$hardcode_direct
13841 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13842 # DIR into the resulting binary and the resulting library dependency is
13843 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13844 # library is relocated.
13845 hardcode_direct_absolute=$hardcode_direct_absolute
13847 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13848 # into the resulting binary.
13849 hardcode_minus_L=$hardcode_minus_L
13851 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13852 # into the resulting binary.
13853 hardcode_shlibpath_var=$hardcode_shlibpath_var
13855 # Set to "yes" if building a shared library automatically hardcodes DIR
13856 # into the library and all subsequent libraries and executables linked
13857 # against it.
13858 hardcode_automatic=$hardcode_automatic
13860 # Set to yes if linker adds runtime paths of dependent libraries
13861 # to runtime path list.
13862 inherit_rpath=$inherit_rpath
13864 # Whether libtool must link a program against all its dependency libraries.
13865 link_all_deplibs=$link_all_deplibs
13867 # Fix the shell variable \$srcfile for the compiler.
13868 fix_srcfile_path=$lt_fix_srcfile_path
13870 # Set to "yes" if exported symbols are required.
13871 always_export_symbols=$always_export_symbols
13873 # The commands to list exported symbols.
13874 export_symbols_cmds=$lt_export_symbols_cmds
13876 # Symbols that should not be listed in the preloaded symbols.
13877 exclude_expsyms=$lt_exclude_expsyms
13879 # Symbols that must always be exported.
13880 include_expsyms=$lt_include_expsyms
13882 # Commands necessary for linking programs (against libraries) with templates.
13883 prelink_cmds=$lt_prelink_cmds
13885 # Specify filename containing input files.
13886 file_list_spec=$lt_file_list_spec
13888 # How to hardcode a shared library path into an executable.
13889 hardcode_action=$hardcode_action
13891 # ### END LIBTOOL CONFIG
13893 _LT_EOF
13895 case $host_os in
13896 aix3*)
13897 cat <<\_LT_EOF >> "$cfgfile"
13898 # AIX sometimes has problems with the GCC collect2 program. For some
13899 # reason, if we set the COLLECT_NAMES environment variable, the problems
13900 # vanish in a puff of smoke.
13901 if test "X${COLLECT_NAMES+set}" != Xset; then
13902 COLLECT_NAMES=
13903 export COLLECT_NAMES
13905 _LT_EOF
13907 esac
13910 ltmain="$ac_aux_dir/ltmain.sh"
13913 # We use sed instead of cat because bash on DJGPP gets confused if
13914 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13915 # text mode, it properly converts lines to CR/LF. This bash problem
13916 # is reportedly fixed, but why not run on old versions too?
13917 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13918 || (rm -f "$cfgfile"; exit 1)
13920 case $xsi_shell in
13921 yes)
13922 cat << \_LT_EOF >> "$cfgfile"
13923 # func_dirname file append nondir_replacement
13924 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13925 # otherwise set result to NONDIR_REPLACEMENT.
13926 func_dirname ()
13928 case ${1} in
13929 */*) func_dirname_result="${1%/*}${2}" ;;
13930 * ) func_dirname_result="${3}" ;;
13931 esac
13934 # func_basename file
13935 func_basename ()
13937 func_basename_result="${1##*/}"
13940 # func_stripname prefix suffix name
13941 # strip PREFIX and SUFFIX off of NAME.
13942 # PREFIX and SUFFIX must not contain globbing or regex special
13943 # characters, hashes, percent signs, but SUFFIX may contain a leading
13944 # dot (in which case that matches only a dot).
13945 func_stripname ()
13947 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13948 # positional parameters, so assign one to ordinary parameter first.
13949 func_stripname_result=${3}
13950 func_stripname_result=${func_stripname_result#"${1}"}
13951 func_stripname_result=${func_stripname_result%"${2}"}
13954 # func_opt_split
13955 func_opt_split ()
13957 func_opt_split_opt=${1%%=*}
13958 func_opt_split_arg=${1#*=}
13961 # func_lo2o object
13962 func_lo2o ()
13964 case ${1} in
13965 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13966 *) func_lo2o_result=${1} ;;
13967 esac
13969 _LT_EOF
13971 *) # Bourne compatible functions.
13972 cat << \_LT_EOF >> "$cfgfile"
13973 # func_dirname file append nondir_replacement
13974 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13975 # otherwise set result to NONDIR_REPLACEMENT.
13976 func_dirname ()
13978 # Extract subdirectory from the argument.
13979 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13980 if test "X$func_dirname_result" = "X${1}"; then
13981 func_dirname_result="${3}"
13982 else
13983 func_dirname_result="$func_dirname_result${2}"
13987 # func_basename file
13988 func_basename ()
13990 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13993 # func_stripname prefix suffix name
13994 # strip PREFIX and SUFFIX off of NAME.
13995 # PREFIX and SUFFIX must not contain globbing or regex special
13996 # characters, hashes, percent signs, but SUFFIX may contain a leading
13997 # dot (in which case that matches only a dot).
13998 # func_strip_suffix prefix name
13999 func_stripname ()
14001 case ${2} in
14002 .*) func_stripname_result=`$ECHO "X${3}" \
14003 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14004 *) func_stripname_result=`$ECHO "X${3}" \
14005 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14006 esac
14009 # sed scripts:
14010 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14011 my_sed_long_arg='1s/^-[^=]*=//'
14013 # func_opt_split
14014 func_opt_split ()
14016 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14017 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14020 # func_lo2o object
14021 func_lo2o ()
14023 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14025 _LT_EOF
14026 esac
14028 case $lt_shell_append in
14029 yes)
14030 cat << \_LT_EOF >> "$cfgfile"
14032 # func_append var value
14033 # Append VALUE to the end of shell variable VAR.
14034 func_append ()
14036 eval "$1+=\$2"
14038 _LT_EOF
14041 cat << \_LT_EOF >> "$cfgfile"
14043 # func_append var value
14044 # Append VALUE to the end of shell variable VAR.
14045 func_append ()
14047 eval "$1=\$$1\$2"
14049 _LT_EOF
14051 esac
14054 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14055 || (rm -f "$cfgfile"; exit 1)
14057 mv -f "$cfgfile" "$ofile" ||
14058 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14059 chmod +x "$ofile"
14062 "default-1":C)
14063 for ac_file in $CONFIG_FILES; do
14064 # Support "outfile[:infile[:infile...]]"
14065 case "$ac_file" in
14066 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14067 esac
14068 # PO directories have a Makefile.in generated from Makefile.in.in.
14069 case "$ac_file" in */Makefile.in)
14070 # Adjust a relative srcdir.
14071 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14072 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14073 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14074 # In autoconf-2.13 it is called $ac_given_srcdir.
14075 # In autoconf-2.50 it is called $srcdir.
14076 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14077 case "$ac_given_srcdir" in
14078 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14079 /*) top_srcdir="$ac_given_srcdir" ;;
14080 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14081 esac
14082 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14083 rm -f "$ac_dir/POTFILES"
14084 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14085 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14086 POMAKEFILEDEPS="POTFILES.in"
14087 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14088 # on $ac_dir but don't depend on user-specified configuration
14089 # parameters.
14090 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14091 # The LINGUAS file contains the set of available languages.
14092 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14093 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14095 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14096 # Hide the ALL_LINGUAS assigment from automake.
14097 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14098 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14099 else
14100 # The set of available languages was given in configure.in.
14101 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14103 case "$ac_given_srcdir" in
14104 .) srcdirpre= ;;
14105 *) srcdirpre='$(srcdir)/' ;;
14106 esac
14107 POFILES=
14108 GMOFILES=
14109 UPDATEPOFILES=
14110 DUMMYPOFILES=
14111 for lang in $ALL_LINGUAS; do
14112 POFILES="$POFILES $srcdirpre$lang.po"
14113 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14114 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14115 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14116 done
14117 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14118 # environment variable.
14119 INST_LINGUAS=
14120 if test -n "$ALL_LINGUAS"; then
14121 for presentlang in $ALL_LINGUAS; do
14122 useit=no
14123 if test "%UNSET%" != "$LINGUAS"; then
14124 desiredlanguages="$LINGUAS"
14125 else
14126 desiredlanguages="$ALL_LINGUAS"
14128 for desiredlang in $desiredlanguages; do
14129 # Use the presentlang catalog if desiredlang is
14130 # a. equal to presentlang, or
14131 # b. a variant of presentlang (because in this case,
14132 # presentlang can be used as a fallback for messages
14133 # which are not translated in the desiredlang catalog).
14134 case "$desiredlang" in
14135 "$presentlang"*) useit=yes;;
14136 esac
14137 done
14138 if test $useit = yes; then
14139 INST_LINGUAS="$INST_LINGUAS $presentlang"
14141 done
14143 CATALOGS=
14144 if test -n "$INST_LINGUAS"; then
14145 for lang in $INST_LINGUAS; do
14146 CATALOGS="$CATALOGS $lang.gmo"
14147 done
14149 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14150 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14151 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14152 if test -f "$f"; then
14153 case "$f" in
14154 *.orig | *.bak | *~) ;;
14155 *) cat "$f" >> "$ac_dir/Makefile" ;;
14156 esac
14158 done
14161 esac
14162 done ;;
14164 esac
14165 done # for ac_tag
14168 { (exit 0); exit 0; }
14169 _ACEOF
14170 chmod +x $CONFIG_STATUS
14171 ac_clean_files=$ac_clean_files_save
14174 # configure is writing to config.log, and then calls config.status.
14175 # config.status does its own redirection, appending to config.log.
14176 # Unfortunately, on DOS this fails, as config.log is still kept open
14177 # by configure, so config.status won't be able to write to it; its
14178 # output is simply discarded. So we exec the FD to /dev/null,
14179 # effectively closing config.log, so it can be properly (re)opened and
14180 # appended to by config.status. When coming back to configure, we
14181 # need to make the FD available again.
14182 if test "$no_create" != yes; then
14183 ac_cs_success=:
14184 ac_config_status_args=
14185 test "$silent" = yes &&
14186 ac_config_status_args="$ac_config_status_args --quiet"
14187 exec 5>/dev/null
14188 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14189 exec 5>>config.log
14190 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14191 # would make configure fail if this is the last instruction.
14192 $ac_cs_success || { (exit 1); exit 1; }